/* ═══════════════════════════════════════════════════
   OTTLA — Premium OTT Platform
   Main Stylesheet
═══════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,400&display=swap");

/* ── CSS Variables ── */
:root {
  --red: #ff69b4;
  --red-dark: #5a1e8c;
  --red-glow: rgba(123, 47, 190, 0.35);
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --black-4: #222222;
  --card-bg: #161616;
  --surface: #1e1e1e;
  --white: #ffffff;
  --off-white: #e8e8e8;
  --grey: #888888;
  --grey-2: #555555;
  --gold: #f5c518;
  --green: #46d369;
  --font-display: "Bebas Neue", cursive;
  --font-body: "Outfit", sans-serif;
  --font-serif: "Playfair Display", serif;
  --nav-h: 65px;
  --bnav-h: 70px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-red: 0 0 30px var(--red-glow);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
}
ul {
  list-style: none;
}
input,
select,
textarea {
  font-family: var(--font-body);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: var(--black-2);
}
::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 4px;
}

/* ── Utilities ── */
.hidden {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.text-red {
  color: var(--red) !important;
}
.text-gold {
  color: var(--gold) !important;
}
.text-grey {
  color: var(--grey) !important;
}
.fw-800 {
  font-weight: 800;
}
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* ── Glass Effect ── */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-dark {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   SPLASH SCREEN
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#splashScreen {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}
#splashScreen::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out infinite;
  pointer-events: none;
}
.splash-logo {
  width: 180px;
  opacity: 0;
  transform: scale(0.6);
  animation: splashLogoReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px var(--red-glow));
}
.splash-logo-fallback {
  font-family: var(--font-display);
  font-size: 72px;
  letter-spacing: 6px;
  color: var(--white);
  text-shadow:
    0 0 40px var(--red-glow),
    0 0 80px rgba(123, 47, 190, 0.2);
  opacity: 0;
  transform: scale(0.6);
  animation: splashLogoReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
  position: relative;
  z-index: 1;
}
.splash-logo-fallback span {
  color: var(--red);
}
.splash-tagline {
  font-size: 13px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--grey);
  opacity: 0;
  animation: fadeUp 0.8s ease 1.4s forwards;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.splash-progress-wrap {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  opacity: 0;
  animation: fadeIn 0.5s ease 1.8s forwards;
  z-index: 1;
}
.splash-progress-bar {
  height: 2px;
  background: var(--black-4);
  border-radius: 2px;
  overflow: hidden;
}
.splash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #ff6b6b);
  border-radius: 2px;
  width: 0%;
  animation: progressFill 2.5s ease 2s forwards;
  box-shadow: 0 0 10px var(--red-glow);
}
.splash-percent {
  text-align: center;
  font-size: 11px;
  color: var(--grey-2);
  margin-top: 8px;
  letter-spacing: 2px;
}

@keyframes splashLogoReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}
@keyframes progressFill {
  to {
    width: 100%;
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.splash-exit {
  animation: fadeOut 0.6s ease forwards !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   AUTH SCREEN
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#authScreen {
  min-height: 100vh;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.auth-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(123, 47, 190, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at -10% 100%, rgba(123, 47, 190, 0.12) 0%, transparent 60%), var(--black);
}
.auth-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.auth-card {
  background: var(--black-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(123, 47, 190, 0.1);
}
.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo-text {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 4px;
  color: var(--white);
  text-shadow: 0 0 30px var(--red-glow);
}
.auth-logo-text span {
  color: var(--red);
}
.auth-subtitle {
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
}
.auth-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--white);
}
.auth-desc {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 28px;
}
.input-group-ottla {
  display: flex;
  align-items: center;
  background: var(--black-4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.input-group-ottla:focus-within {
  border-color: var(--red);
}
.country-code {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  height: 52px;
  background: transparent;
}
.input-group-ottla input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-body);
}
.input-group-ottla input::placeholder {
  color: var(--grey-2);
}
.input-group-ottla input:focus {
  outline: none;
}
.btn-ottla-primary {
  background: var(--red);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  width: 100%;
  transition: all var(--transition);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.btn-ottla-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-ottla-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--red-glow);
}
.btn-ottla-primary:hover::before {
  opacity: 1;
}
.btn-ottla-primary:active {
  transform: translateY(0);
}
.btn-ottla-ghost {
  background: transparent;
  color: var(--grey);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition);
}
.btn-ottla-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--grey-2);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}
.otp-input {
  width: 52px;
  height: 60px;
  background: var(--black-4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  transition: border-color var(--transition);
}
.otp-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.resend-otp {
  font-size: 13px;
  color: var(--grey);
  text-align: center;
}
.resend-otp a {
  color: var(--red);
  cursor: pointer;
}
.resend-otp a:hover {
  text-decoration: underline;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOP NAV
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#topNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
}
#topNav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
#topNav.transparent {
  background: transparent;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 3px;
  color: var(--white);
  text-shadow: 0 0 20px var(--red-glow);
  flex-shrink: 0;
}
.nav-logo span {
  color: var(--red);
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 40px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.nav-links a.active {
  color: var(--red);
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-search-btn,
.nav-bell {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: all var(--transition);
  cursor: pointer;
}
.nav-search-btn:hover,
.nav-bell:hover {
  background: rgba(255, 255, 255, 0.1);
}
.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid rgba(123, 47, 190, 0.4);
  transition: all var(--transition);
  overflow: hidden;
}
.nav-avatar:hover {
  border-color: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   BOTTOM NAV (Mobile)
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bnav-h);
  z-index: 900;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
}
.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  color: var(--grey);
  min-width: 40px;
  flex: 1;
}
.bnav-item i {
  font-size: 17px;
  transition: all var(--transition);
}
.bnav-item span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.bnav-item.active {
  color: var(--red);
}
.bnav-item.active i {
  filter: drop-shadow(0 0 8px var(--red-glow));
}
.bnav-item:hover {
  color: var(--white);
}
.bnav-shorts i {
  font-size: 24px;
}
.bnav-indicator {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--red);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity var(--transition);
}
.bnav-item.active .bnav-indicator {
  opacity: 1;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO BANNER
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active {
  opacity: 1;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.hero-bg-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a0a 0%, #0a0a0a 50%, #0a1020 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 40%, rgba(10, 10, 10, 0.1) 70%, transparent 100%),
    linear-gradient(to top, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.4) 30%, transparent 70%);
}
.hero-content {
  position: absolute;
  bottom: 14%;
  left: 6%;
  max-width: 540px;
  animation: heroContentReveal 0.8s ease forwards;
}
@keyframes heroContentReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1;
  letter-spacing: 2px;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--off-white);
}
.hero-meta-item i {
  color: var(--gold);
  font-size: 12px;
}
.hero-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-play {
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.btn-play:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.02);
}
.btn-trailer {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.btn-trailer:hover {
  background: rgba(255, 255, 255, 0.2);
}
.btn-watchlist-hero {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 16px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.btn-watchlist-hero:hover {
  background: var(--red);
  border-color: var(--red);
}
.hero-dots {
  position: absolute;
  bottom: 5%;
  left: 6%;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active {
  background: var(--red);
  width: 40px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTENT SECTIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.content-section {
  padding: 32px 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 20px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--red);
  border-radius: 2px;
  display: block;
}
.section-see-all {
  font-size: 13px;
  color: var(--red);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.section-see-all:hover {
  gap: 8px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTENT CARDS
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cards-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 20px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.cards-row::-webkit-scrollbar {
  display: none;
}

.content-card {
  flex: 0 0 160px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  background: var(--card-bg);
}
.content-card:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow:
    var(--shadow-card),
    0 0 0 2px rgba(123, 47, 190, 0.3);
  z-index: 10;
}
.content-card.wide {
  flex: 0 0 240px;
}
.content-card.banner {
  flex: 0 0 320px;
}

.card-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  transition: filter var(--transition);
}
.content-card.wide .card-poster {
  aspect-ratio: 16/9;
}
.content-card:hover .card-poster {
  filter: brightness(0.7);
}

.card-poster-fallback {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--card-bg), var(--black-4));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--grey-2);
  font-size: 40px;
  gap: 8px;
  transition: filter var(--transition);
}
.content-card.wide .card-poster-fallback {
  aspect-ratio: 16/9;
}

.card-poster-fallback span {
  font-size: 11px;
  color: var(--grey-2);
  font-weight: 600;
  text-align: center;
  padding: 0 8px;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: var(--white);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.card-badge.new {
  background: var(--green);
  color: var(--black);
}
.card-badge.gold {
  background: var(--gold);
  color: var(--black);
}

.card-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}
.card-progress-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
}

.card-info {
  padding: 10px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-meta-item {
  font-size: 11px;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
}
.content-card:hover .card-hover-overlay {
  opacity: 1;
}
.card-hover-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.card-hover-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition);
  color: var(--white);
}
.card-hover-btn.play-btn {
  background: var(--white);
  color: var(--black);
  font-size: 14px;
}
.card-hover-btn.play-btn:hover {
  background: var(--red);
  color: var(--white);
}
.card-hover-btn:not(.play-btn) {
  background: rgba(255, 255, 255, 0.15);
}
.card-hover-btn:not(.play-btn):hover {
  background: rgba(255, 255, 255, 0.3);
}
.card-hover-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   FEATURED ROW (wide banners)
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.featured-card {
  flex: 0 0 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 170px;
  transition: transform var(--transition);
}
.featured-card:hover {
  transform: scale(1.03);
}
.featured-card-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}
.featured-card-bg-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a0a, #0a0a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
}
.featured-card-content {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
}
.featured-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 4px;
}
.featured-card-sub {
  font-size: 11px;
  color: var(--grey);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   SHORTS MODULE
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#shortsPage {
  background: var(--black);
  height: 100vh;
  overflow: hidden;
  position: relative;
}
.shorts-container {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.shorts-container::-webkit-scrollbar {
  display: none;
}
.short-item {
  height: 100vh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  background: var(--black);
}
.short-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.short-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
}
.short-gradient-color {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: linear-gradient(135deg, var(--color1, #1a0a0a), var(--color2, #0a0a1a));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.short-actions {
  position: absolute;
  right: 16px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.short-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--white);
  cursor: pointer;
  transition: transform var(--transition);
}
.short-action-btn:hover {
  transform: scale(1.1);
}
.short-action-btn i {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background var(--transition);
}
.short-action-btn i:hover {
  background: rgba(255, 255, 255, 0.3);
}
.short-action-btn.liked i {
  background: var(--red);
}
.short-action-btn span {
  font-size: 12px;
  font-weight: 600;
}
.short-info {
  position: absolute;
  bottom: 80px;
  left: 16px;
  right: 80px;
}
.short-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.short-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.short-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.short-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--white);
  overflow: hidden;
}
.short-username {
  font-size: 13px;
  font-weight: 600;
}
.short-follow-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  padding: 3px 12px;
  border: 1.5px solid var(--red);
  border-radius: 20px;
  margin-left: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.short-follow-btn:hover {
  background: var(--red);
  color: var(--white);
}
.short-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}
.short-progress-fill {
  height: 100%;
  background: var(--red);
  width: 0%;
  animation: shortProgress 8s linear infinite;
}
@keyframes shortProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}
.shorts-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 48px 16px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}
.shorts-tabs {
  display: flex;
  gap: 20px;
}
.shorts-tab {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.shorts-tab.active {
  color: var(--white);
  border-bottom: 2px solid var(--white);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   VIDEO PLAYER
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#playerPage {
  background: #000;
  min-height: 100vh;
}
.player-wrapper {
  position: relative;
  background: #000;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 100vh;
  overflow: hidden;
}
.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player-fallback-bg {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--grey-2);
}
.player-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.player-wrapper:hover .player-overlay,
.player-wrapper.show-controls .player-overlay {
  opacity: 1;
}
.player-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}
.player-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.player-back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.player-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.player-ep-title {
  font-size: 13px;
  color: var(--grey);
}
.player-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 40px;
}
.player-control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition);
}
.player-control-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}
.player-play-btn {
  width: 64px;
  height: 64px;
  background: var(--white);
  color: var(--black);
  font-size: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.player-play-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: scale(1.05);
}
.player-bottom {
  padding: 12px 20px 16px;
}
.player-seekbar-wrap {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
}
.player-seekbar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.player-seek-fill {
  height: 100%;
  background: var(--red);
  border-radius: 4px;
  width: 30%;
  position: relative;
}
.player-seek-fill::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.player-controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-time {
  font-size: 13px;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.player-ctrl-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: all var(--transition);
}
.player-ctrl-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.player-volume {
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-vol-slider {
  width: 70px;
}
.player-vol-slider input[type="range"] {
  width: 100%;
  accent-color: var(--white);
  height: 3px;
}
.player-spacer {
  flex: 1;
}
.player-quality-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  padding: 3px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}
.player-quality-btn:hover {
  border-color: var(--white);
}
.skip-intro-btn {
  position: absolute;
  bottom: 90px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}
.skip-intro-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.player-info-section {
  padding: 24px 20px;
  background: var(--black-2);
}
.player-content-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.player-content-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.player-content-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}
.player-action-row {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}
.player-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--grey);
  transition: color var(--transition);
  font-size: 12px;
}
.player-action-item i {
  font-size: 22px;
}
.player-action-item:hover {
  color: var(--white);
}
.player-action-item.active {
  color: var(--red);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   SEARCH PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.search-header {
  padding: calc(var(--nav-h) + 16px) 20px 16px;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap i {
  position: absolute;
  left: 16px;
  color: var(--grey);
  font-size: 17px;
}
.search-input {
  width: 100%;
  background: var(--black-3);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 14px 48px 14px 46px;
  color: var(--white);
  font-size: 15px;
  transition: border-color var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--red);
}
.search-input::placeholder {
  color: var(--grey-2);
}
.search-clear {
  position: absolute;
  right: 14px;
  color: var(--grey);
  font-size: 16px;
  cursor: pointer;
  display: none;
}
.search-input:not(:placeholder-shown) ~ .search-clear {
  display: block;
}
.search-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 20px;
  scrollbar-width: none;
}
.search-filters::-webkit-scrollbar {
  display: none;
}
.filter-chip {
  flex-shrink: 0;
  background: var(--black-3);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--grey);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 24px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-chip.active,
.filter-chip:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.trending-searches {
  padding: 0 20px;
}
.trending-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trending-title i {
  color: var(--red);
}
.trending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trending-tag {
  background: var(--black-3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--off-white);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}
.trending-tag i {
  font-size: 11px;
  color: var(--grey);
}
.trending-tag:hover {
  border-color: var(--red);
  color: var(--red);
}
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 20px 100px;
}
.search-result-card {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.search-result-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.search-result-card .img-fallback {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-direction: column;
  gap: 6px;
  color: var(--grey-2);
}
.search-result-card .img-fallback span {
  font-size: 10px;
}
.search-result-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 8px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}
.search-result-overlay .title {
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   WATCHLIST PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px 100px;
}
.watchlist-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.watchlist-card img,
.watchlist-card .wl-fallback {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.watchlist-card .wl-fallback {
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-direction: column;
  gap: 8px;
  color: var(--grey-2);
}
.watchlist-card .wl-fallback span {
  font-size: 10px;
}
.wl-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition);
}
.wl-remove-btn:hover {
  background: var(--red);
}
.watchlist-empty {
  text-align: center;
  padding: 80px 40px;
  color: var(--grey);
}
.watchlist-empty i {
  font-size: 60px;
  color: var(--grey-2);
  margin-bottom: 20px;
}
.watchlist-empty h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: 8px;
}
.watchlist-empty p {
  font-size: 14px;
  line-height: 1.6;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROFILE PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.profile-header {
  background: linear-gradient(180deg, rgba(123, 47, 190, 0.15) 0%, transparent 100%);
  padding: calc(var(--nav-h) + 24px) 20px 28px;
  text-align: center;
}
.profile-avatar-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 14px;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  border: 3px solid rgba(123, 47, 190, 0.4);
  overflow: hidden;
}
.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: var(--black-3);
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}
.profile-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.profile-phone {
  font-size: 13px;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}
.profile-stat {
  text-align: center;
}
.profile-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}
.profile-stat-label {
  font-size: 11px;
  color: var(--grey);
  margin-top: 2px;
}
.profile-section {
  padding: 20px;
}
.profile-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: padding-left var(--transition);
}
.profile-menu-item:hover {
  padding-left: 8px;
}
.profile-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--black-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--grey);
  flex-shrink: 0;
}
.profile-menu-text {
  flex: 1;
}
.profile-menu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
.profile-menu-sub {
  font-size: 12px;
  color: var(--grey);
  margin-top: 2px;
}
.profile-menu-arrow {
  color: var(--grey-2);
  font-size: 14px;
}
.subscription-badge {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: var(--black);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   DETAIL PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.detail-hero {
  position: relative;
  height: 60vw;
  max-height: 500px;
  overflow: hidden;
}
.detail-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.detail-hero-bg-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a0a, #0a0a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black-2) 0%, transparent 50%), linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
}
.detail-back-btn {
  position: absolute;
  top: calc(var(--nav-h) + 10px);
  left: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}
.detail-back-btn:hover {
  background: var(--red);
}
.detail-content {
  padding: 20px;
  background: var(--black-2);
  margin-top: -20px;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 5;
}
.detail-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.detail-meta-badge {
  background: var(--black-4);
  color: var(--off-white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.detail-meta-badge.rating {
  background: rgba(245, 197, 24, 0.15);
  color: var(--gold);
}
.detail-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.btn-watch-now {
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  flex: 1;
  justify-content: center;
  min-width: 140px;
}
.btn-watch-now:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.btn-detail-secondary {
  background: var(--black-3);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}
.btn-detail-secondary:hover {
  border-color: var(--red);
  color: var(--red);
}
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}
.detail-tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey);
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.detail-tab.active {
  color: var(--white);
  border-bottom-color: var(--red);
}
.cast-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.cast-row::-webkit-scrollbar {
  display: none;
}
.cast-card {
  flex: 0 0 80px;
  text-align: center;
}
.cast-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 6px;
}
.cast-avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--black-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 6px;
  color: var(--grey-2);
}
.cast-name {
  font-size: 11px;
  color: var(--off-white);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-role {
  font-size: 10px;
  color: var(--grey);
}
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.episode-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--black-3);
  cursor: pointer;
  transition: background var(--transition);
}
.episode-card:hover {
  background: var(--black-4);
}
.episode-thumb {
  flex: 0 0 100px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-2);
  font-size: 24px;
  overflow: hidden;
}
.episode-info {
  flex: 1;
  overflow: hidden;
}
.episode-num {
  font-size: 11px;
  color: var(--grey);
  margin-bottom: 3px;
}
.episode-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode-duration {
  font-size: 11px;
  color: var(--grey);
  margin-top: 3px;
}
.episode-play-btn {
  color: var(--grey);
  font-size: 20px;
  cursor: pointer;
  transition: color var(--transition);
  flex-shrink: 0;
}
.episode-play-btn:hover {
  color: var(--red);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE TRANSITIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.page {
  animation: pageEnter 0.3s ease;
}
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   SKELETON LOADING
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.skeleton {
  background: linear-gradient(90deg, var(--black-3) 25%, var(--black-4) 50%, var(--black-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.sk-card {
  width: 160px;
  flex-shrink: 0;
}
.sk-poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
}
.sk-title {
  height: 12px;
  margin-top: 10px;
  width: 80%;
}
.sk-sub {
  height: 10px;
  margin-top: 6px;
  width: 60%;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOAST NOTIFICATION
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.toast-container {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(16px);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  animation:
    toastIn 0.3s ease,
    toastOut 0.3s ease 2.5s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast i {
  color: var(--red);
  font-size: 15px;
}
.toast.success i {
  color: var(--green);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.9);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   MODAL
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ottla-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 9990;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.ottla-modal-backdrop.open {
  display: flex;
}
.ottla-modal {
  background: var(--black-3);
  border-radius: 20px 20px 0 0;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  animation: modalSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--grey-2);
  border-radius: 4px;
  margin: 0 auto 20px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
  #topNav {
    padding: 0 16px;
  }
  .nav-links {
    display: none;
  }
  #bottomNav {
    display: flex;
  }
  body {
    padding-bottom: var(--bnav-h);
  }
  .hero-content {
    left: 4%;
    max-width: 90%;
    bottom: 10%;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-desc {
    -webkit-line-clamp: 2;
  }
  .content-card {
    flex: 0 0 130px;
  }
  .content-card.wide {
    flex: 0 0 200px;
  }
  .search-results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .watchlist-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-hero {
    height: 55vw;
    max-height: 280px;
  }
  .detail-title {
    font-size: 22px;
  }
  .player-wrapper {
    aspect-ratio: 16/9;
  }
}
@media (max-width: 480px) {
  .content-card {
    flex: 0 0 120px;
  }
  .content-card.wide {
    flex: 0 0 180px;
  }
  .hero-title {
    font-size: 28px;
  }
  .search-results-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .watchlist-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}
@media (min-width: 769px) {
  .search-results-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .watchlist-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .content-card {
    flex: 0 0 180px;
  }
  .content-card.wide {
    flex: 0 0 280px;
  }
  #bottomNav {
    display: none !important;
  }
}
@media (min-width: 1200px) {
  .content-card {
    flex: 0 0 200px;
  }
  .content-card.wide {
    flex: 0 0 320px;
  }
  .hero-section {
    height: 85vh;
  }
  .search-results-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
