/* Nexora TV — dedicated ten-foot streaming interface. Scope: TV mode only. */
:root[data-tv="1"] {
  color-scheme: dark;
  --bg-0: #080808; --bg-1: #101010; --bg-2: #181818;
  --surface: #141414; --surface-2: #202020;
  --text: #f7f7f7; --text-dim: #e4e4e4; --text-mute: #b6b6b6;
  --accent: #e50914; --accent-2: #ff1d2d; --accent-ink: #fff;
  --accent-soft: rgba(229, 9, 20, .16); --accent-line: rgba(229, 9, 20, .58);
  --border: rgba(255,255,255,.12); --border-strong: rgba(255,255,255,.22);
  --nav-h: 86px; --gutter: clamp(38px, 4.35vw, 96px); --tv-gutter: var(--gutter); --shell: none;
  scroll-behavior: auto; scroll-padding-top: calc(var(--nav-h) + 22px); background: var(--bg-0);
}
html[data-tv="1"], html[data-tv="1"] body {
  min-height: 100%; background: #080808 !important; color: #f7f7f7; color-scheme: dark;
}
html[data-tv="1"] body { margin: 0; overflow-x: hidden; font-size: 18px; line-height: 1.45; padding-bottom: 0; }
html[data-tv="1"] *, html[data-tv="1"] *::before, html[data-tv="1"] *::after { scroll-behavior: auto !important; }
html[data-tv="1"] #app { width: 100%; max-width: none; min-height: 100vh; margin: 0; padding: 0; }
html[data-tv="1"] .ambient-bg,
html[data-tv="1"] .footer,
html[data-tv="1"] #mobileBottomNav,
html[data-tv="1"] #settingsToggle,
html[data-tv="1"] #notifBell,
html[data-tv="1"] #menuToggle,
html[data-tv="1"] [data-testid="nav-browse"],
html[data-tv="1"] [data-testid="nav-collections"],
html[data-tv="1"] [data-testid="nav-calendar"],
html[data-tv="1"] [data-testid="nav-ai"],
html[data-tv="1"] .account-menu,
html[data-tv="1"] .profile-panel,
html[data-tv="1"] #tvRemoteHint,
html[data-tv="1"] .p-edit-btn,
html[data-tv="1"] .detail-stars,
html[data-tv="1"] .detail-alert-btn,
html[data-tv="1"] .card-admin-btn,
html[data-tv="1"] .card-info-btn,
html[data-tv="1"] .card-dismiss,
html[data-tv="1"] .admin-edit-btn { display: none !important; }
html:not([data-tv="1"]) .nav-tv-only { display: none !important; }

/* Short, fixed navigation: brand, Accueil, Films, Séries, Ma liste, Recherche. */
html[data-tv="1"] .nav, html[data-tv="1"] .nav.scrolled {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--nav-h); min-height: var(--nav-h);
  background: linear-gradient(180deg,rgba(8,8,8,.98),rgba(8,8,8,.88)) !important;
  border: 0; box-shadow: none; backdrop-filter: none;
}
html[data-tv="1"] .nav::before { display: none !important; }
html[data-tv="1"] .nav-inner {
  position: relative; display: grid; grid-template-columns: minmax(180px,1fr) auto minmax(150px,1fr);
  align-items: center; width: 100%; max-width: none; height: 100%; margin: 0;
  padding: 0 var(--tv-gutter); gap: 28px;
}
html[data-tv="1"] .brand { display: inline-flex; align-items: center; justify-self: start; min-height: 54px; padding: 4px; gap: 0; color: #fff; }
html[data-tv="1"] .brand-mark { display: none !important; }
html[data-tv="1"] .brand-text { display: flex !important; align-items: center; }
html[data-tv="1"] .brand-logo {
  display: block !important; width: 150px; height: 34px; max-width: 150px;
  object-fit: contain; object-position: left center; filter: none;
}
html[data-tv="1"] .brand-logo--on-dark { opacity: 1 !important; }
html[data-tv="1"] .brand-logo--on-light, html[data-tv="1"] .brand-text::after { display: none !important; }
html[data-tv="1"] .nav-links {
  display: flex; align-items: center; justify-self: center; min-width: 0;
  gap: clamp(8px,1vw,20px); transform: none;
}
html[data-tv="1"] .nav-tv-only { display: inline-flex !important; }
html[data-tv="1"] .nav-tv-only[hidden] { display: none !important; }
html[data-tv="1"] .nav-link {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 10px clamp(12px,1.15vw,23px); border-radius: 7px;
  color: #dedede; background: transparent;
  font: 650 clamp(19px,1.25vw,24px)/1.1 var(--font-body,Arial,sans-serif);
  letter-spacing: 0; white-space: nowrap; transition: color 130ms ease,background-color 130ms ease;
}
html[data-tv="1"] .nav-link::after {
  content: ""; display: block; position: absolute; left: 22%; right: 22%; bottom: 2px;
  height: 3px; border-radius: 2px; background: var(--accent); opacity: 0; transform: none;
}
html[data-tv="1"] .nav-link.active { color: #fff; background: rgba(255,255,255,.055); box-shadow: none; }
html[data-tv="1"] .nav-link.active::after { opacity: 1; }
html[data-tv="1"] .nav-actions {
  position: absolute; top: 50%; right: var(--tv-gutter); display: flex; align-items: center;
  justify-self: end; gap: 12px; transform: translateY(-50%);
}
html[data-tv="1"] #searchToggle { display: none !important; }
html[data-tv="1"] .nav-search-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 0; min-height: 58px; padding: 0 15px; border: 1px solid transparent;
  border-radius: 7px; color: #e8e8e8; background: transparent;
  font: 650 clamp(19px,1.2vw,23px)/1 var(--font-body,Arial,sans-serif); white-space: nowrap;
}
html[data-tv="1"] .nav-search-pill svg { width: 25px; height: 25px; }
html[data-tv="1"] .nav-search-pill:hover, html[data-tv="1"] .nav-link:hover { color: #fff; background: rgba(255,255,255,.075); }
html[data-tv="1"] .account-btn {
  min-height: 52px; padding: 0 18px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px; color: #fff; background: rgba(0,0,0,.4); font-size: 18px;
}
html[data-tv="1"] .account-btn svg { width: 20px; height: 20px; }
html[data-tv="1"] .account-btn:hover { background: #202020; }

/* Cinematic home feature. Existing TMDB artwork and actions stay intact. */
html[data-tv="1"] .hero {
  position: relative; width: 100%; height: min(66vh,730px); min-height: 610px; max-height: none;
  margin: 0; overflow: hidden; isolation: isolate; background: #080808; border: 0; border-radius: 0; box-shadow: none;
}
html[data-tv="1"] .hero-slide,
html[data-tv="1"] .hero-slide.active,
html[data-tv="1"] .hero-photo,
html[data-tv="1"] .hero-slide.active .hero-photo {
  animation: none !important; transition: none !important; transform: none !important;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
html[data-tv="1"] .hero-slide:not(.active) { pointer-events: none; }
html[data-tv="1"] .hero-photo { object-position: center 24%; opacity: 1; }
html[data-tv="1"] .hero-slide::after { display: none !important; }
html[data-tv="1"] .hero-overlay {
  background:
    linear-gradient(90deg,rgba(8,8,8,.98) 0%,rgba(8,8,8,.89) 27%,rgba(8,8,8,.47) 54%,rgba(8,8,8,.06) 88%),
    linear-gradient(0deg,#080808 0%,rgba(8,8,8,.74) 12%,rgba(8,8,8,.12) 48%,rgba(8,8,8,.28) 100%) !important;
}
html[data-tv="1"] .hero-content {
  width: 100%; max-width: none; height: 100%; margin: 0;
  padding: 0 var(--tv-gutter) clamp(54px,6.2vh,76px);
  justify-content: flex-end; align-items: flex-start;
}
html[data-tv="1"] .hero-content > * { animation: none !important; }
html[data-tv="1"] .hero-eyebrow { color: #ff303b; font-size: 18px; }
html[data-tv="1"] .hero-eyebrow::before { background: #e50914; }
html[data-tv="1"] .hero-title {
  max-width: min(960px,56vw); margin: 0; color: #fff;
  font: 780 clamp(64px,5.1vw,100px)/.98 var(--font-display,Arial,sans-serif);
  letter-spacing: -.045em; text-wrap: balance; text-shadow: 0 3px 30px rgba(0,0,0,.55);
}
html[data-tv="1"] .hero-logo {
  max-width: min(680px,55vw); max-height: clamp(88px,13vh,148px); margin: 0 0 8px; animation: none !important;
}
html[data-tv="1"] .hero-meta { gap: 17px; margin: 19px 0 0; color: #f2f2f2; font-size: clamp(18px,1.15vw,22px); }
html[data-tv="1"] .hero-meta .tag, html[data-tv="1"] .hero-meta .rating { font-size: inherit; }
html[data-tv="1"] .hero-overview {
  max-width: min(760px,49vw); margin: 14px 0 0; color: #ededed;
  font-size: clamp(20px,1.3vw,25px); line-height: 1.48; -webkit-line-clamp: 3;
}
html[data-tv="1"] .hero-actions { gap: 16px; margin-top: 24px; }
html[data-tv="1"] .hero-actions .btn {
  min-width: 218px; min-height: 62px; padding: 0 28px; border-radius: 6px;
  font-size: 21px; font-weight: 750; transition: transform 130ms ease,background-color 130ms ease,color 130ms ease;
}
html[data-tv="1"] .hero-actions .btn-primary { color: #111; background: #fff; }
html[data-tv="1"] .hero-actions .btn-secondary { color: #fff; background: rgba(35,35,35,.92); border: 1px solid rgba(255,255,255,.14); }
html[data-tv="1"] .hero-actions .btn:focus { transform: scale(1.035); }
html[data-tv="1"] .hero-indicators, html[data-tv="1"] .hero-count { display: none !important; }

/* Horizontal rails: poster shape and width never change on focus. */
html[data-tv="1"] .section { margin: 28px 0 56px; animation: none !important; }
html[data-tv="1"] .hero + .section { margin-top: 14px; }
html[data-tv="1"] .section-header,
html[data-tv="1"] .row-wrap,
html[data-tv="1"] .grid,
html[data-tv="1"] .page-header { max-width: none; }
html[data-tv="1"] .section-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 0 auto 2px; padding: 0 var(--tv-gutter);
}
html[data-tv="1"] .section-title,
html[data-tv="1"] .section:has(.cat-row) .section-title,
html[data-tv="1"] .section:has(.col-row) .section-title {
  margin: 0; color: #f6f6f6; font: 720 clamp(28px,1.75vw,35px)/1.2 var(--font-display,Arial,sans-serif); letter-spacing: -.02em;
}
html[data-tv="1"] .section-title .accent { color: inherit; font-weight: inherit; }
html[data-tv="1"] .section-link { min-height: 44px; padding: 6px 8px; color: #ddd; font-size: 18px; }
html[data-tv="1"] .row-wrap { margin: 0 auto; padding: 0 var(--tv-gutter); }
html[data-tv="1"] .row {
  display: flex; align-items: flex-start; gap: clamp(18px,1.28vw,27px);
  padding: 20px 10px 34px; overflow-x: auto; overflow-y: visible;
  scroll-snap-type: none; scroll-padding-inline: var(--tv-gutter); scrollbar-width: none; -webkit-overflow-scrolling: auto;
}
html[data-tv="1"] .row::-webkit-scrollbar { display: none; }
html[data-tv="1"] .row-btn { display: none !important; }
html[data-tv="1"] .card {
  position: relative; flex: 0 0 clamp(208px,12.35vw,252px); width: clamp(208px,12.35vw,252px);
  border: 0; border-radius: 9px; background: transparent; transform: translateZ(0); transition: transform 135ms ease-out;
}
html[data-tv="1"] .card:focus, html[data-tv="1"] .card:focus-visible {
  z-index: 20; width: clamp(208px,12.35vw,252px); flex-basis: clamp(208px,12.35vw,252px);
  outline: none !important; background: transparent; box-shadow: none !important; transform: translateY(-4px) scale(1.035);
}
html[data-tv="1"] .card-poster {
  width: 100%; aspect-ratio: 2 / 3; border: 0; border-radius: 9px; background-color: #111;
  box-shadow: 0 9px 25px rgba(0,0,0,.34); transition: box-shadow 135ms ease-out,filter 135ms ease-out;
}
html[data-tv="1"] .card:focus .card-poster, html[data-tv="1"] .card:focus-visible .card-poster {
  outline: 3px solid #fff; outline-offset: 4px; box-shadow: 0 0 0 8px rgba(229,9,20,.62),0 18px 42px rgba(0,0,0,.68);
}
html[data-tv="1"] .card-title { margin-top: 0; color: #eee; font-size: 18px; font-weight: 650; line-height: 1.28; -webkit-line-clamp: 2; }
html[data-tv="1"] .card-meta { margin-top: 5px; color: #c8c8c8; font-size: 15px; }
html[data-tv="1"] .card:focus .card-title, html[data-tv="1"] .card:focus-visible .card-title { color: #fff; }
html[data-tv="1"] .card-poster::after { display: none; }
html[data-tv="1"] .card-play { width: 52px; height: 52px; background: #e50914; color: #fff; }
html[data-tv="1"] .card-play svg { width: 22px; height: 22px; }
html[data-tv="1"] .card-resume { flex-basis: clamp(300px,19vw,380px); width: clamp(300px,19vw,380px); }
html[data-tv="1"] .card-resume .card-poster { aspect-ratio: 16 / 9; }
html[data-tv="1"] .card-resume .card-title { color: #fff; font-size: 20px; }
html[data-tv="1"] .card-resume .card-meta { font-size: 16px; }
html[data-tv="1"] .card-resume-time { padding: 5px 11px; font-size: 16px; }
html[data-tv="1"] .card-resume .card-progress { height: 5px; }
html[data-tv="1"] .card-resume .card-progress-bar { background: #e50914; }
html[data-tv="1"] .tv-card-overview { display: none !important; }
html[data-tv="1"] .grid {
  grid-template-columns: repeat(auto-fill,minmax(clamp(190px,12vw,248px),1fr));
  gap: 34px 26px; padding: 26px var(--tv-gutter) 74px;
}
html[data-tv="1"] .grid .card { width: auto; flex: 0 0 auto; }
html[data-tv="1"] .grid .card:focus { width: auto; flex-basis: auto; }
html[data-tv="1"] .top10-main,
html[data-tv="1"] .top10-poster { width: clamp(185px,11.8vw,245px); min-width: clamp(185px,11.8vw,245px); }
html[data-tv="1"] .top10-poster { height: auto; aspect-ratio: 2 / 3; }
html[data-tv="1"] .top10-rank { font-size: clamp(112px,7.5vw,160px); }
html[data-tv="1"] .top10-title { color: #eee; font-size: 18px; }
html[data-tv="1"] .top10-meta { color: #c8c8c8; font-size: 15px; }
html[data-tv="1"] .top10-card:focus { z-index: 20; transform: translateY(-4px) scale(1.035); }
html[data-tv="1"] .cat-row { align-items: stretch; }
html[data-tv="1"] .cat-card {
  flex: 0 0 clamp(225px,16vw,310px); height: clamp(110px,12vh,146px); overflow: hidden;
  border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: linear-gradient(145deg,#171717,#0e0e0e);
}
html[data-tv="1"] .cat-card-name { color: #fff; font-size: 23px; }
html[data-tv="1"] .cat-card-count { color: #d0d0d0; font-size: 16px; }
html[data-tv="1"] .cat-card-art { opacity: .48; filter: none; transition: opacity 130ms ease; }
html[data-tv="1"] .cat-card:focus,
html[data-tv="1"] .col-card:focus,
html[data-tv="1"] .top10-card:focus {
  z-index: 20; outline: 3px solid #fff; outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(229,9,20,.58); transform: scale(1.025);
}
html[data-tv="1"] .cat-card:focus .cat-card-art { opacity: .72; transform: none; }
html[data-tv="1"] .col-card { min-height: 214px; border-radius: 9px; }
html[data-tv="1"] .col-card-name { color: #fff; font-size: 22px; }

/* Films and Séries keep their real editorial routes, catalogue and filters. */
html[data-tv="1"] .cine-hero {
  position: relative; height: clamp(420px,46vh,520px); min-height: 0; margin: 0;
  padding: calc(var(--nav-h) + 54px) var(--tv-gutter) 44px;
  align-items: flex-end; justify-content: flex-start; box-sizing: border-box;
}
html[data-tv="1"] .cine-hero--compact { height: clamp(340px,39vh,430px); min-height: 0; }
html[data-tv="1"] .cine-hero-photo { transform: none; object-position: center 24%; }
html[data-tv="1"] .cine-hero-overlay {
  background:
    linear-gradient(90deg,rgba(8,8,8,.96) 0%,rgba(8,8,8,.78) 36%,rgba(8,8,8,.18) 78%,rgba(8,8,8,.06) 100%),
    linear-gradient(0deg,#080808 0%,rgba(8,8,8,.68) 15%,rgba(8,8,8,.04) 66%) !important;
}
html[data-tv="1"] .cine-hero-inner {
  width: min(920px,61vw); max-width: 920px; margin: 0;
  align-items: flex-start; text-align: left; gap: 16px;
}
html[data-tv="1"] .cine-hero-title { color: #fff; font-size: clamp(50px,4.1vw,78px); line-height: 1.02; letter-spacing: -.035em; }
html[data-tv="1"] .cine-hero-sub { max-width: 780px; color: #e1e1e1; font-size: 22px; line-height: 1.42; }
html[data-tv="1"] .cine-hero-search { display: none !important; }
html[data-tv="1"] .page-header {
  max-width: none; margin: 0 auto 4px; padding: calc(var(--nav-h) + 36px) var(--tv-gutter) 20px;
  border-color: rgba(255,255,255,.13);
}
html[data-tv="1"] .page-title { color: #fff; font-size: clamp(40px,3vw,56px); line-height: 1.1; }
html[data-tv="1"] .page-sub { max-width: 900px; color: #d5d5d5; font-size: 20px; line-height: 1.45; }
html[data-tv="1"] .catalogue-filters {
  position: sticky; top: var(--nav-h); z-index: 24; max-width: none;
  padding: 13px var(--tv-gutter) 12px; background: rgba(8,8,8,.97);
}
html[data-tv="1"] .filters { gap: 12px; padding: 16px var(--tv-gutter) 8px; }
html[data-tv="1"] .filter-chip,
html[data-tv="1"] .filter-select,
html[data-tv="1"] .catalogue-filters select {
  min-height: 50px; padding: 8px 19px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px; color: #f5f5f5; background: #111; font-size: 17px;
}
html[data-tv="1"] .filter-chip.active { color: #fff; border-color: #e50914; background: rgba(229,9,20,.18); }
html[data-tv="1"] .load-more-wrap { padding: 24px var(--tv-gutter) 68px; }
html[data-tv="1"] .load-more-btn { min-height: 58px; padding: 0 26px; font-size: 20px; }
html[data-tv="1"] .ml-toolbar { max-width: none; gap: 14px; margin: 0 auto 20px; padding: 10px var(--tv-gutter) 0; }
html[data-tv="1"] .ml-shelves { max-width: none; padding: 0 var(--tv-gutter) 62px; }
html[data-tv="1"] .ml-shelves > .empty { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px; text-align: center; }
html[data-tv="1"] .ml-shelves > .empty h3 { color: #fff; font-size: 36px; }
html[data-tv="1"] .ml-shelves > .empty p { max-width: 760px; color: #ccc; font-size: 20px; }
html[data-tv="1"] .ml-shelves > .empty .btn { min-height: 58px; margin-top: 8px !important; padding: 0 27px; font-size: 19px; }
html[data-tv="1"] .collections-mobile-head { display: none !important; }
html[data-tv="1"] .collections-grid { max-width: none; padding: 28px var(--tv-gutter) 72px; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 24px; }

/* Search is reached from the header on purpose, never from a faux hero field. */
html[data-tv="1"] .search-panel {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 120;
  padding: 38px var(--tv-gutter) 64px; color: #f7f7f7; background: #080808 !important;
  border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: none; -webkit-backdrop-filter: none;
  overflow: auto; transition: opacity 120ms ease,visibility 0s linear 120ms;
}
html[data-tv="1"] .search-panel.open { transition: opacity 120ms ease; }
html[data-tv="1"] .search-inner,
html[data-tv="1"] .search-panel.open .search-inner {
  display: flex; align-items: center; width: 100%; max-width: none; gap: 22px;
  margin: 0 0 30px; padding: 0 0 20px; border-bottom: 1px solid rgba(255,255,255,.24);
  animation: none !important;
}
html[data-tv="1"] .search-icon { width: 30px; height: 30px; color: #e50914; }
html[data-tv="1"] #searchInput {
  min-height: 74px; padding: 0; color: #fff; caret-color: #e50914; font-size: clamp(28px,2.1vw,38px);
}
html[data-tv="1"] #searchInput::placeholder { color: #aaa; }
html[data-tv="1"] .search-close {
  flex: 0 0 auto; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; color: #fff; background: #151515; font-size: 24px;
}
html[data-tv="1"] .search-results {
  width: 100%; max-width: none; margin: 0;
  grid-template-columns: repeat(auto-fill,minmax(clamp(190px,12vw,248px),1fr));
  gap: 30px 24px; padding: 0 0 34px;
}
html[data-tv="1"] .search-results .card { min-width: 0; }
html[data-tv="1"] .search-results .card-title { margin-top: 10px; color: #f5f5f5; font-size: 18px; }
html[data-tv="1"] .search-results .card-meta { color: #c8c8c8; font-size: 15px; }

/* Full-screen title detail, followed by seasons and episodes in the same scroll. */
html[data-tv="1"] #detailModal { z-index: 150 !important; padding: 0; background: #080808; }
html[data-tv="1"] #detailModal .modal-card {
  width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
  overflow-x: hidden; overflow-y: auto; background: #080808 !important; border: 0; border-radius: 0;
  box-shadow: none; animation: none !important; scrollbar-width: none;
}
html[data-tv="1"] #detailModal .modal-card::-webkit-scrollbar { display: none; }
html[data-tv="1"] #detailModal .modal-close {
  position: fixed; top: max(28px,env(safe-area-inset-top)); right: var(--tv-gutter); z-index: 160;
  width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.23); border-radius: 50%;
  color: #fff; background: rgba(10,10,10,.88); font-size: 22px;
}
html[data-tv="1"] #detailModal .detail-backdrop { height: 82vh; min-height: 690px; background-position: center 20%; }
html[data-tv="1"] #detailModal .detail-backdrop-fade {
  background:
    linear-gradient(90deg,#080808 0%,rgba(8,8,8,.96) 18%,rgba(8,8,8,.72) 42%,rgba(8,8,8,.12) 78%,rgba(8,8,8,.02) 100%),
    linear-gradient(0deg,#080808 0%,rgba(8,8,8,.74) 13%,transparent 56%);
}
html[data-tv="1"] #detailModal .detail-body { display: block; max-width: none; margin: -82vh 0 0; padding: 0 var(--tv-gutter) 82px; }
html[data-tv="1"] #detailModal .detail-poster { display: none; }
html[data-tv="1"] #detailModal .detail-info {
  display: flex; flex-direction: column; align-items: flex-start; width: min(900px,55vw);
  min-height: 82vh; overflow: visible; padding: clamp(138px,17vh,188px) 0 54px;
}
html[data-tv="1"] #detailModal .detail-title-block { max-width: 840px; margin: 0 0 17px; }
html[data-tv="1"] #detailModal .detail-title { color: #fff; font-size: clamp(58px,4.5vw,86px); line-height: 1; }
html[data-tv="1"] #detailModal .detail-title-block.has-logo .detail-title--small {
  display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
html[data-tv="1"] #detailModal .detail-logo { max-width: min(650px,53vw); max-height: 148px; animation: none !important; }
html[data-tv="1"] #detailModal .detail-meta { order: 1; gap: 16px; margin: 0 0 14px; color: #f3f3f3; font-size: 19px; }
html[data-tv="1"] #detailModal .detail-genres { order: 2; gap: 9px; margin: 0 0 14px; }
html[data-tv="1"] #detailModal .detail-genres .tag,
html[data-tv="1"] #detailModal .detail-genres span { padding: 6px 13px; border-color: rgba(255,255,255,.17); color: #eee; background: rgba(18,18,18,.82); font-size: 16px; }
html[data-tv="1"] #detailModal .detail-crew { order: 2; margin: 0 0 14px; color: #d0d0d0; font-size: 17px; }
html[data-tv="1"] #detailModal .detail-crew a { color: #fff; }
html[data-tv="1"] #detailModal .detail-overview { order: 3; max-width: 800px; margin: 0 0 18px; color: #e5e5e5; font-size: 21px; line-height: 1.46; }
html[data-tv="1"] #detailModal .detail-overview.is-clamped { font-size: 21px; line-height: 1.46; -webkit-line-clamp: 3; }
html[data-tv="1"] #detailModal .detail-overview-more { order: 3; padding: 0 0 14px; color: #fff; font-size: 17px; }
html[data-tv="1"] #detailModal .detail-actions {
  order: 4; display: flex; align-items: center; flex-direction: row; flex-wrap: wrap;
  width: 100%; gap: 13px; margin: 0 0 18px;
}
html[data-tv="1"] #detailModal .detail-actions .btn,
html[data-tv="1"] #detailModal .tv-detail-list-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: auto; min-width: 190px; min-height: 58px; padding: 0 23px;
  border: 1px solid rgba(255,255,255,.17); border-radius: 6px; color: #fff; background: #242424;
  font-size: 19px; font-weight: 750; text-align: center;
}
html[data-tv="1"] #detailModal .detail-actions .btn-watch { color: #fff; background: #e50914; border-color: #e50914; }
html[data-tv="1"] #detailModal .detail-actions .btn-watch:hover { background: #f11; }
html[data-tv="1"] #detailModal .detail-actions .btn-more,
html[data-tv="1"] #detailModal .tv-detail-list-btn { color: #fff; background: rgba(35,35,35,.94); }
html[data-tv="1"] #detailModal .tv-detail-list-btn.active { border-color: #e50914; background: rgba(229,9,20,.22); }
html[data-tv="1"] #detailModal .tv-detail-list-btn svg { width: 22px; height: 22px; }
html[data-tv="1"] #detailModal .detail-episodes {
  order: 5; width: min(calc(100vw - 2 * var(--tv-gutter)),1700px); max-width: 1700px;
  margin: 18px 0 24px; font-size: 21px;
}
html[data-tv="1"] #detailModal .ep-head { align-items: center; margin: 0 0 16px; }
html[data-tv="1"] #detailModal .ep-season-pill,
html[data-tv="1"] #detailModal .ep-season-select {
  min-height: 52px; padding: 8px 18px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px; color: #fff; background-color: #171717; font-size: 17px;
}
html[data-tv="1"] #detailModal .ep-season-pill.active { border-color: #e50914; color: #fff; background: #e50914; }
html[data-tv="1"] #detailModal .ep-list { gap: 10px; }
html[data-tv="1"] #detailModal .ep-row {
  min-height: 112px; gap: 18px; padding: 12px; border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px; color: #fff; background: #111; font-size: 18px;
  transition: background-color 120ms ease,border-color 120ms ease;
}
html[data-tv="1"] #detailModal .ep-thumb { width: 174px; border-radius: 5px; }
html[data-tv="1"] #detailModal .ep-title { margin-bottom: 6px; color: #fff; font-size: 20px; }
html[data-tv="1"] #detailModal .ep-overview { color: #d2d2d2; font-size: 16px; line-height: 1.4; }
html[data-tv="1"] #detailModal .ep-meta, html[data-tv="1"] #detailModal .ep-runtime { color: #d0d0d0; font-size: 16px; }
html[data-tv="1"] #detailModal .ep-row:focus { outline: 3px solid #fff !important; outline-offset: 3px; border-color: #e50914; background: #1c1112; transform: none; }
html[data-tv="1"] #detailModal .detail-section { margin: 36px 0 0; }
html[data-tv="1"] #detailModal .detail-section h4 { color: #fff; font-size: 24px; }
html[data-tv="1"] #detailModal .similar-row { gap: 20px; }
html[data-tv="1"] #detailModal .cast-row { gap: 18px; }

/* Full-screen reader: one back action, large timeline and quiet menus. */
html[data-tv="1"].player-open, html[data-tv="1"].player-open body { background: #000 !important; }
html[data-tv="1"].player-open .player-modal { z-index: 200 !important; padding: 0; }
html[data-tv="1"].player-open .player-card {
  position: relative; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
  overflow: hidden; border: 0; border-radius: 0; background: #000; box-shadow: none; animation: none !important;
}
html[data-tv="1"].player-open .player-topbar { padding: 24px var(--tv-gutter); gap: 18px; }
html[data-tv="1"].player-open .nx-topbar-back { width: 58px; height: 58px; border-radius: 50%; }
html[data-tv="1"] #nxTopbarClose { display: none !important; }
html[data-tv="1"].player-open .nx-player-logo { max-width: 132px; max-height: 32px; }
html[data-tv="1"].player-open .nx-topbar-title { color: #fff; font-size: 22px; }
html[data-tv="1"].player-open .nx-topbar-badge { border-color: #e50914; color: #fff; background: #e50914; font-size: 15px; }
html[data-tv="1"].player-open .nx-controls { padding: 54px var(--tv-gutter) 28px; transition: opacity 150ms ease; }
html[data-tv="1"].player-open .nx-progress-wrap { padding: 20px 0 25px; }
html[data-tv="1"].player-open #nxProgressBg { height: 10px; border-radius: 8px; background: rgba(255,255,255,.25); }
html[data-tv="1"].player-open .nx-progress-fill { background: #e50914; }
html[data-tv="1"].player-open .nx-progress-thumb { width: 20px; height: 20px; background: #e50914; }
html[data-tv="1"].player-open #nxProgressBg:focus { outline: 3px solid #fff !important; outline-offset: 7px; box-shadow: 0 0 0 11px rgba(229,9,20,.58) !important; }
html[data-tv="1"].player-open .nx-btn { width: 58px; height: 58px; border-radius: 6px; }
html[data-tv="1"].player-open .nx-btn svg { width: 26px; height: 26px; }
html[data-tv="1"].player-open .nx-time { color: #f5f5f5; font-size: 19px; }
html[data-tv="1"].player-open .nx-vol-slider,
html[data-tv="1"].player-open #nxPip { display: none !important; }
html[data-tv="1"].player-open .nx-bar { gap: 20px; }
html[data-tv="1"].player-open .nx-bar-left,
html[data-tv="1"].player-open .nx-bar-right { gap: 10px; }
html[data-tv="1"].player-open .nx-settings-panel,
html[data-tv="1"].player-open .nx-src-panel {
  color: #fff; background: #111; border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px; box-shadow: 0 16px 48px rgba(0,0,0,.72); font-size: 18px;
}
html[data-tv="1"].player-open .nx-src-panel { min-width: 360px; max-height: 58vh; overflow: auto; padding: 12px; }
html[data-tv="1"].player-open .nx-src-panel .player-src-item,
html[data-tv="1"].player-open .nx-src-panel .player-lang-btn { min-height: 52px; padding: 9px 14px; color: #eee; font-size: 17px; }
html[data-tv="1"].player-open .tv-seek-preview { color: #fff; background: #e50914; font-size: 19px; }
html[data-tv="1"].player-open .tv-seek-preview::after { background: #e50914; }
html[data-tv="1"].player-open .nx-btn:focus,
html[data-tv="1"].player-open .nx-topbar-back:focus,
html[data-tv="1"].player-open .player-src-item:focus,
html[data-tv="1"].player-open .player-lang-btn:focus {
  outline: 3px solid #fff !important; outline-offset: 4px !important; color: #fff;
  background: #e50914; box-shadow: 0 0 0 8px rgba(229,9,20,.58) !important;
}

/* Login is available when required; profile and account tools stay out of TV UI. */
html[data-tv="1"] .auth-modal .auth-card { width: min(660px,82vw); padding: 48px; background: #111; border: 1px solid rgba(255,255,255,.16); }
html[data-tv="1"] .auth-brand h2 { color: #fff; font-size: 38px; }
html[data-tv="1"] .auth-brand p { color: #ccc; font-size: 18px; }
html[data-tv="1"] .auth-tab { min-height: 54px; font-size: 18px; }
html[data-tv="1"] .auth-modal .field span:first-child { font-size: 17px; }
html[data-tv="1"] .auth-modal .field input { height: 58px; font-size: 20px; }
html[data-tv="1"] .auth-modal .auth-submit,
html[data-tv="1"] .auth-modal .btn-google { min-height: 58px; font-size: 19px; }
html[data-tv="1"] .auth-modal .modal-close { width: 52px; height: 52px; font-size: 20px; }
html[data-tv="1"] .gate-bar { padding: 26px var(--tv-gutter); }
html[data-tv="1"] .gate-title { font-size: 72px; }
html[data-tv="1"] .gate-lead { max-width: 820px; font-size: 23px; }
html[data-tv="1"] .gate-btn, html[data-tv="1"] .gate-signin { min-height: 60px; font-size: 20px; }

/* Bright, consistent focus; the selected card keeps its poster geometry. */
html[data-tv="1"] :focus-visible {
  outline: 3px solid #fff !important; outline-offset: 4px !important;
  box-shadow: 0 0 0 8px rgba(229,9,20,.62) !important;
}
html[data-tv="1"] .card:focus-visible { outline: none !important; box-shadow: none !important; }
html[data-tv="1"] .card:focus-visible .card-poster {
  outline: 3px solid #fff; outline-offset: 4px; box-shadow: 0 0 0 8px rgba(229,9,20,.62),0 18px 42px rgba(0,0,0,.68);
}
html[data-tv="1"] button, html[data-tv="1"] a, html[data-tv="1"] input, html[data-tv="1"] select { touch-action: manipulation; }
html[data-tv="1"] .toast {
  left: auto; right: var(--tv-gutter); top: calc(var(--nav-h) + 18px); bottom: auto;
  max-width: min(680px,70vw); padding: 15px 22px; border: 1px solid rgba(255,255,255,.18) !important;
  border-left: 4px solid #e50914 !important; border-radius: 6px; color: #fff !important; background: #111 !important; font-size: 18px;
}
html[data-tv="1"] .toast.show { transform: none; }

@media (max-height: 820px) {
  :root[data-tv="1"] { --nav-h: 74px; }
  html[data-tv="1"] .hero { height: 62vh; min-height: 470px; }
  html[data-tv="1"] .hero-content { padding-bottom: 42px; }
  html[data-tv="1"] .hero-title { font-size: clamp(52px,4.6vw,82px); }
  html[data-tv="1"] .hero-overview { font-size: 19px; }
  html[data-tv="1"] .section { margin-bottom: 38px; }
  html[data-tv="1"] #detailModal .detail-info { padding-top: 126px; }
  html[data-tv="1"] #detailModal .detail-backdrop { min-height: 560px; }
}
@media (max-width: 1365px) {
  :root[data-tv="1"] { --gutter: clamp(26px,3.5vw,48px); --tv-gutter: var(--gutter); }
  html[data-tv="1"] .nav-inner { grid-template-columns: minmax(120px,1fr) auto minmax(70px,.5fr); gap: 14px; }
  html[data-tv="1"] .brand-logo { width: 125px; max-width: 125px; }
  html[data-tv="1"] .nav-links { gap: 4px; }
  html[data-tv="1"] .nav-link { padding-inline: 10px; font-size: 18px; }
  html[data-tv="1"] .nav-search-pill { padding-inline: 10px; font-size: 18px; }
  html[data-tv="1"] .nav-search-pill-text { display: none; }
  html[data-tv="1"] .account-btn { min-height: 48px; padding: 0 12px; font-size: 16px; }
  html[data-tv="1"] .card { flex-basis: 205px; width: 205px; }
  html[data-tv="1"] .card:focus { flex-basis: 205px; width: 205px; }
  html[data-tv="1"] .cine-hero-inner { width: min(760px,68vw); }
  html[data-tv="1"] #detailModal .detail-info { width: min(800px,62vw); }
}
@media (max-width: 1024px) {
  html[data-tv="1"] .brand { display: none; }
  html[data-tv="1"] .nav-inner { display: flex; justify-content: center; }
  html[data-tv="1"] .nav-links { margin-right: 110px; }
  html[data-tv="1"] .nav-actions { right: var(--tv-gutter); }
  html[data-tv="1"] .account-btn { width: 52px; min-width: 52px; padding: 0; overflow: hidden; font-size: 0; }
  html[data-tv="1"] .account-btn svg { flex: 0 0 auto; }
  html[data-tv="1"] .hero { min-height: 520px; }
  html[data-tv="1"] .hero-title { max-width: 70vw; }
  html[data-tv="1"] .hero-overview { max-width: 62vw; }
  html[data-tv="1"] #detailModal .detail-info { width: 68vw; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-tv="1"] *, html[data-tv="1"] *::before, html[data-tv="1"] *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
}

