:root {
  color-scheme: dark;
  --bg: #101315;
  --surface: #171b1e;
  --surface-2: #202529;
  --line: #30363a;
  --text: #f5f6f6;
  --muted: #aab1b5;
  --accent: #ff6b4a;
  --accent-hover: #ff8065;
  --mint: #7ad8b1;
  --amber: #f0c56b;
  --content: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  min-width: 320px;
}
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto 0;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(18px, 4vw, 64px);
  background: rgba(10, 12, 13, .82);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-mark { width: 27px; height: 27px; border: 2px solid var(--accent); display: grid; place-items: center; transform: rotate(45deg); border-radius: 5px; }
.brand-mark span { width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.primary-nav { display: flex; align-items: stretch; gap: 26px; height: 100%; }
.primary-nav a { display: grid; place-items: center; color: #c7cccf; font-size: 14px; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav a.active { color: #fff; border-bottom-color: var(--accent); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search-button { border: 0; background: transparent; display: flex; align-items: center; gap: 9px; color: #d8dcde; cursor: pointer; padding: 9px; }
.search-glyph { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.search-glyph::after { content: ""; width: 7px; height: 2px; background: currentColor; position: absolute; right: -5px; bottom: -2px; transform: rotate(45deg); border-radius: 2px; }
.sign-in-button { min-height: 38px; display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 5px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; background: rgba(28,32,34,.7); color: #eef0f1; font-size: 13px; font-weight: 700; }
.sign-in-button:hover { border-color: rgba(255,255,255,.5); background: rgba(43,48,51,.86); }
.guest-avatar { width: 28px; height: 28px; position: relative; display: block; overflow: hidden; border-radius: 50%; background: #32383c; border: 1px solid #51595e; }
.guest-avatar::before { content: ""; position: absolute; width: 8px; height: 8px; left: 9px; top: 5px; border-radius: 50%; background: #aeb5b9; }
.guest-avatar span { position: absolute; width: 17px; height: 9px; left: 5px; bottom: 3px; border-radius: 10px 10px 5px 5px; background: #aeb5b9; }

.hero { position: relative; height: min(72vh, 720px); min-height: 570px; overflow: hidden; background: #141719; }
.hero-image { position: absolute; inset: 0; background: url('/assets/hero.png') center center / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: rgba(5, 7, 9, .42); }
.hero-content { position: relative; z-index: 2; padding: 145px clamp(20px, 6vw, 92px) 100px; max-width: 720px; }
.hero-label, .section-kicker { margin: 0 0 10px; color: var(--mint); text-transform: uppercase; font-size: 12px; font-weight: 750; }
.hero-label { display: flex; align-items: center; gap: 9px; }
.hero-label span { width: 22px; height: 2px; background: var(--accent); }
.hero h1 { margin: 0 0 13px; font-size: 58px; line-height: 1.02; max-width: 650px; }
.metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: #e0e4e5; font-size: 14px; }
.metadata span + span::before { content: "•"; color: #737b7f; margin-right: 9px; }
.metadata .quality::before { display: none; }
.quality { border: 1px solid rgba(255,255,255,.42); border-radius: 3px; padding: 1px 5px; font-size: 11px; font-weight: 750; }
.hero-copy { max-width: 590px; color: #e0e3e4; line-height: 1.62; font-size: 16px; margin: 18px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-button, .secondary-button, .icon-command {
  min-height: 43px; border: 0; border-radius: 6px; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.primary-button { padding: 0 20px; background: var(--accent); color: #161616; }
.primary-button:hover { background: var(--accent-hover); }
.secondary-button { padding: 0 18px; color: #fff; background: rgba(27,30,32,.74); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.secondary-button:hover { background: rgba(50,54,57,.86); }
.secondary-button.light { background: #f5f6f6; color: #16191b; border: 0; }
.content-band { max-width: var(--content); margin: 0 auto; padding: 44px clamp(18px, 4vw, 58px); }
.continue-band { padding-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.section-kicker { color: var(--amber); margin-bottom: 6px; }
.quiet-button { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; cursor: pointer; font-size: 21px; }
.quiet-button:hover { border-color: #70787d; }
.media-row { display: grid; grid-auto-flow: column; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #4e565b transparent; padding: 2px 2px 13px; }
.landscape-row { grid-auto-columns: minmax(300px, 1fr); gap: 16px; }
.landscape-card { min-width: 0; outline: none; cursor: pointer; }
.landscape-art { height: 184px; border-radius: 6px 6px 0 0; background-color: #222; position: relative; background-repeat: no-repeat; overflow: hidden; }
.episode { position: absolute; left: 11px; top: 11px; background: rgba(9,11,12,.78); border-radius: 4px; padding: 5px 8px; font-size: 11px; }
.round-play, .poster-play { position: absolute; border: 0; background: rgba(245,246,246,.92); color: #111; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .18s ease, transform .18s ease; }
.round-play { inset: 50% auto auto 50%; transform: translate(-50%, -42%); width: 46px; height: 46px; border-radius: 50%; padding-left: 4px; }
.landscape-card:hover .round-play, .landscape-card:focus .round-play { opacity: 1; transform: translate(-50%, -50%); }
.landscape-copy { padding: 10px 2px 0; display: flex; justify-content: space-between; gap: 12px; }
.landscape-copy strong { font-size: 14px; }
.landscape-copy span { color: var(--muted); font-size: 12px; }

.poster-row { grid-auto-columns: minmax(146px, 1fr); gap: 15px; }
.poster-card { min-width: 0; cursor: pointer; outline: none; }
.poster-art { aspect-ratio: 2 / 3; border-radius: 6px; position: relative; background-color: #25292c; background-repeat: no-repeat; overflow: hidden; border: 1px solid transparent; transition: transform .18s ease, border-color .18s ease; }
.poster-card:hover .poster-art, .poster-card:focus .poster-art { transform: translateY(-4px); border-color: #6a7175; }
.poster-card h3 { margin: 10px 0 3px; font-size: 14px; }
.poster-card p { margin: 0; color: var(--muted); font-size: 12px; }
.quality-badge { position: absolute; top: 9px; right: 9px; padding: 3px 6px; background: rgba(9,11,12,.82); border: 1px solid rgba(255,255,255,.24); border-radius: 3px; font-size: 9px; font-weight: 750; }
.poster-play { width: 42px; height: 42px; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -42%); padding-left: 3px; }
.poster-card:hover .poster-play, .poster-card:focus .poster-play { opacity: 1; transform: translate(-50%, -50%); }

.art-1, .art-2, .art-3, .art-4, .art-5, .art-6 { background-image: url('/assets/catalog.png'); background-size: 300% auto; }
.art-1 { background-position: 0% 0%; }
.art-2 { background-position: 50% 0%; }
.art-3 { background-position: 100% 0%; }
.art-4 { background-position: 0% 100%; }
.art-5 { background-position: 50% 100%; }
.art-6 { background-position: 100% 100%; }

.feature-band { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); background: #e7e0d2; color: #171a1b; cursor: pointer; outline: 0; }
.feature-art { min-height: 390px; background-size: 300% auto; background-repeat: no-repeat; }
.feature-copy { align-self: center; padding: 52px clamp(28px, 6vw, 92px); max-width: 650px; }
.feature-copy h2 { margin: 0 0 15px; font-size: 36px; }
.feature-copy p:not(.section-kicker) { margin: 0 0 24px; color: #3d4244; line-height: 1.65; }
.compact-band { padding-bottom: 70px; }
.collection-list { border-top: 1px solid var(--line); }
.collection-list button { width: 100%; min-height: 78px; padding: 10px 2px; display: grid; grid-template-columns: 94px 1fr 30px; align-items: center; gap: 16px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; }
.collection-list button:hover { background: #15191b; }
.mini-art { width: 94px; height: 56px; border-radius: 4px; background-repeat: no-repeat; background-size: 300% auto; }
.hero-mini { background: url('/assets/hero.png') center / cover no-repeat; }
.collection-list strong, .collection-list small { display: block; }
.collection-list small { color: var(--muted); margin-top: 5px; }
.list-arrow { justify-self: end; color: var(--muted); font-size: 19px; }

footer { border-top: 1px solid var(--line); min-height: 84px; display: flex; align-items: center; gap: 18px; padding: 20px clamp(18px, 4vw, 64px); color: #7f888d; font-size: 12px; }
.brand-footer { color: #d9dddf; font-weight: 800; }
.mobile-nav { display: none; }
.auth-open { overflow: hidden; }

dialog { color: var(--text); border: 1px solid #3b4347; padding: 0; background: #15191b; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(3,5,6,.76); backdrop-filter: blur(7px); }
.auth-dialog { width: min(470px, calc(100% - 28px)); max-height: min(760px, calc(100% - 28px)); border-radius: 7px; overflow: auto; }
.auth-close { position: absolute; right: 13px; top: 11px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #202529; color: #cbd0d2; font-size: 25px; cursor: pointer; }
.auth-close:hover { background: #2a3034; }
.auth-header { height: 66px; display: flex; align-items: center; gap: 10px; padding: 0 25px; border-bottom: 1px solid var(--line); font-weight: 800; }
.auth-header .brand-mark { width: 23px; height: 23px; }
.auth-header .brand-mark span { width: 7px; height: 7px; }
.auth-view { padding: 28px 32px 32px; }
.auth-view[hidden] { display: none; }
.auth-kicker { color: var(--mint); text-transform: uppercase; font-size: 11px; font-weight: 750; margin: 0 0 7px; }
.auth-view h2 { margin: 0 0 9px; font-size: 28px; }
.auth-intro { margin: 0 0 24px; color: var(--muted); line-height: 1.55; font-size: 14px; }
.auth-form { display: grid; gap: 9px; }
.auth-form > label, .password-label label { color: #d9dddf; font-size: 12px; font-weight: 700; }
.auth-form > input, .password-field, .password-field input { width: 100%; }
.auth-form > input, .password-field { height: 46px; border: 1px solid #495156; border-radius: 5px; background: #0f1214; }
.auth-form > input, .password-field input { color: #fff; outline: 0; padding: 0 13px; }
.auth-form > input:focus, .password-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255,107,74,.15); }
.password-label { margin-top: 5px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.password-label button, .password-field button, .auth-back { border: 0; background: transparent; color: #aeb6ba; cursor: pointer; padding: 0; font-size: 12px; }
.password-label button:hover, .auth-back:hover { color: #fff; }
.password-field { display: flex; align-items: center; overflow: hidden; }
.password-field input { height: 100%; border: 0; background: transparent; }
.password-field button { height: 100%; padding: 0 12px; color: var(--mint); }
.remember { display: inline-flex; align-items: center; gap: 8px; margin: 5px 0 1px; color: var(--muted) !important; font-weight: 500 !important; cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.auth-message { min-height: 0; margin: 0; color: #ff9f89; font-size: 12px; line-height: 1.45; }
.auth-message:not(:empty) { min-height: 34px; padding: 8px 10px; border-left: 2px solid var(--accent); background: rgba(255,107,74,.08); }
.auth-submit, .invite-button { width: 100%; min-height: 45px; border-radius: 5px; cursor: pointer; font-weight: 750; }
.auth-submit { margin-top: 3px; border: 0; background: var(--accent); color: #17191a; }
.auth-submit:hover { background: var(--accent-hover); }
.auth-separator { height: 41px; display: flex; align-items: center; gap: 12px; color: #717a7f; font-size: 11px; }
.auth-separator::before, .auth-separator::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.invite-button { border: 1px solid #4a5358; background: transparent; color: #e1e4e5; }
.invite-button:hover { border-color: #737d82; background: #1c2124; }
.auth-back { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; }
.auth-hint { margin: 0 0 2px; color: #778085; font-size: 11px; line-height: 1.5; }
.admin-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; color: #899297; font-size: 11px; }
.admin-note > span:first-child { color: var(--mint); font-size: 8px; }

@media (max-width: 820px) {
  body { padding-bottom: 62px; }
  .topbar { position: absolute; height: 58px; padding: 0 16px; }
  .primary-nav, .search-button > span:last-child { display: none; }
  .top-actions { gap: 5px; }
  .sign-in-button { padding-right: 8px; }
  .hero { height: 640px; min-height: 640px; }
  .hero-image { background-position: 62% center; }
  .hero-shade { background: rgba(5,7,9,.5); }
  .hero-content { padding: 130px 20px 70px; max-width: 620px; }
  .hero h1 { font-size: 43px; }
  .hero-copy { font-size: 15px; max-width: 500px; }
  .content-band { padding: 34px 16px; }
  .section-heading h2 { font-size: 21px; }
  .landscape-row { grid-auto-columns: min(84vw, 390px); }
  .landscape-art { height: 190px; }
  .poster-row { grid-auto-columns: min(42vw, 180px); }
  .feature-band { grid-template-columns: 1fr; }
  .feature-art { min-height: 300px; }
  .feature-copy { padding: 34px 20px 40px; }
  .feature-copy h2 { font-size: 30px; }
  .mobile-nav { position: fixed; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); left: 0; right: 0; bottom: 0; height: 62px; background: rgba(15,18,20,.96); border-top: 1px solid #343a3e; backdrop-filter: blur(16px); }
  .mobile-nav a { display: grid; place-content: center; gap: 2px; text-align: center; color: #949ca0; font-size: 10px; }
  .mobile-nav a span { font-size: 20px; line-height: 1; }
  .mobile-nav a.active { color: var(--accent); }
  footer { margin-bottom: 0; flex-wrap: wrap; }
  .auth-dialog { max-height: calc(100% - 20px); }
}

@media (max-width: 480px) {
  .hero { height: 610px; min-height: 610px; }
  .hero-content { padding-top: 118px; }
  .hero h1 { font-size: 38px; max-width: 330px; }
  .hero-copy { max-width: 350px; }
  .secondary-button { background: rgba(20,23,25,.85); }
  .quiet-button { display: none; }
  .landscape-copy { display: block; }
  .landscape-copy span { display: block; margin-top: 4px; }
  .collection-list button { grid-template-columns: 74px 1fr 22px; gap: 12px; }
  .mini-art { width: 74px; height: 48px; }
  .auth-dialog { width: calc(100% - 18px); }
  .sign-in-label { display: none; }
  .auth-view { padding: 25px 20px 28px; }
  .auth-view h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
