/* =====================================================================
   DBF OTT — Design system
   ===================================================================== */
:root {
  --bg: #060608;
  --bg-2: #0d0d12;
  --surface: #15151c;
  --surface-2: #1d1d26;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f1ec;
  --muted: #a6a3ad;
  --dim: #6d6a75;
  --red: #e50b1f;
  --red-hot: #ff2a3d;
  --red-deep: #7a0711;
  --gold: #e8b65a;
  --radius: 10px;
  --radius-lg: 18px;
  --pad: clamp(16px, 4vw, 56px);
  --header-h: 68px;
  --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-red: 0 0 0 1px rgba(229, 11, 31, 0.6), 0 18px 50px -12px rgba(229, 11, 31, 0.55);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle film-grain over the whole app */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--red); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__word { font-family: var(--font-display); font-size: 30px; letter-spacing: 0.04em; display: flex; align-items: baseline; gap: 6px; }
.logo__dbf { color: var(--red); text-shadow: 0 0 22px rgba(229, 11, 31, 0.55); }
.logo__ott { color: var(--text); font-family: var(--font-body); font-weight: 300; font-size: 15px; letter-spacing: 0.42em; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--pad);
  background: linear-gradient(180deg, rgba(6, 6, 8, 0.92) 0%, rgba(6, 6, 8, 0.4) 70%, transparent 100%);
  transition: background 0.35s var(--ease), box-shadow 0.35s;
}
.site-header.is-solid { background: rgba(8, 8, 11, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; gap: 22px; font-size: 14.5px; }
.nav a { color: var(--muted); transition: color 0.2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.nav a[aria-current='page'] { font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: background 0.2s; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.icon-btn svg { width: 22px; height: 22px; }
.avatar { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--red), var(--red-deep)); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.btn-signin { font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 6px; background: var(--red); transition: background 0.2s; }
.btn-signin:hover { background: var(--red-hot); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 28px; border-radius: 8px;
  font-weight: 600; font-size: 16.5px; letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn svg { width: 22px; height: 22px; }
.btn:active { transform: scale(0.97); }
.btn--play { background: var(--text); color: #0a0a0a; }
.btn--play:hover { background: #fff; box-shadow: 0 10px 34px -8px rgba(255, 255, 255, 0.45); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hot); box-shadow: var(--shadow-red); }
.btn--ghost { background: rgba(110, 110, 120, 0.42); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(130, 130, 140, 0.58); }
.btn--outline { border: 1px solid rgba(255, 255, 255, 0.28); }
.btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--outline.is-active { border-color: var(--red); color: var(--red-hot); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; height: min(92vh, 900px); min-height: 560px; overflow: hidden; isolation: isolate; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; object-position: 70% center; transform: scale(1.06); }
.hero__slide.is-active img { animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 6, 8, 0.96) 0%, rgba(6, 6, 8, 0.7) 32%, rgba(6, 6, 8, 0.05) 65%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 6, 8, 0) 32%);
}
.hero__content {
  position: absolute; z-index: 2; left: var(--pad); bottom: clamp(90px, 17vh, 180px);
  width: min(620px, calc(100% - 2 * var(--pad)));
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero__eyebrow b { color: var(--red); font-family: var(--font-display); font-size: 22px; letter-spacing: 0.08em; font-weight: 400; }
.hero__title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 9vw, 128px); line-height: 0.88; letter-spacing: 0.01em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 14px; font-size: 15px; color: #d8d4dc; }
.hero__desc { margin: 0 0 26px; font-size: clamp(15px, 1.35vw, 18px); color: #dcd8e0; max-width: 54ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__dots { position: absolute; z-index: 3; right: var(--pad); bottom: clamp(100px, 18vh, 190px); display: flex; gap: 8px; }
.hero__dot { width: 26px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.3); transition: background 0.3s, width 0.3s; }
.hero__dot.is-active { width: 42px; background: var(--red); }
.hero__tagline { position: absolute; z-index: 2; right: var(--pad); top: calc(var(--header-h) + 18px); font-size: 11px; letter-spacing: 0.4em; color: rgba(255, 255, 255, 0.5); }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.badge--rating { border: 1px solid rgba(255, 255, 255, 0.45); }
.badge--new { background: var(--red); color: #fff; }
.badge--cat { background: rgba(255, 255, 255, 0.1); }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }

/* ---------------------------------------------------------------- Rows */
main { display: block; }
.rows { position: relative; z-index: 4; margin-top: clamp(-120px, -9vh, -60px); padding-bottom: 40px; }
.page-top { padding-top: calc(var(--header-h) + 28px); }
.row { margin: 0 0 clamp(26px, 4vw, 46px); }
.row__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--pad); margin-bottom: 12px; }
.row__title { margin: 0; font-size: clamp(18px, 1.9vw, 24px); font-weight: 600; letter-spacing: 0.01em; display: flex; align-items: center; gap: 10px; }
.row__title::before { content: ''; width: 4px; height: 1.05em; border-radius: 2px; background: var(--red); }
.row__more { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; transition: color 0.2s; white-space: nowrap; }
.row__more:hover { color: var(--red-hot); }
.row__viewport { position: relative; }
.row__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w, clamp(128px, 15.2vw, 216px));
  gap: clamp(8px, 1vw, 14px); overflow-x: auto; overflow-y: visible;
  padding: 14px var(--pad) 26px; margin: -14px 0 -26px;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.row__track::-webkit-scrollbar { display: none; }
.row__arrow {
  position: absolute; top: 0; bottom: 0; z-index: 6; width: var(--pad); min-width: 44px;
  display: grid; place-items: center; opacity: 0; transition: opacity 0.25s, background 0.25s;
  background: linear-gradient(90deg, rgba(6, 6, 8, 0.85), transparent);
}
.row__arrow--next { right: 0; background: linear-gradient(270deg, rgba(6, 6, 8, 0.85), transparent); }
.row__arrow--prev { left: 0; }
.row__arrow svg { width: 30px; height: 30px; transition: transform 0.2s; }
.row__arrow:hover svg { transform: scale(1.25); }
.row__viewport:hover .row__arrow:not([disabled]) { opacity: 1; }
.row__arrow[disabled] { pointer-events: none; }

/* ---------------------------------------------------------------- Cards */
.card { position: relative; scroll-snap-align: start; border-radius: var(--radius); outline: none; }
.card__link { display: block; position: relative; border-radius: var(--radius); }
.card__poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.4s; }
.card__poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.35) 38%, transparent 60%); }
.card__label { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; }
.card__name { font-family: var(--font-display); font-size: clamp(19px, 1.7vw, 26px); line-height: 0.95; letter-spacing: 0.02em; text-shadow: 0 2px 12px #000; }
.card__info { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 12px; color: #cfcbd4; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.35s var(--ease), opacity 0.3s; }
.card__badges { position: absolute; z-index: 2; top: 8px; left: 8px; display: flex; gap: 6px; }
.card__original { position: absolute; z-index: 2; top: 9px; right: 9px; font-family: var(--font-display); font-size: 15px; color: var(--red); letter-spacing: 0.06em; text-shadow: 0 0 12px rgba(0, 0, 0, 0.9); }
.card__play {
  position: absolute; z-index: 3; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  background: rgba(229, 11, 31, 0.92); display: grid; place-items: center; opacity: 0; transform: scale(0.6);
  transition: opacity 0.3s, transform 0.35s var(--ease); box-shadow: 0 8px 30px rgba(229, 11, 31, 0.6);
}
.card__play svg { width: 24px; height: 24px; margin-left: 3px; }
.card__list {
  position: absolute; z-index: 4; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10, 10, 12, 0.72); border: 1px solid rgba(255, 255, 255, 0.35); display: grid; place-items: center;
  opacity: 0; transition: opacity 0.25s, background 0.2s, border-color 0.2s;
}
.card__list svg { width: 17px; height: 17px; }
.card__list:hover { border-color: #fff; background: rgba(30, 30, 34, 0.9); }
.card__list.is-active { background: var(--red); border-color: var(--red); }

@media (hover: hover) {
  .card:hover, .card:focus-within { z-index: 5; }
  .card:hover .card__poster, .card:focus-within .card__poster { transform: scale(1.07) translateY(-4px); box-shadow: var(--shadow-red); }
  .card:hover .card__poster img, .card:focus-within .card__poster img { transform: scale(1.06); filter: brightness(0.82); }
  .card:hover .card__play, .card:focus-within .card__play { opacity: 1; transform: scale(1); }
  .card:hover .card__info, .card:focus-within .card__info { max-height: 40px; opacity: 1; }
  .card:hover .card__list, .card:focus-within .card__list { opacity: 1; }
  .card:hover .card__original, .card:focus-within .card__original { opacity: 0; }
}
@media (hover: none) { .card__list { opacity: 1; width: 30px; height: 30px; } .card__original { display: none; } }

/* Top 10 row */
.row--top10 .row__track { --card-w: clamp(170px, 20vw, 290px); }
.card--rank { display: grid; grid-template-columns: 44% 56%; align-items: end; }
.card__rank {
  font-family: var(--font-display); font-size: clamp(110px, 12vw, 190px); line-height: 0.74; text-align: right; margin-right: -12px;
  color: var(--bg); -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55); letter-spacing: -0.04em; user-select: none;
  transition: -webkit-text-stroke-color 0.3s, color 0.3s;
}
.card--rank:hover .card__rank { -webkit-text-stroke-color: var(--red); color: rgba(229, 11, 31, 0.12); }
.card--rank .card__name, .card--rank .card__original { display: none; }

/* ---------------------------------------------------------------- Grid (browse/search) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 15vw, 200px), 1fr)); gap: clamp(12px, 1.5vw, 22px) clamp(10px, 1.2vw, 18px); padding: 0 var(--pad); }
.page-head { padding: 0 var(--pad); margin-bottom: 26px; }
.page-head h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 0.95; letter-spacing: 0.01em; }
.page-head p { margin: 8px 0 0; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad) 4px; margin-bottom: 26px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500; transition: all 0.2s; display: inline-flex; align-items: center; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.chip.is-active, .chip[aria-current='page'] { background: var(--red); border-color: var(--red); color: #fff; }

/* Search */
.search-bar { position: relative; margin: 0 var(--pad) 18px; max-width: 760px; }
.search-bar svg { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-bar input {
  width: 100%; height: 62px; padding: 0 56px 0 56px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 18px; transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar input::placeholder { color: var(--dim); }
.search-bar input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 11, 31, 0.18); }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.search-clear:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.search-clear svg { position: static; transform: none; width: 18px; height: 18px; }
.result-count { padding: 0 var(--pad); color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.empty { padding: 60px var(--pad); text-align: center; color: var(--muted); }
.empty h2 { color: var(--text); font-family: var(--font-display); font-weight: 400; font-size: 40px; margin: 0 0 6px; letter-spacing: 0.02em; }
.empty .btn { margin-top: 18px; }

/* ---------------------------------------------------------------- Title / details */
.detail { position: relative; min-height: 100vh; isolation: isolate; }
.detail__backdrop { position: absolute; inset: 0 0 auto 0; height: min(88vh, 860px); z-index: -1; overflow: hidden; }
.detail__backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.detail__backdrop--blur img { filter: blur(28px) saturate(1.3) brightness(0.6); transform: scale(1.2); }
.detail__backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 6, 8, 0.97) 0%, rgba(6, 6, 8, 0.75) 40%, rgba(6, 6, 8, 0.25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 45%);
}
.detail__inner { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(24px, 4vw, 60px); align-items: end; padding: calc(var(--header-h) + clamp(40px, 12vh, 140px)) var(--pad) 40px; }
.detail__poster { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 2/3; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line); }
.detail__poster img { width: 100%; height: 100%; object-fit: cover; }
.detail__crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.detail__crumbs a:hover { color: var(--red-hot); }
.detail__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(54px, 8vw, 118px); line-height: 0.88; letter-spacing: 0.01em; }
.detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 20px 0 18px; font-size: 15px; color: #d8d4dc; }
.detail__desc { font-size: clamp(16px, 1.3vw, 18.5px); color: #e0dce4; max-width: 64ch; margin: 0 0 26px; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 34px var(--pad) 50px; max-width: 980px; }
.fact { background: var(--bg-2); padding: 16px 20px; }
.fact dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--dim); margin-bottom: 4px; }
.fact dd { margin: 0; font-weight: 500; }
.fact a:hover { color: var(--red-hot); }

/* ---------------------------------------------------------------- Player */
.player { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.94); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.player.is-open { opacity: 1; visibility: visible; }
.player__frame { position: relative; width: min(100%, calc((100vh - 120px) * 16 / 9), 1400px); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(229, 11, 31, 0.25); transform: scale(0.96); transition: transform 0.4s var(--ease); }
.player.is-open .player__frame { transform: scale(1); }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__bar { position: absolute; top: 14px; left: 20px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.player__title { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__title small { font-family: var(--font-body); font-size: 12px; color: var(--muted); letter-spacing: 0.24em; margin-left: 10px; }
.player__close { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; flex: none; }
.player__close:hover { background: var(--red); }
.player__close svg { width: 22px; height: 22px; }
.player__note { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--dim); }
body.no-scroll { overflow: hidden; }

/* ---------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--line); padding: 50px var(--pad) 40px; margin-top: 40px; color: var(--muted); font-size: 14px; background: linear-gradient(180deg, transparent, rgba(122, 7, 17, 0.12)); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.footer__tag { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 44px); color: var(--text); letter-spacing: 0.04em; line-height: 1; margin: 16px 0 0; }
.footer__tag span { color: var(--red); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 50px; }
.footer__cols h3 { color: var(--text); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; margin: 0 0 12px; }
.footer__cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__cols a:hover { color: var(--red-hot); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ---------------------------------------------------------------- Mobile tab bar & install */
.tabbar { display: none; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; background: var(--surface-2); border: 1px solid var(--line); padding: 12px 20px; border-radius: 10px; font-size: 14.5px; transition: all 0.35s var(--ease); pointer-events: none; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.install-btn[hidden] { display: none; }
.install-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 6px; border: 1px solid rgba(229, 11, 31, 0.7); color: #fff; }
.install-btn:hover { background: rgba(229, 11, 31, 0.15); }
.install-btn svg { width: 16px; height: 16px; }

/* reveal-on-load */
.fade-up { animation: fadeUp 0.8s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .nav { gap: 16px; font-size: 14px; }
  .nav a.nav--secondary { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 58px; }
  .nav { display: none; }
  .logo__word { font-size: 26px; }
  .logo__mark { width: 28px; height: 28px; }
  .header-actions .icon-btn--search, .header-actions .btn-signin { display: none; }
  .hero { height: 86vh; min-height: 520px; max-height: 760px; }
  .hero__slide img { object-position: center 20%; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 4%, rgba(6, 6, 8, 0.75) 38%, rgba(6, 6, 8, 0.1) 70%), linear-gradient(180deg, rgba(6, 6, 8, 0.6), transparent 25%); }
  .hero__content { bottom: 74px; text-align: center; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); }
  .hero__eyebrow { justify-content: center; }
  .hero__meta { justify-content: center; }
  .hero__desc { -webkit-line-clamp: 2; margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn { flex: 1; max-width: 200px; height: 46px; padding: 0 16px; }
  .hero__dots { left: 0; right: 0; justify-content: center; bottom: 40px; }
  .hero__tagline { display: none; }
  .rows { margin-top: -20px; }
  .row__arrow { display: none; }
  .row__track { --card-w: clamp(116px, 31vw, 170px); }
  .row--top10 .row__track { --card-w: clamp(150px, 44vw, 220px); }
  .detail__inner { grid-template-columns: 1fr; text-align: left; padding-top: calc(var(--header-h) + 20px); }
  .detail__poster { width: min(54vw, 240px); margin: 0 auto; }
  .detail__backdrop { height: 70vh; }
  .detail__actions .btn { flex: 1 1 140px; }
  .site-footer { padding-bottom: 110px; }
  body { padding-bottom: env(safe-area-inset-bottom); }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 10, 13, 0.96);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: 11px; color: var(--dim); }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a[aria-current='page'] { color: var(--text); }
  .tabbar a[aria-current='page'] svg { color: var(--red); }
  .toast { bottom: 90px; }
  .player { padding: 0; }
  .player__frame { width: 100%; border-radius: 0; }
}

@media (max-width: 420px) {
  .logo__ott { font-size: 13px; letter-spacing: 0.3em; }
  .install-btn span { display: none; }
}

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