:root {
  --ink: #0b0d10;
  --ink-2: #101319;
  --graphite: #151922;
  --slate: #1c222d;
  --line: rgba(242, 238, 230, 0.11);
  --paper: #f2eee6;
  --muted: #9aa2af;
  --coral: #ff5a47;
  --coral-dark: #c94233;
  --sage: #9ab6a1;
  --yellow: #e9c96b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 18px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: 'DM Sans', sans-serif; font-size: 15px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(255, 90, 71, .62); outline-offset: 3px; }

.app-shell { min-height: 100vh; overflow: hidden; }
.topbar { align-items: center; backdrop-filter: blur(18px); background: rgba(11, 13, 16, .82); border-bottom: 1px solid rgba(242,238,230,.08); display: flex; gap: 28px; justify-content: space-between; left: 0; padding: 18px clamp(18px, 4vw, 54px); position: sticky; top: 0; z-index: 30; }
.brand { align-items: center; display: inline-flex; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { align-items: center; background: var(--coral); border-radius: 8px 8px 8px 2px; color: var(--ink); display: inline-flex; height: 25px; justify-content: center; position: relative; transform: rotate(-7deg); width: 25px; }
.brand-mark::after { border-bottom: 5px solid transparent; border-left: 8px solid var(--ink); border-top: 5px solid transparent; content: ''; margin-left: 2px; }
.nav { align-items: center; display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 13px; font-weight: 600; transition: color .18s ease; }
.nav a:hover, .nav a.active { color: var(--paper); }
.top-actions { align-items: center; display: flex; gap: 10px; }
.icon-btn, .ghost-btn, .pill-btn { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--paper); display: inline-flex; gap: 8px; justify-content: center; padding: 10px 14px; transition: background .18s ease, border .18s ease, transform .18s ease; }
.icon-btn { border: 0; padding: 9px; }
.ghost-btn:hover, .pill-btn:hover, .icon-btn:hover { background: rgba(242,238,230,.08); border-color: rgba(242,238,230,.24); transform: translateY(-1px); }
.primary-btn { align-items: center; background: var(--coral); border: 0; border-radius: 999px; color: var(--ink); display: inline-flex; font-weight: 700; gap: 10px; justify-content: center; padding: 13px 20px; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.primary-btn:hover { background: #ff7667; box-shadow: 0 10px 32px rgba(255,90,71,.22); transform: translateY(-2px); }
.primary-btn:disabled { background: var(--slate); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }
.mobile-menu { display: none; }

main { margin: 0 auto; max-width: var(--max); }
.hero { min-height: 610px; padding: 84px clamp(18px, 4vw, 54px) 74px; position: relative; }
.hero-art { background: linear-gradient(90deg, rgba(11,13,16,.98) 0%, rgba(11,13,16,.82) 37%, rgba(11,13,16,.16) 75%, rgba(11,13,16,.68) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 25%), var(--hero-image) center/cover; inset: 0; opacity: .92; position: absolute; z-index: -1; }
.hero::after { background: radial-gradient(circle at 66% 38%, rgba(255,90,71,.2), transparent 25%), linear-gradient(90deg, transparent, rgba(11,13,16,.42)); content: ''; inset: 0; pointer-events: none; position: absolute; z-index: -1; }
.hero-content { max-width: 660px; padding-top: 50px; }
.eyebrow { color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(48px, 8vw, 92px); letter-spacing: -.075em; line-height: .91; margin: 18px 0 24px; max-width: 720px; }
.hero h1 span { color: var(--coral); }
.hero p { color: #c8c5bf; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; margin: 0 0 28px; max-width: 560px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 12px; gap: 14px; margin-top: 28px; }
.hero-meta strong { color: var(--paper); }

.section { padding: 30px clamp(18px, 4vw, 54px) 30px; }
.section-heading { align-items: end; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 18px; }
.section-heading h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.05em; margin: 4px 0 0; }
.section-heading p { color: var(--muted); margin: 0; }
.index-label { color: var(--coral); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.text-link { color: var(--muted); font-size: 13px; font-weight: 600; }
.text-link:hover { color: var(--paper); }
.rail { display: grid; gap: 16px; grid-auto-columns: minmax(170px, 1fr); grid-auto-flow: column; grid-template-rows: 1fr; overflow-x: auto; padding: 4px 4px 16px; scrollbar-color: var(--slate) transparent; }
.movie-card { min-width: 0; }
.poster-wrap { aspect-ratio: 2 / 3; background: var(--slate); border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,.22); overflow: hidden; position: relative; }
.poster-wrap img { height: 100%; object-fit: cover; transition: transform .25s ease, filter .25s ease; width: 100%; }
.movie-card:hover .poster-wrap img, .movie-card:focus-within .poster-wrap img { filter: saturate(1.08); transform: scale(1.04); }
.poster-overlay { align-items: end; background: linear-gradient(0deg, rgba(0,0,0,.82), transparent 55%); display: flex; inset: 0; opacity: 0; padding: 12px; position: absolute; transition: opacity .2s ease; }
.movie-card:hover .poster-overlay, .movie-card:focus-within .poster-overlay { opacity: 1; }
.poster-overlay .primary-btn { font-size: 12px; padding: 10px 12px; width: 100%; }
.card-info { padding: 11px 2px 2px; }
.card-title { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { color: var(--muted); font-size: 11px; margin-top: 6px; }
.card-meta strong { color: var(--yellow); }
.rights-badge { background: rgba(154,182,161,.13); border: 1px solid rgba(154,182,161,.35); border-radius: 999px; color: var(--sage); display: inline-flex; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 5px 8px; text-transform: uppercase; }
.rights-badge.discovery { background: rgba(242,238,230,.05); border-color: var(--line); color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { background: var(--graphite); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; padding: 10px 14px; transition: background .18s ease, color .18s ease, border .18s ease; }
.chip:hover, .chip.active { background: rgba(255,90,71,.12); border-color: rgba(255,90,71,.42); color: var(--paper); }

.notice { align-items: start; background: linear-gradient(120deg, rgba(255,90,71,.11), rgba(154,182,161,.08)); border: 1px solid rgba(255,90,71,.2); border-radius: var(--radius); display: flex; gap: 16px; margin: 18px clamp(18px, 4vw, 54px); padding: 18px 20px; }
.notice-mark { color: var(--coral); font-size: 20px; }
.notice p { color: #c8c5bf; font-size: 13px; line-height: 1.55; margin: 0; }
.notice strong { color: var(--paper); }

.page-header { padding: 64px clamp(18px, 4vw, 54px) 30px; }
.page-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(40px, 6vw, 72px); letter-spacing: -.07em; line-height: .98; margin: 10px 0 14px; }
.page-header p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 620px; }
.filter-bar { align-items: center; background: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 9px; margin: 10px clamp(18px, 4vw, 54px) 20px; padding: 12px; }
.search-field { background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; color: var(--paper); min-width: 220px; padding: 11px 15px; }
.select-field { background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; color: var(--paper); padding: 11px 15px; }
.catalog-grid { display: grid; gap: 24px 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0 clamp(18px, 4vw, 54px) 44px; }

.detail-hero { min-height: 560px; overflow: hidden; padding: 70px clamp(18px, 4vw, 54px); position: relative; }
.detail-backdrop { background: linear-gradient(90deg, var(--ink) 4%, rgba(11,13,16,.8) 38%, rgba(11,13,16,.28) 72%, var(--ink) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 30%), var(--detail-image) center/cover; filter: saturate(.78); inset: 0; opacity: .64; position: absolute; z-index: -1; }
.detail-layout { align-items: center; display: grid; gap: clamp(24px, 5vw, 70px); grid-template-columns: minmax(170px, 270px) minmax(0, 650px); max-width: 1020px; }
.detail-poster { border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(-2.5deg); }
.detail-poster img { display: block; width: 100%; }
.detail-copy h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(42px, 7vw, 78px); letter-spacing: -.075em; line-height: .92; margin: 14px 0 17px; }
.detail-copy p { color: #c8c5bf; font-size: 16px; line-height: 1.65; max-width: 620px; }
.detail-meta { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 12px; gap: 10px 16px; margin: 12px 0 22px; }
.detail-meta strong { color: var(--paper); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.detail-availability { border: 1px solid rgba(242,238,230,.14); border-radius: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 18px; padding: 12px 14px; }
.detail-availability.available { background: rgba(154,182,161,.1); border-color: rgba(154,182,161,.3); color: var(--sage); }
.detail-availability.discovery { background: rgba(242,238,230,.05); }
.detail-availability strong { color: var(--paper); }
.detail-availability.available strong { color: var(--sage); }
.detail-facts { border-top: 1px solid var(--line); display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 26px; padding-top: 20px; }
.fact-label { color: var(--muted); display: block; font-size: 10px; letter-spacing: .12em; margin-bottom: 5px; text-transform: uppercase; }
.fact-value { font-size: 13px; }
 .detail-section { padding: 4px clamp(18px, 4vw, 54px) 36px; }
 .trailer-card { align-items: center; background: linear-gradient(135deg, var(--graphite), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 16px; justify-content: space-between; min-height: 120px; padding: 22px; }
.trailer-card.is-playing { align-items: stretch; flex-direction: column; }
.trailer-prompt { align-items: center; display: flex; flex: 1; gap: 16px; min-width: 0; }
.trailer-copy { min-width: 0; }
.trailer-copy h2 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; margin: 6px 0 4px; }
.trailer-message { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.trailer-message.unavailable { color: #ffb0a7; }
.trailer-card > .primary-btn, .trailer-card > .ghost-btn { flex-shrink: 0; }
 .trailer-art { align-items: center; background: linear-gradient(135deg, rgba(255,90,71,.5), rgba(130,132,255,.25)); border-radius: 12px; display: flex; font-size: 28px; height: 74px; justify-content: center; width: 115px; }
 .trailer-frame { aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; flex: 1 1 640px; min-height: 280px; width: 100%; }

.player-shell { padding: 58px clamp(18px, 4vw, 54px) 50px; }
.player-frame { background: #000; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.player-frame video { display: block; max-height: 72vh; width: 100%; }
.player-loading { background: rgba(0,0,0,.58); color: #fff; inset: 0; opacity: 0; pointer-events: none; position: absolute; transition: opacity .2s ease; display: grid; place-items: center; font-size: 13px; }
.player-loading.visible { opacity: 1; }
.player-status { color: var(--muted); font-size: 12px; margin: 10px 2px 0; min-height: 18px; }
.player-status.error { color: #ff9c91; }
.player-status.warning { color: #f1c98b; }
.player-copy { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; padding: 18px 0; }
.player-copy h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 4vw, 44px); letter-spacing: -.05em; margin: 0 0 7px; }
.player-copy p { color: var(--muted); margin: 0; }
.player-quality { color: var(--muted); display: inline-flex; font-size: 12px; gap: 8px; margin-top: 12px; }
.player-quality select { background: var(--graphite); border: 1px solid var(--line); border-radius: 8px; color: var(--paper); padding: 7px 10px; }
.player-note { background: rgba(154,182,161,.1); border: 1px solid rgba(154,182,161,.3); border-radius: 12px; color: var(--sage); font-size: 12px; line-height: 1.5; max-width: 360px; padding: 12px 14px; }

.info-page { max-width: 880px; padding: 72px clamp(18px, 4vw, 54px) 90px; }
.info-page h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(42px, 7vw, 76px); letter-spacing: -.075em; line-height: .95; margin: 10px 0 24px; }
.info-page h2 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; margin: 38px 0 10px; }
.info-page p, .info-page li { color: #c8c5bf; line-height: 1.7; }
.info-page ul { padding-left: 20px; }

.admin-shell { padding: 60px clamp(18px, 4vw, 54px) 80px; }
.admin-header { align-items: end; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 26px; }
.admin-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(38px, 6vw, 64px); letter-spacing: -.07em; margin: 9px 0 0; }
.admin-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.stat-card, .panel { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-card span { color: var(--muted); display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.stat-card strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 32px; margin-top: 12px; }
.admin-table { border-collapse: collapse; width: 100%; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 13px 8px; text-align: left; }
.admin-table th { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { font-size: 13px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field { display: grid; gap: 6px; }
.form-field label { color: var(--muted); font-size: 12px; }
.form-field input, .form-field textarea, .form-field select { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; color: var(--paper); padding: 11px 12px; }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-field.full { grid-column: 1 / -1; }

.empty-state { background: var(--graphite); border: 1px dashed rgba(242,238,230,.2); border-radius: var(--radius); margin: 20px clamp(18px, 4vw, 54px) 60px; padding: 42px 24px; text-align: center; }
.empty-state h2 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; margin: 0 0 8px; }
.empty-state p { color: var(--muted); line-height: 1.6; margin: 0 auto 18px; max-width: 480px; }
.footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; margin: 40px clamp(18px, 4vw, 54px) 0; padding: 26px 0 34px; }
.footer small { color: var(--muted); line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); font-size: 12px; }
.toast { animation: toast-in .24s ease-out; background: var(--paper); border-radius: 12px; bottom: 22px; box-shadow: var(--shadow); color: var(--ink); font-size: 13px; font-weight: 600; max-width: min(360px, calc(100vw - 36px)); padding: 13px 15px; position: fixed; right: 18px; z-index: 50; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) { .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .nav { gap: 12px; } }
@media (max-width: 760px) {
  .topbar { gap: 12px; padding: 14px 18px; }
  .nav { background: var(--graphite); border: 1px solid var(--line); border-radius: 14px; display: none; flex-direction: column; gap: 16px; left: 18px; padding: 18px; position: absolute; right: 18px; top: 62px; }
  .nav.open { display: flex; }
  .mobile-menu { display: inline-flex; }
  .top-actions .ghost-btn { display: none; }
  .hero { min-height: 620px; padding-top: 52px; }
  .hero-art { background-position: 64% center; }
  .hero-content { padding-top: 20px; }
  .hero h1 { font-size: clamp(50px, 16vw, 74px); }
  .section { padding-top: 24px; }
  .rail { grid-auto-columns: minmax(144px, 42vw); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-header { padding-top: 48px; }
  .detail-hero { padding-top: 46px; }
  .detail-layout { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
  .detail-copy h1 { font-size: clamp(32px, 10vw, 52px); }
  .detail-copy p { font-size: 14px; }
  .detail-facts { grid-template-columns: 1fr 1fr; }
  .detail-actions { margin: 18px 0; }
  .admin-header { align-items: start; flex-direction: column; }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { overflow-x: auto; }
  .admin-table { min-width: 560px; }
  .trailer-card:has(.trailer-frame) { align-items: stretch; flex-direction: column; }
  .trailer-frame { min-height: 210px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
