/* Browser-only editorial layout. Packaged TV apps keep src/styles.css. */
:root { --navy-950: #0c1017; --white: #f4f6fa; --muted: #a6afbd; --blue: #65baff; --surface: #151c26; --safe-x: clamp(20px, 4vw, 64px); --line: #29313e; }
html { scroll-padding-top: 76px; }
/* Keep scrolling on the document: inherited overflow-x:hidden on body
   creates a scroll container that prevents the section bar from sticking. */
body { background: var(--navy-950); overflow: visible; }
.app-shell { max-width: 1600px; margin: 0 auto; }
.topbar { height: auto; padding: 0 var(--safe-x); display: block; background: none; }
.masthead { min-height: 106px; display: flex; align-items: center; gap: 26px; }
.brand-home { border: 0; padding: 0; background: none; cursor: pointer; flex-shrink: 0; }
.brand { display: block; width: 242px; height: auto; }
.edition-label { padding-left: 24px; border-left: 1px solid var(--line); color: var(--white); font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.edition-label span { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.masthead-actions { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.clock { display: block; font-size: 14px; }
.search-shortcut { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--white); background: transparent; font-size: 14px; cursor: pointer; }
.search-symbol { position: relative; display: inline-block; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; margin-right: 3px; }
.search-symbol::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: currentColor; right: -5px; bottom: -2px; transform: rotate(45deg); }
.navigation-bar { position: sticky; top: 0; z-index: 20; padding: 0 var(--safe-x); background: #0c1017f5; }
.navigation-bar nav { min-width: 0; gap: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.navigation-bar nav[hidden] { display: none; }
.mobile-nav-tools { display: none; }
.nav-item { flex-shrink: 0; min-height: 49px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0 1px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-item.is-active { background: transparent; border-bottom-color: var(--blue); }
.nav-item[data-action="live"] { color: #ff7388; }
.nav-item:hover { color: white; }
main { padding: 28px var(--safe-x) 48px; }
section { scroll-margin-top: 76px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.hero { min-height: 356px; margin: 0; padding: 22px 26px; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; border: 1px solid #263951; border-radius: 10px; background: radial-gradient(ellipse at 50% 38%, #1c3451, #101c2d 72%); box-shadow: none; }
.hero::after { display: none; }
.hero-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #a6b7ce; font-size: 10px; letter-spacing: .12em; }
.eyebrow { display: inline-flex; align-items: center; margin: 0; color: white; font-size: 12px; letter-spacing: .1em; }
.live-dot { width: 7px; height: 7px; margin-right: 7px; animation: none; background: #ff3655; }
.live-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 0 18px; }
.live-logo { width: min(80%, 340px); height: auto; }
.primary-button { min-width: 64px; width: 64px; height: 64px; border: 1px solid rgba(255,255,255,.3); background: #05090fd9; transition: background 150ms ease; }
.primary-button:hover { background: #000; border-color: white; }
.play-icon { border-top-width: 11px; border-bottom-width: 11px; border-left-width: 18px; transform: translateX(2px); }
.hero-copy { width: 100%; max-width: none; }
.hero h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.hero p { font-size: 14px; line-height: 1.45; margin: 7px 0 0; color: #aebdd0; }
.quick-section { padding: 0; min-width: 0; }
.section-heading { align-items: center; gap: 16px; margin-bottom: 17px; }
.section-heading h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.035em; }
.section-kicker { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 650; letter-spacing: .1em; color: var(--blue); }
.section-status { margin: 0 0 0 auto; font-size: 12px; line-height: 1.4; text-align: right; }
.quick-section .section-heading { margin-bottom: 12px; }
.quick-section h2 { font-size: 24px; }
.quick-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
.quick-card { display: flex; align-items: center; gap: 14px; min-height: 67px; border: 1px solid var(--line); border-radius: 6px; background: #141b25; }
.quick-thumb { flex: 0 0 116px; width: 116px; height: 65px; padding: 0; }
.quick-thumb::after, .news-card .video-thumb::after { content: none; }
.quick-thumb::before, .news-card .video-thumb::before { content: ""; position: absolute; z-index: 1; bottom: 12px; left: 14px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid white; filter: drop-shadow(0 1px 3px #000); }
.quick-copy { min-height: 0; min-width: 0; padding: 8px 12px 8px 0; gap: 5px; }
.quick-label { color: var(--blue); font-size: 11px; letter-spacing: .05em; }
.quick-card strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.quick-card:hover, .video-card:hover { border-color: #64758d; background: #1a2533; }
.sponsor-billboard { margin: 24px 0 0; }
.sponsor-link { border-radius: 8px; box-shadow: none; }
.sponsor-label { font-size: 11px; }
.rail-section { padding: 34px 0 0; }
.video-rail { grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; padding: 5px 5px 12px; margin: -5px; scrollbar-width: thin; scrollbar-color: #38475c transparent; scroll-snap-type: x proximity; }
.video-rail::-webkit-scrollbar { display: block; height: 3px; }
.video-rail::-webkit-scrollbar-thumb { background: #38475c; border-radius: 3px; }
.video-card { border: 1px solid var(--line); border-radius: 7px; box-shadow: none; }
.video-meta, .news-card .video-meta, .catalog-grid .video-meta { min-height: 102px; padding: 13px 14px 16px; }
.video-date { font-size: 12px; letter-spacing: .04em; }
.video-title { margin-top: 7px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.news-card .video-title { -webkit-line-clamp: 3; }
.card-play { left: 14px; bottom: 12px; width: 11px; height: 14px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.card-play::after { border-top-width: 7px; border-bottom-width: 7px; border-left-width: 11px; margin-left: 0; filter: drop-shadow(0 1px 3px #000); }
.video-card:focus .video-thumb img, .quick-card:focus .quick-thumb img { transform: none; }
.rail-controls { display: flex; gap: 8px; flex-shrink: 0; }
.rail-controls button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid #718197; border-radius: 50%; color: white; background: #171f2b; font-size: 28px; cursor: pointer; }
.rail-controls button:hover:not(:disabled) { background: #28384e; border-color: white; }
.rail-controls button:disabled { opacity: .32; cursor: default; }
.travel-catalog { margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catalog-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 12px 2px; list-style: none; font-size: 14px; color: var(--blue); cursor: pointer; }
.catalog-toggle::-webkit-details-marker { display: none; }
.catalog-toggle span { font-size: 24px; transition: transform 150ms ease; }
.travel-catalog[open] .catalog-toggle span { transform: rotate(45deg); }
.travel-catalog[open] { padding-bottom: 24px; }
.catalog-search { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; margin: 0 0 22px; }
.search-input, .search-button, .clear-button, .load-more { min-width: 0; min-height: 48px; padding: 10px 16px; font-size: 16px; border: 1px solid #718197; border-radius: 6px; background: #182230; }
.search-input::placeholder { color: #a2aebe; }
.search-button { min-width: 96px; background: #1371b7; color: white; border-color: transparent; }
.clear-button { min-width: 96px; }
.catalog-grid { gap: 18px; padding: 5px; margin: -5px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.archive-prompt { min-height: 104px; padding: 24px; font-size: 14px; line-height: 1.5; border-radius: 6px; }
.load-more-wrap { padding-top: 22px; }
.load-more { min-width: 240px; cursor: pointer; }
.skeleton-card { height: 228px; border-radius: 7px; }
.offline-card { padding: 20px; border-radius: 7px; font-size: 14px; line-height: 1.5; }
.focusable:focus { outline: 2px solid #96d4ff; outline-offset: 3px; box-shadow: none; transform: none; }
.focusable:focus:not(:focus-visible) { outline: none; }
.focusable:focus-visible { outline: 2px solid #96d4ff; outline-offset: 3px; }
footer { margin: 0 var(--safe-x); padding: 22px 0 30px; min-height: 0; gap: 18px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: underline; }
.player-message { pointer-events: none; }
.player-chrome { min-height: 88px; padding: 20px var(--safe-x); gap: 16px; }
.player-brand { font-size: 18px; }
.close-button { font-size: 15px; padding: 12px 18px; flex-shrink: 0; }
@media (min-width: 1450px) {
  .hero { min-height: 398px; }
  .quick-card { min-height: 77px; }
  .quick-thumb { flex-basis: 133px; width: 133px; height: 75px; }
  .quick-card strong { font-size: 15px; }
}
@media (max-width: 1000px) {
  .navigation-bar nav { gap: 23px; }
  .edition-label { display: none; }
  .lead-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
  .hero { padding: 20px; }
  .quick-thumb { flex-basis: 98px; width: 98px; height: 65px; }
  .quick-card { gap: 10px; }
  .video-rail { grid-auto-columns: calc((100% - 36px) / 3); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --safe-x: 18px; }
  .masthead { min-height: 91px; gap: 12px; }
  .brand { width: 200px; }
  .clock { display: none; }
  .masthead-actions { gap: 0; }
  .search-shortcut { min-height: 44px; padding: 10px; font-size: 13px; border-color: transparent; }
  .navigation-bar nav { flex-wrap: wrap; gap: 0 18px; padding: 8px 0; }
  .navigation-bar[data-menu-enhanced="true"] .mobile-nav-tools { display: flex; align-items: center; gap: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .mobile-nav-tools button { appearance: none; min-height: 48px; padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; }
  .mobile-nav-tools .mobile-live { color: #ff7388; }
  .mobile-nav-tools .menu-toggle { display: flex; align-items: center; gap: 10px; margin-left: auto; }
  .menu-toggle[aria-expanded="true"] { color: var(--blue); }
  .navigation-bar[data-menu-enhanced="true"] nav:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 12px 0; max-height: 65vh; overflow-y: auto; border-top: 0; }
  .nav-item { min-height: 44px; padding: 8px 2px; font-size: 14px; text-align: left; }
  .navigation-bar[data-menu-enhanced="true"] .nav-item { border-bottom: 0; border-radius: 5px; padding: 10px 12px; background: #182230; }
  .navigation-bar[data-menu-enhanced="true"] .nav-item.is-active { background: #243a52; color: #9cd7ff; }
  main { padding-top: 18px; padding-bottom: 32px; }
  .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .hero { min-height: 220px; padding: 19px 20px; }
  .hero-topline { font-size: 10px; letter-spacing: .07em; }
  .live-stage { flex-direction: row; justify-content: space-between; padding: 18px 0; gap: 16px; }
  .live-logo { width: calc(100% - 74px); max-width: 240px; }
  .primary-button { width: 58px; height: 58px; min-width: 58px; }
  .hero h1 { font-size: 21px; }
  .hero p { font-size: 13px; }
  .quick-section .section-heading { margin-bottom: 13px; }
  .section-kicker { font-size: 11px; }
  .quick-section h2, .section-heading h2 { font-size: 23px; }
  .quick-card { min-height: 74px; gap: 14px; }
  .quick-thumb { flex-basis: 128px; width: 128px; height: 72px; }
  .quick-card strong { font-size: 14px; }
  .quick-label { font-size: 11px; }
  .rail-section { padding-top: 28px; }
  .section-heading { flex-wrap: wrap; gap: 5px 12px; margin-bottom: 15px; }
  .section-heading > div:first-child { flex: 1; }
  .section-status { order: 3; width: 100%; text-align: left; font-size: 11px; }
  .rail-controls { gap: 6px; }
  .rail-controls button { width: 44px; height: 44px; }
  .video-rail { grid-auto-columns: 76%; gap: 14px; margin-right: calc(-1 * var(--safe-x)); padding-right: var(--safe-x); }
  .video-title { font-size: 16px; }
  .video-meta, .news-card .video-meta { min-height: 96px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .catalog-grid .video-meta { padding: 10px; min-height: 95px; }
  .catalog-grid .video-title { font-size: 14px; -webkit-line-clamp: 3; }
  .catalog-search { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .clear-button { grid-column: 1 / -1; }
  .search-input { padding: 10px 12px; }
  .search-button { min-width: 70px; padding: 10px 12px; }
  .catalog-toggle { font-size: 13px; }
  .archive-prompt { padding: 20px; }
  footer { display: block; font-size: 11px; }
  .remote-help { display: block; margin-top: 5px; }
  .player-chrome { padding: 16px; gap: 10px; }
  .player-brand { font-size: 15px; }
  .close-button { font-size: 14px; padding: 11px 14px; }
}
@media (max-width: 360px) {
  .brand { width: 178px; }
  .search-shortcut { padding-right: 0; }
  .quick-thumb { flex-basis: 104px; width: 104px; }
  .hero { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html, .video-rail { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
