/* FilmList premium shell. The video player and its controls are intentionally
   excluded from this file; playback styling remains in site.css unchanged. */
:root {
  --bg: #08090c;
  --panel: #12141a;
  --panel2: #191c24;
  --line: #292c34;
  --ink: #f7f6f2;
  --muted: #a0a3ad;
  --gold: #e7c16f;
  --red: #e7c16f;
  --green: #74d2a8;
}
html { background: var(--bg); scroll-padding-top: 88px; }
body { min-width: 320px; background: #08090c; color: var(--ink); }
main { width: 100%; min-height: calc(100vh - 150px); overflow: clip; }
.topbar {
  height: 76px; padding-inline: clamp(18px, 4.5vw, 76px); gap: 28px;
  background: rgba(8, 9, 12, .9); border-bottom: 1px solid #ffffff12;
}
.brand { flex: 0 0 auto; letter-spacing: .12em; }
.brand-mark { background: var(--gold); color: #17140e; box-shadow: 0 0 22px #e7c16f26; }
.topbar nav { gap: clamp(14px, 2.2vw, 32px); font-size: 13px; }
.topbar nav a, .topbar nav button { transition: color .18s ease, background .18s ease; }
.topbar nav a:hover, footer a:hover { color: var(--gold); }
.topbar nav a:focus-visible, .mobile-menu summary:focus-visible, .mobile-menu a:focus-visible,
.mobile-dock a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 5px; }
.nav-search::before { content: '⌕'; display: inline-block; margin-right: 6px; font-size: 18px; vertical-align: -1px; }
.mobile-menu, .mobile-dock { display: none; }
footer { padding: 24px clamp(18px, 4.5vw, 76px); background: #08090c; border-top-color: var(--line); }

/* Home: cinematic editorial hero. */
.home-feature-layout {
  width: min(1680px, 100%);
  margin: 0 auto; padding: 24px clamp(16px, 3.5vw, 52px) 0;
}
.hero.library-hero {
  min-width: 0; min-height: clamp(450px, 39vw, 610px); padding: clamp(34px, 5vw, 76px);
  align-items: center; border: 1px solid #ffffff14; border-radius: 18px;
  background: linear-gradient(90deg, #07080bf2 0%, #08090bd9 35%, #090a0d45 76%, #090a0d1a 100%),
              linear-gradient(0deg, #08090c9e, transparent 56%), #171920;
  box-shadow: 0 25px 75px #0008;
}
.hero.library-hero:after {
  background: linear-gradient(90deg, #08090cf2 0%, #08090ccc 35%, #08090c20 78%),
              linear-gradient(0deg, #08090c9c, transparent 48%);
}
.hero-backdrop { opacity: .66; object-position: center 34%; }
.hero-copy { max-width: min(650px, 76%); }
.hero .eyebrow, .page-heading .eyebrow, .detail .eyebrow { letter-spacing: .2em; }
.seo-breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px clamp(20px,5vw,72px) 0;color:var(--muted);font-size:12px;line-height:1.5}.seo-breadcrumbs a{color:var(--muted);text-decoration:none}.seo-breadcrumbs a:hover,.seo-breadcrumbs [aria-current="page"]{color:var(--gold)}.breadcrumb-separator{color:#777986}
.player-preview-gate{position:absolute;inset:0;z-index:30;display:grid;place-items:center;padding:20px;background:#07080ce8;backdrop-filter:blur(8px)}.player-preview-gate[hidden]{display:none}.player-preview-card{width:min(440px,100%);padding:clamp(22px,5vw,38px);border:1px solid #ffffff24;border-radius:16px;background:#171922;text-align:center;box-shadow:0 24px 80px #0009}.player-preview-card h2{margin:8px 0 12px;font-size:clamp(23px,4vw,32px)}.player-preview-card>p:not(.eyebrow){color:#c3c5cd}.player-preview-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:22px}.player-preview-actions .button{min-height:46px}
.hero-meta { min-height: 1.5em; color: var(--gold); font-size: 13px; font-weight: 650; letter-spacing: .035em; }
.library-hero h1 { max-width: 760px; margin: 12px 0 16px; font-size: clamp(42px, 6.2vw, 84px); line-height: .99; text-wrap: balance; }
.library-hero .hero-copy > p:not(.eyebrow) { max-width: 570px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-actions .button { min-width: 126px; }
.hero-index { position: absolute; right: 25px; bottom: 15px; color: #ffffff4f; font: 700 clamp(68px, 12vw, 164px)/1 Georgia, serif; letter-spacing: -.08em; }
.collection-count { display: inline-block; margin-top: 24px; color: #c4c5cc; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.search { width: min(780px, calc(100% - 32px)); margin: 28px auto 20px; }
.search input { min-width: 0; min-height: 52px; border-radius: 999px; border-color: #343741; background: #15171d; }
.search button { min-width: 112px; border-radius: 999px; }
.chips { width: min(1680px, calc(100% - 32px)); gap: 8px; margin-bottom: 18px; }
.chip { min-height: 36px; display: inline-flex; align-items: center; padding: 7px 14px; border-color: #32353e; background: #111318; }
.chip:hover { color: #101010; background: var(--gold); border-color: var(--gold); }
.home-catalog { width: min(1680px, 100%); margin: 0 auto; }
.home-catalog .shelf { padding: 22px clamp(16px, 3.5vw, 52px) 30px; }
.home-catalog .section-head { align-items: center; justify-content: space-between; margin-bottom: 13px; }
.home-catalog .section-head h2 { font-size: clamp(19px, 2vw, 25px); letter-spacing: -.035em; }
.home-catalog .section-head span { margin-left: auto; }
.home-catalog .poster-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(130px, 12.2vw, 190px);
  grid-template-columns: none; gap: clamp(11px, 1.35vw, 20px); max-width: none;
  overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: #56514a transparent; padding: 2px 2px 12px;
}
.home-catalog .poster-card { scroll-snap-align: start; }
.poster { border-color: #ffffff18; border-radius: 8px; background: #17191f; box-shadow: 0 12px 24px #0005; }
.poster img { transition: transform .32s ease, filter .32s ease; }
.poster-card:hover .poster img { transform: scale(1.04); filter: brightness(1.08); }
.poster-title { font-size: 13px; }
.poster-meta { font-size: 11px; }
.filter-bar { margin: 8px 0 12px; }
.filter-bar select { width: auto; min-width: 150px; border-radius: 9px; }

/* Library, search, account, details, episode and administration pages. */
.page-heading { width: min(1500px, 100%); margin-inline: auto; padding-top: clamp(40px, 6vw, 72px); }
.page-heading h1 { letter-spacing: -.055em; }
.library-tiles { width: min(1500px, 100%); margin-inline: auto; }
.library-tile { min-height: 170px; border-color: #2a2d34; background: linear-gradient(145deg, #191b21, #101115); }
.library-tile:hover { border-color: var(--gold); }
.poster-grid { width: min(1500px, calc(100% - 40px)); margin-inline: auto; }
.detail { min-height: clamp(540px, 58vw, 740px); padding: clamp(32px, 6vw, 90px) clamp(18px, 7vw, 112px); }
.detail-backdrop { opacity: .58; object-position: center 30%; }
.detail:after { background: linear-gradient(0deg, #08090c 0%, #08090cdd 24%, #08090c48 82%), linear-gradient(90deg, #08090c99, transparent 90%); }
.detail-copy { width: min(860px, 100%); }
.detail h1 { letter-spacing: -.055em; text-wrap: balance; }
.summary { max-width: 720px; line-height: 1.7; }
.action-row .button, .action-row button { min-height: 50px; }
.episode-list { width: min(1240px, 100%); margin-inline: auto; }
.episode-list h2 { font-size: clamp(22px, 3vw, 30px); }
.episode-list a { align-items: center; min-height: 76px; transition: background .18s ease; }
.episode-list a:hover { background: #ffffff08; }
.notice, .auth-card { border-color: #2d3039; background: linear-gradient(145deg, #17191f, #0d0e12); }
.admin-grid { width: min(1540px, 100%); margin-inline: auto; }
.admin-tabs { position: sticky; top: 76px; z-index: 10; background: #0b0c0fef; backdrop-filter: blur(16px); }
.admin-tab-content { width: min(1540px, 100%); margin-inline: auto; }
.panel { border-color: #2b2e36; background: linear-gradient(145deg, #16181e, #0f1014); }
.panel h2 { letter-spacing: -.025em; }
.table-scroll { border: 1px solid var(--line); border-radius: 10px; }
.table-scroll table { min-width: 640px; }
.empty { color: #b3b5bd; }

@media (min-width: 1600px) {
  .hero.library-hero { min-height: 640px; }
}
@media (max-width: 1100px) {
  .home-feature-layout { padding-inline: 22px; }
  .hero.library-hero { min-height: 500px; padding: clamp(28px, 4vw, 48px); }
  .hero-copy { max-width: 82%; }
  .poster-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 820px) {
  .hero.library-hero { min-height: clamp(390px, 60vw, 510px); }
  .admin-tabs { top: 66px; }
  .detail { min-height: 570px; }
}
@media (max-width: 700px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; height: 64px; min-height: 64px; align-items: center; padding: 0 16px; gap: 12px; }
  .topbar > nav { display: none; }
  .brand { font-size: 12px; }
  .brand-mark { width: 35px; height: 35px; font-size: 22px; }
  .brand small { font-size: 8px; }
  .mobile-menu { display: block; position: relative; margin-left: auto; }
  .mobile-menu summary { display: grid; place-items: center; width: 42px; height: 42px; list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; background: #17191f; color: var(--ink); font-size: 20px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; top: 50px; right: 0; z-index: 40; display: grid; min-width: 210px; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #15171c; box-shadow: 0 18px 45px #000b; }
  .mobile-menu nav a, .mobile-menu nav button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: #e7e7e6; }
  .mobile-menu nav a:hover { background: #ffffff0b; }
  .mobile-menu .nav-form { padding: 0 4px; }
  .mobile-menu .nav-form button { width: 100%; justify-content: flex-start; }
  .mobile-dock { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #ffffff16; background: #101116f5; backdrop-filter: blur(18px); }
  body.page-has-player { padding-bottom: 0; }
  body.page-has-player .mobile-dock { display: none; }
  .mobile-dock a { display: grid; justify-items: center; align-content: center; min-width: 0; min-height: 48px; gap: 1px; color: #b8bac2; font-size: 19px; line-height: 1.15; }
  .mobile-dock a span { overflow: hidden; max-width: 100%; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-dock a[href="/"], .mobile-dock a[href="/library"] { color: #f2d18a; }
  footer { padding: 18px 16px; font-size: 11px; }
  .home-feature-layout { padding: 12px 12px 0; }
  .hero.library-hero { min-height: clamp(365px, 112vw, 480px); padding: 25px 22px; border-radius: 13px; }
  .hero-backdrop { object-position: 60% center; }
  .hero.library-hero:after { background: linear-gradient(90deg, #08090cee, #08090ca6 65%, #08090c55), linear-gradient(0deg, #08090cd9, transparent 76%); }
  .hero-copy { max-width: 100%; }
  .library-hero h1 { max-width: 100%; font-size: clamp(37px, 10vw, 52px); }
  .library-hero .hero-copy > p:not(.eyebrow) { -webkit-line-clamp: 3; font-size: 14px; line-height: 1.55; }
  .hero-index { right: 12px; bottom: 8px; font-size: 70px; }
  .collection-count { margin-top: 16px; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .button { min-height: 46px; min-width: 112px; padding-inline: 16px; }
  .search { width: calc(100% - 24px); margin: 19px auto 14px; gap: 7px; }
  .search input { min-height: 48px; padding-inline: 14px; }
  .search button { min-width: 83px; min-height: 48px; padding-inline: 12px; }
  .chips { width: calc(100% - 24px); flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 7px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .home-catalog .shelf { padding: 17px 12px 25px; }
  .home-catalog .poster-grid { grid-auto-columns: clamp(122px, 37vw, 156px); gap: 11px; }
  .poster-title { font-size: 12px; }
  .page-heading { padding: 37px 16px 14px; }
  .page-heading h1 { font-size: clamp(32px, 9vw, 48px); }
  .poster-grid { width: calc(100% - 24px); grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 12px; }
  .library-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 12px 12px 34px; gap: 10px; }
  .library-tile { min-height: 130px; padding: 15px; overflow-wrap: anywhere; }
  .detail { min-height: 540px; padding: 30px 18px 36px; }
  .detail h1 { font-size: clamp(37px, 10vw, 56px); }
  .summary { font-size: 14px; }
  .action-row { display: flex; }
  .action-row > *, .action-row form { width: 100%; }
  .episode-list { padding: 10px 16px 42px; }
  .episode-list a { display: grid; gap: 4px; padding: 15px 8px; }
  .episode-list span { display: block; margin: 0; font-size: 12px; }
  .auth-card, .notice { margin: 30px auto 44px; padding: 22px 18px; }
  .admin-grid { padding: 8px 12px 20px; }
  .panel { margin: 10px 12px 18px; padding: 16px; }
  .admin-grid .panel { margin: 0; }
  .admin-tabs { top: 64px; padding: 8px 12px; }
  .admin-tab-button { min-height: 42px; }
  .admin-tab-pane#admin-tab-config:not([hidden]) { grid-template-columns: minmax(0,1fr); }
  .admin-tab-pane#admin-tab-config .panel { margin-inline: 12px; }
  .filter-bar { gap: 8px; }
  .filter-bar label { min-width: 0; flex: 1 1 135px; }
  .filter-bar select { width: 100%; min-width: 0; }
  .table-scroll table { min-width: 620px; }
}
@media (max-width: 380px) {
  .brand { gap: 7px; letter-spacing: .08em; }
  .brand-mark { width: 32px; height: 32px; }
  .hero.library-hero { padding-inline: 18px; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { min-width: 0; flex: 1 1 auto; padding-inline: 12px; font-size: 13px; }
  .library-tiles { grid-template-columns: minmax(0,1fr); }
  .watching-item { grid-template-columns: 38px minmax(0,1fr) 22px; }
  .watching-item > img { width: 38px; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-tabs { gap: 5px; }
  .admin-tab-button { padding-inline: 10px; font-size: 11px; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 900px) {
  .topbar { height: 54px; min-height: 54px; }
  .hero.library-hero { min-height: 310px; }
  .detail { min-height: 390px; }
  .mobile-dock a { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar, .hero, .poster img, .poster-card, .library-tile, .watching-item,
  .admin-tab-pane, .admin-tab-button, .mobile-menu nav, .mobile-dock {
    scroll-behavior: auto !important; animation: none !important; transition: none !important;
  }
}
