:root {
  color-scheme: dark;
  --bg: #0c1116;
  --panel: #151d24;
  --panel-strong: #1d2932;
  --text: #f7f2e8;
  --muted: #aeb8bd;
  --border: rgba(255, 255, 255, 0.14);
  --emerald: #37b894;
  --amber: #d9a441;
  --danger: #e6655c;
  --blue: #6eb9ff;
  --radius: 8px;
  --focus: 0 0 0 4px rgba(55, 184, 148, 0.72), 0 0 34px rgba(55, 184, 148, 0.45);
  font-family: Inter, "SamsungOne", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

html.video-surface-active,
body.video-surface-active {
  background: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  width: 100vw;
  height: 100vh;
  background:
    linear-gradient(120deg, rgba(55, 184, 148, 0.16), transparent 32%),
    linear-gradient(310deg, rgba(217, 164, 65, 0.16), transparent 35%),
    #0c1116;
  padding: 52px 64px;
}

.app-shell.player-fullscreen {
  padding: 0;
  background: transparent;
}

.app-shell.player-active {
  background: transparent;
}

.screen {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 32px;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--text);
  color: #101820;
  font-size: 28px;
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 4px;
}

.hotel-name {
  font-size: 34px;
  font-weight: 760;
  letter-spacing: 0;
}

.room-line,
.meta-line,
.muted {
  color: var(--muted);
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 24px;
}

.status-pill {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.welcome-layout {
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto 1fr;
  align-items: end;
}

.welcome-layout .topbar {
  align-self: center;
}

.welcome-copy {
  display: grid;
  gap: 24px;
  max-width: 1020px;
}

.welcome-copy h1 {
  margin: 0;
  font-size: 76px;
  line-height: 1.03;
  font-weight: 780;
}

.welcome-copy p {
  margin: 0;
  max-width: 840px;
  font-size: 31px;
  line-height: 1.35;
  color: var(--muted);
}

.language-panel,
.side-panel,
.order-panel,
.message-detail {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(21, 29, 36, 0.82);
}

.language-panel h2,
.side-panel h2,
.order-panel h2,
.message-detail h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.content-hero {
  width: 100%;
  max-height: 340px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.content-hero-frame,
.campaign-media,
.campaign-card-media,
.vod-poster {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #17252e;
}

.content-hero-frame {
  min-height: 220px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.content-hero-frame .content-hero {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f0b44d;
  background: #17252e;
  font-size: 42px;
  font-weight: 800;
}

img[data-media-fallback] {
  position: relative;
  z-index: 1;
}

img[data-media-fallback].is-broken {
  display: none;
}

.content-body {
  max-height: 480px;
  overflow: hidden;
  color: var(--muted);
  font-size: 28px;
  line-height: 1.45;
  scroll-behavior: smooth;
}

.content-body h2,
.content-body h3,
.content-body h4 {
  margin: 24px 0 12px;
  color: var(--text);
  font-size: 34px;
  line-height: 1.2;
}

.content-body p,
.content-body ul {
  margin: 0 0 18px;
}

.content-body li + li {
  margin-top: 10px;
}

.content-body a {
  color: var(--emerald);
}

.content-inline-image {
  display: block;
  width: 100%;
  max-height: 320px;
  margin: 20px 0;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.content-status {
  font-size: 30px;
  line-height: 1.45;
}

.scroll-button {
  width: 64px;
  padding: 0;
  font-size: 24px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.button,
.tile,
.row,
.channel-row,
.product-card,
.remote-button,
.field,
.rating-button,
.time-stepper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.button,
.remote-button,
.rating-button,
.time-stepper {
  min-height: 60px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
}

.button.primary {
  background: var(--emerald);
  color: #07110e;
  border-color: transparent;
}

.button.amber {
  background: var(--amber);
  color: #16100a;
  border-color: transparent;
}

[data-focusable="true"] {
  outline: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

[data-focusable="true"].is-focused {
  box-shadow: var(--focus);
  border-color: rgba(55, 184, 148, 0.98);
  transform: translateY(-2px);
  background: rgba(55, 184, 148, 0.18);
}

.button.primary.is-focused {
  background: var(--emerald);
  color: #07110e;
}

.button.amber.is-focused,
.rating-button.amber.is-focused {
  background: var(--amber);
  color: #16100a;
}

[data-focusable="true"]:focus-visible {
  box-shadow: var(--focus);
}

.menu-screen {
  grid-template-rows: auto 1fr;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-height: 0;
}

.tile {
  min-height: 176px;
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: space-between;
}

.tile-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(217, 164, 65, 0.16);
  color: var(--amber);
  font-size: 30px;
  font-weight: 800;
}

.tile-title {
  display: block;
  font-size: 28px;
  font-weight: 780;
}

.tile-description {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.3;
}

.player-screen {
  grid-template-columns: minmax(430px, 0.34fr) minmax(0, 1fr);
  grid-template-rows: auto 62px minmax(0, 1fr);
  gap: 18px 28px;
}

.player-screen.is-immersive {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
  background: transparent;
}

.player-screen.is-immersive .player-header,
.player-screen.is-immersive .category-tabs,
.player-screen.is-immersive .channel-browser {
  display: none;
}

.player-screen.is-immersive .player-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.player-screen.is-guide .player-header,
.player-screen.is-guide .category-tabs,
.player-screen.is-guide .channel-browser {
  background: rgba(12, 17, 22, 0.96);
}

.player-screen.is-guide .player-header,
.player-screen.is-guide .category-tabs {
  padding-inline: 18px;
}

.player-screen.is-guide .channel-browser {
  padding: 12px 14px;
}

.content-sidebar {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
}

.player-header {
  grid-column: 1 / -1;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.player-header-status {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 19px;
}

.player-header-status strong {
  color: var(--text);
  font-size: 28px;
}

.category-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs .button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 18px;
  font-size: 20px;
}

.category-button small {
  min-width: 28px;
  padding: 4px 7px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.category-button.amber small {
  background: rgba(15, 13, 8, 0.14);
  color: #16100a;
}

.channel-browser {
  min-height: 0;
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr) 58px;
  gap: 10px;
  padding-right: 4px;
}

.channel-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.channel-list-header > span:first-child {
  color: var(--text);
  font-size: 22px;
}

.channel-list {
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: 9px;
  overflow: visible;
}

.list {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 12px;
  align-content: start;
}

.channel-row,
.row {
  min-height: 74px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.channel-row {
  min-height: 0;
  padding: 8px 12px;
  grid-template-columns: 38px 48px minmax(0, 1fr) auto;
  gap: 10px;
  text-align: left;
}

.channel-row[aria-current="true"] {
  border-color: rgba(217, 164, 65, 0.74);
  background: rgba(217, 164, 65, 0.11);
}

.channel-number {
  color: var(--muted);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.channel-logo {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
  color: var(--amber);
  overflow: hidden;
  font-size: 15px;
}

.channel-logo-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  background: #f5f7f8;
}

.channel-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.channel-name,
.row-title {
  font-size: 23px;
  font-weight: 720;
}

.channel-name {
  display: block;
  overflow: hidden;
  font-size: 21px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-name small {
  color: var(--amber);
  font-size: 12px;
  text-transform: uppercase;
}

.row-subtitle {
  font-size: 18px;
  color: var(--muted);
}

.channel-row .row-subtitle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}

.health-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
}

.health-dot.healthy {
  background: var(--emerald);
}

.now-playing {
  min-width: 30px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.channel-pagination {
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 12px;
}

.channel-pagination > span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--muted);
}

.channel-pagination strong {
  color: var(--text);
  font-size: 24px;
}

.channel-pagination small {
  font-size: 17px;
}

.page-button {
  width: 58px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 38px;
  line-height: 1;
}

.page-button:disabled {
  opacity: 0.3;
}

button:disabled {
  opacity: 0.42;
  cursor: default;
}

.channel-empty {
  grid-row: 1 / -1;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.channel-empty strong {
  color: var(--text);
  font-size: 24px;
}

.player-stage {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
}

.av-player {
  position: fixed;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
}

.av-player.is-visible {
  visibility: visible;
}

.video-fallback {
  position: fixed;
  inset: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.html5-video-visible {
  position: fixed;
  opacity: 1;
  object-fit: cover;
}

.player-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 20;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
}

.player-title {
  display: grid;
  gap: 6px;
}

.player-title strong {
  font-size: 38px;
}

.player-title > span {
  display: grid;
  gap: 4px;
}

.player-channel-number {
  width: max-content;
  min-width: 52px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--amber);
  color: #16100a;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.player-screen.is-immersive .player-overlay {
  min-height: 220px;
  padding: 48px 58px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48) 58%, transparent);
}

.player-screen.is-immersive .player-title strong {
  font-size: 48px;
}

.player-screen.is-immersive .epg-line {
  max-width: 980px;
  font-size: 22px;
}

.epg-line {
  display: block;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.3;
}

.player-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-tool {
  min-width: 58px;
  min-height: 50px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 800;
}

.access-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(540px, calc(100% - 80px));
  transform: translate(-50%, -50%);
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8, 13, 16, 0.97);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  z-index: 24;
}

.access-dialog h2,
.access-dialog p {
  margin: 0;
}

.pin-field {
  text-align: center;
  font-size: 32px;
  letter-spacing: 0;
}

.player-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
  z-index: 20;
}

.player-state-box {
  max-width: 680px;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(12, 17, 22, 0.82);
  border: 1px solid var(--border);
}

.player-state-box h2 {
  margin: 0 0 10px;
  font-size: 38px;
}

.service-screen,
.messages-screen,
.form-screen {
  grid-template-columns: 340px 1fr 390px;
}

.products-grid {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
}

.product-card {
  min-height: 216px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 16px;
}

.product-card h3 {
  margin: 0;
  font-size: 25px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.segmented-control .button {
  min-width: 0;
  padding-inline: 10px;
  font-size: 17px;
}

.service-label {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.035);
}

.service-action-card {
  min-height: 190px;
}

.request-label {
  color: var(--emerald);
  font-size: 19px;
  font-weight: 800;
}

.status-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.status-summary strong {
  color: var(--emerald);
  text-transform: capitalize;
}

.price {
  font-size: 25px;
  color: var(--amber);
  font-weight: 800;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.form-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.field-label {
  margin-bottom: -10px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.field {
  min-height: 64px;
  width: 100%;
  padding: 14px 18px;
  font-size: 22px;
}

textarea.field {
  min-height: 160px;
  resize: none;
}

.rating-row,
.remote-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.rating-button {
  width: 68px;
  height: 68px;
  padding: 0;
}

.time-picker {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: start;
  gap: 24px;
  font-size: 70px;
  font-weight: 800;
}

.time-unit {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.time-unit small {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.time-separator {
  align-self: center;
}

.time-stepper {
  width: 76px;
  height: 76px;
  padding: 0;
  font-size: 30px;
}

.toast {
  position: fixed;
  right: 48px;
  bottom: 42px;
  max-width: 720px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(10, 14, 18, 0.94);
  border: 1px solid var(--border);
  font-size: 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  z-index: 40;
}

.offline-banner {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(230, 101, 92, 0.92);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  z-index: 50;
}

.language-loading {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(6, 10, 13, 0.78);
  color: var(--text);
  font-size: 26px;
  font-weight: 750;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--emerald);
  border-radius: 50%;
  animation: loading-spin 700ms linear infinite;
}

[dir="rtl"] .welcome-copy,
[dir="rtl"] .language-panel,
[dir="rtl"] .message-detail,
[dir="rtl"] .order-panel,
[dir="rtl"] .brand-text {
  text-align: right;
}

[dir="rtl"] .toast {
  right: auto;
  left: 48px;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

.connect-screen { background: #071018; }
.connect-layout {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  align-items: center;
  gap: 64px;
  padding: 52px 7vw 72px;
}
.connect-copy h1 { max-width: 850px; margin: 12px 0 18px; font-size: 64px; line-height: 1.05; }
.connect-copy > p { max-width: 760px; color: #c2ccd4; font-size: 25px; line-height: 1.5; }
.pairing-code {
  width: max-content;
  margin: 34px 0 20px;
  padding: 18px 28px;
  border: 2px solid #f0b44d;
  border-radius: 6px;
  color: #fff;
  background: #101c24;
  font-size: 54px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 8px;
}
.connect-status { display: flex; align-items: center; gap: 12px; margin: 24px 0 30px; color: #c2ccd4; font-size: 21px; }
.status-indicator { width: 14px; height: 14px; border-radius: 50%; background: #f0b44d; }
.connect-status.is-connected .status-indicator { background: #52c985; }
.connect-qr-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 36px;
  border: 1px solid #2a3944;
  border-radius: 8px;
  background: #0d1820;
  text-align: center;
}
.connect-qr { width: 330px; height: 330px; padding: 10px; border-radius: 6px; background: #fff; }
.connect-device-icon {
  width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #52616c;
  border-radius: 8px;
  color: #f0b44d;
  font-size: 48px;
  font-weight: 800;
}
.connect-qr-panel strong { font-size: 26px; }
.connect-qr-panel span { color: #9ba9b3; font-size: 18px; }
.favorite-star { color: #f0b44d; font-weight: 800; }
.catalog-heading { padding: 34px 6vw 20px; }
.catalog-heading h1 { margin: 6px 0 0; font-size: 46px; }
.vod-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding: 10px 6vw 56px; }
.vod-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #2a3944; border-radius: 6px; background: #0d1820; text-align: left; }
.vod-poster { width: 100%; aspect-ratio: 2 / 3; }
.vod-poster img { width: 100%; height: 100%; object-fit: cover; }
.vod-card-copy { display: grid; gap: 5px; padding: 14px; }
.vod-card-copy strong { font-size: 20px; }
.vod-card-copy small { color: #9ba9b3; font-size: 15px; }
.media-player-screen { background: #000; }
.media-playback-stage { position: absolute; inset: 0; }
.media-player-overlay { position: absolute; z-index: 3; left: 6vw; bottom: 7vh; width: min(720px, 70vw); padding: 28px; background: rgba(5, 12, 17, .9); border-radius: 6px; }
.media-player-overlay h1 { margin: 8px 0 10px; font-size: 48px; }
.media-player-overlay p { color: #c2ccd4; font-size: 20px; line-height: 1.5; }
.media-state { margin: 14px 0 20px; color: #f0b44d; }
.radio-layout { min-height: calc(100vh - 112px); display: grid; grid-template-columns: minmax(420px, .85fr) minmax(0, 1.15fr); }
.radio-now-playing { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; background: #0c171f; text-align: center; }
.radio-disc { width: 230px; aspect-ratio: 1; display: grid; place-items: center; margin: 24px; border: 22px solid #263943; border-radius: 50%; color: #071018; background: #f0b44d; font-size: 42px; font-weight: 900; }
.radio-now-playing h1 { margin: 8px 0; font-size: 42px; }
.radio-now-playing p { color: #9ba9b3; font-size: 20px; }
.radio-list { display: grid; align-content: center; gap: 10px; padding: 48px 6vw; }
.radio-row { min-height: 92px; display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 16px; padding: 13px; text-align: left; }
.radio-row.is-active { border-color: #52c985; }
.radio-logo { width: 58px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 5px; background: #24343e; font-weight: 800; }
.radio-row > span:last-child { display: grid; gap: 5px; }
.radio-row strong { font-size: 21px; }
.radio-row small { color: #9ba9b3; font-size: 15px; }
.radio-audio-stage { width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  [data-focusable="true"],
  .loading-spinner,
  .content-body {
    transition: none;
    animation: none;
    scroll-behavior: auto;
  }
}

.room-controls-layout { width: min(1520px, 92vw); margin: 0 auto; padding: 30px 0 50px; }
.room-controls-layout .section-heading h1 { margin: 8px 0 24px; font-size: 52px; }
.control-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.control-tile { min-height: 245px; padding: 24px; border: 2px solid rgba(255,255,255,.18); border-radius: 8px; background: #17232b; color: #f7fafb; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.control-tile > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #263944; font-weight: 800; }
.control-tile strong { font-size: 27px; }
.control-tile small { color: #b8c5ca; font-size: 20px; }
.control-tile.is-active { border-color: #e6b84a; background: #283123; }
.control-tile.is-active > span { background: #e6b84a; color: #111; }
.temperature-control b { font-size: 42px; }
.stepper { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper button { min-height: 50px; border: 1px solid #687982; background: #22323a; color: white; font-size: 30px; border-radius: 6px; }
.emergency-screen { position: fixed; inset: 0; z-index: 9999; background: #b51f2e; color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8vh 12vw; }
.emergency-symbol { width: 112px; height: 112px; display: grid; place-items: center; border: 8px solid white; border-radius: 50%; font-size: 76px; font-weight: 900; }
.emergency-screen h1 { margin: 28px 0 18px; font-size: 72px; }
.emergency-screen p { max-width: 1200px; margin: 0; font-size: 38px; line-height: 1.35; }
.emergency-screen small { margin-top: 42px; font-size: 22px; }
@media (max-width: 1100px) { .control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

:root { --accessibility-scale: 1; }
.screen { font-size: calc(16px * var(--accessibility-scale)); }
.accessibility-layout, .campaign-layout, .campaign-detail > section { width: min(1480px, 92vw); margin: 0 auto; padding: 30px 0 50px; }
.accessibility-layout h1, .campaign-layout h1, .campaign-detail h1 { margin: 8px 0 24px; font-size: calc(52px * var(--accessibility-scale)); }
.accessibility-list { display: grid; gap: 12px; margin-bottom: 24px; }
.setting-row { min-height: 104px; width: 100%; padding: 18px 22px; border: 2px solid rgba(255,255,255,.16); border-radius: 7px; background: #17232b; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; }
.setting-row > span { display: grid; gap: 7px; }
.setting-row strong { font-size: 26px; }
.setting-row small { color: #b8c5ca; font-size: 19px; }
.setting-row b { color: #e6b84a; font-size: 22px; }
.setting-row.is-active { border-color: #e6b84a; background: #283123; }
.setting-row .stepper { width: 150px; }
.campaign-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-bottom: 24px; }
.campaign-card { min-height: 280px; padding: 0 0 22px; overflow: hidden; border: 2px solid rgba(255,255,255,.16); border-radius: 8px; background: #17232b; color: #fff; text-align: left; display: grid; align-content: start; gap: 12px; }
.campaign-card-media { width: 100%; aspect-ratio: 16/7; }
.campaign-card img { width: 100%; height: 100%; object-fit: cover; }
.campaign-card strong, .campaign-card span { margin-inline: 22px; }
.campaign-card .campaign-card-media { margin-inline: 0; }
.campaign-card .media-fallback { margin-inline: 0; }
.campaign-card strong { font-size: 28px; }
.campaign-card span { color: #c4cfd3; font-size: 19px; line-height: 1.4; }
.campaign-detail > section { max-width: 1180px; }
.campaign-media { width: 100%; min-height: 260px; max-height: 380px; margin-bottom: 22px; border-radius: 8px; }
.campaign-detail img { width: 100%; max-height: 380px; object-fit: cover; }
.campaign-detail p { font-size: calc(27px * var(--accessibility-scale)); line-height: 1.55; }
.high-contrast body { background: #000; color: #fff; }
.high-contrast .tile, .high-contrast .control-tile, .high-contrast .setting-row, .high-contrast .campaign-card, .high-contrast .message-detail { background: #000; border-color: #fff; color: #fff; }
.high-contrast .muted, .high-contrast small, .high-contrast .tile-description { color: #fff; }
.high-contrast *:focus { outline: 5px solid #ffdf00 !important; outline-offset: 4px; }
@media (max-width: 1100px) { .campaign-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.hidden {
  display: none !important;
}

@media (max-width: 1280px) {
  .app-shell {
    padding: 36px 44px;
  }

  .welcome-copy h1 {
    font-size: 60px;
  }

  .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-screen {
    grid-template-columns: minmax(370px, 0.4fr) minmax(0, 1fr);
    gap: 14px 20px;
  }

  .channel-row {
    grid-template-columns: 32px 42px minmax(0, 1fr) auto;
    padding-inline: 9px;
  }

  .channel-logo {
    width: 42px;
    height: 42px;
  }

  .channel-name {
    font-size: 18px;
  }
}

@media (max-height: 760px) {
  .app-shell {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .screen {
    gap: 20px;
  }

  .welcome-copy {
    gap: 16px;
  }

  .welcome-copy h1 {
    font-size: 54px;
  }

  .welcome-copy p {
    font-size: 25px;
  }

  .language-panel,
  .side-panel,
  .order-panel,
  .message-detail {
    padding: 22px;
  }

  .menu-grid {
    gap: 14px;
  }

  .tile {
    min-height: 0;
    padding: 14px;
    gap: 8px;
    overflow: hidden;
  }

  .tile-icon {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .tile-title {
    font-size: 22px;
    line-height: 1.12;
  }

  .tile-description {
    display: -webkit-box;
    margin-top: 4px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .player-screen {
    grid-template-rows: 58px 54px minmax(0, 1fr);
    gap-block: 10px;
  }

  .player-header .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .player-header .hotel-name {
    font-size: 27px;
  }

  .category-tabs .button {
    min-height: 46px;
    font-size: 17px;
  }

  .channel-browser {
    grid-template-rows: 30px minmax(0, 1fr) 48px;
    gap: 7px;
  }

  .channel-list {
    gap: 6px;
  }

  .channel-row {
    padding-block: 4px;
  }

  .page-button {
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
