/*
 * TV preview visual layer.
 *
 * EVERY VALUE IS REACT NATIVE dp, COPIED VERBATIM FROM THE RN SOURCE.
 * #tv-root scales x2 into the 1920x1080 frame (panels run 1080p at density 2),
 * so nothing here is doubled by hand. The RN source line is cited beside any
 * value whose origin is not obvious.
 */

/* ── Stage split: HomeScreen.tsx containerStage / stageWrap / smallGridStage ── */
.container-stage { flex: 1 1 0%; background: transparent; }
.stage-wrap      { flex: 1.6 1 0%; }        /* 32% */
.small-grid-stage {
  flex: 3.4 1 0%;                            /* 68% */
  padding-left: 40px; padding-right: 40px;   /* 40, not 24: a focused pill scales
                                                up and the old gutter clipped it */
  padding-top: 28px;
  padding-bottom: 24px;
  justify-content: flex-start;
}

/* ── Rows ──────────────────────────────────────────────────────────────────
 * RN `flex: 0` is `0 0 auto` (content-sized), NOT the CSS `0 1 0%`. The pill
 * and tile rows are sized by their cards' aspect-ratio; using the CSS meaning
 * collapses row 1. See rn-compat.css.
 */
.card-row { gap: 12px; align-items: stretch; overflow: hidden; }
.row-pill         { flex: 0 0 auto; margin-bottom: 44px; }
.row-tile         { flex: 0 0 auto; margin-bottom: 24px; }
.row-feature      { flex: 0.7 1 0%; }
.row-feature-trio { flex: 1 1 0%; }

.card { flex: 1 1 0%; border-radius: 0; overflow: hidden; }

/* ── Pill (banner-hero row 1) - menuCardPill ─────────────────────────────── */
.pill {
  aspect-ratio: 1536 / 1024;
  flex: 1 1 0%;
  border-radius: 0;          /* deliberately square; see the RN comment */
  overflow: visible;
  background: none;
}
.pill-ring {
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color 150ms ease;
}
/* Warm white, NOT #ffffff, and no scale on focus - each variant differs. */
.pill[data-focused] .pill-ring { border-color: #fff4e0; }
.pill-text { background: #000; align-items: center; justify-content: center; height: 100%; }
.pill-label {
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0.3px;
  line-height: 21px; text-align: center; white-space: pre-line;
}

/* ── Tile (banner-trio row 1) - menuCardTile ─────────────────────────────── */
.tile {
  aspect-ratio: 2.2;
  flex: 1 1 0%;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.tile[data-focused] { transform: scale(1.04); z-index: 2; }
.tile-ring { border: 3px solid transparent; pointer-events: none; transition: border-color 150ms ease; }
.tile[data-focused] .tile-ring { border-color: #ffffff; }
.tile-inner {
  position: absolute; inset: 0;
  padding: 7px 14px 4px 6px;
  justify-content: space-between;
}
.tile-icon  { color: #fff; }
.tile-label { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: 0.2px; line-height: 1.1; }

/* ── Feature (row 2) - menuCardFeature ───────────────────────────────────── */
.feature { flex: 1 1 0%; background: rgba(255,255,255,0.04); overflow: hidden; }
/* Focus = scale + recolour, NO ring. Do not add one to "match" the others. */
.feature[data-focused] { transform: scale(1.08); z-index: 2; }
.feature[data-focused] .feature-icon,
.feature[data-focused] .feature-label { color: var(--focus-accent, #fff); }
.feature-inner {
  position: absolute; inset: 0;
  padding: 5px 12px 3px 5px;     /* icon top-left, label bottom-left, hard in */
  justify-content: space-between;
}
.feature-icon  { color: #fff; transition: color 150ms ease; }
.feature-label {
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0.2px;
  line-height: 1.1; transition: color 150ms ease;
}

/* ── Glass (single row) - glassStyles + the isGlassRow row style ─────────── */
/* Row: { flex: 0, height: GLASS_ROW_H 150, marginTop: 'auto', marginBottom: 16 }
 * - content-sized (RN flex:0), bottom-anchored just above the ticker. */
.row-glass { flex: 0 0 auto; height: 150px; margin-top: auto; margin-bottom: 16px; }
/* Past GLASS_VISIBLE (5) every widget keeps cardW = (rowW - 12*4) / 5 and the
 * row scrolls; renderer.js scrolls the focused one into view. */
.row-glass.glass-scrolls > .glass { flex: 0 0 calc((100% - 48px) / 5); }
/* menuCardGlass: faux frosted glass - translucent fill, hairline border whose
 * top edge is brighter (the light-catching edge). No native blur on the panel
 * either. */
.glass {
  flex: 1 1 0%; height: 100%;
  border-radius: 16px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.38);
  overflow: hidden;
  align-items: center; justify-content: center;
}
/* menuCardGlassFocused: brighter fill + the ring below goes solid white.
 * Deliberately NO scale (the fixed-height row clipped a scaled card's ring on
 * the panel, 4d2167c). RN keeps the more specific borderTopColor when
 * borderColor changes, so the top edge stays 0.38; the ring covers it anyway. */
.glass[data-focused] {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.7);
  border-top-color: rgba(255,255,255,0.38);
  z-index: 2;
}
/* glassInner: flex 1, centred, paddingHorizontal 8, gap 12. max-width keeps a
 * long label wrapping inside the widget the way RN's shrink-to-fit does. */
.glass-inner { flex: 1 1 0%; max-width: 100%; align-items: center; justify-content: center;
               padding: 0 8px; gap: 12px; }
/* glassIcon: a FIXED 52x52 box, <Image resizeMode="contain"> inside it. Also
 * the empty spacer. Do NOT add the rn-compat `contain` helper to this <img>:
 * `img.contain` is 100% x 100% and out-specifies this class, so the icon filled
 * the whole widget and pushed the label off the bottom (Road Lodge preview,
 * 2026-09-03). */
.glass-icon  { width: 52px; height: 52px; display: block; object-fit: contain; flex: 0 0 auto; }
.glass-glyph { color: #fff; }                                  /* <Icon size={44} color="#fff"> */
/* glassLabel: 22px white centred, numberOfLines 2, fontFamily labelFont. */
.glass-label {
  color: #ffffff; font-size: 22px; text-align: center;
  font-family: var(--font-label), inherit;
  white-space: normal; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.glass-ring { border: 3px solid transparent; border-radius: 16px; pointer-events: none;
              transition: border-color 150ms ease; }
.glass[data-focused] .glass-ring { border-color: #ffffff; }

/* ── Banner stage - BannerStage.tsx ──────────────────────────────────────── */
.stage { flex: 1 1 0%; overflow: hidden; }
.header-band { position: absolute; top: 0; left: 0; right: 0; height: 248px; overflow: hidden; }
.overlay-inner { flex: 1 1 0%; padding: 14px 36px; }
.brand-lockup { position: absolute; top: 8px; left: 36px; align-items: center; z-index: 5; }
.brand-logo      { width: 48px;  height: 45px; margin-right: 12px; object-fit: contain; }
.brand-logo-mono { width: 132px; height: 50px; object-fit: contain; }
.brand-logo-only { max-width: 360px; height: 45px; object-fit: contain; }
.brand-name {
  color: #fff; font-size: 13px; letter-spacing: 2.5px; font-weight: 600; opacity: 0.92;
  font-family: var(--font-body), inherit;
}
.left-col { flex: 1 1 0%; padding-right: 24px; padding-top: 34px; justify-content: flex-start; }
.greeting  { color: #cdd2e3; font-size: 20px; font-weight: 300; letter-spacing: 0.5px;
             font-family: var(--font-body), inherit; }
.guest-name{ color: #fff; font-size: 36px; font-weight: 800; letter-spacing: -1px;
             margin-top: -2px; line-height: 42px; font-family: var(--font-heading), inherit; }
.right-col { width: 360px; padding-left: 24px; align-items: stretch; justify-content: flex-end; }
.right-meta{ align-items: flex-end; justify-content: flex-start; padding-top: 2px; }
.right-time{ color: #fff; font-size: 24px; font-weight: 700; letter-spacing: 0.3px;
             font-family: var(--font-body), inherit; }
.right-date{ color: #cdd2e3; font-size: 13px; font-family: var(--font-body), inherit; }
.right-qr  { width: 148px; margin-left: 16px; align-items: flex-end; }
.qr-box    { background: #fff; padding: 4px; }
.qr-img    { width: 96px; height: 96px; display: block; }
.qr-cap    { color: #fff; font-size: 13px; margin-top: 4px; }
.band-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }

/* ── Ticker - TickerBar.tsx ──────────────────────────────────────────────── */
.ticker { height: 40px; align-items: center; overflow: hidden; flex: 0 0 auto; }
.tick-run { align-items: center; padding-left: 40px; white-space: nowrap; gap: 0; }
.tick-seg { font-size: 18px; font-weight: 600; letter-spacing: 0.3px; }
/* SEP is the literal string '   \u00b7   ' in TickerBar.tsx. RN renders those
 * spaces; HTML would collapse them to one, running the segments together. */
.tick-sep { font-size: 18px; color: rgba(255,255,255,0.40); white-space: pre; }

/* Home-only bottom vignette - AppShell.tsx: 0 -> 0.10 @65% -> 0.78 @100%. */
.vignette {
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%, rgba(0,0,0,0.10) 65%, rgba(0,0,0,0.78) 100%);
}

/* ── Honest plates: screens the portal does not control ──────────────────── */
.plate {
  flex: 1 1 0%; align-items: center; justify-content: center;
  padding: 0 120px; text-align: center; background: #000; height: 100%;
}
.plate-title { color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -0.3px; }
.plate-body  { color: #cdd2e3; font-size: 16px; line-height: 24px; margin-top: 12px; }

/* ── Sub-screens ─────────────────────────────────────────────────────────── */
.screen-pad { flex: 1 1 0%; padding: 40px; }          /* ds.spacing.page */
.page-header { align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.ph-wrap { flex: 1 1 0%; }
.ph-title { color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -0.3px;
            font-family: var(--font-heading), inherit; }
.ph-underline { width: 48px; height: 4px; border-radius: 2px; margin-top: 4px; }
.ph-sub { color: var(--text-secondary, #cdd2e3); font-size: 16px; font-weight: 500; margin-top: 12px; }

/* Custom card - CustomCardScreen.tsx */
.cc-blocks { flex-wrap: wrap; justify-content: space-between; overflow-y: auto; flex: 1 1 0%; }
.cc-block { margin-bottom: 20px; }
.cc-center { align-items: center; }
.cc-img { width: 100%; border-radius: 12px; object-fit: contain; display: block; }
.cc-qr { background: #fff; padding: 16px; border-radius: 12px; }
.cc-cap { color: var(--text-secondary, #cdd2e3); font-size: 16px; margin-top: 12px; text-align: center; }
.cc-text { color: #fff; font-size: 16px; line-height: 25px; }   /* round(16 * 1.55) */

/* Custom page / Hotel info */
.cp-section { margin-bottom: 24px; }
.cp-heading { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 0.2px; margin-bottom: 8px; }
.cp-item { justify-content: space-between; padding: 6px 0; gap: 16px; }
.cp-label { color: var(--text-secondary, #cdd2e3); font-size: 16px; }
.cp-value { color: #fff; font-size: 16px; text-align: right; }
.hi-split { flex: 1 1 0%; gap: 24px; overflow: hidden; }
.hi-side { width: 300px; background: rgba(255,255,255,0.06); border-radius: 12px; padding: 8px; }
.hi-row { padding: 12px 16px; border-radius: 8px; border: 2px solid transparent; }
.hi-row[data-focused] { background: rgba(255,255,255,0.12); border-color: #fff; transform: scale(1.03); }
.hi-row-label { color: #fff; font-size: 16px; font-weight: 600; }
.hi-detail { flex: 1 1 0%; padding: 24px; overflow-y: auto; }

/* ── Hotel Info v2 (115) - screens/hotelInfo/*.tsx ──────────────────────────
   Drawn from the v2 spec alongside the RN screens; values are the RN dp
   constants (PageBody / TabsMode / ShowcaseMode). */
.cp-block { margin-bottom: 20px; }
.cp-columns { align-content: flex-start; }
.cp-banner { position: relative; width: 100%; aspect-ratio: 16 / 5; border-radius: 12px; overflow: hidden;
             background: rgba(255,255,255,0.08); margin-bottom: 20px; justify-content: flex-end; }
.cp-banner-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.85) 100%); }
.cp-banner-title { position: relative; color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -0.3px; padding: 0 24px 16px; }
.cp-heading { border-bottom: 1px solid transparent; padding-bottom: 8px; }
.cp-text { color: #fff; font-size: 20px; line-height: 30px; white-space: pre-line; max-width: 760px; }
.cp-img { object-fit: cover; }
.cp-step { gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.cp-step-n { width: 48px; height: 48px; border-radius: 24px; border: 2px solid; align-items: center; justify-content: center;
             font-size: 28px; font-weight: 700; flex: none; }
.cp-step-body { flex: 1 1 0%; padding-top: 8px; }
.cp-step-label { color: #fff; font-size: 20px; font-weight: 700; }
.cp-step-text { color: #fff; font-size: 20px; line-height: 28px; }
.cp-step-text-sub { color: var(--text-secondary, #cdd2e3); }
.cp-tiles { flex-wrap: wrap; gap: 12px; }
.cp-tile { background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.cp-tiles-3 .cp-tile { width: calc((100% - 24px) / 3); }
.cp-tiles-2 .cp-tile { width: calc((100% - 12px) / 2); }
.cp-tile-img { width: 100%; aspect-ratio: 16 / 9; }
.cp-tile-icon { width: 44px; height: 44px; border-radius: 22px; border: 2px solid; align-items: center; justify-content: center;
                font-size: 20px; font-weight: 700; margin: 16px 16px 0; }
.cp-tile-body { padding: 12px 16px 16px; }
.cp-tile-label { color: #fff; font-size: 20px; font-weight: 700; }
.cp-tile-value { color: var(--text-secondary, #cdd2e3); font-size: 16px; line-height: 22px; margin-top: 4px; }
.cp-qrcard { background: rgba(255,255,255,0.06); border: 1px solid; border-radius: 12px; padding: 20px; gap: 20px; align-items: center; }
.cp-qrcard-img { width: 30%; aspect-ratio: 4 / 3; border-radius: 10px; flex: none; }
.cp-qrcard-img-top { width: 100%; aspect-ratio: 16 / 9; }
.cp-qrcard-text { flex: 1 1 0%; }
.cp-qrcard-title { color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; }
.cp-qrcard-body { max-width: none; }
.hi-pad { flex: 1 1 0%; padding: 16px 40px 32px; }          /* modes: paddingTop lg, sides page, bottom xxxl */
.hi-title-wrap { flex: none; }
.hi-title { color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -0.3px; white-space: nowrap; }
.hi-headrow { align-items: center; gap: 20px; }
.hi-split { margin-top: 16px; }
.hi-hero { margin-top: 16px; }
.hi-chips { flex: 1 1 0%; gap: 8px; padding: 4px 20px 4px 0; overflow-x: auto; scrollbar-width: none; align-items: center; }
.hi-chips::-webkit-scrollbar { display: none; }
.hi-chip { align-items: center; padding: 8px 16px; border-radius: 999px; border: 2px solid transparent;
           background: rgba(255,255,255,0.06); max-width: 300px; flex: none; }
.hi-chip-active { border-color: var(--chip-accent, #fff); background: color-mix(in srgb, var(--chip-accent, #fff) 13%, transparent); }
.hi-chip[data-focused] { background: var(--chip-accent, #fff); border-color: #fff; transform: scale(1.03); }
.hi-chip-label { color: var(--text-secondary, #cdd2e3); font-size: 16px; font-weight: 500; white-space: nowrap; }
.hi-chip-active .hi-chip-label { color: var(--chip-accent, #fff); font-weight: 700; }
.hi-chip[data-focused] .hi-chip-label { color: #0d1224; font-weight: 700; }
.hi-tabbody { flex: 1 1 0%; margin-top: 16px; padding: 24px; border-radius: 12px; background: rgba(255,255,255,0.06); overflow-y: auto; }
.hi-hero { position: relative; flex: 1 1 0%; margin-top: 12px; border-radius: 12px; overflow: hidden; border: 2px solid transparent;
           justify-content: flex-end; }
.hi-hero[data-focused] { border-color: #fff; }
.hi-hero-text { position: relative; padding: 24px; max-width: 68%; }
.hi-hero-title { color: #fff; font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.hi-hero-sub { color: rgba(255,255,255,0.85); font-size: 20px; line-height: 28px; margin-top: 8px; }
.hi-hero-hint { align-items: center; gap: 8px; margin-top: 12px; }
.hi-hero-ok { color: #fff; font-size: 13px; font-weight: 700; border: 1px solid rgba(255,255,255,0.6); border-radius: 999px; padding: 2px 8px; }
.hi-hero-hint-text { color: rgba(255,255,255,0.7); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.hi-rail { gap: 12px; margin-top: 16px; height: 150px; flex: none; overflow-x: auto; scrollbar-width: none; }
.hi-rail::-webkit-scrollbar { display: none; }
.hi-rail-tile { width: 176px; flex: none; border-radius: 10px; border: 2px solid transparent; overflow: hidden; }
.hi-rail-tile[data-focused] { border-color: var(--chip-accent, #fff); transform: scale(1.03); }
.hi-rail-art { width: 100%; height: 99px; overflow: hidden; align-items: center; justify-content: center; }
.hi-rail-glyph { margin: 0; }
.hi-rail-label { color: #fff; font-size: 16px; font-weight: 700; padding: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* My Streaming - AppsScreen.tsx */
.app-grid { flex-wrap: wrap; gap: 12px; }
.app-card { width: 18%; aspect-ratio: 1536 / 1024; overflow: hidden; border: 2px solid transparent; }
.app-card[data-focused] { border-color: #fff4e0; }
.app-fallback { background: #000; align-items: center; justify-content: center; color: #fff;
                font-size: 15px; font-weight: 700; text-align: center; }
.app-signout { align-items: center; padding: 20px 40px; border-radius: 12px;
               background: rgba(0,0,0,0.35); border: 2px solid rgba(255,255,255,0.14); }
.app-signout[data-focused] { background: #e11d48; border-color: #fff4e0; }
.app-signout-title { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 0.3px; }
.app-signout-sub { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 6px; }

/* ── Menu overlay - MenuOverlay.tsx ──────────────────────────────────────── */
.menu-scrim { position: absolute; inset: 0; background: rgba(13,18,36,0.55); z-index: 100; display: flex; }
.menu-panel { width: 280px; background: rgba(13,18,36,0.92); padding-top: 32px;
              padding-left: 16px; padding-right: 16px;
              border-right: 1px solid rgba(255,255,255,0.08); }
.menu-row { padding: 14px 16px; margin-bottom: 10px; border-radius: 8px;
            border: 2px solid transparent; align-items: center; }
.menu-row[data-focused] { background: rgba(255,255,255,0.12); border-color: #fff; transform: scale(1.03); }
.menu-label { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.3px; }

/* ── Streaming-launch notice ─────────────────────────────────────────────── */
.launch-modal { position: absolute; inset: 0; background: rgba(0,0,0,0.72);
                display: flex; align-items: center; justify-content: center; z-index: 200; }
.launch-box { max-width: 520px; padding: 36px; background: #10162b; border-radius: 18px;
              align-items: center; text-align: center; }
.launch-title { color: #fff; font-size: 28px; font-weight: 700; }
.launch-body  { color: #cdd2e3; font-size: 16px; line-height: 24px; margin-top: 12px; }
.launch-hint  { color: rgba(255,255,255,0.45); font-size: 13px; margin-top: 20px; }

/* ── Custom-page body text - CustomPageScreen freeform / HotelInfo detail ── */
.cp-flabel { color: #e50914; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.cp-body   { color: #ddd; font-size: 16px; line-height: 24px; text-align: left;
             margin-bottom: 12px; white-space: pre-line; }

/* TVs never show a desktop scrollbar in scrolling panes. */
[data-scroll] { scrollbar-width: none; }
[data-scroll]::-webkit-scrollbar { display: none; }
