/* ================================================================
   CineWave — Main Stylesheet v4.0
   Netflix-dark UI | Fully Mobile Responsive | All bugs fixed
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --red:          #e50914;
  --red-dark:     #b2070f;
  --red-glow:     rgba(229,9,20,0.25);
  --blue:         #0097e6;
  --blue-glow:    rgba(0,151,230,0.25);
  --gold:         #f5c518;
  --green:        #00d084;
  --bg:           #0a0a0f;
  --bg2:          #111118;
  --bg3:          #16161f;
  --bg4:          #1c1c26;
  --card:         #13131a;
  --border:       rgba(255,255,255,0.08);
  --border2:      rgba(255,255,255,0.04);
  --text:         #e0e0ea;
  --muted:        #777788;
  --white:        #ffffff;
  --r:            10px;
  --r-lg:         16px;
  --shadow:       0 8px 40px rgba(0,0,0,0.6);
  --shadow-sm:    0 4px 20px rgba(0,0,0,0.4);
  --ease:         cubic-bezier(0.4,0,0.2,1);
  --font-head:    'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;
  --nav-h:        64px;
}

/* ================================================================
   THEMES — applied via data-theme on <html>
   Default (no attribute) = Midnight Black (existing :root above)
   ================================================================ */

/* ── 1. Ocean Blue ── */
[data-theme="ocean"] {
  --red:          #0ea5e9;
  --red-dark:     #0284c7;
  --red-glow:     rgba(14,165,233,0.25);
  --bg:           #020b18;
  --bg2:          #071525;
  --bg3:          #0c1f35;
  --bg4:          #122844;
  --card:         #091c30;
  --border:       rgba(14,165,233,0.12);
  --border2:      rgba(14,165,233,0.06);
  --text:         #d0eaff;
  --muted:        #5588aa;
}

/* ── 2. Emerald Green ── */
[data-theme="emerald"] {
  --red:          #10b981;
  --red-dark:     #059669;
  --red-glow:     rgba(16,185,129,0.25);
  --bg:           #020f0a;
  --bg2:          #071a10;
  --bg3:          #0b2419;
  --bg4:          #102e20;
  --card:         #091c14;
  --border:       rgba(16,185,129,0.12);
  --border2:      rgba(16,185,129,0.06);
  --text:         #ccf0e0;
  --muted:        #4d9970;
}

/* ── 3. Royal Purple ── */
[data-theme="purple"] {
  --red:          #a855f7;
  --red-dark:     #9333ea;
  --red-glow:     rgba(168,85,247,0.25);
  --bg:           #08030f;
  --bg2:          #110820;
  --bg3:          #180d2e;
  --bg4:          #20113c;
  --card:         #130a26;
  --border:       rgba(168,85,247,0.12);
  --border2:      rgba(168,85,247,0.06);
  --text:         #e8d5ff;
  --muted:        #8855bb;
}

/* ── 4. Sunset Gold ── */
[data-theme="gold"] {
  --red:          #f59e0b;
  --red-dark:     #d97706;
  --red-glow:     rgba(245,158,11,0.25);
  --bg:           #0f0a00;
  --bg2:          #1a1200;
  --bg3:          #231900;
  --bg4:          #2e2200;
  --card:         #1c1400;
  --border:       rgba(245,158,11,0.12);
  --border2:      rgba(245,158,11,0.06);
  --text:         #fff3cc;
  --muted:        #aa8833;
}

/* ── 5. Rose Pink ── */
[data-theme="rose"] {
  --red:          #f43f5e;
  --red-dark:     #e11d48;
  --red-glow:     rgba(244,63,94,0.25);
  --bg:           #0f0208;
  --bg2:          #1a0510;
  --bg3:          #230818;
  --bg4:          #2e0a20;
  --card:         #1c0614;
  --border:       rgba(244,63,94,0.12);
  --border2:      rgba(244,63,94,0.06);
  --text:         #ffe0ea;
  --muted:        #aa4466;
}

/* ── 6. Neon Cyan ── */
[data-theme="cyan"] {
  --red:          #00f5ff;
  --red-dark:     #00c8d4;
  --red-glow:     rgba(0,245,255,0.25);
  --bg:           #000d10;
  --bg2:          #001a1f;
  --bg3:          #00252c;
  --bg4:          #003038;
  --card:         #001e24;
  --border:       rgba(0,245,255,0.14);
  --border2:      rgba(0,245,255,0.06);
  --text:         #ccfeff;
  --muted:        #3399aa;
  --gold:         #00f5ff;
}

/* ── 7. Volcanic Orange ── */
[data-theme="volcano"] {
  --red:          #ff6b35;
  --red-dark:     #e05520;
  --red-glow:     rgba(255,107,53,0.28);
  --bg:           #0f0600;
  --bg2:          #1a0e00;
  --bg3:          #251500;
  --bg4:          #301c00;
  --card:         #1f1000;
  --border:       rgba(255,107,53,0.14);
  --border2:      rgba(255,107,53,0.06);
  --text:         #fff0e8;
  --muted:        #aa6644;
  --gold:         #ffb347;
}

/* ── 8. Arctic White (Light) ── */
[data-theme="arctic"] {
  --red:          #0055ff;
  --red-dark:     #0040cc;
  --red-glow:     rgba(0,85,255,0.18);
  --bg:           #f0f2f8;
  --bg2:          #e4e8f4;
  --bg3:          #d8ddf0;
  --bg4:          #c8ceea;
  --card:         #ffffff;
  --border:       rgba(0,85,255,0.12);
  --border2:      rgba(0,85,255,0.06);
  --text:         #0d1030;
  --muted:        #5566aa;
  --white:        #0d1030;
  --gold:         #f0a800;
  --shadow:       0 8px 40px rgba(0,0,0,0.12);
  --shadow-sm:    0 4px 20px rgba(0,0,0,0.08);
}

/* Arctic: navbar & cards need special text treatment */
[data-theme="arctic"] .cw-navbar { background: #ffffff !important; box-shadow: 0 2px 20px rgba(0,85,255,0.1); }
[data-theme="arctic"] .cw-card { background: #ffffff; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
[data-theme="arctic"] .cw-card-title { color: #0d1030; }
[data-theme="arctic"] .cw-section-title { color: #0d1030; }
[data-theme="arctic"] ::-webkit-scrollbar-track { background: #e4e8f4; }
[data-theme="arctic"] .cw-footer { background: #d8ddf0; }



/* ================================================================
   THEMES — applied via data-theme on <html>
   Default (no attribute) = Midnight Black (existing :root above)
   ================================================================ */

/* ── 1. Ocean Blue ── */
[data-theme="ocean"] {
  --red:          #0ea5e9;
  --red-dark:     #0284c7;
  --red-glow:     rgba(14,165,233,0.25);
  --bg:           #020b18;
  --bg2:          #071525;
  --bg3:          #0c1f35;
  --bg4:          #122844;
  --card:         #091c30;
  --border:       rgba(14,165,233,0.12);
  --border2:      rgba(14,165,233,0.06);
  --text:         #d0eaff;
  --muted:        #5588aa;
}

/* ── 2. Emerald Green ── */
[data-theme="emerald"] {
  --red:          #10b981;
  --red-dark:     #059669;
  --red-glow:     rgba(16,185,129,0.25);
  --bg:           #020f0a;
  --bg2:          #071a10;
  --bg3:          #0b2419;
  --bg4:          #102e20;
  --card:         #091c14;
  --border:       rgba(16,185,129,0.12);
  --border2:      rgba(16,185,129,0.06);
  --text:         #ccf0e0;
  --muted:        #4d9970;
}

/* ── 3. Royal Purple ── */
[data-theme="purple"] {
  --red:          #a855f7;
  --red-dark:     #9333ea;
  --red-glow:     rgba(168,85,247,0.25);
  --bg:           #08030f;
  --bg2:          #110820;
  --bg3:          #180d2e;
  --bg4:          #20113c;
  --card:         #130a26;
  --border:       rgba(168,85,247,0.12);
  --border2:      rgba(168,85,247,0.06);
  --text:         #e8d5ff;
  --muted:        #8855bb;
}

/* ── 4. Sunset Gold ── */
[data-theme="gold"] {
  --red:          #f59e0b;
  --red-dark:     #d97706;
  --red-glow:     rgba(245,158,11,0.25);
  --bg:           #0f0a00;
  --bg2:          #1a1200;
  --bg3:          #231900;
  --bg4:          #2e2200;
  --card:         #1c1400;
  --border:       rgba(245,158,11,0.12);
  --border2:      rgba(245,158,11,0.06);
  --text:         #fff3cc;
  --muted:        #aa8833;
}

/* ── 5. Rose Pink ── */
[data-theme="rose"] {
  --red:          #f43f5e;
  --red-dark:     #e11d48;
  --red-glow:     rgba(244,63,94,0.25);
  --bg:           #0f0208;
  --bg2:          #1a0510;
  --bg3:          #230818;
  --bg4:          #2e0a20;
  --card:         #1c0614;
  --border:       rgba(244,63,94,0.12);
  --border2:      rgba(244,63,94,0.06);
  --text:         #ffe0ea;
  --muted:        #aa4466;
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); }

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ================================================================
   NAVBAR
   ================================================================ */
.cw-navbar {
  background: color-mix(in srgb, var(--bg) 97%, transparent) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  z-index: 1050;
  transition: background 0.3s;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--red);
  text-shadow: 0 0 24px var(--red-glow);
  line-height: 1;
}

/* Nav links */
.navbar-nav .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  border-radius: 6px;
  transition: all 0.2s !important;
}
.navbar-nav .nav-link:hover {
  color: var(--white) !important;
  background: rgba(255,255,255,0.07) !important;
}

/* Dropdown */
.cw-dropdown {
  background: var(--bg3) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  padding: 0.5rem !important;
  box-shadow: var(--shadow) !important;
  min-width: 170px;
}
.cw-dropdown .dropdown-item {
  color: var(--text) !important;
  border-radius: 6px !important;
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem !important;
  transition: all 0.15s;
}
.cw-dropdown .dropdown-item:hover {
  background: var(--red) !important;
  color: white !important;
}

/* Search bar */
.cw-search-wrapper { width: 260px; position: relative; }
.cw-search-input {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: var(--white) !important;
  border-radius: 8px 0 0 8px !important;
  font-size: 0.85rem;
  height: 38px;
  transition: all 0.2s;
}
.cw-search-input:focus {
  background: rgba(255,255,255,0.11) !important;
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px var(--red-glow) !important;
}
.cw-search-input::placeholder { color: var(--muted) !important; }
.cw-search-btn {
  background: var(--red) !important;
  border: none !important;
  color: white !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 0 14px;
  height: 38px;
  transition: background 0.2s;
}
.cw-search-btn:hover { background: var(--red-dark) !important; }

/* Live search dropdown */
.cw-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  z-index: 9999;
  max-height: 400px;
  overflow-y: auto;
}
.cw-search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border2);
  color: var(--text);
  transition: background 0.15s;
}
.cw-search-result-item:last-child { border-bottom: none; }
.cw-search-result-item:hover { background: var(--bg4); color: var(--white); }
.cw-search-result-img {
  width: 34px; height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg4);
}
.cw-search-result-info { flex: 1; min-width: 0; }
.cw-search-result-title {
  font-weight: 600; font-size: 0.85rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cw-search-result-meta { font-size: 0.73rem; color: var(--muted); margin-top: 2px; }
.cw-search-no-results { padding: 20px; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ── Buttons ── */
.cw-btn-outline {
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: var(--white) !important;
  border-radius: 7px !important;
  font-size: 0.82rem;
  padding: 0.32rem 0.9rem !important;
  transition: all 0.2s;
  display: inline-flex; align-items: center;
}
.cw-btn-outline:hover { border-color: var(--red) !important; color: var(--red) !important; }

/* Mobile menu */
.navbar-collapse {
  background: color-mix(in srgb, var(--bg) 98%, transparent);
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding: 0.5rem 0.75rem 1rem;
  border-radius: 0 0 12px 12px;
}
@media (min-width: 992px) {
  .navbar-collapse {
    background: transparent;
    border-top: none;
    margin-top: 0;
    padding: 0;
    border-radius: 0;
  }
}

/* ================================================================
   GLOBAL BUTTONS
   ================================================================ */
.cw-btn-red {
  background: var(--red) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600;
  transition: all 0.2s !important;
}
.cw-btn-red:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--red-glow) !important;
}
.cw-btn-outline-white {
  background: rgba(255,255,255,0.1) !important;
  color: white !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 8px !important;
  font-weight: 500;
  backdrop-filter: blur(6px);
  transition: all 0.2s !important;
}
.cw-btn-outline-white:hover {
  background: rgba(255,255,255,0.2) !important;
  border-color: white !important;
}
.cw-btn-ghost {
  background: transparent !important;
  color: var(--muted) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  transition: all 0.2s !important;
}
.cw-btn-ghost:hover { color: var(--text) !important; border-color: rgba(255,255,255,0.2) !important; }

/* ================================================================
   HERO CAROUSEL
   ================================================================ */
.cw-hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

/* Desktop par mobile hero section hide karo */
.cw-hero-mobile { display: none !important; }

.cw-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(32px) brightness(0.22) saturate(1.4);
  transform: scale(1.12);
  z-index: 0;
}
.cw-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}
@media (max-width: 767px) {
  .cw-hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 60%, rgba(0,0,0,0.97) 100%);
  }
}

.carousel-item { position: relative; }
.carousel-item .container-fluid {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 56px;
  padding-left: 8% !important;
  padding-right: 8% !important;
}

.cw-hero-poster-col {
  padding-right: 1.5rem;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cw-hero-poster {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.07);
  display: block;
}
.cw-hero-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  min-height: 520px;
  padding: 32px 0;
}

.carousel-item.active .cw-hero-poster    { animation: posterIn 0.65s var(--ease) both; }
@keyframes posterIn {
  from { opacity: 0; transform: translateX(-18px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.carousel-item.active .cw-hero-badge    { animation: fadeUp 0.5s 0.1s var(--ease) both; }
.carousel-item.active .cw-hero-title    { animation: fadeUp 0.5s 0.2s var(--ease) both; }
.carousel-item.active .cw-hero-meta     { animation: fadeUp 0.5s 0.3s var(--ease) both; }
.carousel-item.active .cw-hero-desc     { animation: fadeUp 0.5s 0.35s var(--ease) both; }
.carousel-item.active .cw-hero-rating   { animation: fadeUp 0.5s 0.4s var(--ease) both; }
.carousel-item.active .cw-hero-actions  { animation: fadeUp 0.5s 0.45s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cw-hero-info { padding-left: 1.5rem; }
.cw-hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--red);
  color: white;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.cw-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 1px; color: white;
  line-height: 1.05; margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.cw-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cw-hero-desc {
  color: rgba(255,255,255,0.72); font-size: 0.9rem;
  line-height: 1.7; max-width: 480px; margin-bottom: 12px;
}
.cw-hero-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.cw-stars      { color: var(--gold); font-size: 0.88rem; }
.cw-rating-val { color: var(--gold); font-weight: 600; font-size: 0.88rem; }
.cw-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cw-tag-year {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8);
  padding: 3px 10px; border-radius: 4px; font-size: 0.78rem; font-weight: 600;
}
.cw-tag-type {
  padding: 3px 10px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase;
}
.tag-movie  { background: var(--red);  color: white; }
.tag-series { background: var(--blue); color: white; }
.cw-tag-genre {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  padding: 2px 9px; border-radius: 4px; font-size: 0.74rem;
}

.cw-carousel-btn {
  width: 46px !important; height: 46px !important;
  background: rgba(0,0,0,0.55) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 50% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  transition: all 0.2s !important;
  top: 50% !important; transform: translateY(-50%) !important;
}
.cw-carousel-btn:hover { background: var(--red) !important; border-color: var(--red) !important; }
.cw-carousel-btn i { font-size: 1.1rem; color: white !important; }
.cw-carousel-btn .carousel-control-prev-icon,
.cw-carousel-btn .carousel-control-next-icon { display: none !important; }
.carousel-control-prev.cw-carousel-btn { left: 16px; }
.carousel-control-next.cw-carousel-btn { right: 16px; }

.cw-carousel-indicators {
  position: absolute; bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 10; margin: 0;
}
.cw-carousel-indicators button {
  width: 42px !important; height: 58px !important;
  border-radius: 6px !important;
  background-size: cover !important; background-position: center !important;
  border: 2px solid transparent !important;
  opacity: 0.5; transition: all 0.25s !important; flex-shrink: 0;
}
.cw-carousel-indicators button.active,
.cw-carousel-indicators button:hover {
  opacity: 1 !important; border-color: var(--red) !important; transform: scale(1.06);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.cw-section { padding: 2.5rem 0; }
.cw-section-dark { background: var(--bg2); }
.cw-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.cw-section-title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: 0.5px; color: white;
  display: flex; align-items: center; gap: 10px; margin: 0;
}
.cw-accent-bar {
  display: inline-block; width: 4px; height: 22px;
  background: var(--red); border-radius: 2px;
  box-shadow: 0 0 10px var(--red-glow); flex-shrink: 0;
}
.cw-accent-bar.cw-accent-blue { background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); }
.cw-see-all {
  color: var(--muted); font-size: 0.82rem; font-weight: 500;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; transition: color 0.2s;
}
.cw-see-all:hover { color: var(--red); }

.cw-genre-strip {
  padding: 0.85rem 0;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cw-genre-scroll {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
}
.cw-genre-scroll::-webkit-scrollbar { display: none; }
.cw-genre-pill {
  display: inline-flex; align-items: center;
  padding: 6px 16px; border-radius: 20px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.8rem; font-weight: 500;
  white-space: nowrap; transition: all 0.2s; flex-shrink: 0;
}
.cw-genre-pill:hover, .cw-genre-pill.active { background: var(--red); border-color: var(--red); color: white; }

/* ================================================================
   MOVIE CARDS
   ================================================================ */
.cw-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  height: 100%;
}
.cw-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0,0,0,0.65);
  border-color: rgba(229,9,20,0.4);
  z-index: 5; position: relative;
}
.cw-card-link { display: block; height: 100%; color: inherit; }
.cw-card-link:hover { color: inherit; }
.cw-card-img-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--bg4); }
.cw-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.cw-card:hover .cw-card-img { transform: scale(1.06); }
.cw-card-type-badge {
  position: absolute; top: 7px; left: 7px;
  font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.7px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; z-index: 2;
}
.badge-movie  { background: var(--red);  color: white; }
.badge-series { background: var(--blue); color: white; }
.cw-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.1) 100%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; z-index: 3;
}
.cw-card:hover .cw-card-overlay { opacity: 1; }
.cw-card-overlay-inner {
  padding: 14px; width: 100%;
  transform: translateY(8px); transition: transform 0.3s var(--ease);
}
.cw-card:hover .cw-card-overlay-inner { transform: translateY(0); }
.cw-card-play-btn {
  width: 40px; height: 40px;
  background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: white; margin-bottom: 8px;
  box-shadow: 0 4px 14px var(--red-glow); transition: transform 0.2s;
}
.cw-card:hover .cw-card-play-btn { transform: scale(1.1); }
.cw-card-genres { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.cw-mini-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); font-size: 0.66rem; padding: 2px 7px; border-radius: 3px; }
.cw-card-rating { color: var(--gold); font-size: 0.78rem; font-weight: 600; margin-bottom: 4px; }
.cw-card-desc-preview {
  font-size: 0.73rem; color: rgba(255,255,255,0.6); line-height: 1.4; margin-bottom: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cw-card-body { padding: 9px 10px 11px; }
.cw-card-title {
  font-weight: 600; font-size: 0.82rem; color: var(--text); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s;
}
.cw-card:hover .cw-card-title { color: white; }
.cw-card-meta { display: flex; justify-content: space-between; align-items: center; }
.cw-card-year  { font-size: 0.73rem; color: var(--muted); }
.cw-card-star  { font-size: 0.73rem; color: var(--gold); font-weight: 600; }
.cw-card-star i { font-size: 0.62rem; }

/* ================================================================
   BROWSE SECTION
   ================================================================ */
.cw-browse-section { padding: 2rem 0 1rem; background: var(--bg); }
.cw-browse-section-header { display: flex; justify-content: space-between; align-items: center; padding: 0 0 1rem 0; }
.cw-browse-title-bar { display: flex; align-items: center; gap: 0; }
.cw-browse-accent { display: inline-block; width: 4px; height: 24px; background: var(--red); border-radius: 2px; margin-right: 10px; flex-shrink: 0; }
.cw-browse-accent.cw-accent-blue { background: var(--blue); }
.cw-browse-heading { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: white; letter-spacing: 0.06em; margin: 0; text-transform: uppercase; }

.cw-sidebar { padding: 0; border-right: 1px solid var(--border2); }
.cw-filter-panel {
  background: var(--bg3); padding: 1.3rem 1rem;
  position: sticky; top: calc(var(--nav-h) + 10px);
  max-height: calc(100vh - var(--nav-h) - 20px);
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--bg4) transparent;
}
.cw-filter-header { display: flex; align-items: center; gap: 7px; color: white; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.cw-filter-header i { color: var(--muted); }
.cw-filter-label { display: block; color: var(--muted); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 5px; }
.cw-filter-group { margin-bottom: 0.9rem; }
.cw-filter-input, .cw-filter-select {
  width: 100%; background: var(--bg4); border: 1px solid var(--border);
  color: var(--text); border-radius: 7px; padding: 0.45rem 0.75rem;
  font-size: 0.82rem; font-family: var(--font-body);
  appearance: none; -webkit-appearance: none; outline: none; transition: border-color 0.2s;
}
.cw-filter-input:focus, .cw-filter-select:focus { border-color: rgba(229,9,20,0.5); }
.cw-filter-input::placeholder { color: var(--bg4); opacity: 1; }
.cw-filter-select option { background: var(--bg3); color: var(--text); }
.cw-btn-apply {
  width: 100%; background: var(--red); color: white; border: none; border-radius: 7px;
  padding: 0.5rem 0; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 0.5rem; transition: background 0.2s;
}
.cw-btn-apply:hover { background: var(--red-dark); }
.cw-btn-clear {
  width: 100%; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 7px;
  padding: 0.45rem 0; font-size: 0.8rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px; transition: all 0.2s;
}
.cw-btn-clear:hover { color: white; border-color: rgba(255,255,255,0.2); }
.cw-quick-genres { margin-top: 1.25rem; border-top: 1px solid var(--border2); padding-top: 1rem; }
.cw-quick-genres-title { color: white; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.cw-quick-genre-item {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 0.81rem; padding: 0.38rem 0;
  border-bottom: 1px solid var(--border2); transition: color 0.15s;
}
.cw-quick-genre-item:last-child { border-bottom: none; }
.cw-quick-genre-item:hover { color: white; }
.cw-quick-genre-item i { font-size: 0.58rem; opacity: 0.5; }
.cw-browse-main { padding: 0 0.25rem 0 1rem; }
.cw-browse-main .cw-card { border-radius: 8px; }
.cw-browse-main .cw-card-body { padding: 7px 9px 10px; }
.cw-browse-main .cw-card-title { font-size: 0.76rem; }
.cw-browse-main .cw-card-meta  { font-size: 0.68rem; }
.cw-browse-main .cw-card-type-badge { font-size: 0.58rem; padding: 2px 5px; }
#homeNoResults { color: var(--muted); }
#homeNoResults i { font-size: 2.5rem; color: var(--border); }

/* ================================================================
   PAGE HERO
   ================================================================ */
.cw-page-hero { background: linear-gradient(to bottom, var(--bg3) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); padding: 2.5rem 0 1.75rem; }
.cw-page-hero-title { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: 1px; color: white; margin-bottom: 4px; }
.cw-accent-text { color: var(--red); }
.cw-page-hero-count { color: var(--muted); font-size: 0.88rem; }

/* ================================================================
   FILTER SIDEBAR
   ================================================================ */
.cw-filter-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.35rem; }
.cw-filter-heading { color: white; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; }
.cw-form-input, .cw-form-select { background: var(--bg4) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: 8px !important; font-size: 0.85rem; transition: border-color 0.2s !important; }
.cw-form-input:focus, .cw-form-select:focus { border-color: var(--red) !important; box-shadow: 0 0 0 2px var(--red-glow) !important; }
.cw-form-select option { background: var(--bg3); }
.cw-divider { border-color: var(--border); }
.cw-filter-genre-list { display: flex; flex-direction: column; gap: 2px; }
.cw-filter-genre-link { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: 0.82rem; transition: all 0.2s; }
.cw-filter-genre-link:hover, .cw-filter-genre-link.active { background: rgba(229,9,20,0.1); color: var(--red); }
.cw-filter-genre-link i { font-size: 0.68rem; }
.cw-active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cw-filter-tag { background: rgba(229,9,20,0.1); border: 1px solid rgba(229,9,20,0.25); color: var(--red); font-size: 0.76rem; padding: 3px 10px; border-radius: 20px; }
.cw-filter-tag a { color: var(--red); margin-left: 4px; font-weight: 700; }
.cw-empty-state { color: var(--muted); }
.cw-empty-icon { font-size: 3.5rem; color: var(--border); }

/* ================================================================
   PAGINATION
   ================================================================ */
.cw-page-link { background: var(--bg3) !important; border-color: var(--border) !important; color: var(--muted) !important; border-radius: 8px !important; margin: 0 3px !important; min-width: 38px; transition: all 0.2s !important; }
.cw-page-link:hover { background: var(--bg4) !important; color: white !important; }
.page-item.active .cw-page-link { background: var(--red) !important; border-color: var(--red) !important; color: white !important; }
.page-item.disabled .cw-page-link { opacity: 0.4 !important; }

/* ================================================================
   MOVIE DETAIL PAGE
   ================================================================ */
.cw-detail-hero { position: relative; background: var(--bg); overflow: hidden; }
.cw-detail-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(40px) brightness(0.14) saturate(1.2); transform: scale(1.15); z-index: 0; }
.cw-detail-bg-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 100%); z-index: 1; }
.cw-detail-poster-wrap { position: relative; display: inline-block; }
.cw-detail-poster { border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.75); width: 100%; max-width: 240px; border: 2px solid rgba(255,255,255,0.07); }
.cw-poster-rating-badge { position: absolute; top: -10px; right: -10px; background: var(--gold); color: #000; font-weight: 700; font-size: 0.8rem; padding: 5px 10px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.cw-breadcrumb { background: transparent; margin: 0; padding: 0; }
.cw-breadcrumb .breadcrumb-item { font-size: 0.8rem; }
.cw-breadcrumb .breadcrumb-item a { color: var(--muted); }
.cw-breadcrumb .breadcrumb-item a:hover { color: var(--red); }
.cw-breadcrumb .breadcrumb-item.active { color: var(--muted); }
.cw-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }
.cw-detail-title { font-family: var(--font-head); font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: 1px; color: white; line-height: 1.05; margin-bottom: 1rem; }
.cw-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cw-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.84rem; color: rgba(255,255,255,0.65); }
.cw-meta-divider { color: var(--border); }
.cw-detail-genres { display: flex; flex-wrap: wrap; gap: 7px; }
.cw-genre-badge { display: inline-flex; align-items: center; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.8); padding: 5px 13px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; transition: all 0.2s; }
.cw-genre-badge:hover { background: var(--red); border-color: var(--red); color: white; }
.cw-detail-section-title { font-size: 0.82rem; font-weight: 700; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.6rem; display: flex; align-items: center; }
.cw-detail-desc { color: rgba(255,255,255,0.72); line-height: 1.75; font-size: 0.92rem; }

/* ================================================================
   CAST GRID — Netflix Style (FIXED)
   ================================================================ */
.cw-cast-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin-top: 12px;
}

.cw-cast-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 80px !important;
  cursor: default;
  transition: transform 0.2s ease;
  flex-shrink: 0 !important;
}

.cw-cast-card:hover {
  transform: translateY(-4px);
}

.cw-cast-img-wrap {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
  background: var(--bg4);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.cw-cast-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cw-cast-card:hover .cw-cast-img {
  transform: scale(1.1);
}

.cw-cast-name {
  font-size: 0.72rem;
  color: #ccc;
  line-height: 1.3;
  width: 80px;
  word-break: break-word;
  display: block !important;
}

/* Old text-only cast (kept as fallback) */
.cw-cast-list { display: flex; flex-wrap: wrap; gap: 10px; }
.cw-cast-item { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.cw-cast-avatar { width: 46px; height: 46px; background: linear-gradient(135deg, var(--red), var(--red-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: white; flex-shrink: 0; }
.cw-cast-name-old { font-size: 0.7rem; color: var(--muted); max-width: 68px; line-height: 1.2; }

/* ================================================================
   RATING
   ================================================================ */
.cw-rating-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cw-rating-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.4rem; }
.cw-rating-display { display: flex; align-items: center; gap: 14px; }
.cw-rating-big-num { font-family: var(--font-head); font-size: 3.2rem; color: var(--gold); line-height: 1; }
.cw-stars-display { color: var(--gold); font-size: 1rem; }
.cw-star-input { display: flex; align-items: center; }
.cw-rate-label { font-size: 0.85rem; color: var(--muted); }
.cw-rate-star { font-size: 1.5rem; color: var(--border); cursor: pointer; padding: 0 3px; transition: color 0.15s, transform 0.15s; }
.cw-rate-star:hover, .cw-rate-star.hovered, .cw-rate-star.selected { color: var(--gold); transform: scale(1.15); }
.cw-info-table { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cw-info-row { display: flex; border-bottom: 1px solid var(--border2); padding: 10px 15px; }
.cw-info-row:last-child { border-bottom: none; }
.cw-info-label { width: 85px; font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; }
.cw-info-value { font-size: 0.86rem; color: var(--text); }

/* ================================================================
   AUTH PAGES
   ================================================================ */
.cw-auth-section { background: radial-gradient(ellipse at 50% 0%, rgba(229,9,20,0.07) 0%, transparent 65%), var(--bg); min-height: 100vh; display: flex; align-items: center; padding: 2rem 0; }
.cw-auth-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2.25rem 2rem; box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
.cw-auth-logo { text-align: center; margin-bottom: 1.5rem; }
.cw-auth-title { color: white; font-weight: 700; font-size: 1.45rem; text-align: center; margin-bottom: 4px; }
.cw-auth-subtitle { color: var(--muted); font-size: 0.87rem; text-align: center; margin-bottom: 1.5rem; }
.cw-form-label { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 5px; }
.cw-input-icon-btn { background: rgba(255,255,255,0.04) !important; border: 1px solid var(--border) !important; border-left: none !important; color: var(--muted) !important; transition: color 0.2s !important; }
.cw-input-icon-btn:hover { color: white !important; }
.cw-auth-footer { text-align: center; border-top: 1px solid var(--border); padding-top: 1.1rem; }
.cw-link-red { color: var(--red) !important; font-weight: 600; }
.cw-link-red:hover { color: var(--red-dark) !important; }
.cw-alert { border-radius: 8px; font-size: 0.84rem; }
.cw-admin-login-body { background: var(--bg); }
.cw-admin-lock { font-size: 2.8rem; color: var(--red); }

/* ================================================================
   STATIC PAGES
   ================================================================ */
.cw-static-content { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2.25rem; color: var(--text); line-height: 1.8; }
.cw-static-content h2, .cw-static-content h3 { color: white; margin-bottom: 0.85rem; margin-top: 1.4rem; }
.cw-static-content p { margin-bottom: 1rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.cw-footer { background: var(--bg3); border-top: 1px solid var(--border); }
.cw-footer-brand { font-family: var(--font-head); font-size: 1.75rem; letter-spacing: 2px; color: var(--red); }
.cw-footer-heading { color: white; font-size: 0.73rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.9rem; }
.cw-footer-links { display: flex; flex-direction: column; gap: 6px; }
.cw-footer-links a { color: var(--muted); font-size: 0.84rem; transition: color 0.2s; }
.cw-footer-links a:hover { color: var(--red); }
.cw-social-links { display: flex; gap: 9px; }
.cw-social { width: 34px; height: 34px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.88rem; transition: all 0.2s; }
.cw-social:hover { background: var(--red); border-color: var(--red); color: white; }
.cw-footer-divider { border-color: var(--border); }
.cw-footer-input { background: var(--bg4) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: 8px 0 0 8px !important; }
.cw-footer-input:focus { border-color: var(--red) !important; box-shadow: none !important; }
.cw-link-muted { color: var(--muted); transition: color 0.2s; }
.cw-link-muted:hover { color: var(--red); }

/* ================================================================
   RESPONSIVE — TABLET
   ================================================================ */
@media (max-width: 991px) {
  .cw-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .cw-filter-panel { position: static; max-height: none; padding: 1rem; }
  .cw-browse-main { padding: 1rem 0 0; }
  .cw-hero-info { padding-left: 0.75rem; }
  .cw-hero-poster { max-width: 200px; }
  .cw-hero-row { min-height: 400px; }
  .cw-carousel-indicators { display: none; }
  .cw-search-wrapper { width: 220px; }
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 767px) {
  .cw-search-wrapper { width: 100%; margin: 8px 0 4px; order: 3; }
  .cw-navbar .container-fluid { padding-left: 14px; padding-right: 14px; }
  .carousel-item .container-fluid { padding-top: 20px; padding-bottom: 24px; padding-left: 16px; padding-right: 16px; }
  .carousel-item .container-fluid { padding: 0 !important; }
  .cw-hero-row { min-height: auto !important; flex-direction: column !important; padding: 0 !important; }
  .cw-hero-poster-col { width: 100% !important; max-width: 100% !important; flex: none !important; padding: 0 !important; margin: 0 !important; display: block !important; position: relative; z-index: 3; }
  .cw-hero-bg { display: block !important; opacity: 1 !important; }
  .cw-hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.95) 100%) !important; }
  .cw-hero-poster { width: 100% !important; max-width: 100% !important; height: 260px !important; object-fit: cover !important; border-radius: 0 !important; box-shadow: none !important; display: block !important; position: relative; z-index: 3; }
  .cw-hero-info { padding: 16px !important; text-align: left !important; position: relative; z-index: 3; }

  /* ── Mobile Hero Layout ── */
  .cw-hero-mobile { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: var(--bg); }
  .cw-hero-mobile-poster { position: relative; width: 75px; min-width: 75px; height: 110px; overflow: hidden; border-radius: 8px; flex-shrink: 0; box-shadow: 0 6px 18px rgba(0,0,0,0.6); }
  .cw-hero-mobile-poster img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; border-radius: 8px; }
  .cw-hero-mobile-grad { display: none; }
  .cw-hero-mobile-info {
    flex: 1;
    min-width: 0;
    padding: 0;
  }
  .cw-hero-mobile-info .cw-hero-badge { font-size: 0.65rem; margin-bottom: 8px; }
  .cw-hero-mobile-info .cw-hero-title { font-size: 1.4rem; margin-bottom: 8px; line-height: 1.2; }
  .cw-hero-mobile-info .cw-hero-meta  { margin-bottom: 8px; }
  .cw-hero-mobile-info .cw-hero-desc  { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
  .cw-hero-mobile-info .cw-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .cw-hero-mobile-info .cw-hero-actions .btn { font-size: 0.84rem; padding: 0.45rem 1rem; }
  .cw-hero-title { font-size: 1.6rem; }
  .cw-hero-desc  { font-size: 0.84rem; max-width: 100%; }
  .cw-hero-badge { font-size: 0.66rem; }
  .cw-hero-meta { justify-content: center; }
  .cw-hero-actions { gap: 8px; justify-content: center; }
  .cw-hero-actions .btn { font-size: 0.85rem; padding: 0.5rem 1rem; }
  .cw-card-overlay { opacity: 0 !important; }
  .cw-card-body { padding: 7px 8px 9px; }
  .cw-card-title { font-size: 0.78rem; }
  .cw-section { padding: 1.75rem 0; }
  .cw-section-title { font-size: 1.2rem; }
  .cw-section-header { margin-bottom: 1rem; }
  .cw-sidebar { display: none; }
  .cw-sidebar.show { display: block; }
  .cw-browse-main { padding: 0; }
  .cw-filter-card { border-radius: 10px; padding: 1rem; }
  .cw-page-hero { padding: 1.75rem 0 1.2rem; }
  .cw-page-hero-title { font-size: 1.7rem; }
  .cw-detail-poster { max-width: 150px; }
  .cw-detail-title  { font-size: 1.7rem; }
  .cw-rating-big-num { font-size: 2.5rem; }
  .cw-cast-avatar { width: 40px; height: 40px; }
  .cw-auth-card { padding: 1.75rem 1.25rem; }
  .cw-footer .row > div { text-align: center; }
  .cw-social-links { justify-content: center; }
  .cw-footer-links { align-items: center; }
  /* Cast grid mobile */
  .cw-cast-card { width: 65px; }
  .cw-cast-img-wrap { width: 58px; height: 58px; }
  .cw-cast-name { width: 65px; font-size: 0.65rem; }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE
   ================================================================ */
@media (max-width: 575px) {
  .cw-browse-main .col-6 { width: 50% !important; }
  .cw-hero-poster { height: 190px !important; }
  .cw-hero-title { font-size: 1.4rem; }
  .cw-carousel-btn { width: 36px !important; height: 36px !important; }
  .cw-hero-actions .btn-lg { font-size: 0.82rem; padding: 0.45rem 0.9rem; }
  .cw-page-hero-title { font-size: 1.4rem; }
  .cw-info-row { flex-direction: column; gap: 3px; }
  .cw-info-label { width: 100%; }
  .cw-auth-card { border-radius: 12px; }
}

/* ================================================================
   MOBILE FILTER TOGGLE
   ================================================================ */
.cw-mobile-filter-toggle {
  display: none; width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 0.55rem 1rem;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; cursor: pointer;
  align-items: center; gap: 8px; justify-content: center; transition: all 0.2s;
}
.cw-mobile-filter-toggle:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 767px) { .cw-mobile-filter-toggle { display: flex; } }

/* ================================================================
   UTILITY
   ================================================================ */
.fw-500 { font-weight: 500; }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
/* =====================================================
   OTHER SEASONS SECTION
   ===================================================== */
.cw-seasons-section {
    padding: 32px 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cw-seasons-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    margin-top: 16px;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(229,9,20,0.5) rgba(255,255,255,0.05);
}

.cw-seasons-grid::-webkit-scrollbar {
    height: 5px;
}
.cw-seasons-grid::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}
.cw-seasons-grid::-webkit-scrollbar-thumb {
    background: rgba(229,9,20,0.5);
    border-radius: 10px;
}

.cw-season-card {
    text-decoration: none;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    width: 130px !important;
    min-width: 130px !important;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a2e;
    border: 2px solid rgba(255,255,255,0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cw-season-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--cw-accent, #e50914);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
    text-decoration: none;
}

.cw-season-poster-wrap {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.cw-season-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cw-season-card:hover .cw-season-poster {
    transform: scale(1.06);
}

.cw-season-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: var(--cw-accent, #e50914);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.cw-season-info {
    padding: 8px 10px 10px;
    text-align: center;
}

.cw-season-title {
    color: #f0f0f0;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

.cw-season-year {
    color: #888;
    font-size: 0.68rem;
}

@media (max-width: 576px) {
    .cw-season-card {
        width: 100px;
    }
    .cw-season-poster-wrap {
        height: 145px;
    }
}