:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: #262626;
  --text: #f4f4f5;
  --muted: #9a9aa2;
  --accent: #FFA500;
  --accent-ink: #000000;
  --pink: #ff7a00;
  --radius: 14px;
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Promo */
.promo {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px var(--gutter);
  background: linear-gradient(90deg, var(--pink), #ffc04d, var(--pink));
  font-size: 13px; font-weight: 600; color: #000000;
}
.promo-link { color: #000000; text-decoration: underline; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 var(--gutter);
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(0,0,0,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-left, .nav-center, .nav-right { display: flex; align-items: center; gap: 24px; }
.nav-right { gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .12em; font-size: 14px; }
.logo-mark {
  display: grid; place-items: center; height: 28px; padding: 0 8px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 12px; letter-spacing: .02em;
}
.nav-link { font-size: 14px; font-weight: 500; color: #d4d4d8; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active { font-weight: 700; }
.nav-link.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: transform .15s, filter .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-dark { background: var(--surface-2); }
.btn-dark:hover { background: #2a2a2f; }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); position: relative; }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e9e9ea; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.badge {
  position: absolute; bottom: -8px; right: 8px;
  background: var(--pink); color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 5px; border-radius: 5px;
}
.burger { display: none; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 16px; height: 2px; background: #fff; border-radius: 2px; }

.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0; z-index: 49;
  flex-direction: column; gap: 4px; padding: 16px var(--gutter) 24px;
  background: rgba(0,0,0,.97); border-bottom: 1px solid var(--border);
}
.mobile-menu a { padding: 12px 0; font-size: 17px; font-weight: 600; color: #d4d4d8; border-bottom: 1px solid var(--border); }
.mobile-menu a.active { color: var(--accent); }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }
.mobile-menu.open { display: flex; }

/* Hero */
.hero {
  position: relative; margin-top: -60px;
  min-height: min(92vh, 860px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 28px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  transition: opacity .6s ease;
  animation: kenburns 14s ease-out forwards;
}
.hero-bg.fade { opacity: 0; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(0,0,0,0) 35%),
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 20%);
}
.hero-content { position: relative; max-width: 940px; }
.hero-content > * { animation: rise .7s both; }
.hero-content > *:nth-child(2) { animation-delay: .08s; }
.hero-content > *:nth-child(3) { animation-delay: .16s; }
.hero-content > *:nth-child(4) { animation-delay: .24s; }
.hero-content > *:nth-child(5) { animation-delay: .32s; }
.hero-eyebrow {
  margin-bottom: 12px; color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(56px, 9vw, 112px); line-height: .9; letter-spacing: .01em;
  text-shadow: 0 6px 30px rgba(0,0,0,.6);
}
.hero-title em { display: block; font-style: normal; color: var(--accent); font-size: .45em; letter-spacing: .2em; }
.hero-desc {
  margin-top: 18px; max-width: 540px; color: #c9c9cf; font-size: 15px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; font-size: 14px; font-weight: 600; color: #d4d4d8; }
.hero-stats span { display: inline-flex; align-items: center; gap: 6px; }
.hero-stats svg { width: 16px; height: 16px; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; }

.creator { display: flex; align-items: center; gap: 10px; }
.creator small { display: block; color: var(--muted); font-size: 12px; }
.creator strong { font-size: 14px; }
.avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); font-weight: 800; font-size: 14px;
}
.avatar.accent { background: var(--accent); color: var(--accent-ink); width: auto; padding: 0 10px; border-radius: 999px; font-size: 12px; }
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }

.hero-tabs {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  margin-top: 40px;
}
.hero-tab { text-align: left; padding-top: 12px; color: var(--muted); font-size: 13px; font-weight: 600; position: relative; transition: color .2s; }
.hero-tab:hover, .hero-tab.active { color: #fff; }
.hero-tab::before, .hero-tab .bar {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; border-radius: 3px;
}
.hero-tab::before { right: 0; background: rgba(255,255,255,.18); }
.hero-tab .bar { width: 0; background: #fff; }
.hero-tab.active .bar { animation: progress var(--dur, 7s) linear forwards; }
.hero.paused .hero-tab.active .bar { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }

/* Rows */
#rows { position: relative; z-index: 1; padding-bottom: 40px; }
.row { margin-top: 44px; }
.row-head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); margin-bottom: 16px; }
.row-title { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.row-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.row-ctrl { display: flex; gap: 8px; }
.arrow {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2);
  display: grid; place-items: center; font-size: 16px; transition: background .2s, opacity .2s;
}
.arrow:hover { background: #2a2a2f; }
.arrow:disabled { opacity: .3; cursor: default; }

.track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 22vw, 300px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 12px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.row.wide .track { grid-auto-columns: clamp(280px, 34vw, 460px); }

.card { scroll-snap-align: start; cursor: pointer; }
.thumb {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.row.wide .thumb { aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 45%);
}
.card:hover .thumb img { transform: scale(1.07); filter: brightness(1.08); }
.thumb-title {
  position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1;
  font-family: "Bebas Neue", Impact, sans-serif; font-size: 28px; line-height: .95; letter-spacing: .02em;
}
.tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px;
}
.tag.new { background: var(--accent); color: var(--accent-ink); }
.play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #000; display: grid; place-items: center; font-size: 18px;
  opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s;
}
.card:hover .play { opacity: 1; transform: scale(1); }

.card-info { padding: 10px 2px 0; }
.card-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 13px; }
.card-meta .by { display: flex; align-items: center; gap: 7px; }
.like { display: inline-flex; align-items: center; gap: 5px; transition: color .2s; }
.like:hover, .like.on { color: var(--pink); }

/* Footer */
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 28px var(--gutter); border-top: 1px solid var(--border); color: var(--muted); font-size: 13px;
}

.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-tagline { color: var(--text); font-size: 14px; font-style: italic; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
  position: relative; width: min(860px, 100%); max-height: 92vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  transform: translateY(20px) scale(.98); transition: transform .3s;
}
.modal.open .modal-box { transform: none; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.6);
}
.modal-media { aspect-ratio: 16 / 9; background-size: cover; background-position: center; display: grid; place-items: center; }
.play-big { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 26px; box-shadow: 0 0 40px rgba(255,165,0,.5); }
.modal-body { padding: 22px 24px 26px; }
.modal-body h2 { font-family: "Bebas Neue", sans-serif; font-size: 44px; line-height: 1; }
#modalMeta { color: var(--muted); font-size: 13px; margin-top: 6px; }
#modalDesc { margin-top: 12px; color: #d4d4d8; line-height: 1.55; font-size: 15px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }

/* Landscape cards (like reference) */
.row { margin-top: 56px; scroll-margin-top: 80px; }
.row-title { font-size: 20px; }
.track {
  grid-auto-columns: calc((100vw - 2 * var(--gutter) - 3 * 16px) / 4);
}
.thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.thumb::after {
  background:
    linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,0) 100%),
    linear-gradient(0deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 35%);
}
.thumb-title {
  top: 50%; bottom: auto; left: 7%; right: auto; max-width: 58%;
  transform: translateY(-50%);
  font-size: clamp(22px, 2.4vw, 42px); line-height: .9;
  text-shadow: 0 3px 18px rgba(0,0,0,.6);
}
.thumb-title small {
  display: block; margin-bottom: 6px;
  font-family: "Inter", sans-serif; font-size: 9px; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; opacity: .8;
}
.card-badge {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  height: 24px; padding: 0 8px; border-radius: 999px; font-size: 10px !important;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 800; border: 2px solid rgba(0,0,0,.35);
}
.card-mark {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font-size: 8px; font-weight: 700; letter-spacing: .12em; line-height: 1.1;
  text-transform: uppercase; opacity: .75; text-align: left;
  display: flex; align-items: center; gap: 5px;
}
.card-mark i {
  width: 16px; height: 16px; border-radius: 4px; background: #fff; display: inline-block;
}
.card .like {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(12,12,12,.75); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; color: #fff;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s, color .2s;
}
.card:hover .like, .card .like.on { opacity: 1; transform: none; }
.card .like.on { color: var(--pink); }
.card:hover .card-mark { opacity: 0; }
.card:hover .thumb { border-color: rgba(255,255,255,.22); }

/* Responsive */
@media (max-width: 1000px) {
  .track { grid-auto-columns: calc((100vw - 2 * var(--gutter) - 16px) / 2.2); }
  .nav-center { display: none; }
  .burger { display: flex; }
}
@media (max-width: 640px) {
  .nav-right .btn-accent { display: none; }
  .burger { display: flex; }
  .hero { min-height: 82vh; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 10%, rgba(0,0,0,.5) 60%, rgba(0,0,0,.6) 100%); }
  .hero-tabs { gap: 6px; }
  .hero-tab { font-size: 0; }
  .track { grid-auto-columns: 84%; gap: 12px; }
  .row-ctrl { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ---------- Expanding preview (click a card) ---------- */
.card.selected .thumb { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgba(0,0,0,.5); }
.card.selected .play { opacity: 0; }

.preview {
  position: relative; display: none; overflow: hidden;
  margin: 10px var(--gutter) 0; height: clamp(400px, 33vw, 500px);
  border-radius: 16px; border: 1px solid var(--border); background: #000;
}
.preview.open { display: block; animation: previewIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes previewIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.preview-video { position: absolute; top: 0; right: 0; width: 70%; height: 100%; object-fit: cover; background: #000; cursor: pointer; }
.preview-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #000000 0%, #000000 30%, rgba(0,0,0,.85) 40%, rgba(0,0,0,.2) 62%, rgba(0,0,0,0) 75%);
}
.preview-info {
  position: relative; z-index: 2; height: 100%; width: min(470px, 42%);
  display: flex; flex-direction: column; padding: 30px 32px;
}
.preview-logo {
  font-family: "Bebas Neue", Impact, sans-serif; font-size: 26px; line-height: .9; color: var(--pink);
  transform: rotate(-4deg); transform-origin: left; max-width: 180px; text-shadow: 2px 2px 0 rgba(0,0,0,.6);
}
.preview-title { margin-top: 14px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.preview-desc {
  margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.preview-stats { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; }
.stat-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--surface-2); font-size: 12px; font-weight: 600; transition: background .2s, color .2s;
}
.stat-pill svg { width: 14px; height: 14px; }
button.stat-pill:hover, a.stat-pill:hover { background: #2a2a2f; }
.stat-pill.on { color: var(--pink); }
.stat-pill.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.preview-actions { display: flex; align-items: center; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.preview-actions .btn-lg { height: 44px; }
.preview-close, .round-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(12,12,12,.7); backdrop-filter: blur(8px); color: #fff;
  border: 1px solid rgba(255,255,255,.08); transition: background .2s, transform .15s;
}
.preview-close:hover, .round-btn:hover { background: rgba(50,50,56,.9); transform: scale(1.06); }
.preview-close svg, .round-btn svg { width: 17px; height: 17px; }
.preview-close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.preview-ctrl { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; gap: 8px; }
.round-btn.is-muted { color: var(--accent); }

@media (max-width: 760px) {
  .preview { height: auto; }
  .preview-video { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
  .preview-shade { display: none; }
  .preview-info { width: 100%; height: auto; padding: 18px 18px 22px; }
  .preview-ctrl { bottom: auto; top: calc((100vw - 2 * var(--gutter)) * 9 / 16 - 52px); }
  .preview-stats { margin-top: 0; }
}
/* narrow cards */
@media (max-width: 1280px) {
  .thumb-title small { display: none; }
}
/* trailer + credits */
.hero-actions { gap: 14px 18px; }
.action-divider { width: 1px; height: 34px; background: rgba(255,255,255,.18); margin: 0 4px; }
.avatar.director {
  background: var(--surface-2); color: var(--accent); border: 1px solid rgba(255,165,0,.55);
  font-size: 12px; letter-spacing: .02em;
}
.btn-accent.btn-lg { box-shadow: 0 6px 24px rgba(255,165,0,.25); }
.preview-actions { gap: 10px; margin-top: 16px; }
.preview-actions .btn-lg { height: 42px; padding: 0 16px; font-size: 14px; }
.credit-line { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 16px; }
.credit-line .avatar { width: 32px; height: 32px; font-size: 11px; }
.credit-line .avatar.accent { padding: 0 8px; }
.credit-line strong { font-size: 13px; }

.trailer-modal {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.85); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.trailer-modal.open { opacity: 1; pointer-events: auto; }
.trailer-box {
  width: min(1100px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; transform: scale(.97); transition: transform .3s;
}
.trailer-modal.open .trailer-box { transform: none; }
.trailer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.trailer-head small { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.trailer-head h3 { font-family: "Bebas Neue", sans-serif; font-size: 30px; font-weight: 400; line-height: 1; }
#trailerVideo { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 70vh; background: #000; }
.trailer-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 18px; color: var(--muted); font-size: 13px; }
.trailer-foot b { color: var(--text); font-weight: 600; }

@media (max-width: 760px) {
  .action-divider { display: none; }
  .hero-actions .btn-lg { flex: 1 1 calc(50% - 7px); justify-content: center; padding: 0 12px; font-size: 14px; }
  .preview-actions .btn-lg { flex: 1; justify-content: center; }
}
/* preview fit fixes */
.preview { height: auto; min-height: clamp(400px, 33vw, 500px); }
.preview-info { height: auto; min-height: clamp(400px, 33vw, 500px); }
.preview-info > * { flex-shrink: 0; }
.credit-line .avatar.accent { width: auto; min-width: 32px; padding: 0 9px; border-radius: 999px; }
@media (max-width: 760px) {
  .preview, .preview-info { min-height: 0; }
}
/* youtube players */
.preview-video { overflow: hidden; background-size: cover; background-position: center; }
.preview-video iframe { pointer-events: none; }
.trailer-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 72vh; background: #000; overflow: hidden; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.preview-mode-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 300; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 999px;
  background: #ff7a00; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.preview-mode-bar button { background: #fff; color: #000; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); padding: 11px 20px; border-radius: 999px; background: #fff; color: #000; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ---------- Live update bar ---------- */
.update-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 150; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--accent); color: #000; font-size: 13px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.6); max-width: calc(100% - 32px); }
.update-bar button { background: #000; color: var(--accent); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 12px; }

/* ---------- Hero: buttons, Produced by and Directed by always on ONE row (computers & tablets) ---------- */
.hero-credits { display: flex; align-items: center; gap: 22px; }
.hero-actions .btn-lg { flex-shrink: 0; }
@media (min-width: 900px) { .hero-content { max-width: min(1240px, 100%); } .hero-title { max-width: 940px; } }
@media (min-width: 761px) {
  .hero-actions { flex-wrap: nowrap; }
  .hero-credits { flex-wrap: nowrap; min-width: 0; }
  .hero-credits .creator { min-width: 0; }
  .hero-credits .creator small, .hero-credits .creator strong { white-space: nowrap; }
}
/* Smaller laptops / tablets: tighter spacing so everything still fits on the row */
@media (min-width: 761px) and (max-width: 1199px) {
  .hero-actions .action-divider { display: none; }
  .hero-actions { gap: 12px; }
  .hero-credits { gap: 14px; }
  .hero-actions .btn-lg { height: 46px; padding: 0 16px; font-size: 14px; }
  .hero-credits .avatar { width: 34px; height: 34px; font-size: 10px; }
  .hero-credits .creator small { font-size: 11px; }
  .hero-credits .creator strong { font-size: 13px; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .hero-credits .creator small, .hero-credits .creator strong { white-space: normal; }
}
/* Phones: not enough width for one row, so the credits sit under the buttons */
@media (max-width: 760px) {
  .hero-credits { flex-wrap: wrap; gap: 12px 18px; }
}
/* ---------- Trailer popup: always fits the screen height (phones turned sideways) ---------- */
.trailer-box { max-height: calc(100dvh - 24px); display: flex; flex-direction: column; }
.trailer-box .trailer-frame { flex-shrink: 1; }
@media (max-height: 560px) {
  .trailer-modal { padding: 8px; }
  .trailer-box { width: min(100%, calc((100dvh - 110px) * 16 / 9)); }
  .trailer-head { padding: 8px 14px; }
  .trailer-head h3 { font-size: 22px; }
  .trailer-foot { padding: 8px 14px; font-size: 12px; }
  .trailer-foot .btn { height: 34px; padding: 0 12px; font-size: 13px; }
}
/* ---------- Phones: menu sits under the nav bar; rows show one card at a time with arrows ---------- */
.nav.menu-open { background: rgba(0,0,0,.97); border-bottom: 1px solid var(--border); }
.mobile-menu { max-height: calc(100dvh - 60px); overflow-y: auto; }
@media (max-width: 640px) {
  .promo { font-size: 12px; gap: 2px 10px; padding: 7px var(--gutter); text-align: center; }
  .track { grid-auto-columns: calc(100vw - 2 * var(--gutter)); gap: var(--gutter); }
  .card { scroll-snap-stop: always; }
  .row-ctrl { display: flex; }
}
/* ---------- Slideshow: the trailer plays behind the text ---------- */
.hero-video { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .8s ease; pointer-events: none; background: transparent; }
.hero-video.on { opacity: 1; }
.hero-shade, .hero-content, .hero-tabs { z-index: 1; }
.hero-shade { position: absolute; }
.hero-tabs { position: relative; }
.hero-mute { position: absolute; z-index: 2; right: var(--gutter); bottom: 86px; }
.hero-mute[hidden] { display: none; }

/* ---------- Phones & portrait tablets: show the whole 16:9 poster / trailer on top, text below ---------- */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hero { min-height: 0; justify-content: flex-start; padding-top: calc(60px + 100vw * 9 / 16 - 8px); }
  .hero-bg, .hero-video { inset: auto; top: 60px; left: 0; right: 0; height: calc(100vw * 9 / 16); }
  .hero-bg { animation: none; transform: none; background-size: cover; background-position: center; }
  .hero-shade {
    background:
      linear-gradient(180deg, var(--bg) 0, var(--bg) 60px, rgba(0,0,0,0) 61px, rgba(0,0,0,0) calc(60px + 100vw * 9 / 16 * .62), var(--bg) calc(60px + 100vw * 9 / 16));
  }
  .hero-mute { bottom: auto; top: calc(60px + 100vw * 9 / 16 - 54px); right: 12px; }
}