/* 十字相互：独立视觉层。
 * 只改变 TV Shell 的呈现和导航反馈；数据、筛选、追更、播放仍由
 * media-center-api.js、TV_APP_BRIDGE 与统一 FocusCoordinator 负责。 */
html[data-theme="cross"] {
  --bg: #0d0d0f;
  --surface: #17171b;
  --surface-soft: #202026;
  --surface-deep: #0a0a0c;
  --surface-readable: #1b1b20;
  --surface-control: #25252b;
  --surface-overlay: #111115;
  --surface-quiet: #1c1c21;
  --line: rgba(232,230,227,.13);
  --line-strong: rgba(232,230,227,.26);
  --border-readable: #57534e;
  --text-primary: #e8e6e3;
  --text-secondary: rgba(232,230,227,.72);
  --text-tertiary: rgba(232,230,227,.52);
  --text: #e8e6e3;
  --muted: rgba(232,230,227,.62);
  --accent: #f59e0b;
  --accent-2: #fcd34d;
  --primary: #b86b08;
  --success: #93c47d;
  --focus: #fcd34d;
  --focus-ring: #f59e0b;
  --control-active-bg: #7c4a06;
  --control-active-text: #fff8e1;
  --status-danger-bg: rgba(190,54,54,.18);
  --placeholder-bg: #24242a;
  --placeholder-ink: rgba(232,230,227,.66);
  /* TV-safe geometry. The JS controller mirrors these values for older
   * WebViews and recalculates them when the viewport changes. */
  --cross-nav-width: 88px;
  --cross-nav-open-width: 220px;
  --cross-nav-font: 24px;
  --cross-nav-item-height: 56px;
  --cross-nav-gap: 8px;
  --cross-content-closed: calc(5vw + 112px);
  --cross-content-open: calc(5vw + 244px);
  color-scheme: dark;
}

html[data-theme="cross"] body { background: var(--bg); }
html[data-theme="cross"] .tv-app {
  min-height: var(--fm-web-height, 100vh);
  padding: calc(5vh + 16px) 5% calc(5vh + 36px) var(--cross-content-closed);
  background: linear-gradient(145deg, #1a1a1e, #0d0d0f 66%);
  transition: padding-left 140ms ease;
}
html[data-theme="cross"].cross-nav-open .tv-app { padding-left: var(--cross-content-open) !important; }
html[data-theme="cross"].tv-reduced-motion .tv-app { transition: none; }
/* The sidebar needs a non-uniform layer behind it or the blur is technically
 * present but visually invisible. Keep this as a broad, low-cost tonal band;
 * it is not a full-screen blur and does not compete with artwork. */
html[data-theme="cross"] .tv-app:before {
  display: block;
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42vw;
  height: auto;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(112deg, rgba(82,74,54,.22), rgba(42,42,48,.14) 42%, rgba(13,13,15,0) 84%);
  opacity: .9;
}
html[data-theme="cross"] .tv-app:after { display: none; }

/* The rail is collapsed by default and expands only while it owns focus or
 * when the user presses the Menu key. This keeps content width stable. */
html[data-theme="cross"] .topbar {
  position: fixed;
  left: 5vw;
  top: 5vh;
  bottom: 5vh;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--cross-nav-width);
  height: auto;
  margin: 0;
  padding: 14px 8px;
  border: 1px solid rgba(232,230,227,.24);
  border-radius: 8px;
  background: rgba(13,13,15,.36);
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.05) 28%, rgba(13,13,15,.28) 68%, rgba(13,13,15,.42));
  box-shadow: 0 16px 42px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.05);
  color: rgba(232,230,227,.86);
  transition: width 140ms ease, background-color 140ms ease;
}
html[data-theme="cross"] .topbar:before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 9px;
  height: 1px;
  pointer-events: none;
  background: rgba(255,255,255,.38);
  opacity: .62;
}
html[data-theme="cross"] .topbar:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12%;
  height: 32%;
  z-index: 0;
  pointer-events: none;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,0) 72%);
  opacity: .7;
}
html[data-theme="cross"] .brand,
html[data-theme="cross"] .nav,
html[data-theme="cross"] .top-actions { position: relative; z-index: 1; }
html[data-theme="cross"].supports-backdrop-filter .topbar {
  backdrop-filter: blur(24px) saturate(155%) contrast(112%);
}
html[data-theme="cross"].supports-webkit-backdrop-filter .topbar {
  -webkit-backdrop-filter: blur(24px) saturate(155%) contrast(112%);
}
html[data-theme="cross"].no-backdrop-filter .topbar {
  background: rgba(13,13,15,.78);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04) 28%, rgba(13,13,15,.72));
}
html[data-theme="cross"] .brand {
  width: 100%;
  color: var(--accent-2);
  font-size: 0;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(252,211,77,.32);
}
html[data-theme="cross"] .brand:after { content: "十字"; font-size: 16px; font-weight: 700; letter-spacing: 1px; }
html[data-theme="cross"] .brand small { display: none; }
html[data-theme="cross"] .nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  margin: 18px 0 12px;
  padding: 6px;
  border: 1px solid rgba(232,230,227,.12);
  border-radius: 8px;
  background: rgba(23,23,27,.24);
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(23,23,27,.16) 42%, rgba(8,8,11,.34));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(0,0,0,.26);
}
html[data-theme="cross"].no-backdrop-filter .nav { background: rgba(23,23,27,.76); }
html[data-theme="cross"] .nav:before { display: none; }
html[data-theme="cross"] .nav-item {
  display: block;
  width: 100%;
  min-width: 0;
  height: var(--cross-nav-item-height);
  margin: 0 0 var(--cross-nav-gap);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
  text-shadow: none;
  transform: none;
}
html[data-theme="cross"] .nav-item:last-child { margin-bottom: 0; }
html[data-theme="cross"] .nav-item:after {
  display: block;
  color: rgba(232,230,227,.78);
  font-size: var(--cross-nav-font);
  font-weight: 600;
  line-height: calc(var(--cross-nav-item-height) - 2px);
  text-align: center;
  text-indent: 0;
  letter-spacing: 0;
  text-shadow: 0 1px 8px rgba(255,255,255,.16), 0 2px 10px rgba(0,0,0,.52);
}
html[data-theme="cross"] .nav-item[data-view="home"]:after { content: "首页"; }
html[data-theme="cross"] .nav-item[data-view="follow"]:after { content: "追更"; }
html[data-theme="cross"] .nav-item[data-category-type="series"]:after { content: "剧集"; }
html[data-theme="cross"] .nav-item[data-category-type="movie"]:after { content: "电影"; }
html[data-theme="cross"] .nav-item[data-category-type="anime"]:after { content: "动漫"; }
html[data-theme="cross"] .nav-item[data-category-type="documentary"]:after { content: "纪录"; }
html[data-theme="cross"] .nav-item[data-category-type="music"]:after { content: "音乐"; }
html[data-theme="cross"] .nav-item.active,
html[data-theme="cross"] .nav-item:focus,
html[data-theme="cross"] .nav-item.focus {
  border-color: rgba(245,158,11,.52);
  background: rgba(245,158,11,.16);
  box-shadow: 0 0 0 2px rgba(245,158,11,.18);
  color: transparent;
  outline: none;
  transform: translateX(2px);
}
html[data-theme="cross"] .nav-item.active:after,
html[data-theme="cross"] .nav-item:focus:after,
html[data-theme="cross"] .nav-item.focus:after { color: var(--accent-2); }
html[data-theme="cross"] .top-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: 100%;
  margin: 0;
}
html[data-theme="cross"] .top-action {
  width: 100%;
  height: var(--cross-nav-item-height);
  margin: 0 0 var(--cross-nav-gap);
  border: 1px solid rgba(232,230,227,.12);
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
}
html[data-theme="cross"] .top-action:last-child { margin-bottom: 0; }
html[data-theme="cross"] .top-action:before {
  display: block;
  color: rgba(232,230,227,.78);
  font-size: var(--cross-nav-font);
  font-weight: 600;
  line-height: calc(var(--cross-nav-item-height) - 4px);
  text-align: center;
  text-indent: 0;
  text-shadow: 0 1px 8px rgba(255,255,255,.16), 0 2px 10px rgba(0,0,0,.52);
}
html[data-theme="cross"] #theme-button:before { content: "主题"; }
html[data-theme="cross"] #settings-button:before { content: "设置"; }
html[data-theme="cross"] .top-action:focus,
html[data-theme="cross"] .top-action.focus {
  border-color: rgba(245,158,11,.52);
  background: rgba(245,158,11,.16);
  box-shadow: 0 0 0 2px rgba(245,158,11,.18);
  color: transparent;
  outline: none;
}
html[data-theme="cross"] .top-action:focus:before,
html[data-theme="cross"] .top-action.focus:before { color: var(--accent-2); }

/* Expanded rail keeps the same focus keys and DOM order; only the visual
 * affordance changes, so shared playback and return paths remain intact. */
html[data-theme="cross"].cross-nav-open { --cross-nav-width: var(--cross-nav-open-width); }
html[data-theme="cross"].cross-nav-open .brand { font-size: 16px; text-align: left; }
html[data-theme="cross"].cross-nav-open .brand:after { display: none; }
html[data-theme="cross"].cross-nav-open .brand small { display: block; font-size: 10px; }
html[data-theme="cross"].cross-nav-open .topbar {
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.06) 28%, rgba(13,13,15,.3) 68%, rgba(13,13,15,.46));
}
html[data-theme="cross"].cross-nav-open.no-backdrop-filter .topbar {
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.04) 28%, rgba(13,13,15,.78));
}
html[data-theme="cross"].cross-nav-open .nav-item,
html[data-theme="cross"].cross-nav-open .top-action {
  color: var(--text-secondary);
  font-size: var(--cross-nav-font);
  text-indent: 0;
  text-align: left;
  text-shadow: 0 1px 8px rgba(255,255,255,.14), 0 2px 10px rgba(0,0,0,.48);
}
html[data-theme="cross"].cross-nav-open .nav-item { padding: 0 12px; }
html[data-theme="cross"].cross-nav-open .nav-item:after,
html[data-theme="cross"].cross-nav-open .top-action:before { display: none; }

html[data-theme="cross"] .screen { position: relative; z-index: 1; }
html[data-theme="cross"] .hero,
html[data-theme="cross"] .detail-content,
html[data-theme="cross"] .settings-panel,
html[data-theme="cross"] .category-drawer-panel {
  border-color: rgba(245,158,11,.18);
  border-radius: 8px;
  background: rgba(23,23,27,.86);
  box-shadow: 0 16px 32px rgba(0,0,0,.24);
}
html[data-theme="cross"] .hero { min-height: 380px; }
html[data-theme="cross"] .hero h1,
html[data-theme="cross"] .section-title h2,
html[data-theme="cross"] .detail-title,
html[data-theme="cross"] .settings-title { color: var(--text-primary); }
html[data-theme="cross"] .btn.primary,
html[data-theme="cross"] .mini-btn.active,
html[data-theme="cross"] .category-filter-toggle.has-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #1a1205;
}
html[data-theme="cross"] .btn:focus,
html[data-theme="cross"] .btn.focus,
html[data-theme="cross"] .mini-btn:focus,
html[data-theme="cross"] .mini-btn.focus,
html[data-theme="cross"] .media-card:focus,
html[data-theme="cross"] .media-card.focus,
html[data-theme="cross"] .follow-card:focus,
html[data-theme="cross"] .follow-card.focus,
html[data-theme="cross"] .result-card:focus,
html[data-theme="cross"] .result-card.focus,
html[data-theme="cross"] .category-day:focus,
html[data-theme="cross"] .category-day.focus {
  outline: 3px solid rgba(245,158,11,.72);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(245,158,11,.13), 0 12px 26px rgba(0,0,0,.32);
  transform: scale(1.025);
}
html[data-theme="cross"] .rail,
html[data-theme="cross"] .result-grid,
html[data-theme="cross"] .follow-grid {
  scrollbar-width: none;
}
html[data-theme="cross"] .rail::-webkit-scrollbar,
html[data-theme="cross"] .result-grid::-webkit-scrollbar,
html[data-theme="cross"] .follow-grid::-webkit-scrollbar { display: none; }
html[data-theme="cross"] .category-filter-toggle-row { justify-content: flex-start; }
html[data-theme="cross"] .category-filter-toggle,
html[data-theme="cross"] .nostr-filter-toggle {
  border: 1px solid rgba(245,158,11,.28);
  border-radius: 6px;
  background: rgba(245,158,11,.08);
  color: var(--text-secondary);
}
html[data-theme="cross"] .category-filter-bars,
html[data-theme="cross"] .nostr-filter-bars {
  border: 1px solid rgba(245,158,11,.18);
  border-radius: 6px;
  background: rgba(17,17,21,.96);
}
html[data-theme="cross"] .category-filter-option.active,
html[data-theme="cross"] .category-filter-option:focus,
html[data-theme="cross"] .category-filter-option.focus,
html[data-theme="cross"] .nostr-filter-option.active,
html[data-theme="cross"] .nostr-filter-option:focus,
html[data-theme="cross"] .nostr-filter-option.focus {
  border-color: rgba(245,158,11,.62);
  background: rgba(245,158,11,.16);
  color: var(--accent-2);
  outline: none;
}
html[data-theme="cross"] .toast,
html[data-theme="cross"] .status-panel,
html[data-theme="cross"] .settings-select-panel {
  border-color: rgba(245,158,11,.24);
  background: rgba(17,17,21,.96);
}
html[data-theme="cross"] .media-card,
html[data-theme="cross"] .result-card,
html[data-theme="cross"] .follow-card { border-radius: 8px; }
html[data-theme="cross"] .media-card:focus,
html[data-theme="cross"] .media-card.focus,
html[data-theme="cross"] .result-card:focus,
html[data-theme="cross"] .result-card.focus,
html[data-theme="cross"] .follow-card:focus,
html[data-theme="cross"] .follow-card.focus { border-color: rgba(245,158,11,.56); }

html[data-theme="cross"].tv-reduced-motion * { transition-duration: 0ms !important; animation: none !important; }
html[data-theme="cross"].tv-low-power .topbar { transition: none; }

/* 十字相互的媒体层：横版卡片与 10-foot 排版。基础样式仍提供旧
 * WebView 回退，这里只覆盖独立主题的尺寸和视觉反馈。 */
html[data-theme="cross"] .hero {
  position: relative;
  min-height: 460px;
  padding: 48px 54px;
  overflow: hidden;
  background-color: #101014;
  background-position: center center;
}
html[data-theme="cross"] .hero:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13,13,15,0), rgba(13,13,15,.48));
}
html[data-theme="cross"] .hero-copy { position: relative; z-index: 1; max-width: 760px; }
html[data-theme="cross"] .hero h1 { font-size: 54px; }
html[data-theme="cross"] .hero-meta { font-size: 20px; }
html[data-theme="cross"] .hero p { max-width: 700px; font-size: 22px; }
html[data-theme="cross"] .hero-pager {
  position: absolute;
  right: 28px;
  bottom: 24px;
  z-index: 2;
  min-width: 74px;
  padding: 6px 10px;
  border: 1px solid rgba(232,230,227,.22);
  border-radius: 999px;
  background: rgba(13,13,15,.56);
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}
html[data-theme="cross"] .hero-pager:before {
  content: "精选 ";
  color: var(--accent-2);
}

html[data-theme="cross"] .media-card,
html[data-theme="cross"] .media-card.landscape {
  flex-basis: 300px;
  width: 300px;
  height: 220px;
  min-height: 220px;
  border-radius: 8px;
  background: rgba(27,27,32,.94);
}
html[data-theme="cross"] .watch-card { flex-basis: 300px; width: 300px; }
html[data-theme="cross"] .watch-card .media-card { width: 300px; }
html[data-theme="cross"] .poster-wrap,
html[data-theme="cross"] .landscape .poster-wrap { height: 168px; }
html[data-theme="cross"] .media-card .card-body,
html[data-theme="cross"] .media-card.landscape .card-body {
  min-height: 52px;
  height: 52px;
  padding: 8px 12px;
}
html[data-theme="cross"] .card-title { font-size: 17px; }
html[data-theme="cross"] .card-sub { margin-top: 4px; font-size: 13px; }
html[data-theme="cross"] .watch-progress { top: 164px; }
html[data-theme="cross"] .rail { padding: 14px 24px 24px; margin: 0 -8px; }
html[data-theme="cross"] .section-title { margin-top: 32px; margin-bottom: 14px; }
html[data-theme="cross"] .section-title h2 { font-size: 30px; }
html[data-theme="cross"] .section-title span { font-size: 16px; }
html[data-theme="cross"] .result-grid .media-card { margin-bottom: 24px; }

/* 筛选是十字相互的琥珀色控件，不能落回奈飞红色。 */
html[data-theme="cross"] .category-filter-option.active,
html[data-theme="cross"] .category-filter-option:focus,
html[data-theme="cross"] .category-filter-option.focus,
html[data-theme="cross"] .category-filter-control.active,
html[data-theme="cross"] .category-filter-control:focus,
html[data-theme="cross"] .category-filter-control.focus {
  border-color: rgba(245,158,11,.72) !important;
  background: rgba(245,158,11,.18) !important;
  color: var(--accent-2) !important;
  font-weight: 700;
}
html[data-theme="cross"] .category-filter-toggle.has-active {
  border-color: rgba(245,158,11,.56) !important;
  background: rgba(245,158,11,.16) !important;
  color: var(--accent-2) !important;
}

@keyframes cross-nav-drop {
  0% { opacity: .35; transform: translateY(-12px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
html[data-theme="cross"].cross-nav-open .topbar { animation: cross-nav-drop 150ms ease-out; }
html[data-theme="cross"] .nav-item,
html[data-theme="cross"] .top-action { transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease; }
html[data-theme="cross"].tv-reduced-motion .topbar,
html[data-theme="cross"].tv-reduced-motion .nav-item,
html[data-theme="cross"].tv-reduced-motion .top-action { animation: none !important; transition: none !important; }

@media (min-width: 1920px) {
  html[data-theme="cross"] {
    --cross-nav-width: 112px;
    --cross-nav-open-width: 240px;
    --cross-nav-font: 26px;
    --cross-nav-item-height: 64px;
    --cross-nav-gap: 10px;
    --cross-content-closed: calc(5vw + 136px);
    --cross-content-open: calc(5vw + 264px);
  }
  html[data-theme="cross"] .tv-app { padding-left: var(--cross-content-closed); }
  html[data-theme="cross"].cross-nav-open .tv-app { padding-left: var(--cross-content-open) !important; }
  html[data-theme="cross"] .topbar { left: 5vw; top: 5vh; bottom: 5vh; width: 112px; padding: 18px 10px; }
  html[data-theme="cross"] .nav { padding: 8px; margin-top: 24px; }
  html[data-theme="cross"] .nav-item:after,
  html[data-theme="cross"] .top-action:before { font-size: 26px; }
  html[data-theme="cross"].cross-nav-open .topbar { width: 240px; }
  html[data-theme="cross"] .hero { min-height: 560px; padding: 60px 72px; }
  html[data-theme="cross"] .hero h1 { font-size: 62px; }
  html[data-theme="cross"] .hero-meta { font-size: 23px; }
  html[data-theme="cross"] .hero p { font-size: 25px; }
  html[data-theme="cross"] .media-card,
  html[data-theme="cross"] .media-card.landscape,
  html[data-theme="cross"] .watch-card { flex-basis: 340px; width: 340px; }
  html[data-theme="cross"] .watch-card .media-card { width: 340px; }
  html[data-theme="cross"] .poster-wrap,
  html[data-theme="cross"] .landscape .poster-wrap { height: 190px; }
  html[data-theme="cross"] .media-card .card-body,
  html[data-theme="cross"] .media-card.landscape .card-body { min-height: 60px; height: 60px; }
  html[data-theme="cross"] .watch-progress { top: 186px; }
  html[data-theme="cross"] .section-title h2 { font-size: 34px; }
}

@media (min-width: 2560px) {
  html[data-theme="cross"] {
    --cross-nav-width: 148px;
    --cross-nav-open-width: 288px;
    --cross-nav-font: 30px;
    --cross-nav-item-height: 72px;
    --cross-nav-gap: 12px;
    --cross-content-closed: calc(5vw + 172px);
    --cross-content-open: calc(5vw + 316px);
  }
  html[data-theme="cross"] .tv-app { padding-left: var(--cross-content-closed); }
  html[data-theme="cross"].cross-nav-open .tv-app { padding-left: var(--cross-content-open) !important; }
  html[data-theme="cross"] .topbar { left: 5vw; top: 5vh; bottom: 5vh; width: 148px; padding: 22px 12px; }
  html[data-theme="cross"] .brand:after { font-size: 22px; }
  html[data-theme="cross"] .nav { padding: 10px; margin-top: 30px; }
  html[data-theme="cross"] .nav-item { height: 72px; margin-bottom: 12px; }
  html[data-theme="cross"] .nav-item:after,
  html[data-theme="cross"] .top-action:before { font-size: 30px; line-height: 70px; }
  html[data-theme="cross"] .top-action { height: 70px; margin-bottom: 12px; }
  html[data-theme="cross"].cross-nav-open .topbar { width: 288px; }
  html[data-theme="cross"] .hero { min-height: 720px; }
  html[data-theme="cross"] .hero h1 { font-size: 72px; }
  html[data-theme="cross"] .hero-meta { font-size: 26px; }
  html[data-theme="cross"] .hero p { font-size: 28px; }
  html[data-theme="cross"] .media-card,
  html[data-theme="cross"] .media-card.landscape,
  html[data-theme="cross"] .watch-card { flex-basis: 420px; width: 420px; height: 278px; min-height: 278px; }
  html[data-theme="cross"] .watch-card .media-card { width: 420px; }
  html[data-theme="cross"] .poster-wrap,
  html[data-theme="cross"] .landscape .poster-wrap { height: 236px; }
  html[data-theme="cross"] .media-card .card-body,
  html[data-theme="cross"] .media-card.landscape .card-body { min-height: 70px; height: 70px; }
  html[data-theme="cross"] .watch-progress { top: 232px; }
  html[data-theme="cross"] .section-title h2 { font-size: 40px; }
  html[data-theme="cross"] .section-title span { font-size: 20px; }
}

@media (max-width: 760px) {
  html[data-theme="cross"] {
    --cross-nav-width: 76px;
    --cross-nav-open-width: 184px;
    --cross-nav-font: 22px;
    --cross-nav-item-height: 52px;
    --cross-nav-gap: 7px;
    --cross-content-closed: calc(5vw + 94px);
    --cross-content-open: calc(5vw + 202px);
  }
  html[data-theme="cross"] .tv-app { padding-left: var(--cross-content-closed); padding-right: 18px; }
  html[data-theme="cross"].cross-nav-open .tv-app { padding-left: var(--cross-content-open) !important; }
  html[data-theme="cross"] .topbar { left: 5vw; top: 5vh; bottom: 5vh; width: 76px; }
  html[data-theme="cross"].cross-nav-open .topbar { width: 184px; }
}

/* 720p TV/browser preview: keep every two-character entry inside the
 * 5vh-safe rail instead of allowing the final settings control to clip. */
@media (min-width: 761px) and (max-width: 1365px) and (max-height: 800px) {
  html[data-theme="cross"] {
    --cross-nav-width: 84px;
    --cross-nav-open-width: 196px;
    --cross-nav-font: 21px;
    --cross-nav-item-height: 48px;
    --cross-nav-gap: 6px;
    --cross-content-closed: calc(5vw + 104px);
    --cross-content-open: calc(5vw + 216px);
  }
  html[data-theme="cross"] .tv-app { padding-left: var(--cross-content-closed); }
  html[data-theme="cross"].cross-nav-open .tv-app { padding-left: var(--cross-content-open) !important; }
  html[data-theme="cross"] .topbar {
    width: 84px;
    padding: 10px 7px;
  }
  html[data-theme="cross"] .brand:after { font-size: 14px; }
  html[data-theme="cross"] .nav {
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 4px;
  }
  html[data-theme="cross"] .nav-item:after,
  html[data-theme="cross"] .top-action:before {
    font-size: 21px;
    line-height: 46px;
  }
  html[data-theme="cross"] .top-action { height: 48px; margin-bottom: 6px; }
  html[data-theme="cross"].cross-nav-open .topbar { width: 196px; }
}
