.simulator-body {
  min-height: 100vh;
  background: #07090f;
}

.simulator-nav {
  position: relative;
  padding-block: 12px;
}

.simulator-nav-actions,
.simulator-heading,
.simulator-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.simulator-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dfe5ef;
  font-size: 13px;
  font-weight: 800;
}

.simulator-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57bf86;
  box-shadow: 0 0 0 5px rgba(87,191,134,.12);
}

.simulator-main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 28px 4vw 48px;
}

.simulator-heading {
  margin-bottom: 22px;
}

.simulator-heading h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0;
}

.simulator-heading > p {
  color: #9ca5b5;
  font-size: 13px;
}

.simulator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
}

.simulator-tv-wrap {
  min-width: 0;
}

.simulator-tv {
  padding: 12px;
  border: 2px solid #363945;
  border-radius: 20px;
  background: linear-gradient(145deg, #272a33, #06070a 45%, #191b21);
  box-shadow: 0 34px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.18);
}

.simulator-screen {
  position: relative;
  aspect-ratio: 1600 / 901;
  overflow: hidden;
  border-radius: 10px;
  outline: none;
  background: #03050a;
}

.simulator-home,
.simulator-detail {
  position: absolute;
  inset: 0;
}

.simulator-home-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.simulator-detail-shade { position: absolute; inset: 0; }

/* Hotspots follow the six visible tiles in the supplied 1600 × 901 screen. */
.simulator-menu {
  position: absolute;
  top: 74.92%;
  height: 18.87%;
  left: 2.5%;
  right: 2.5%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75%;
  direction: ltr;
}

.simulator-menu button {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.simulator-menu button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.simulator-menu button.focused,
.simulator-menu button:hover,
.simulator-menu button:focus-visible {
  outline: none;
  border-color: #efd298;
  background: rgba(224, 187, 104, .08);
  box-shadow: inset 0 0 16px rgba(224, 187, 104, .18);
}

.remote-pad, .remote-top-row { direction: ltr; }

.simulator-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.simulator-detail-shade {
  background: linear-gradient(90deg, rgba(3,5,10,.94) 0 42%, rgba(3,5,10,.25) 75%), linear-gradient(180deg, rgba(3,5,10,.48), transparent 40%, rgba(3,5,10,.5));
}

.simulator-detail-header {
  position: absolute;
  inset: 5% 5% auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.simulator-detail-header > span { margin-left: auto; color: rgba(255,255,255,.66); font-size: 12px; }
.simulator-detail-header button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(0,0,0,.4); cursor: pointer; }
.simulator-detail-header span,
.simulator-detail-header h2 { display: block; }
.simulator-detail-header div > span { color: #7cdcf2; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.simulator-detail-header h2 { margin: 2px 0 0; font-size: clamp(20px, 3vw, 40px); }

.simulator-detail-panel {
  position: absolute;
  top: 27%;
  left: 8%;
  width: min(40%, 430px);
}

.simulator-detail-panel > p { color: rgba(255,255,255,.78); font-size: clamp(10px, 1.2vw, 15px); line-height: 1.5; }
.simulator-options { display: grid; gap: 8px; margin-top: 16px; }
.simulator-options button { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; background: rgba(9,12,19,.8); cursor: pointer; }
.simulator-options button.focused { border-color: #7cdcf2; background: rgba(43,180,212,.24); box-shadow: 0 0 0 3px rgba(43,180,212,.14); }
.simulator-options button small { color: #f7b563; }
.simulator-confirmation { padding: 10px 12px; border-left: 3px solid #57bf86; background: rgba(87,191,134,.13); color: #dff8ea !important; }

.simulator-stand { display: grid; justify-items: center; }
.simulator-stand::before { content: ''; width: 18%; height: 28px; background: linear-gradient(90deg, #101116, #343641, #101116); clip-path: polygon(38% 0, 62% 0, 78% 100%, 22% 100%); }
.simulator-stand span { width: 33%; height: 8px; border-radius: 50%; background: #17191f; box-shadow: 0 10px 22px rgba(0,0,0,.55); }

.simulator-remote {
  width: 190px;
  padding: 18px 16px 22px;
  border: 1px solid #343844;
  border-radius: 28px;
  background: linear-gradient(145deg, #262a34, #0d0f15 58%, #1b1e27);
  box-shadow: 0 28px 70px rgba(0,0,0,.55), inset 0 1px 1px rgba(255,255,255,.16);
}

.remote-brand { margin-bottom: 16px; text-align: center; color: #dfe3eb; font-size: 13px; font-weight: 900; }
.remote-top-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.simulator-remote button { border: 1px solid rgba(255,255,255,.12); color: #f5f7fb; background: #252934; box-shadow: 0 4px 8px rgba(0,0,0,.35); cursor: pointer; }
.remote-top-row button { height: 34px; border-radius: 50%; }
.remote-top-row .remote-power { color: #ff6675; }
.remote-pad { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); justify-content: center; margin: 22px 0; }
.remote-pad button { border-radius: 50%; }
.remote-pad button:nth-child(1) { grid-column: 2; }
.remote-pad button:nth-child(2) { grid-column: 1; grid-row: 2; }
.remote-pad button:nth-child(3) { grid-column: 2; grid-row: 2; }
.remote-pad button:nth-child(4) { grid-column: 3; grid-row: 2; }
.remote-pad button:nth-child(5) { grid-column: 2; grid-row: 3; }
.remote-pad .remote-ok { color: #071019; background: #7cdcf2; font-size: 12px; font-weight: 900; }
.remote-rockers { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.remote-rockers div { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.remote-rockers span { grid-column: 1 / -1; text-align: center; color: #8e97a8; font-size: 9px; font-weight: 900; }
.remote-rockers button { height: 34px; border-radius: 6px; }
.remote-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.remote-colors i { height: 5px; border-radius: 4px; background: #ef4545; }
.remote-colors i:nth-child(2) { background: #57bf86; }
.remote-colors i:nth-child(3) { background: #f99b33; }
.remote-colors i:nth-child(4) { background: #2bb4d4; }
.simulator-remote button:active { transform: translateY(1px); }

.simulator-actions { justify-content: flex-end; margin-top: 26px; }
.simulator-screen.powered-off::after { content: ''; position: absolute; inset: 0; z-index: 20; background: #020202; }
.simulator-screen.powered-off::before { content: 'RISTV'; position: absolute; z-index: 21; inset: 50% auto auto 50%; color: rgba(255,255,255,.25); font-weight: 900; transform: translate(-50%, -50%); }

@media (max-width: 900px) {
  .simulator-layout { grid-template-columns: 1fr; }
  .simulator-remote { width: min(420px, 100%); margin: 0 auto; }
  .remote-pad { grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); }
}

@media (max-width: 640px) {
  .simulator-nav { flex-wrap: wrap; gap: 10px; }
  .simulator-nav-actions { flex: 1 1 220px; flex-wrap: wrap; gap: 8px; }
  .simulator-nav .language-picker { width: auto; padding: 0; }
  .simulator-main { padding: 20px 12px 36px; }
  .simulator-heading { align-items: flex-start; flex-direction: column; }
  .simulator-nav-actions .simulator-live { display: none; }
  .simulator-tv { padding: 6px; border-radius: 12px; }
  .simulator-screen { border-radius: 7px; }
  .simulator-detail-panel { top: 25%; left: 7%; width: 58%; }
  .simulator-detail-panel > p { display: none; }
  .simulator-options { gap: 4px; margin-top: 6px; }
  .simulator-options button { min-height: 28px; padding: 5px 8px; font-size: 9px; }
  .simulator-detail-header h2 { font-size: 18px; }
  .simulator-actions { align-items: stretch; flex-direction: column; }
}
