/* ==========================================================================
   NeoStream - Modern Video Streaming UI
   ========================================================================== */
:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: #111a2e;
  --surface-2: #16203a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2fb;
  --text-2: #9aa7c4;
  --text-3: #64739a;
  --primary: #7c5cff;
  --primary-2: #4fa8ff;
  --grad: linear-gradient(135deg, #7c5cff 0%, #4fa8ff 100%);
  --grad-2: linear-gradient(135deg, #ff5f9e 0%, #ffb84d 100%);
  --success: #22d3a7;
  --danger: #ff4d6d;
  --warning: #ffb020;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --nav-h: 76px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 15% 0%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(50% 40% at 90% 10%, rgba(79, 168, 255, 0.12), transparent 60%),
    radial-gradient(70% 55% at 50% 110%, rgba(255, 95, 158, 0.08), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--text); }
ul { list-style: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #27344f; border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a4a70; }

::selection { background: rgba(124, 92, 255, 0.4); }

/* ---------------- Loader ---------------- */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s, visibility .5s;
}
#page-loader.done { opacity: 0; visibility: hidden; }
.spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 3px solid rgba(124, 92, 255, 0.2);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Layout ---------------- */
.container { width: min(1280px, 92%); margin: 0 auto; }
.main { min-height: 60vh; }

/* ---------------- Navbar ---------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .35s, box-shadow .35s;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.navbar.scrolled {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.nav-inner {
  width: min(1280px, 92%); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  height: 56px; width: auto; max-width: 200px;
  object-fit: contain; display: block;
}
.brand-footer .brand-logo {
  height: 52px; width: auto; max-width: 180px;
  object-fit: contain; display: block;
}
.brand-badge {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad);
  display: grid; place-items: center;
  font-size: 20px; color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.45);
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-badge.brand-img { background: transparent; box-shadow: none; width: auto; height: auto; }
.brand-badge.brand-img img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }

.nav-profile {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 6px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  color: #111827; font-weight: 600; font-size: 13.5px;
  transition: background .25s, border-color .25s;
}
.nav-profile:hover { background: rgba(0, 0, 0, 0.09); border-color: var(--primary); }
.nav-profile .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); font-size: 12.5px;
}

.nav-links { display: flex; gap: 6px; margin-left: 8px; }
.nav-links a {
  padding: 9px 15px; border-radius: 10px;
  color: #374151; font-weight: 500; font-size: 14.5px;
  transition: color .25s, background .25s;
  position: relative;
}
.nav-links a:hover { color: #111827; background: rgba(0, 0, 0, 0.05); }
.nav-links a.active { color: #111827; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--grad);
}

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 19px; color: #374151;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  transition: all .25s;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(124, 92, 255, 0.25); }
.search-btn { width: 40px; height: 40px; border-radius: 10px; }
.membership-btn {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  border-color: #f59e0b !important;
  color: #92400e !important;
}
.membership-btn:hover {
  background: linear-gradient(135deg, #fde68a, #fbbf24) !important;
  border-color: #d97706 !important;
  color: #78350f !important;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35) !important;
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.hamburger span { width: 22px; height: 2px; background: #374151; border-radius: 2px; transition: all .3s; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 14.5px;
  transition: transform .2s, box-shadow .25s, background .25s, color .25s, border-color .25s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgba(124, 92, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(124, 92, 255, 0.5); }
.btn-glass { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.14); }
.btn-ghost { color: #374151; border-color: #d1d5db; background: transparent; }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); background: rgba(124,92,255,0.06); }
.btn-soft { background: rgba(124, 92, 255, 0.15); color: var(--primary); }
.btn-play {
  background: #fff; color: #0a0f1d; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.btn-play i { color: var(--primary); font-size: 20px; }
.btn-play:hover { box-shadow: 0 16px 40px rgba(255, 255, 255, 0.18); }
.btn-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 14px; }
.btn-link:hover { gap: 10px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; height: min(88vh, 760px); min-height: 520px; overflow: hidden; }
.hero-slider, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide::before {
  content: ''; position: absolute; inset: 0;
  background: var(--slide-bg) center/cover no-repeat;
  transform: scale(1.15);
  animation: kenburns 16s ease-in-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.15) translateX(-2%); }
  to { transform: scale(1) translateX(0); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.55) 45%, rgba(7, 11, 20, 0.15) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 35%);
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); color: #fff;
  padding: 7px 16px; border-radius: 30px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
  animation: fadeUp .8s .1s both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 66px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
  margin: 20px 0 14px;
  animation: fadeUp .8s .25s both;
}
.hero-desc { color: #c6d0e8; font-size: 17px; max-width: 560px; animation: fadeUp .8s .4s both; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; animation: fadeUp .8s .55s both; }
.hero-dots {
  position: absolute; z-index: 5; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 20px; background: rgba(255, 255, 255, 0.3);
  transition: all .3s;
}
.hero-dots button.active { width: 30px; background: var(--primary); }

/* ---------------- Sections ---------------- */
.section { padding: 54px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 8px;
}
.section-tag.tag-2 { color: var(--success); }
.section-tag.tag-3 { color: var(--warning); }
.section-tag.tag-4 { color: var(--danger); }
.section-tag.tag-5 { color: var(--primary); }
.section-title { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; }

/* ---------------- Cards ---------------- */
.card-row, .grid-4, .grid-5 { display: grid; gap: 20px; }
.card-row { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.v-card { position: relative; transition: transform .3s; }
.v-card-media { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
.v-thumb {
  display: block; aspect-ratio: 2/3; width: 100%;
  background-size: cover; background-position: center;
  transition: transform .5s ease;
}
.v-thumb.square { aspect-ratio: 4/3; }
.v-card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(7, 11, 20, 0.55), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.v-card:hover .v-card-media::after { opacity: 1; }
.v-card:hover .v-thumb { transform: scale(1.07); }
.v-card:hover { transform: translateY(-6px); }
.v-play {
  position: absolute; z-index: 3; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.96); color: var(--primary);
  display: grid; place-items: center; font-size: 26px;
  opacity: 0; transition: all .35s cubic-bezier(.2, .8, .3, 1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.v-card:hover .v-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.v-card-body { padding: 12px 4px 0; }
.v-title {
  display: block; font-weight: 600; font-size: 14.5px; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color .2s;
}
.v-title:hover { color: var(--primary-2); }
.v-meta { display: flex; align-items: center; gap: 10px; margin-top: 5px; color: var(--text-3); font-size: 12.5px; }
.rating { color: var(--warning); font-weight: 600; }
.rating i { font-size: 13px; }

.v-stats { display: flex; align-items: center; gap: 14px; margin-top: 7px; color: var(--text-3); font-size: 12.5px; }
.v-stat { display: inline-flex; align-items: center; gap: 5px; }
.like-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--text-3); font-size: 12.5px; font-family: inherit; font-weight: 600;
  transition: color .2s, transform .15s;
}
.like-btn:hover { color: var(--danger, #ff5d6c); }
.like-btn.liked { color: var(--danger, #ff5d6c); }
.like-btn i { font-size: 15px; }
.like-btn.liking { transform: scale(1.2); }

.dash-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 6px; }
.dash-cat {
  background: var(--card, #131a2b); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.dash-cat:hover { transform: translateY(-4px); border-color: var(--primary-2, #7c5cff); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.dash-cat i { font-size: 30px; color: #fff; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--cat-grad); margin-bottom: 4px; }
.dash-cat b { font-family: var(--font-display); font-size: 16px; }
.dash-cat span { font-size: 12.5px; color: var(--text-3); }

.badge-premium, .badge-quality, .badge-live {
  position: absolute; z-index: 3; top: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 700;
  backdrop-filter: blur(8px);
}
.badge-premium { left: 10px; background: linear-gradient(135deg, #f7b500, #ff8a00); color: #1a1200; }
.badge-quality { right: 10px; background: rgba(10, 15, 30, 0.75); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.badge-live { right: 10px; background: rgba(255, 45, 85, 0.92); color: #fff; }

.live-dot { display: inline-flex; align-items: center; gap: 5px; }
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #ff2d55; animation: pulse 1.4s infinite; }
.live-line { color: var(--success); font-size: 12.5px; }
.chip-red { background: rgba(255, 45, 85, 0.16) !important; color: #ff5c7a !important; }

/* ---------------- Chips ---------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  transition: all .25s;
}
.chip:hover { color: #fff; border-color: var(--primary); }
.chip-link:hover { background: rgba(124, 92, 255, 0.15); }
.chip-gold { background: linear-gradient(135deg, rgba(247,181,0,.2), rgba(255,138,0,.2)); color: #ffc55a; border-color: rgba(247,181,0,.4); }
.chip-free { background: rgba(63,197,255,.14); color: #4ad0ff; border-color: rgba(63,197,255,.4); }
.chip-filter { cursor: pointer; padding: 9px 18px; }
.chip-filter.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(124,92,255,.35); }
.chip-small { font-size: 11px; padding: 3px 9px; }
.chips-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }

/* ---------------- Page head ---------------- */
.page-head { padding: calc(var(--nav-h) + 56px) 0 30px; text-align: center; }
.page-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin: 8px 0; }
.page-head p { color: var(--text-2); max-width: 560px; margin: 0 auto; }

.filters-sticky { padding: 14px 0 8px; position: sticky; top: var(--nav-h); z-index: 50; background: rgba(7,11,20,.85); backdrop-filter: blur(14px); }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-group { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); padding: 0 14px; border-radius: 12px; }
.filter-group label { color: var(--text-3); }
.filter-group select { background: transparent; border: none; outline: none; padding: 12px 4px; color: var(--text); cursor: pointer; }

/* ---------------- Detail hero ---------------- */
.detail-hero { position: relative; padding: calc(var(--nav-h) + 60px) 0 70px; }
.detail-hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--d-bg) center/cover no-repeat fixed;
  filter: blur(2px) brightness(.4);
  transform: scale(1.05);
}
.detail-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,11,20,.95), rgba(7,11,20,.7) 55%, rgba(7,11,20,.4)); }
.detail-content { position: relative; display: flex; gap: 44px; align-items: flex-start; flex-wrap: wrap; }
.detail-poster { width: 280px; flex-shrink: 0; }
.detail-poster img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 2/3; object-fit: cover;
}
.detail-info { flex: 1; min-width: 280px; }
.detail-title { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin: 14px 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-2); font-size: 14px; align-items: center; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-desc { color: #c6d0e8; font-size: 15.5px; max-width: 720px; margin: 18px 0 6px; }
.detail-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.premium-note { margin-top: 18px; padding: 12px 18px; border-radius: 12px; background: rgba(247,181,0,.1); border: 1px solid rgba(247,181,0,.3); color: #ffd88a; display: inline-flex; gap: 8px; align-items: center; }
.premium-note a { color: #ffc55a; font-weight: 700; text-decoration: underline; }

/* ---------------- Seasons / episodes ---------------- */
.season-block { margin-bottom: 34px; }
.season-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.season-head > div:first-child { display: flex; align-items: center; gap: 16px; }
.season-no {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  box-shadow: 0 10px 24px rgba(124,92,255,.4);
}
.season-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.season-meta { color: var(--text-3); font-size: 13px; }
.season-thumbs { display: flex; }
.s-thumb { width: 60px; height: 40px; border-radius: 8px; margin-left: -14px; background-size: cover; background-position: center; border: 2px solid var(--bg); }

.episode-list { display: flex; flex-direction: column; gap: 10px; }
.episode-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .3s;
}
.episode-row:hover { background: var(--surface-2); transform: translateX(4px); border-color: rgba(124,92,255,.4); }
.episode-row.active { border-color: var(--primary); background: rgba(124,92,255,.08); }
.ep-num { font-family: var(--font-display); font-weight: 700; color: var(--text-3); width: 30px; text-align: center; }
.ep-thumb { position: relative; width: 96px; height: 54px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; }
.ep-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; color: #fff; opacity: 0; transition: opacity .3s; background: rgba(0,0,0,.35); border-radius: 8px; }
.episode-row:hover .ep-play { opacity: 1; }
.ep-info { flex: 1; min-width: 0; }
.ep-info h4 { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-info span { color: var(--text-3); font-size: 12.5px; }
.ep-views { color: var(--text-3); font-size: 13px; display: inline-flex; gap: 5px; align-items: center; }
.ep-arrow { font-size: 24px; color: var(--text-3); transition: all .3s; }
.episode-row:hover .ep-arrow { color: var(--primary); transform: translateX(3px); }
.ep-state { color: var(--success); font-size: 18px; }

/* ---------------- Watch page ---------------- */
.watch-page { padding-top: calc(var(--nav-h) + 30px); padding-bottom: 60px; }
.watch-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.watch-title { font-family: var(--font-display); font-size: clamp(20px, 3vw, 30px); font-weight: 800; }
.watch-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.watch-frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: visible; /* allow native controls to render outside clip bounds */
  box-shadow: var(--shadow);
  background: #000;
  border: 1px solid var(--border);
}
/* aspect-ratio fallback for older browsers */
@supports not (aspect-ratio: 16/9) {
  .watch-frame { height: 0; padding-bottom: 56.25%; overflow: hidden; }
  .watch-frame > * { position: absolute; inset: 0; }
}
.player-box {
  width: 100%; height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.player-box iframe {
  display: block; width: 100%; height: 100%; border: 0;
}
.player-box video {
  display: block; width: 100%; height: 100%;
  object-fit: contain; background: #000;
}
.player-box video::-webkit-media-controls-panel {
  background-image: linear-gradient(transparent, rgba(0,0,0,.75));
}

/* ---------------- Custom Player (legacy, unused) ---------------- */
.cp-player {
  width: 100%; height: 100%;
  background: #000; user-select: none; -webkit-user-select: none;
}
.cp-player video {
  width: 100%; height: 100%;
  object-fit: contain; background: #000; display: block;
}
.cp-player video::-webkit-media-controls-panel { background-image: linear-gradient(transparent, rgba(0,0,0,.7)); }
.no-stream { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-3); font-size: 22px; }
.watch-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.watch-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.watch-info { margin-top: 30px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.watch-info h3 { font-family: var(--font-display); margin-bottom: 10px; }
.watch-info p { color: var(--text-2); }
.episode-guide { margin-top: 34px; }

/* ---------------- Auth pages ---------------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--nav-h) + 40px) 16px 60px; position: relative; overflow: hidden; }
.auth-glow {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,255,.3), transparent 65%);
  top: 8%; left: 12%; filter: blur(30px); animation: float 7s ease-in-out infinite;
}
.auth-glow.glow-2 { right: 8%; left: auto; top: 30%; background: radial-gradient(circle, rgba(255,95,158,.22), transparent 65%); animation-delay: 1.4s; }
.auth-glow.glow-3 { left: 60%; top: 55%; background: radial-gradient(circle, rgba(79,168,255,.25), transparent 65%); animation-delay: 2.6s; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-26px) } }
.auth-card {
  position: relative; z-index: 2;
  width: min(440px, 100%);
  background: rgba(17, 26, 46, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 38px 36px;
  box-shadow: var(--shadow);
  animation: fadeUp .7s both;
}
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-icon {
  width: 58px; height: 58px; border-radius: 18px;
  background: var(--grad); color: #fff;
  display: inline-grid; place-items: center; font-size: 26px;
  margin-bottom: 16px; box-shadow: 0 12px 30px rgba(124,92,255,.45);
}
.auth-head h1 { font-family: var(--font-display); font-size: 25px; font-weight: 800; }
.auth-head p { color: var(--text-2); margin-top: 8px; font-size: 14.5px; }
.auth-alt { margin-top: 22px; text-align: center; color: var(--text-3); font-size: 14px; }
.auth-alt a { color: var(--primary-2); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

.form-stack { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-2); }
.field label small { color: var(--text-3); font-weight: 400; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > i { position: absolute; left: 15px; color: var(--text-3); font-size: 17px; }
.input-wrap input {
  width: 100%; padding: 13px 16px 13px 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
.field textarea { width: 100%; padding: 13px 16px; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 12px; outline: none; resize: vertical; transition: border-color .25s; }
.field textarea:focus { border-color: var(--primary); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border-radius: 12px; font-size: 13.5px; margin-bottom: 16px; }
.alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-error { background: rgba(255,77,109,.1); border: 1px solid rgba(255,77,109,.35); color: #ff93a8; }
.alert-success { background: rgba(34,211,167,.1); border: 1px solid rgba(34,211,167,.35); color: #7ce6cd; }
.alert-info { background: rgba(79,168,255,.1); border: 1px solid rgba(79,168,255,.35); color: #9ccdff; }
.otp-dev { font-size: 20px; letter-spacing: 2px; color: #fff; }

/* OTP boxes */
.otp-card { width: min(480px, 100%); }
.otp-boxes { display: flex; gap: 10px; justify-content: center; margin: 8px 0 22px; }
.otp-input {
  width: 52px; height: 60px; text-align: center;
  font-size: 24px; font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border); border-radius: 12px; outline: none;
  transition: all .25s;
  color: var(--text);
}
.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,92,255,.18); transform: translateY(-3px); }
.otp-input.filled { border-color: var(--primary-2); }
.spin-in { animation: spinIn .8s cubic-bezier(.2,.8,.3,1); }
@keyframes spinIn { from { transform: rotate(-180deg) scale(0); } to { transform: rotate(0) scale(1); } }
.otp-resend { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-3); }
.resend-btn { color: var(--primary-2); font-weight: 600; }
.resend-btn:hover { text-decoration: underline; }

/* ---------------- Browse cards ---------------- */
.browse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.browse-card {
  display: flex; align-items: center; gap: 16px;
  padding: 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .3s; position: relative; overflow: hidden;
}
.browse-card::after { content:''; position:absolute; inset:0; background: var(--grad); opacity:0; transition: opacity .3s; mix-blend-mode: overlay; }
.browse-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.browse-card:hover::after { opacity: 1; }
.browse-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.browse-card h3 { font-size: 16.5px; font-weight: 700; }
.browse-card span { color: var(--text-3); font-size: 13px; }
.browse-card > i { margin-left: auto; color: var(--text-3); transition: all .3s; font-size: 20px; }
.browse-card:hover > i { color: var(--primary-2); transform: translateX(4px); }
.card-accent-2 .browse-icon { background: linear-gradient(135deg,#22d3a7,#4fa8ff); }
.card-accent-3 .browse-icon { background: linear-gradient(135deg,#ffb020,#ff5f9e); }
.card-accent-4 .browse-icon { background: linear-gradient(135deg,#ff5f9e,#7c5cff); }

/* ---------------- Profile ---------------- */
.profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; text-align: center; position: sticky; top: calc(var(--nav-h) + 20px); }
.profile-avatar {
  width: 84px; height: 84px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 34px; font-weight: 800;
  box-shadow: 0 12px 30px rgba(124,92,255,.4);
}
.profile-card h2 { font-family: var(--font-display); font-size: 20px; }
.profile-email { color: var(--text-3); font-size: 13.5px; margin: 4px 0 18px; }
.plan-strip {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px; border-radius: 14px; margin-bottom: 20px;
}
.plan-active { background: rgba(247,181,0,.08); border: 1px solid rgba(247,181,0,.3); }
.plan-none { background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.plan-strip > i { font-size: 24px; color: var(--warning); }
.plan-strip > div { flex: 1; }
.plan-strip b { display: block; font-size: 14px; }
.plan-strip span { font-size: 12px; color: var(--text-3); }
.profile-links { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.profile-links a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: all .25s; }
.profile-links a:hover { background: rgba(124,92,255,.12); color: #fff; }
.profile-links a i { font-size: 18px; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; text-align: left; }
.p-stat { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.p-stat i { display: block; font-size: 18px; color: var(--primary-2); margin-bottom: 6px; }
.p-stat b { display: block; font-size: 20px; font-family: var(--font-display); }
.p-stat span { font-size: 12px; color: var(--text-3); }
.tx-history-btn { margin-bottom: 16px; }
.btn-block { width: 100%; }
.content-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.box-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 18px; }

/* ---------------- Plans ---------------- */
.plans-section { padding-top: 20px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.plan-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: 22px; padding: 30px;
  transition: all .3s; display: flex; flex-direction: column;
  overflow: hidden;
}
.plan-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(124,92,255,.4); }
.plan-card.popular { border-color: var(--primary); background: linear-gradient(180deg, rgba(124,92,255,.1), var(--surface)); }
.plan-flag { position: absolute; top: 0; left: 0; right: 0; background: var(--grad); color: #fff; text-align: center; font-size: 12px; font-weight: 700; padding: 7px; letter-spacing: .08em; text-transform: uppercase; }
.plan-top { display: flex; align-items: center; gap: 14px; margin: 10px 0 18px; }
.plan-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 22px; }
.plan-top h3 { font-family: var(--font-display); font-size: 20px; }
.plan-price { display: flex; align-items: baseline; margin-bottom: 20px; }
.plan-price .currency { font-size: 22px; font-weight: 700; color: var(--primary-2); }
.plan-price .amount { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price .period { color: var(--text-3); margin-left: 6px; font-size: 14px; }
.plan-feats { margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-feats li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.plan-feats li i { color: var(--success); font-size: 17px; }

/* ---------------- Checkout ---------------- */
.checkout-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.order-item { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--border); color: var(--text-2); font-size: 14.5px; }
.order-item b { color: var(--text); }
.order-item.discount b { color: var(--success); }
.order-total { display: flex; justify-content: space-between; padding-top: 16px; font-size: 17px; }
.order-total b { font-family: var(--font-display); font-size: 22px; color: var(--primary-2); }
.pay-methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 6px; }
.pay-method input { position: absolute; opacity: 0; }
.pm-box { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; transition: all .25s; }
.pm-box i { font-size: 24px; color: var(--text-3); }
.pm-box b { display: block; font-size: 14.5px; }
.pm-box small { color: var(--text-3); font-size: 12.5px; }
.pay-method input:checked + .pm-box { border-color: var(--primary); background: rgba(124,92,255,.08); }
.pay-method input:checked + .pm-box i { color: var(--primary-2); }
.big-price { font-family: var(--font-display); font-size: 40px; font-weight: 800; margin: 10px 0; }
.center-box { text-align: center; max-width: 460px; margin: 0 auto; }
.pay-note { display: flex; gap: 8px; align-items: flex-start; color: var(--text-3); font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.pay-note i { margin-top: 2px; }
.pay-status-box { padding: 40px 28px; }
.pay-status-icon { font-size: 64px; line-height: 1; margin-bottom: 14px; }
.pay-status-icon.ok { color: #28c979; }
.pay-status-icon.fail { color: var(--danger, #ff5d6c); }
.pay-spinner { display: flex; justify-content: center; margin-bottom: 18px; }
.pay-ref { margin-top: 14px; font-size: 12px; word-break: break-all; }
.muted { color: var(--text-3); }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; white-space: nowrap; }
.data-table thead th { background: rgba(255,255,255,.03); color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.data-table tbody tr { border-top: 1px solid var(--border); transition: background .2s; }
.data-table tbody tr:hover { background: rgba(255,255,255,.03); }
.amount { color: var(--success); font-weight: 700; }
.muted { color: var(--text-3); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 30px; font-size: 11.5px; font-weight: 700; text-transform: capitalize; }
.badge-paid { background: rgba(34,211,167,.14); color: #7ce6cd; }
.badge-pending { background: rgba(255,176,32,.14); color: #ffd88a; }
.badge-failed { background: rgba(255,77,109,.14); color: #ff93a8; }
.badge-active { background: rgba(34,211,167,.14); color: #7ce6cd; }
.badge-banned { background: rgba(255,77,109,.14); color: #ff93a8; }

/* ---------------- Pagination / empty ---------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 34px; }
.page-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; font-size: 18px; transition: all .25s; }
.page-btn:hover { background: var(--grad); color: #fff; border-color: transparent; }
.page-info { color: var(--text-3); font-weight: 600; }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state i { font-size: 56px; color: var(--text-3); display: block; margin-bottom: 18px; }
.empty-state h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; }
.empty-state p { color: var(--text-3); margin-bottom: 20px; }
.count-pill { display: inline-block; background: var(--surface-2); color: var(--text-2); font-size: 12px; border-radius: 20px; padding: 2px 10px; vertical-align: middle; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.info-card i { font-size: 22px; color: var(--primary-2); }
.info-card h4 { font-size: 14.5px; }
.info-card p { color: var(--text-3); font-size: 13px; }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; top: calc(var(--nav-h) + 16px); right: 20px; z-index: 2000; }
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px; min-width: 280px; max-width: 380px;
  animation: slideIn .5s cubic-bezier(.2,.8,.3,1);
}
.toast i { font-size: 20px; }
.toast button { margin-left: auto; color: var(--text-3); font-size: 17px; }
.toast-success i { color: var(--success); }
.toast-error i { color: var(--danger); }
.toast-info i { color: var(--primary-2); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------------- Search bar ---------------- */
.search-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  background: rgba(7,11,20,.96); backdrop-filter: blur(20px);
  padding: 18px 5% 20px;
  transform: translateY(-120%); transition: transform .4s cubic-bezier(.2,.8,.3,1);
  border-bottom: 1px solid var(--border);
}
.search-bar.open { transform: translateY(0); }
.search-form { position: relative; display: flex; align-items: center; max-width: 700px; margin: 0 auto; }
.search-form > i { position: absolute; left: 20px; font-size: 20px; color: var(--text-3); }
.search-form input {
  flex: 1; padding: 16px 50px 16px 54px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 16px; outline: none; font-size: 16px;
  transition: border-color .25s;
}
.search-form input:focus { border-color: var(--primary); }
.close-search { position: absolute; right: 12px; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 18px; }
.search-suggest { max-width: 700px; margin: 12px auto 0; display: flex; flex-direction: column; gap: 8px; }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: all .25s; }
.suggest-item:hover { border-color: var(--primary); background: var(--surface-2); }
.suggest-item img { width: 44px; height: 60px; object-fit: cover; border-radius: 8px; }
.suggest-item .s-thumb-live { width: 66px; height: 44px; object-fit: cover; border-radius: 8px; }
.suggest-item b { font-size: 14px; display: block; }
.suggest-item span { font-size: 12px; color: var(--text-3); }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(7,11,20,.6); margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding: 54px 5% 36px; max-width: 1280px; margin: 0 auto; }
.footer-brand p { color: var(--text-3); font-size: 14px; margin: 14px 0 18px; max-width: 320px; }
.footer-brand .brand-badge.brand-img img { height: 44px; max-width: 180px; }
.footer-logo-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.social-links { display: flex; gap: 10px; }
.social-links a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--border); display: grid; place-items: center; font-size: 17px; transition: all .25s; }
.social-links a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.footer-col h4 { font-family: var(--font-display); font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-3); font-size: 14px; padding: 5px 0; transition: all .2s; }
.footer-col a:hover { color: var(--primary-2); padding-left: 6px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 5%; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; }
.footer-bottom p { color: var(--text-3); font-size: 13.5px; }
.lang-switch { display: flex; gap: 16px; }
.lang-switch a { color: var(--text-2); font-size: 13.5px; }

/* ---------------- Mobile menu ---------------- */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 990;
  background: #ffffff; backdrop-filter: none;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  display: flex; flex-direction: column; padding: 14px 5% 22px;
  transform: translateY(-120%); transition: transform .4s cubic-bezier(.2,.8,.3,1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; color: #374151; }
.mobile-menu a i { font-size: 20px; }
.mobile-menu a:hover { background: rgba(124,92,255,.08); color: var(--primary); }

/* ---------------- Scroll top ---------------- */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad); color: #fff; font-size: 20px;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(124,92,255,.4);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .3s;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------- Ads ---------------- */
.ad-banner { margin: 18px auto; padding: 16px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-3); font-size: 13px; }
.ad-banner iframe { max-width: 100%; }

/* ---------------- Maintenance ---------------- */
.maintenance-page { text-align: center; padding: 120px 20px; }
.maintenance-page i { font-size: 64px; color: var(--warning); }
.maintenance-page h1 { font-family: var(--font-display); margin: 16px 0 8px; }
.maintenance-page p { color: var(--text-3); }

/* ---------------- Animations ---------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .profile-grid, .contact-grid, .checkout-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .detail-content { gap: 28px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .card-row, .grid-5, .grid-4 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .detail-poster { width: 100%; max-width: 240px; margin: 0 auto; }
  .detail-content { justify-content: center; text-align: center; }
  .detail-actions, .chip-row, .detail-meta { justify-content: center; }
  .hero { min-height: 480px; }
  .hero-title { font-size: 34px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .season-head { flex-direction: column; align-items: flex-start; }
  .season-thumbs { display: none; }
  .ep-views { display: none; }
  .otp-input { width: 44px; height: 52px; font-size: 20px; }
  .navbar .btn-ghost { display: none; }
  .auth-card { padding: 28px 20px; }
  .brand-logo { height: 44px; max-width: 160px; }
  .brand-footer .brand-logo { height: 42px; max-width: 150px; }
  .footer-logo-wrap { padding: 6px 12px; border-radius: 10px; }
  .brand-name { font-size: 16px; }
  .nav-profile .np-label { display: none; }
  .nav-profile { padding: 5px; }
}

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