/* ═══════════════════════════════════════════════════════════════════════
   TorrentFlix — Mobile-First CSS
   Breakpoints: base = phone, sm=480, md=768, lg=1024, xl=1280
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Acessibilidade / SEO ───────────────────────────────────────────── */
/* Oculta visualmente mas mantém no DOM para leitores de tela e crawlers  */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Reset & tokens ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #00c030;
  --green-dk:   #008f22;
  --green-glow: rgba(0,255,80,0.35);
  --bg:         #0d0d0d;
  --bg2:        #141414;
  --bg3:        #1c1c1c;
  --card:       #181818;
  --border:     #2a2a2a;
  --text:       #e5e5e5;
  --muted:      #888;
  --red:        #e50914;
  --radius:     8px;
  --nav-h:      56px;
  --transition: 0.22s ease;
}
@media (min-width: 768px) { :root { --nav-h: 64px; } }

html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, Arial, sans-serif; font-size: 15px; line-height: 1.6; min-height: 100vh; }
a     { color: inherit; text-decoration: none; }
img   { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--green-dk); border-radius: 3px; }

/* ─── Navbar ─────────────────────────────────────────────────────────── */

/* Netflix-style: tall gradient pseudo-element behind the entire navbar area */
.navbar-gradient-bg {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 50%, transparent 100%);
  pointer-events: none;
  z-index: 899;
  transition: opacity .4s ease;
}
.navbar-gradient-bg.scrolled { opacity: 0; }

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.navbar.scrolled {
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(255,255,255,.06);
}

.navbar-left  { display: flex; align-items: center; gap: 16px; }
.navbar-right { display: flex; align-items: center; gap: 8px; }
@media (min-width: 1280px) { .navbar { padding: 0 5%; } }

/* Logo */
.navbar-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.drawer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-brand-logo {
  display: block;
  width: auto;
  object-fit: cover;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}
.site-brand-logo-header {
  height: 30px;
}
.site-brand-logo-drawer {
  height: 28px;
}
.auth-brand-logo {
  height: 26px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.28));
}

/* Desktop category links */
.navbar-cats { display: none; }
@media (min-width: 768px) {
  .navbar-cats { display: flex; gap: 4px; align-items: center; }
  .navbar-cats a { padding: 6px 10px; font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 4px; transition: color var(--transition); white-space: nowrap; }
  .navbar-cats a:hover { color: #fff; }
}
.navbar-cat-link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: color .15s ease;
}
.navbar-cat-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.navbar-cat-link:hover,
.navbar-cat-dropdown-wrap.is-open .navbar-cat-dropdown-btn { color: #fff; }
.navbar-cat-link:hover::after,
.navbar-cat-dropdown-wrap.is-open .navbar-cat-dropdown-btn::after { transform: scaleX(1); }

.nav-cat-chevron {
  transition: transform .22s ease;
  opacity: .55;
  margin-top: 1px;
}
.navbar-cat-dropdown-wrap.is-open .nav-cat-chevron { transform: rotate(180deg); opacity: .9; }

/* Mega-menu dropdown */
.navbar-cat-dropdown-wrap { position: relative; }
.navbar-cat-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: -80px;
  transform: translateY(-8px);
  width: 580px;
  background: #161616;
  border: 1px solid rgba(255,255,255,.09);
  border-top: 2px solid var(--green);
  border-radius: 0 0 16px 16px;
  padding: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
  overflow: hidden;
}
.navbar-cat-dropdown-wrap.is-open .navbar-cat-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Arrow pointing up */
.navbar-cat-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 96px;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  background: var(--green);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.nav-cat-dd-header {
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-cat-dd-header svg { color: var(--green); flex-shrink: 0; }
.nav-cat-dd-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.nav-cat-dd-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.04);
  padding: 1px;
}
.nav-cat-dd-item {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  background: #161616;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .14s ease, color .14s ease;
}
.nav-cat-dd-item:hover {
  background: rgba(0,192,48,.1);
  color: #fff;
}
.nav-cat-dd-item:first-child { border-radius: 0; }
.nav-cat-dd-footer {
  padding: 10px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.nav-cat-dd-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap .15s ease;
}
.nav-cat-dd-all:hover { gap: 8px; }

/* Desktop search form */
.search-form { display: none; }
@media (min-width: 640px) {
  .search-form { display: flex; align-items: center; }
  .search-form input {
    background: rgba(0,0,0,0.6); border: 1px solid var(--green-dk); border-right: none;
    color: #fff; padding: 8px 14px; border-radius: 6px 0 0 6px;
    width: 180px; outline: none; transition: border-color var(--transition), width 0.3s;
    height: 40px;
  }
  .search-form input:focus { border-color: var(--green); width: 230px; }
  .search-form input::placeholder { color: var(--muted); }
  .search-form button {
    background: var(--green); border: none; color: #000; height: 40px;
    padding: 0 14px; border-radius: 0 6px 6px 0; cursor: pointer; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
  }
  .search-form button:hover { background: #00e040; }
}

/* Admin link button */
.btn-admin {
  height: 36px; padding: 0 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--green); color: var(--green); cursor: pointer;
  transition: all var(--transition); display: flex; align-items: center; white-space: nowrap;
}
.btn-admin:hover { background: var(--green); color: #000; }
.btn-auth {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--green);
  color: #041006;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.btn-auth:hover { background: #00da38; }
.btn-auth:active { transform: scale(.97); }
.btn-auth-outline {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: rgba(255,255,255,.08);
}
.btn-auth-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(0,192,48,.25);
}
.navbar-user {
  font-size: 13px;
  color: #d8d8d8;
}
.navbar-auth-form { margin: 0; }

/* Icon buttons (hamburger, search toggle) */
.icon-btn {
  width: 42px; height: 42px; border-radius: 8px; border: none;
  background: transparent; color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover, .icon-btn:active { background: rgba(255,255,255,0.08); }
.icon-btn svg { width: 22px; height: 22px; }
.hamburger-btn,
.search-btn,
.search-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.hamburger-btn:hover,
.search-btn:hover,
.search-icon-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(0,192,48,.28);
}
.hamburger-btn:active,
.search-btn:active,
.search-icon-btn:active {
  transform: scale(.96);
}
.hamburger-btn svg,
.search-btn svg,
.search-icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}
.hamburger-btn { display: flex; } /* mobile only */
@media (min-width: 768px) { .hamburger-btn { display: none; } }

/* search-btn (old) hidden on desktop; new icon btn always shown */
@media (min-width: 640px) { .search-btn { display: none; } }
.search-icon-btn { display: flex; }

/* ─── Mobile search overlay ──────────────────────────────────────────── */
.mobile-search-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: flex-start; padding-top: 12px;
  padding: 12px 16px 0;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-search-overlay.open { opacity: 1; pointer-events: all; }
.mobile-search-overlay form { display: flex; width: 100%; gap: 8px; }
.mobile-search-overlay input {
  flex: 1; background: var(--bg3); border: 1px solid var(--green); color: #fff;
  padding: 12px 16px; border-radius: 8px; font-size: 16px; outline: none; height: 50px;
}
.mobile-search-overlay .search-submit {
  background: var(--green); color: #000; border: none; border-radius: 8px;
  padding: 0 18px; font-weight: 800; font-size: 15px; cursor: pointer; height: 50px;
}
.mobile-search-overlay .search-cancel {
  background: var(--bg3); color: var(--muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 14px; font-size: 14px; cursor: pointer; height: 50px;
}
.mobile-search-overlay .mobile-search-form { display: flex; width: 100%; gap: 8px; align-items: center; flex: 1; }
.mobile-search-overlay .mobile-search-form input {
  flex: 1; background: var(--bg3); border: 1px solid var(--green); color: #fff;
  padding: 12px 16px; border-radius: 8px; font-size: 16px; outline: none; height: 50px;
}
.mobile-search-overlay .mobile-search-form button {
  background: var(--green); color: #000; border: none; border-radius: 8px;
  padding: 0 18px; font-weight: 800; cursor: pointer; height: 50px; display: flex; align-items: center;
}
.mobile-search-close {
  background: var(--bg3); color: var(--muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 14px; font-size: 18px; cursor: pointer; height: 50px;
  flex-shrink: 0; margin-left: 4px;
}

/* ─── Nav drawer (mobile) ────────────────────────────────────────────── */
.nav-overlay {
  position: fixed; inset: 0; z-index: 910;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 920;
  width: min(80vw, 300px);
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 16px; border-bottom: 1px solid var(--border);
}
.drawer-close {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.drawer-close:hover { background: rgba(255,255,255,.1); color: #fff; }

/* user info block inside drawer */
.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.drawer-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #000;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drawer-user-name { font-size: 14px; font-weight: 700; color: #eee; line-height: 1.3; }
.drawer-user-email { font-size: 11px; color: var(--muted); margin-top: 1px; }

.drawer-auth {
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-auth-btn {
  min-height: 44px;
  border-radius: 10px;
  background: var(--green);
  color: #041006;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), opacity var(--transition);
}
.drawer-auth-btn:hover { opacity: .88; }
.drawer-auth-outline {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: rgba(255,255,255,.1);
}
.drawer-auth-outline:hover { background: rgba(255,255,255,.08); opacity: 1; }
.drawer-auth-danger {
  background: rgba(229,9,20,.12);
  color: #ff8a90;
  border-color: rgba(229,9,20,.2);
  width: 100%;
}
.drawer-auth-danger:hover { background: rgba(229,9,20,.22); opacity: 1; }

.drawer-nav { padding: 8px 0 16px; flex: 1; overflow-y: auto; }

/* home link — full width with icon */
.drawer-nav-home {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; font-size: 15px; color: var(--muted);
  border-left: 3px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  min-height: 50px; text-decoration: none;
}
.drawer-nav-home:hover, .drawer-nav-home:active { color: var(--green); background: rgba(0,192,48,.06); border-left-color: var(--green); }
.drawer-nav-home svg { flex-shrink: 0; opacity: .6; }
.drawer-nav-home:hover svg { opacity: 1; }

/* section label */
.drawer-nav-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 20px 6px;
}

/* 2-column category grid */
.drawer-cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px;
}
.drawer-cat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 11px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  line-height: 1.3;
}
.drawer-cat-card:hover, .drawer-cat-card:active {
  background: rgba(0,192,48,.1);
  border-color: rgba(0,192,48,.3);
  color: var(--green);
}

.drawer-nav .drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ═══════════════════════════════════════════════════════════════════════
   HOME — HERO
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  /* Fixed height so content doesn't float to the very bottom */
  height: 72vh; min-height: 480px; max-height: 780px;
  display: flex; flex-direction: column;
}
@media (min-width: 640px) { .hero { height: 78vh; min-height: 540px; } }
@media (min-width: 1024px){ .hero { height: 82vh; } }

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  filter: brightness(0.65) saturate(1.08);
  transform: scale(1.04);
  transition: transform 9s ease;
}
.hero:hover .hero-bg { transform: scale(1.07); }

.hero-grad {
  position: absolute; inset: 0;
  background:
    /* strong bottom fade so text is always readable */
    linear-gradient(to top, var(--bg) 0%, rgba(13,13,13,.9) 25%, rgba(13,13,13,.55) 55%, rgba(13,13,13,.1) 80%, transparent 100%),
    linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 55%, transparent 80%);
}

/* Content: flex-end + big padding-bottom = sits in the bottom third, not the very edge */
.hero-body {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 16px) 5% 44px;
  gap: 0;
}
@media (min-width: 640px) {
  .hero-body { flex-direction: row; align-items: flex-end; gap: 28px; padding-bottom: 52px; }
}
@media (min-width: 1024px) { .hero-body { padding-bottom: 64px; gap: 36px; } }

/* Poster */
.hero-poster-wrap {
  flex-shrink: 0; position: relative; display: block;
  align-self: flex-start; /* left on mobile column */
  margin-bottom: 16px;
}
@media (min-width: 640px) { .hero-poster-wrap { margin-bottom: 0; align-self: flex-end; } }

.hero-poster {
  width: 110px; border-radius: 8px; display: block;
  box-shadow: 0 12px 40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.07);
  transition: transform .3s ease, box-shadow .3s ease;
}
@media (min-width: 480px) { .hero-poster { width: 130px; } }
@media (min-width: 640px) { .hero-poster { width: 160px; } }
@media (min-width: 768px) { .hero-poster { width: 190px; } }
@media (min-width: 1024px){ .hero-poster { width: 210px; border-radius: 10px; } }
.hero-poster-wrap:hover .hero-poster { transform: scale(1.03) translateY(-3px); box-shadow: 0 18px 56px rgba(0,0,0,.98), 0 0 0 2px var(--green); }
.hero-poster-shine {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 50%);
  pointer-events: none;
}

/* Info block */
.hero-info { flex: 1; min-width: 0; }

.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hero-type-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.badge-movie  { background: rgba(0,192,48,.15); color: var(--green); border: 1px solid rgba(0,192,48,.4); }
.badge-series { background: rgba(139,92,246,.15); color: #c4b5fd; border: 1px solid rgba(139,92,246,.4); }
.hero-featured-label { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }

.hero-title {
  font-size: clamp(26px, 5.5vw, 54px); font-weight: 900;
  line-height: 1.06; letter-spacing: -.5px; margin-bottom: 8px;
}
.hero-tagline { font-size: 14px; color: var(--green); font-style: italic; margin-bottom: 14px; opacity: .8; }

.hero-meta {
  display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); margin-bottom: 14px;
}
.hero-star { color: #fbbf24; font-weight: 800; font-size: 15px; }

.hero-overview {
  font-size: 14px;
  color: #bfbfbf;
  line-height: 1.75;
  margin-bottom: 4px;
  max-width: 620px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
  transform: translateY(6px);
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8,8,8,.24), rgba(8,8,8,.08));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-actions,
.hero-btn-primary,
.hero-btn-secondary,
.hero-trailer-btn {
  position: relative;
  z-index: 6;
}
.hero-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(135deg, #00d436 0%, #00a828 100%); color: #021008; font-weight: 900;
  padding: 0 26px; border-radius: 12px; font-size: 15px;
  min-height: 50px; border: 1px solid rgba(0,220,60,.22);
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease, border-color .2s ease;
  box-shadow: 0 4px 18px rgba(0,192,48,.42); letter-spacing: .3px;
}
.hero-btn-primary:hover  { background: linear-gradient(135deg, #00f040 0%, #00c030 100%); box-shadow: 0 6px 28px rgba(0,192,48,.62); transform: translateY(-2px); border-color: rgba(0,240,60,.3); }
.hero-btn-primary:active { transform: scale(.97); }
/* icon-only variant (download button on hero) */
.hero-btn-primary.hero-btn-icon {
  width: 50px;
  padding: 0;
}
.hero-btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(6,6,6,.64); color: #fff; font-weight: 700;
  padding: 0 22px; border-radius: 12px; font-size: 14px;
  min-height: 50px; border: 1px solid rgba(255,255,255,.24);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  cursor: pointer; letter-spacing: .2px;
  box-shadow: 0 4px 18px rgba(0,0,0,.28);
}
.hero-btn-secondary:hover {
  background: rgba(0,0,0,.78);
  border-color: rgba(0,192,48,.55);
  box-shadow: 0 6px 24px rgba(0,0,0,.34), 0 0 18px rgba(0,192,48,.16);
}
.hero-btn-secondary:active { transform: scale(.97); }

/* scroll hint arrow */
.hero-scroll-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.3); animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════════════════
   HOME — ROWS
   ═══════════════════════════════════════════════════════════════════════ */
.home-rows {
  padding: 28px 3% 60px;
  position: relative; z-index: 2;
}
@media (min-width: 768px) { .home-rows { padding: 40px 4% 80px; } }
.home-rows-shifted {
  margin-top: -92px;
}

/* ── Top 10 Section ───────────────────────────────────────── */
.top10-section {
  margin-bottom: 65px;
  overflow: hidden;
  min-height: 244px;
  contain: layout paint;
}
.top10-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 0 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
}
.top10-track::-webkit-scrollbar { display: none; }
.top10-track.is-dragging { cursor: grabbing; }
.top10-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  flex: 0 0 auto;
  width: 190px;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .28s cubic-bezier(.25,.46,.45,.94);
}
.top10-item:hover { transform: scale(1.10); z-index: 2; }
.top10-number {
  position: absolute;
  left: 0;
  bottom: -10px;
  font-size: 190px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -10px;
  color: transparent;
  -webkit-text-stroke: 3px rgba(180,180,180,.55);
  text-shadow: none;
  pointer-events: none;
  z-index: 1;
  font-family: Arial Black, Arial, sans-serif;
}
.top10-item:nth-child(n+10) .top10-number {
  font-size: 155px;
  letter-spacing: -7px;
}
.top10-card {
  position: relative;
  width: 118px;
  height: auto;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
}
.top10-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--bg3);
  display: block;
  /* skeleton reveal handled in shimmer block below */
}
.top10-noposter {
  width: 100%;
  height: 100%;
  background: var(--surface2);
  display: flex;
  align-items: flex-end;
  padding: 8px;
}
.top10-noposter span {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  line-height: 1.2;
  word-break: break-word;
}
@media (min-width: 480px) {
  .top10-item { width: 205px; }
  .top10-card { width: 128px; height: auto; }
  .top10-number { font-size: 205px; }
  .top10-item:nth-child(n+10) .top10-number { font-size: 168px; }
}
@media (min-width: 900px) {
  .top10-item { width: 230px; }
  .top10-card { width: 148px; height: auto; }
  .top10-number { font-size: 230px; letter-spacing: -12px; -webkit-text-stroke: 3.5px rgba(180,180,180,.5); }
  .top10-item:nth-child(n+10) .top10-number { font-size: 190px; letter-spacing: -9px; }
}

.row-section {
  margin-bottom: 36px;
  min-height: 256px;
  contain: layout paint;
}
@media (min-width: 768px) { .row-section { margin-bottom: 48px; } }
@supports (content-visibility: auto) {
  .home-rows .row-section {
    content-visibility: auto;
    contain-intrinsic-size: 360px;
  }
  .home-rows .row-section:first-of-type,
  .home-rows .row-section-categories {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }
}

/* Row header */
.row-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; padding: 0 2px;
}
.row-title {
  font-size: 16px; font-weight: 800; color: #fff; flex: 1; min-width: 0;
  padding-left: 10px; border-left: 3px solid var(--green);
}
@media (min-width: 768px) { .row-title { font-size: 19px; } }
.row-title a { color: inherit; transition: color var(--transition); }
.row-title a:hover { color: var(--green); }

.row-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.row-see-all { font-size: 12px; color: var(--green); font-weight: 600; white-space: nowrap; margin-right: 4px; }
.row-see-all:hover { text-decoration: underline; }

.row-arrow {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg3); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.row-arrow:hover { background: var(--green); color: #000; border-color: var(--green); }
.row-arrow:active { transform: scale(.93); }
.row-arrow:disabled { opacity: .3; cursor: default; }

/* Track / scroll container */
.row-track {
  display: flex; gap: 8px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 8px; scroll-padding-left: 2px;
  min-height: 200px;
}
.row-track::-webkit-scrollbar { height: 0; }
@media (min-width: 768px) { .row-track { gap: 10px; } }

/* ── Category card ────────────────────────────────────────── */
.cat-card-section { margin-bottom: 40px; }
.cat-card {
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 24px 20px 22px;
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green) 0%, transparent 70%);
  border-radius: 16px 16px 0 0;
}
.cat-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}
.cat-card-header svg { color: var(--green); flex-shrink: 0; opacity: .9; }
.cat-card-title {
  font-size: 15px;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  letter-spacing: -.1px;
}
.cat-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-card-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cat-card-chip:hover {
  background: rgba(0,192,48,.14);
  border-color: rgba(0,192,48,.4);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,192,48,.15);
}
@media (min-width: 768px) {
  .cat-card { padding: 28px 26px 24px; }
  .cat-card-chip { font-size: 14px; padding: 9px 18px; }
  .cat-card-title { font-size: 16px; }
  .cat-card-grid { gap: 10px; }
}

/* Legacy chips (kept for other pages) */
.category-chip {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at top right, rgba(0,192,48,.14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}
.category-chip:hover {
  border-color: rgba(0,192,48,.28);
  background:
    radial-gradient(circle at top right, rgba(0,192,48,.22), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.category-chip-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .category-chip {
    padding: 10px 20px;
  }
  .category-chip-name {
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   MOVIE CARD
   ═══════════════════════════════════════════════════════════════════════ */
.movie-card {
  flex: 0 0 128px; scroll-snap-align: start;
  border-radius: 8px; overflow: hidden; cursor: pointer;
  background: var(--card); text-decoration: none;
  contain: layout paint;
  aspect-ratio: 2 / 3; /* reserve space before JS — prevents CLS */
  /* lazy reveal */
  opacity: 0; transition: opacity .4s ease;
  -webkit-tap-highlight-color: transparent;
}
.movie-card.in-view { opacity: 1; }
@media (min-width: 480px) { .movie-card { flex-basis: 144px; } }
@media (min-width: 768px) { .movie-card { flex-basis: 160px; } }
@media (min-width: 1024px) { .movie-card { border-radius: 6px; } }

/* Inner scales on hover */
.movie-card-inner {
  position: relative; border-radius: inherit; overflow: hidden;
  transition: box-shadow .25s ease;
  aspect-ratio: 2 / 3;
  background: var(--bg3);
}
@media (min-width: 1024px) {
  .movie-card.in-view:hover .movie-card-inner {
    box-shadow: 0 12px 36px rgba(0,192,48,.28), 0 0 0 1.5px var(--green);
    z-index: 5;
  }
}

/* ── Skeleton shimmer ────────────────────────────────────────────────── */
@keyframes skeletonWave {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.card-skeleton {
  position: absolute; inset: 0; z-index: 2;
  background: var(--bg3);
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .32s ease;
  will-change: opacity; /* promote to own layer — avoids repainting parent */
  contain: strict;
}
.card-skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.055) 40%,
    rgba(0,192,48,.04) 50%,
    rgba(255,255,255,.055) 60%,
    transparent 100%
  );
  animation: skeletonWave 1.6s linear infinite; /* linear = cheaper calc than ease-in-out */
}
.movie-card-inner.img-loaded .card-skeleton,
.top10-card.img-loaded      .card-skeleton { opacity: 0; }
/* stop GPU animation after image loaded — saves compositor work */
.movie-card-inner.img-loaded .card-skeleton::after,
.top10-card.img-loaded      .card-skeleton::after { animation: none; }

.movie-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: center;
  background: var(--bg3); display: block;
  position: relative; z-index: 1;
  opacity: 0; transition: opacity .38s ease;
}
.movie-card-inner.img-loaded .movie-card-img { opacity: 1; }

.top10-poster {
  opacity: 0; transition: opacity .38s ease;
  position: relative; z-index: 1;
}
.top10-card.img-loaded .top10-poster { opacity: 1; }

.movie-card-noposter {
  width: 100%; aspect-ratio: 2/3; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  padding: 12px; text-align: center;
}
.movie-card-noposter span { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* Type badge */
.card-type-badge {
  position: absolute; top: 6px; left: 6px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 8px; font-weight: 800; letter-spacing: .55px; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.card-type-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255,255,255,.08);
}
.card-type-badge-default {
  background: rgba(20,24,31,.72);
  color: rgba(245,247,250,.92);
  border: 1px solid rgba(255,255,255,.12);
}
.card-type-badge-dubbed {
  background: rgba(17,74,50,.82);
  color: #dcffef;
  border: 1px solid rgba(113,212,164,.28);
}
.card-type-badge-dual {
  background: rgba(108,82,20,.82);
  color: #fff2c9;
  border: 1px solid rgba(229,194,96,.28);
}
.card-type-badge-subbed {
  background: rgba(24,58,102,.82);
  color: #e4f0ff;
  border: 1px solid rgba(122,170,232,.28);
}
.card-season-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  background: rgba(17,17,17,.84);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}

/* Season chip inside overlay (replaces absolute badge for series) */
.card-season-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
  background: #00c030;
  color: #041308;
  border: 1px solid rgba(255,255,255,.24);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  box-shadow: 0 8px 22px rgba(0,0,0,.38), 0 0 0 1px rgba(0,0,0,.35);
}
.card-season-strip-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-top: auto;
  max-width: none;
  white-space: nowrap;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 13px;
  background: #07170b;
  border: 1px solid rgba(0,192,48,.55);
  box-shadow: 0 14px 34px rgba(0,0,0,.48);
}
.card-season-strip-number {
  display: block;
  font-size: 32px;
  font-weight: 1000;
  line-height: .9;
  letter-spacing: -1px;
  background: linear-gradient(160deg, #ffffff 0%, #a8f5c1 40%, #00c853 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0,200,83,.35));
}
.card-season-strip-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
  color: #c9ffd7;
  text-transform: uppercase;
}
/* Current-season indicator ring */
.seasons-strip-track .movie-card.is-season-strip.is-current-season .movie-card-inner {
  box-shadow: 0 0 0 2px var(--green), 0 16px 34px rgba(0,0,0,.3);
}
.seasons-strip-track .movie-card.is-season-strip.is-current-season .card-season-strip-label {
  color: var(--green);
}

/* Overlay — always visible on mobile, fades in on desktop hover */
.movie-card-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px; transition: opacity .25s ease;
}
.movie-card-overlay::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.97) 0%,
    rgba(0,0,0,.72) 40%,
    rgba(0,0,0,.28) 68%,
    transparent 100%
  );
  transition: height .28s ease;
  pointer-events: none;
}
.movie-card-overlay > * {
  position: relative;
  z-index: 1;
}

/* Desktop: hide overlay, reveal on hover */
@media (min-width: 1024px) {
  .movie-card-overlay { opacity: 0; }
  .movie-card.in-view:hover .movie-card-overlay { opacity: 1; }
  .movie-card.in-view:hover .movie-card-overlay::before { height: 72%; }
}

/* Mobile: always-on gradient strip + readable title */
@media (max-width: 1023px) {
  .movie-card-overlay {
    padding: 7px 7px 8px;
    justify-content: flex-end;
  }
  .movie-card-overlay::before {
    height: 62%;
    background: linear-gradient(
      to top,
      rgba(0,0,0,.98) 0%,
      rgba(0,0,0,.82) 35%,
      rgba(0,0,0,.42) 62%,
      transparent 100%
    );
  }
  .card-overlay-meta { display: none; }
}

.card-overlay-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-overlay-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.card-overlay-title-row .card-overlay-title {
  flex: 1 1 auto;
  margin-bottom: 0;
}
.card-overlay-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #d6d6d6;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.card-star { color: #fbbf24; }
@media (min-width: 768px) {
  .card-overlay-title { font-size: 14px; }
  .card-overlay-meta  { font-size: 12px; }
}

/* Grid (category/search pages) */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
}
@media (min-width: 480px) { .movie-grid { grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); } }
@media (min-width: 768px) { .movie-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; } }

/* In movie-grid cards don't flex-shrink */
.movie-grid .movie-card { flex: unset; }

/* Home empty state */
.home-empty {
  min-height: 50vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 60px 24px; gap: 12px;
}
.home-empty-icon { font-size: 56px; margin-bottom: 8px; }
.home-empty h2   { font-size: 22px; font-weight: 800; }
.home-empty p    { color: var(--muted); font-size: 15px; }

/* ─── Search page ────────────────────────────────────────────────────── */
.search-page { padding: calc(var(--nav-h) + 24px) 4% 60px; }
.search-page h1 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.search-page h1 span { color: var(--green); }

/* ─── Category page ──────────────────────────────────────────────────── */
.category-page { padding: calc(var(--nav-h) + 24px) 4% 60px; }
.category-header { margin-bottom: 24px; }
.category-header h1 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
@media (min-width: 768px) { .category-header h1 { font-size: 34px; } }
.category-header p { color: var(--muted); font-size: 14px; }
.cat-count { display: inline-block; font-size: 13px; color: var(--green); margin-top: 6px; }

/* ─── Search page ────────────────────────────────────────────────────── */
.search-page { padding: calc(var(--nav-h) + 24px) 4% 60px; }
.search-page h1 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.search-page h1 span { color: var(--green); }

/* ─── Category page ──────────────────────────────────────────────────── */
.category-page { padding: calc(var(--nav-h) + 24px) 4% 60px; }
.category-header { margin-bottom: 24px; }
.category-header h1 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
@media (min-width: 768px) { .category-header h1 { font-size: 34px; } }
.category-header p { color: var(--muted); font-size: 14px; }
.cat-count { display: inline-block; font-size: 13px; color: var(--green); margin-top: 6px; }

/* ─── Movie detail page ──────────────────────────────────────────────── */
.movie-hero {
  position: relative; overflow: hidden;
  min-height: 60vh;
}
@media (min-width: 768px) { .movie-hero { min-height: 70vh; } }

.movie-hero-backdrop { position: absolute; inset: 0; background-size: cover; background-position: center top; filter: brightness(0.3); }
.movie-hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(13,13,13,0.4) 50%, transparent 80%),
    linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 80%);
}
.movie-hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: calc(var(--nav-h) + 24px) 5% 36px;
}
@media (min-width: 640px) {
  .movie-hero-content { flex-direction: row; align-items: flex-end; padding-top: calc(var(--nav-h) + 60px); }
}

.movie-poster {
  width: 120px; flex-shrink: 0; border-radius: 8px;
  box-shadow: 0 6px 30px rgba(0,0,0,0.8);
  align-self: flex-start;
}
@media (min-width: 480px) { .movie-poster { width: 150px; } }
@media (min-width: 768px) { .movie-poster { width: 190px; } }
@media (min-width: 1024px) { .movie-poster { width: 220px; } }

.movie-details { flex: 1; min-width: 0; }

.movie-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.genre-tag {
  font-size: 11px; padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--green-dk); color: var(--green);
  background: rgba(0,192,48,0.08); transition: all var(--transition);
}
.genre-tag:hover { background: rgba(0,192,48,0.2); }

.type-label {
  font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 4px;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(0,192,48,0.15); color: var(--green); border: 1px solid var(--green-dk);
}
.movie-title-big {
  font-size: clamp(22px, 5vw, 42px); font-weight: 900; line-height: 1.1;
  margin-bottom: 8px;
}
.movie-meta-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px; font-size: 13px; color: var(--muted);
}
.movie-meta-row .rating { color: var(--green); font-size: 16px; font-weight: 800; }
.movie-overview-text { font-size: 14px; color: #ccc; margin-bottom: 16px; line-height: 1.7; }
@media (min-width: 768px) { .movie-overview-text { font-size: 15px; } }

/* Action buttons */
.movie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-watch {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #000; font-weight: 800;
  padding: 0 22px; border-radius: 8px; font-size: 15px;
  transition: all var(--transition); text-transform: uppercase; letter-spacing: 0.5px;
  min-height: 48px;
}
.btn-watch:hover  { background: #00e040; box-shadow: 0 4px 18px rgba(0,192,48,0.4); }
.btn-watch:active { transform: scale(0.97); }
.btn-watch svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); color: #fff; font-weight: 600;
  padding: 0 18px; border-radius: 8px; font-size: 14px;
  border: 1px solid rgba(255,255,255,0.18); transition: all var(--transition);
  min-height: 48px;
}
.btn-outline:hover  { background: rgba(255,255,255,0.16); }
.btn-outline:active { transform: scale(0.97); }

/* ─── Download section ───────────────────────────────────────────────── */
.download-section { padding: 28px 4% 40px; }
@media (min-width: 768px) { .download-section { padding: 36px 5% 50px; } }
.download-section > h2 {
  font-size: 20px; font-weight: 800; margin-bottom: 24px; color: var(--green);
  display: flex; align-items: center; gap: 10px;
}
.download-section > h2::before {
  content: ''; display: block; width: 4px; height: 22px;
  background: var(--green); border-radius: 2px;
}

.audio-group { margin-bottom: 28px; }
.audio-title {
  font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--green);
  text-transform: uppercase; border-bottom: 1px solid var(--border);
  padding-bottom: 10px; margin-bottom: 14px;
}

/* Download link cards — full width on mobile */
.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 480px) { .links-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .links-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

.link-card {
  display: flex; align-items: stretch;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.link-card:hover  { border-color: var(--green-dk); box-shadow: 0 4px 20px rgba(0,192,48,0.18); }
.link-card:active { transform: scale(0.97); }

.link-icon {
  background: var(--green); color: #000;
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.link-icon svg { width: 24px; height: 24px; }
.link-info { padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; }
.link-label   { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.link-quality { font-size: 18px; font-weight: 900; color: #fff; text-transform: uppercase; line-height: 1; }
.link-sublabel{ font-size: 11px; color: #bbb; margin-top: 2px; }
.link-size    { font-size: 12px; color: var(--green); font-weight: 600; margin-top: 4px; }

/* ─── Cast section ───────────────────────────────────────────────────── */
.cast-section { padding: 0 4% 32px; }
@media (min-width: 768px) { .cast-section { padding: 0 5% 40px; } }
.section-subtitle { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }

.crew-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.crew-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 14px;
}
.crew-item strong { display: block; font-size: 13px; }
.crew-item span   { font-size: 11px; color: var(--green); }

.cast-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cast-scroll::-webkit-scrollbar { display: none; }
.cast-card {
  flex: 0 0 96px; scroll-snap-align: start;
  background: transparent; border: none; border-radius: 0;
  text-align: center; padding: 6px 8px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .22s;
}
.cast-card:hover { transform: translateY(-3px); }
@media (min-width: 480px) { .cast-card { flex-basis: 110px; } }
@media (min-width: 768px) { .cast-card { flex-basis: 120px; } }
.cast-card img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}
@media (min-width: 480px) { .cast-card img { width: 88px; height: 88px; } }
.cast-no-photo {
  width: 100%; aspect-ratio: 2/3; background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--green);
}
.cast-info { padding: 6px; }
.cast-info strong { display: block; font-size: 10px; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.cast-info span   { font-size: 9px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Type badges ────────────────────────────────────────────────────── */
.type-badge {
  position: absolute; top: 6px; left: 6px;
  font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 3px;
  letter-spacing: 1px; text-transform: uppercase;
  background: rgba(0,192,48,0.85); color: #000;
}
.type-badge-sm {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px;
}
.type-badge-sm.movie  { background: rgba(0,192,48,0.12); color: var(--green); border: 1px solid var(--green-dk); }
.type-badge-sm.series { background: rgba(139,92,246,0.12); color: #a78bfa; border: 1px solid #7c3aed; }

/* ─── Footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 5% 0;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top-custom {
  width: 100%; margin-bottom: 18px; min-height: 32px; contain: layout paint;
}
.footer-top-custom:empty { display: none; min-height: 0; }

/* Top row: brand + nav */
.footer-top {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.footer-brand {
  flex: 0 0 260px;
  max-width: 300px;
}
.footer-logo-img {
  height: 32px; width: auto; display: block; margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
.footer-disclaimer {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  transition: background .18s, color .18s, border-color .18s;
}
.footer-social a:hover {
  background: rgba(0,192,48,.12);
  border-color: rgba(0,192,48,.25);
  color: var(--green);
}

/* Nav columns */
.footer-nav {
  flex: 1;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}
.footer-nav-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 2px;
}
.footer-nav-col a {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  text-decoration: none;
  transition: color .18s;
}
.footer-nav-col a:hover { color: var(--green); }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 16px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-copy {
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

/* Legacy classes (backward compat) */
.footer-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { color: var(--green); font-size: 13px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-brand { max-width: 100%; flex: unset; }
  .footer-nav { gap: 24px; }
}

/* ─── 404 ────────────────────────────────────────────────────────────── */
.not-found {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; text-align: center; gap: 16px; padding: 20px;
}
.not-found-code { font-size: 96px; color: var(--green); font-weight: 900; line-height: 1; }
.not-found h1 { font-size: 28px; color: var(--text); font-weight: 700; }
.not-found p  { color: var(--muted); font-size: 16px; }
.not-found a  { color: var(--green); text-decoration: underline; font-size: 15px; }

/* ═══ Admin panel layout & components ═══ */
/* ════════════════════════════════════════════════════════════════════════
   ADMIN PANEL
   ════════════════════════════════════════════════════════════════════════ */
.admin-body { background: var(--bg); }
.admin-wrapper { display: flex; min-height: 100vh; }

/* ─── Admin mobile topbar ────────────────────────────────────────────── */
.admin-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 820;
  height: 54px;
  background:
    linear-gradient(180deg, rgba(8,8,8,.98) 0%, rgba(12,12,12,.92) 42%, rgba(15,15,15,.66) 74%, rgba(15,15,15,0) 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; gap: 12px;
}
.admin-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 32px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,15,15,0), rgba(15,15,15,.45) 58%, rgba(15,15,15,.74) 100%);
}
@media (min-width: 900px) { .admin-topbar { display: none; } }
.admin-topbar-title { font-size: 15px; font-weight: 800; color: var(--text); flex: 1; text-align: center; }
.admin-topbar-link  { font-size: 12px; color: var(--green); white-space: nowrap; }
.admin-topbar-hamburger {
  width: 40px; height: 40px; border-radius: 8px; border: none;
  background: rgba(255,255,255,.05); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
}
.admin-topbar-hamburger svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* ─── Sidebar overlay ────────────────────────────────────────────────── */
.admin-sidebar-overlay {
  position: fixed; inset: 0; z-index: 830;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.admin-sidebar-overlay.open { opacity: 1; pointer-events: all; }

/* ─── Sidebar shell ──────────────────────────────────────────────────── */
.admin-sidebar {
  width: 252px; flex-shrink: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 20%),
    #0f0f0f;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 840;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto; overflow-x: hidden;
}
.admin-sidebar.open { transform: translateX(0); }
@media (min-width: 900px) {
  .admin-sidebar { transform: none !important; }
}

/* ─── Sidebar header ─────────────────────────────────────────────────── */
.sb-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 16px 16px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-header-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-logo-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: var(--green); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900;
}
.sb-logo-text { min-width: 0; }
.sb-logo-text a { display: block; font-size: 15px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-logo-text span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.sb-close {
  width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--bg3); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all var(--transition);
}
.sb-close:hover { color: var(--text); border-color: var(--muted); }
@media (min-width: 900px) { .sb-close { display: none; } }

/* ─── Sidebar nav ────────────────────────────────────────────────────── */
.sb-nav { padding: 8px 8px 8px; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.sb-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--border); padding: 10px 8px 4px;
}
.sb-divider { height: 1px; background: var(--border); margin: 6px 0; }

.sb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 9px;
  color: #888; font-size: 13.5px; font-weight: 500;
  transition: background var(--transition), color var(--transition);
  text-decoration: none; min-height: 46px;
}
.sb-item:hover  { background: rgba(255,255,255,.06); color: #ddd; }
.sb-item.active { background: rgba(0,192,48,.12); color: var(--green); }
.sb-item.active .sb-icon { color: var(--green); }

/* Icon — no background, just sized correctly */
.sb-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: inherit;
}
.sb-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
  vector-effect: non-scaling-stroke;
}
.sb-label { flex: 1; line-height: 1; }

/* ─── Sidebar footer ─────────────────────────────────────────────────── */
.sb-footer {
  padding: 10px 8px; border-top: 1px solid var(--border); flex-shrink: 0;
}
.sb-logout {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 9px;
  color: #888; font-size: 13.5px;
  transition: background var(--transition), color var(--transition);
}
.sb-logout:hover { background: rgba(229,9,20,.1); color: #f87171; }
.sb-logout svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Admin main ─────────────────────────────────────────────────────── */
.admin-main {
  flex: 1; min-width: 0;
  /* Mobile: topbar=54px + gap */
  padding: calc(54px + 18px) 14px 40px;
}
@media (min-width: 900px) {
  .admin-main { margin-left: 252px; padding: 24px 24px 40px; }
}
@media (min-width: 1200px) { .admin-main { padding: 28px 32px 50px; } }

.admin-header { margin-bottom: 24px; }
.admin-header h1 { font-size: 22px; font-weight: 800; }
@media (min-width: 768px) { .admin-header h1 { font-size: 26px; } }
.admin-header p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 28px;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px;
}
.stat-num   { font-size: 32px; font-weight: 900; color: var(--green); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* Admin cards */
.admin-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px; margin-bottom: 20px;
}
@media (min-width: 768px) { .admin-card { padding: 22px 24px; } }
.admin-card-title {
  font-size: 15px; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid.cols-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.form-grid.cols-1 { grid-template-columns: 1fr !important; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.span-2 { grid-column: 1 / -1; }
.form-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: 6px; outline: none;
  transition: border-color var(--transition); width: 100%;
  min-height: 44px;
}
.form-input:focus { border-color: var(--green); }
.form-input::placeholder { color: #555; }
textarea.form-input { resize: vertical; min-height: 90px; }
select.form-input { cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 18px; min-height: 42px;
  border-radius: var(--radius); border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; transition: all var(--transition);
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary   { background: var(--green); color: #000; }
.btn-primary:hover  { background: #00e040; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #2a2a2a; }
.btn-danger  { background: var(--red); color: #fff; }
.btn-danger:hover  { background: #c40811; }
.btn-warning { background: #f59e0b; color: #000; }
.btn-warning:hover { background: #f5b822; }
.btn-sm { padding: 0 10px; min-height: 34px; font-size: 12px; border-radius: 5px; }

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td {
  padding: 11px 14px; border-bottom: 1px solid #1a1a1a;
  font-size: 14px; vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table img { width: 34px; height: 50px; object-fit: cover; border-radius: 3px; }

/* Alerts */
.alert {
  padding: 12px 16px; border-radius: 6px; margin-bottom: 18px; font-size: 14px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: rgba(0,192,48,0.1); border: 1px solid rgba(0,192,48,0.3); color: #5fff80; }
.alert-error   { background: rgba(229,9,20,0.1); border: 1px solid rgba(229,9,20,0.3); color: #ff7070; }

/* Admin login */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(0,192,48,.12), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(255,255,255,.06), transparent 16%),
    linear-gradient(180deg, #090d0a 0%, #0f1310 54%, #0b0d0c 100%);
  padding: 20px;
}
.admin-login-shell {
  width: 100%;
  max-width: 500px;
}
.admin-login-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at top right, rgba(0,192,48,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  box-shadow: 0 36px 90px rgba(0,0,0,.38);
  padding: 30px;
}
.admin-login-kicker {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 900;
  margin-bottom: 10px;
}
.admin-login-brand {
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 900;
  line-height: 1;
  color: #f6fff8;
  margin-bottom: 10px;
}
.admin-login-title {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
}
.admin-login-subtitle {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
  margin: 0 0 22px;
  max-width: 42ch;
}
.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-login-field {
  gap: 8px;
}
.admin-login-label {
  color: rgba(255,255,255,.78);
}
.admin-login-input {
  min-height: 52px;
  border-radius: 14px;
  background: rgba(7,10,8,.7);
  border-color: rgba(255,255,255,.1);
}
.admin-login-input:focus {
  border-color: rgba(0,192,48,.6);
  box-shadow: 0 0 0 4px rgba(0,192,48,.12);
}
.admin-login-pw-wrap .admin-login-input {
  padding-right: 50px;
}
.admin-login-eye {
  color: rgba(255,255,255,.62);
}
.admin-login-submit {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  margin-top: 4px;
}
.admin-login-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.52);
  font-size: 12px;
}
.admin-login-back {
  color: rgba(255,255,255,.68);
  text-decoration: none;
}
.admin-login-back:hover {
  color: #fff;
}
.admin-login-divider {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
}
.admin-login-note {
  color: rgba(255,255,255,.48);
}
@media (max-width: 560px) {
  .admin-login-panel {
    padding: 24px 18px;
    border-radius: 22px;
  }
  .admin-login-title {
    font-size: 21px;
  }
}

/* Link item rows */
.link-item-row {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}

/* Audio badges */
.audio-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 1px;
}
.audio-badge.dual      { background: rgba(0,192,48,0.15);    color: var(--green);  border: 1px solid var(--green-dk); }
.audio-badge.nacional  { background: rgba(59,130,246,0.15);  color: #60a5fa;       border: 1px solid #2563eb; }
.audio-badge.legendado { background: rgba(245,158,11,0.15);  color: #fbbf24;       border: 1px solid #d97706; }

/* Scrape result */
.scrape-result-item {
  background: var(--bg3); border: 1px solid rgba(0,192,48,0.2);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}

/* Toggle */
.toggle-row { display: flex; align-items: center; gap: 10px; }
input[type="checkbox"].toggle { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; flex-shrink: 0; }

/* TMDB cards */
.tmdb-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
@media (min-width: 640px) { .tmdb-results { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; } }
.tmdb-result-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: border-color var(--transition), transform var(--transition);
}
.tmdb-result-card:hover { border-color: var(--green); }
.tmdb-result-card:active { transform: scale(0.97); }
.tmdb-result-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.tmdb-info   { padding: 8px 10px; }
.tmdb-title  { font-size: 12px; font-weight: 600; margin-bottom: 3px; line-height: 1.3; }
.tmdb-year   { font-size: 11px; color: var(--muted); }
.tmdb-result-card form { margin: 0 10px 10px; }

/* Edit tabs */
.edit-tabs { display: flex; overflow-x: auto; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.edit-tabs::-webkit-scrollbar { height: 0; }
.tab {
  padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer; transition: all var(--transition);
  white-space: nowrap; flex-shrink: 0;
}
@media (min-width: 640px) { .tab { padding: 10px 22px; font-size: 14px; } }
.tab:hover  { color: #fff; }
.tab.active { color: var(--green); border-bottom-color: var(--green); }

/* Category checkboxes */
.categories-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-check-label {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg3);
  transition: all var(--transition); min-height: 38px;
}
.cat-check-label:hover  { border-color: var(--green-dk); }
.cat-check-label.checked{ background: rgba(0,192,48,0.12); border-color: var(--green); color: var(--green); }
.cat-check-label input  { display: none; }

/* Settings page two-column */
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .settings-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 30px) 20px 60px;
  background:
    radial-gradient(circle at 20% 10%, rgba(0,192,48,.12), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.06), transparent 18%),
    linear-gradient(180deg, #0c0c0c 0%, #111 100%);
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 36px 90px rgba(0,0,0,.35);
  overflow: hidden;
}
.auth-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0,192,48,.16), transparent 34%);
  pointer-events: none;
}
.auth-card-content {
  position: relative;
  z-index: 1;
  padding: 28px;
}
.auth-kicker {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 10px;
}
.auth-card h1 {
  font-size: 34px;
  line-height: 1.05;
  margin-bottom: 8px;
}
.auth-card p {
  color: #b8b8b8;
  margin-bottom: 22px;
}
.auth-form {
  display: grid;
  gap: 10px;
}
.auth-submit {
  margin-top: 8px;
}
.auth-switch {
  margin-top: 18px;
  font-size: 14px;
  color: #b8b8b8;
}
.auth-switch a {
  color: var(--green);
  font-weight: 700;
}

/* Netflix-like home slider without changing the palette */
.hero-slider {
  position: relative;
  min-height: clamp(430px, 62vh, 580px);
  background: linear-gradient(180deg, rgba(5,5,5,.7), var(--bg));
  overflow: hidden;
  contain: layout paint;
}
.hero-slider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(13,13,13,0) 0%,
    rgba(13,13,13,.12) 28%,
    rgba(13,13,13,.34) 58%,
    rgba(13,13,13,.62) 84%,
    var(--bg) 100%
  );
}
.hero-slider-track {
  position: relative;
  min-height: clamp(430px, 62vh, 580px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  /* instant switch — no opacity transition to avoid gradient bleed */
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.hero-slide-bg,
.hero-slide-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: -2px; /* Overscan inferior para evitar linha no rodapé */
}
.hero-slide-bg {
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-slide-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: inherit;
  background-position: inherit;
  background-repeat: inherit;
  filter: brightness(.65) saturate(1.08);
  transform: scale(1.04);
}
.hero-slide-preload {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.hero-slide-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: -2px;
  z-index: 1;
  pointer-events: none;
  background:
    /* topo — cobre navbar e área superior do backdrop */
    linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.28) 22%, transparent 42%),
    /* lado esquerdo — legibilidade do texto */
    linear-gradient(90deg, rgba(9,9,9,.96) 0%, rgba(9,9,9,.78) 28%, rgba(9,9,9,.28) 58%, transparent 100%),
    /* baixo — fade para o bg da página */
    linear-gradient(0deg, var(--bg) 0%, rgba(9,9,9,.72) 18%, rgba(9,9,9,.28) 38%, transparent 58%);
}
.hero-slide-body {
  position: relative;
  z-index: 3;
  min-height: clamp(410px, 58vh, 580px);
  display: flex;
  align-items: end;
  padding: calc(var(--nav-h) + 6px) 5% 72px;
}
.hero-slide-copy {
  max-width: 720px;
  position: relative;
  z-index: 7;
}
.hero-logo,
.mhero-logo,
.hero-spotlight-logo,
.card-overlay-logo {
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.55));
}
.hero-logo {
  max-width: min(520px, 82vw);
  max-height: 150px;
  margin-bottom: 12px;
}
.hero-slide {
  transition: opacity .92s cubic-bezier(.19,1,.22,1);
  will-change: opacity;
}
.hero-slide.is-active {
  z-index: 2;
}
.hero-slide-bg::before {
  transform: scale(1.08);
  transition: transform 6.2s cubic-bezier(.19,1,.22,1), filter .9s ease;
  will-change: transform;
}
.hero-slide.is-active .hero-slide-bg::before {
  transform: scale(1.02);
}
.hero-slide.is-prev .hero-slide-bg::before {
  transform: scale(1.1);
}
.hero-slide-copy {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .64s ease .12s, transform .88s cubic-bezier(.19,1,.22,1) .12s;
}
.hero-slide.is-active .hero-slide-copy {
  opacity: 1;
  transform: translateY(0);
}
.card-featured-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: var(--green);
  border: 1px solid rgba(0,192,48,.3);
}
.card-overlay-logo {
  max-width: 80%;
  max-height: 62px;
  margin-bottom: 10px;
}

/* Detail page refinements */
.mhero-logo {
  max-width: min(460px, 80vw);
  max-height: 126px;
  margin-bottom: 10px;
}
.mhero-title-fallback {
  font-size: 18px;
  color: #f3f3f3;
  margin-bottom: 10px;
}
.mhero-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.mhero-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  margin-bottom: 8px;
  width: 100%;
}
@media (min-width: 640px) {
  .mhero-title-row { justify-content: flex-start; }
}
.mhero-heading-stack {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mhero-title-row .mhero-title {
  margin-bottom: 0;
}
.mhero-like-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.movie-detail-grid {
  padding-top: 36px;
  padding-bottom: 0;
}
.detail-duo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 980px) {
  .detail-duo-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr);
    gap: 10px;
    align-items: start;
  }
}
.detail-panel {
  min-width: 0;
}
.overview-btn {
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 12px;
}
.mhero-overview.expanded {
  display: block;
  -webkit-line-clamp: unset;
}
/* ═══════════════════════════════════════════════════════════════════════
   DOWNLOAD MODAL
   ═══════════════════════════════════════════════════════════════════════ */

/* Overlay / backdrop */
.dlm-overlay {
  position: fixed;
  inset: 0;
  z-index: 980;
  background: rgba(0,0,0,.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
@media (min-width: 640px) { .dlm-overlay { align-items: center; } }
.dlm-overlay.open { opacity: 1; pointer-events: all; }

/* Sheet */
.dlm-sheet {
  position: relative;
  background: #131313;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-height: 88svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(56px);
  transition: transform .34s cubic-bezier(.25,1,.3,1);
  box-shadow: 0 -12px 60px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}
@media (min-width: 640px) {
  .dlm-sheet {
    max-width: 600px;
    max-height: 88svh;
    border-radius: 22px;
    transform: translateY(28px) scale(.95);
    box-shadow: 0 32px 80px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.07);
  }
}
.dlm-overlay.open .dlm-sheet { transform: none; }
.dlm-sheet::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,192,48,.4) 15%, #00f040 50%, rgba(0,192,48,.4) 85%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Handle bar (mobile only) */
.dlm-handle {
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.14);
  margin: 14px auto 0;
  flex-shrink: 0;
}
@media (min-width: 640px) { .dlm-handle { display: none; } }

/* ── Header ──────────────────────────────────────────────────────────── */
.dlm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
@media (min-width: 480px) {
  .dlm-header { gap: 14px; padding: 18px 22px 16px; }
}
.dlm-poster {
  width: 44px;
  border-radius: 7px;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,.6);
  align-self: flex-start;
}
@media (min-width: 480px) { .dlm-poster { width: 54px; border-radius: 9px; } }
.dlm-header-info { flex: 1; min-width: 0; }
.dlm-header-eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 3px;
}
.dlm-header-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 480px) { .dlm-header-title { font-size: 16px; } }
.dlm-header-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 480px) { .dlm-header-sub { font-size: 12px; } }
.dlm-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.dlm-close:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.22); }

/* ── Body / scroll area ──────────────────────────────────────────────── */
.dlm-body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 480px) {
  .dlm-body { padding: 22px 22px 32px; gap: 28px; }
}
.dlm-body::-webkit-scrollbar { width: 4px; }
.dlm-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

/* ── Season header ───────────────────────────────────────────────────── */
.dlm-season-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
}
.dlm-season-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0,192,48,.12);
  border: 1px solid rgba(0,192,48,.22);
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -1px;
}
.dlm-season-title {
  font-size: 14px;
  font-weight: 800;
  color: #f3f3f3;
  line-height: 1.2;
}
.dlm-season-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Audio legend ────────────────────────────────────────────────────── */
.dlm-audio-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dlm-audio-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 2px 9px 2px 6px;
}

/* Small inline audio dots */
.dlm-audio-dot-sm {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 1px;
}

/* ── Episode number badge ─────────────────────────────────────────────── */
.dlm-ep-num {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease;
}
.dlm-card:hover .dlm-ep-num {
  background: rgba(0,192,48,.12);
  color: var(--green);
  border-color: rgba(0,192,48,.22);
}
.dlm-card.is-selected .dlm-ep-num {
  background: rgba(0,192,48,.16);
  color: var(--green);
  border-color: rgba(0,192,48,.3);
}

/* ── Episode card title (compact) ────────────────────────────────────── */
.dlm-card-ep-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: #f3f3f3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Movie quality badge (replaces icon for movie modal) ─────────────── */
.dlm-movie-quality-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease, border-color .2s ease;
}
.dlm-mqb-text {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  color: #e0e0e0;
}
.dlm-card:hover .dlm-movie-quality-badge {
  background: rgba(0,192,48,.12);
  border-color: rgba(0,192,48,.24);
}
.dlm-card:hover .dlm-mqb-text { color: var(--green); }

/* sublabel extras */
.dlm-sublabel-size {
  font-weight: 700;
  color: rgba(255,255,255,.5);
}
.dlm-sublabel-count {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--muted);
  margin-left: 3px;
}

/* compact padding for episode cards (2-col) */
.dlm-episode-card .dlm-card-main {
  padding: 10px 12px;
  gap: 10px;
}

/* ep-num responsive labels */
.dlm-ep-num-short { display: none; }
.dlm-ep-num-full  { display: block; }
@media (max-width: 400px) {
  .dlm-ep-num-full  { display: none; }
  .dlm-ep-num-short { display: block; font-size: 9px; font-weight: 900; letter-spacing: -.3px; }
  .dlm-ep-num { font-size: 10px; width: 30px; height: 30px; border-radius: 7px; }
}

/* complete season card — full width always */
.dlm-episode-complete {
  grid-column: 1 / -1;
}
.dlm-episode-complete .dlm-ep-num {
  background: rgba(0,192,48,.14);
  border-color: rgba(0,192,48,.28);
  color: var(--green);
  width: 38px;
  height: 38px;
  font-size: 18px;
  border-radius: 10px;
}
.dlm-episode-complete .dlm-card-ep-title {
  font-size: 14px;
}

/* cancel/back button */
.dlm-choice-cancel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .18s ease, background .18s ease;
  font-family: inherit;
}
.dlm-choice-cancel:hover { color: #fff; background: rgba(255,255,255,.06); }

/* ── Group (one per audio type) ──────────────────────────────────────── */
.dlm-group { display: flex; flex-direction: column; gap: 12px; }

.dlm-group-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.dlm-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dlm-dot-dual      { background: var(--green); box-shadow: 0 0 10px rgba(0,192,48,.7); }
.dlm-dot-nacional  { background: #60a5fa;       box-shadow: 0 0 10px rgba(96,165,250,.7); }
.dlm-dot-legendado { background: #c084fc;       box-shadow: 0 0 10px rgba(192,132,252,.7); }

/* ── Quality card list ───────────────────────────────────────────────── */
.dlm-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dlm-episode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dlm-episode-card.is-selected {
  grid-column: 1 / -1;
}

.dlm-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer;
  color: inherit;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.dlm-card:hover {
  border-color: rgba(0,192,48,.4);
  background: rgba(0,192,48,.05);
  box-shadow: 0 4px 20px rgba(0,192,48,.12);
}
.dlm-card:active { transform: scale(.99); }

.dlm-episode-card {
  position: relative;
}

.dlm-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}
@media (min-width: 480px) { .dlm-card-main { padding: 14px 16px; } }

.dlm-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,192,48,.12);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s ease, box-shadow .2s ease;
}
.dlm-card:hover .dlm-card-icon {
  background: rgba(0,192,48,.22);
  box-shadow: 0 0 14px rgba(0,192,48,.2);
}

.dlm-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dlm-card-chevron {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.dlm-card.is-selected .dlm-card-chevron {
  transform: rotate(180deg);
  color: #fff;
  border-color: rgba(0,192,48,.28);
  background: rgba(0,192,48,.1);
}

.dlm-card-info { flex: 1; min-width: 0; }

.dlm-card-quality {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.8px;
  color: #f3f3f3;
}
@media (min-width: 480px) { .dlm-card-quality { font-size: 22px; } }

.dlm-card-sublabel {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dlm-card-highlight {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: #d9e6dc;
}

.dlm-card-highlight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,184,0,.14);
  border: 1px solid rgba(255,184,0,.24);
  color: #ffd97d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dlm-card-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dlm-card-size {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
}

.dlm-card-chevron {
  color: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  transition: transform .22s cubic-bezier(.25,1,.3,1), color .2s ease;
}
.dlm-card-dl-arrow {
  color: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  transition: transform .2s ease, color .2s ease;
}
.dlm-card:hover .dlm-card-dl-arrow { color: var(--green); transform: translateX(2px); }
.dlm-card.is-selected .dlm-card-chevron { transform: rotate(180deg); color: var(--green); }

/* ── Empty state ─────────────────────────────────────────────────────── */
.dlm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 44px 16px;
  color: var(--muted);
  text-align: center;
}
.dlm-empty svg { opacity: .35; }
.dlm-empty p { font-size: 14px; }

/* ─── Hero slide kicker ──────────────────────────────────────────────── */
.hero-slide-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOVIE DETAIL PAGE  (mhero* / mbadge* / mbtn* / mpage-section)
   ═══════════════════════════════════════════════════════════════════════ */

/* Hero backdrop + gradient */
.mhero {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 58vh, 580px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  contain: layout paint;
}
.mhero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg2);
}
.mhero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: brightness(0.65) saturate(1.08);
  transform: scale(1.04);
  transition: transform 8s ease;
}
.mhero:hover .mhero-bg img { transform: scale(1.0); }
.mhero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 60% 0%, rgba(0,192,48,.12), transparent 35%),
    linear-gradient(180deg, rgba(8,8,8,.18) 0%, rgba(8,8,8,.55) 50%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8,8,8,.72) 0%, rgba(8,8,8,.28) 60%, rgba(8,8,8,.08) 100%);
}

/* Body: poster + info */
.mhero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: calc(var(--nav-h) + 56px) 5% 28px;
}
@media (min-width: 640px) {
  .mhero-body {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    padding-top: calc(var(--nav-h) + 80px);
    padding-bottom: 32px;
  }
}
@media (min-width: 1024px) {
  .mhero-body { padding-left: 6%; padding-right: 6%; }
}

/* Poster */
.mhero-poster {
  width: 155px;
  aspect-ratio: 2 / 3;
  height: auto;
  display: block;
  object-fit: cover;
  background: var(--bg3);
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 10px 44px rgba(0,0,0,.85);
}
@media (min-width: 640px) { .mhero-poster { width: 175px; align-self: flex-start; } }
@media (min-width: 768px) { .mhero-poster { width: 210px; } }
@media (min-width: 1024px) { .mhero-poster { width: 245px; } }

/* Info column */
.mhero-info {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .mhero-info {
    flex: 1;
    width: 0; /* in row-flex, forces item to not expand beyond parent width */
  }
}

/* Main info column */
.mhero-main { min-width: 0; width: 100%; }

/* Center all flex children on mobile */
.mhero-main .mhero-genres,
.mhero-main .mhero-badges,
.mhero-main .mhero-meta,
.mhero-main .mhero-crew-inline,
.mhero-main .mhero-actions {
  justify-content: center;
}
@media (min-width: 640px) {
  .mhero-main .mhero-genres,
  .mhero-main .mhero-badges,
  .mhero-main .mhero-meta,
  .mhero-main .mhero-crew-inline,
  .mhero-main .mhero-actions {
    justify-content: flex-start;
  }
}

/* ── Inline cast row (below categories, both mobile and desktop) ── */
.mhero-cast-row {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 10px 0 8px;
  min-height: 112px;
  scrollbar-width: none;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.mhero-cast-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 4px;
  min-width: 0;
}
.mhero-cast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mhero-cast-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.mhero-cast-count {
  font-size: 12px;
  color: var(--text-muted);
}
.mhero-cast-row::-webkit-scrollbar { display: none; }
.mhero-cast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 70px;
  width: 70px;
  text-align: center;
  scroll-snap-align: start;
}
.mhero-cast-item img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}
.mhero-cast-nophoto-sm {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
}
.mhero-cast-item-name {
  font-size: 11px;
  font-weight: 600;
  color: #d0d0d0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

/* ── Cast sidebar (desktop right column) ─────────────────────────── */
.mhero-cast-sidebar {
  display: none;
}
@media (min-width: 900px) {
  .mhero-cast-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.12) transparent;
    padding-top: 2px;
    padding-right: 4px;
  }
  .mhero-cast-sidebar::-webkit-scrollbar { width: 4px; }
  .mhero-cast-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 2px; }
}
.mhero-cast-sidebar-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  flex-shrink: 0;
}
.mhero-cast-sidebar-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 8px;
}
.mhero-cast-sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}
.mhero-cast-sidebar-photo,
.mhero-cast-sidebar-nophoto {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.1);
}
.mhero-cast-sidebar-nophoto {
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.mhero-cast-sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  width: 100%;
}
.mhero-cast-sidebar-name {
  font-size: 11px;
  font-weight: 700;
  color: #e8e8e8;
  line-height: 1.3;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mhero-cast-sidebar-char {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cast slider section hidden on desktop (sidebar takes over) */
@media (min-width: 900px) { .cast-slider-section { display: none; } }

/* ── Cast slider section ───────────────────────────────────────────── */
.cast-slider-section { padding: 0 5% 32px; }
@media (min-width: 768px) { .cast-slider-section { padding: 0 6% 40px; } }

.cast-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cast-slider-arrows {
  display: flex;
  gap: 6px;
}
.cast-arrow {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.cast-arrow:hover { background: rgba(255,255,255,.14); border-color: rgba(0,192,48,.4); }
.cast-arrow:disabled { opacity: .3; cursor: default; }

.cast-slider-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.cast-slider-track::-webkit-scrollbar { display: none; }

/* Inline crew row (above overview) */
.mhero-crew-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 12px;
}
.mhero-crew-inline-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mhero-crew-inline-role {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.3;
}
.mhero-crew-inline-name {
  font-size: 13px;
  font-weight: 700;
  color: #e5e5e5;
  line-height: 1.25;
}

/* Badges row (type + genres) */
.mhero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.mbadge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 20px;
  transition: all var(--transition);
}
.mbadge-movie   { background: rgba(0,192,48,.12); color: var(--green); border: 1px solid rgba(0,192,48,.4); }
.mbadge-series  { background: rgba(139,92,246,.12); color: #c4b5fd; border: 1px solid rgba(139,92,246,.4); }
.mbadge-genre {
  background: rgba(255,255,255,.06);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.mbadge-genre:hover { color: var(--green); border-color: rgba(0,192,48,.4); background: rgba(0,192,48,.08); }

/* Title, tagline, meta */
.mhero-title {
  font-size: clamp(20px, 3.6vw, 34px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.5px;
  margin-bottom: 6px;
}
.mhero-tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--green);
  opacity: .8;
  margin-bottom: 14px;
}
.mhero-meta {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.mhero-postmeta {
  display: flex;
  align-items: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.62);
  margin-bottom: 12px;
}
.mmeta-star { color: #fbbf24; font-weight: 800; font-size: 15px; }

/* Overview */
.mhero-overview {
    font-size: 13px;
    color: #bfbfbf;
    line-height: 1.55;
    max-width: 900px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

/* Action buttons */
.mhero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mhero-social {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ── Like keyframes ───────────────────────────────────────────────────── */
@keyframes likeHeartPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.35); }
  60%  { transform: scale(0.88); }
  80%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes likeSpinner {
  to { transform: rotate(360deg); }
}
@keyframes dlBtnGlow {
  0%, 100% { box-shadow: 0 4px 18px rgba(0,192,48,.38); }
  50%       { box-shadow: 0 6px 30px rgba(0,192,48,.64), 0 0 0 3px rgba(0,192,48,.1); }
}
.mbtn-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #00d436 0%, #00a828 100%);
  color: #021008;
  padding: 0 22px 0 17px;
  border-radius: 12px;
  min-height: 50px;
  border: 1px solid rgba(0,220,60,.2);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,192,48,.38);
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease, border-color .2s ease;
  animation: dlBtnGlow 3.2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  white-space: nowrap;
}
.mbtn-dl::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.mbtn-dl svg { flex-shrink: 0; position: relative; }
.mbtn-dl-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: relative;
}
.mbtn-dl-text small {
  font-size: 9px;
  font-weight: 700;
  opacity: .72;
  text-transform: uppercase;
  letter-spacing: .8px;
  line-height: 1.2;
}
.mbtn-dl-text b {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.mbtn-dl:hover  { background: linear-gradient(135deg, #00f040 0%, #00c030 100%); box-shadow: 0 6px 28px rgba(0,192,48,.62); transform: translateY(-2px); border-color: rgba(0,240,60,.3); animation: none; }
.mbtn-dl:active { transform: scale(.97); }

/* ── Like button (discrete, no background) ───────────────────────────── */
.mbtn-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.mbtn-like:hover:not(:disabled) {
  color: #ff7096;
  border-color: rgba(255,64,102,.3);
  background: rgba(255,64,102,.06);
}
.mbtn-like.is-liked {
  color: #ff6d91;
  border-color: rgba(255,64,102,.3);
}
.mbtn-like.is-liked:hover:not(:disabled) {
  color: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.12);
  background: transparent;
}
.mbtn-like:disabled { cursor: wait; opacity: .7; }
.mbtn-like-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mbtn-like-heart svg {
  transition: fill .15s ease, transform .15s ease;
}
.mbtn-like.just-liked .mbtn-like-heart svg {
  animation: likeHeartPop .42s cubic-bezier(.36,.07,.19,.97) both;
}
.mbtn-like.is-loading .mbtn-like-heart svg { opacity: 0; }
.mbtn-like.is-loading .mbtn-like-heart::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,93,131,.3);
  border-top-color: #ff5c83;
  border-radius: 50%;
  animation: likeSpinner .7s linear infinite;
}
.mbtn-like-count { font-variant-numeric: tabular-nums; }

/* Avatar row (Instagram style) — inline next to action buttons */
.mhero-like-avatars {
  display: flex;
  align-items: center;
  padding-left: 4px;
  min-height: 32px;
}
.mhero-like-avatar {
  width: 28px;
  height: 28px;
  margin-left: -6px;
  border-radius: 50%;
  border: 2px solid rgba(13,13,13,.9);
  color: #021006;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  z-index: calc(10 - var(--avatar-index, 0));
  position: relative;
  transition: transform .15s ease;
}
.mhero-like-avatars:hover .mhero-like-avatar { transform: translateY(-2px); }
.mhero-like-avatar-more {
  width: 28px;
  height: 28px;
  margin-left: -6px;
  border-radius: 50%;
  border: 2px solid rgba(13,13,13,.9);
  background: rgba(255,255,255,.12);
  color: #ccc;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

/* Trailer button — glass dark */
.mbtn-trailer,
.mbtn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.13);
  padding: 0 18px;
  border-radius: 12px;
  font-size: 13px;
  min-height: 48px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease, border-color .2s ease;
  font-family: inherit;
}
.mbtn-trailer:hover  { background: rgba(204,0,0,.22); border-color: rgba(255,60,60,.38); box-shadow: 0 6px 28px rgba(180,0,0,.38); transform: translateY(-2px); }
.mbtn-trailer:active { transform: scale(.97); }
.mbtn-share {
  width: 48px;
  padding: 0;
  color: #dfffe7;
}
.mbtn-share:hover {
  background: rgba(0,192,48,.18);
  border-color: rgba(0,192,48,.36);
  box-shadow: 0 6px 28px rgba(0,160,64,.28);
  transform: translateY(-2px);
}
.mbtn-share:active { transform: scale(.97); }
.mbtn-share.is-copied {
  background: rgba(0,192,48,.26);
  border-color: rgba(0,192,48,.5);
  color: #fff;
}
.mbtn-share.is-error {
  background: rgba(229,9,20,.2);
  border-color: rgba(229,9,20,.42);
  color: #ffd5d8;
}

/* ─── Movie page content sections ────────────────────────────────────── */
.mpage-section { padding: 0 5% 32px; }
@media (min-width: 768px) { .mpage-section { padding: 0 6% 40px; } }

.telegram-join-section {
  padding: 0;
  margin: 0 0 18px;
  min-height: 96px;
  contain: layout paint;
}
.telegram-join-section-mobile {
  display: none;
}
.telegram-join-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 22px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 14% 10%, rgba(42,171,238,.22), transparent 34%),
    linear-gradient(135deg, rgba(13,22,31,.94), rgba(8,14,20,.98));
  border: 1px solid rgba(42,171,238,.28);
  box-shadow: 0 18px 50px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.06);
  min-height: 96px;
}
.telegram-join-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.telegram-join-kicker {
  color: #8dd8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.telegram-join-copy strong {
  color: #f4fbff;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.15;
}
.telegram-join-copy p {
  margin: 2px 0 0;
  color: rgba(224,244,255,.78);
  font-size: 12px;
  line-height: 1.45;
  max-width: 48ch;
}
.telegram-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, #2AABEE, #168ACB);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 12px 28px rgba(42,171,238,.3);
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.telegram-join-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 16px 34px rgba(42,171,238,.4);
}
@media (max-width: 560px) {
  .telegram-join-section {
    min-height: 178px;
  }
  .telegram-join-card {
    align-items: stretch;
    flex-direction: column;
    padding: 17px;
    min-height: 178px;
  }
  .telegram-join-btn {
    width: 100%;
  }
}
@media (max-width: 899px) {
  .telegram-join-section:not(.telegram-join-section-mobile) {
    display: none;
  }
  .comments-section .telegram-join-section-mobile {
    display: block;
    order: 23;
    margin: 22px 0 0;
  }
}

.msec-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #f0f0f0;
  border-left: 3px solid var(--green);
  padding-left: 12px;
}

/* Crew chips */
.crew-chip {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.crew-chip strong { font-size: 13px; font-weight: 700; }
.crew-chip span   { font-size: 11px; color: var(--green); }

/* Cast no-photo placeholder */
.cast-nophoto {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--green);
}

/* Cast card labels */
.cast-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cast-char {
  display: block;
  font-size: 10px;
  color: var(--muted);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Related movies section ──────────────────────────────────────────── */
.related-section { padding: 0 5% 40px; }
@media (min-width: 768px) { .related-section { padding: 0 6% 48px; } }

.related-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.related-track::-webkit-scrollbar { height: 4px; display: none; }
.related-section:hover .related-track { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.related-section:hover .related-track::-webkit-scrollbar { display: block; }
.related-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }
.related-track .movie-card {
  flex: 0 0 130px;
  scroll-snap-align: start;
}
@media (min-width: 480px) { .related-track .movie-card { flex-basis: 148px; } }
@media (min-width: 768px) { .related-track .movie-card { flex-basis: 160px; } }

/* Download modal redesign */
.dlm-header-redesign {
  background:
    radial-gradient(circle at top right, rgba(0,192,48,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.dlm-body-redesign {
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 18%),
    linear-gradient(180deg, #181818 0%, #131313 100%);
}
.dlm-group-redesign {
  margin-bottom: 24px;
}
.dlm-grid {
  display: grid;
  gap: 12px;
}
.dlm-link-redesign {
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01)),
    linear-gradient(180deg, rgba(0,192,48,.04), transparent 36%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.dlm-link-redesign:hover {
  border-color: rgba(0,192,48,.55);
  box-shadow: 0 22px 54px rgba(0,0,0,.3);
}
.dlm-link-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dlm-link-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dlm-mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #f4f4f4;
  font-size: 11px;
  font-weight: 700;
}
.dlm-mini-size {
  color: var(--green);
  border-color: rgba(0,192,48,.18);
  background: rgba(0,192,48,.08);
}
.dlm-link-cta {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--green);
}
.dlm-link-redesign .dlm-link-icon {
  width: 64px;
  min-height: 92px;
  font-size: 26px;
  background:
    linear-gradient(180deg, #10d244 0%, #00c030 100%);
  box-shadow: inset 0 -10px 24px rgba(0,0,0,.16);
}
.dlm-link-redesign .dlm-link-body {
  padding: 16px 18px;
}
.dlm-link-redesign .dlm-link-quality {
  font-size: 22px;
}
.dlm-link-redesign .dlm-link-sub {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.45;
  margin-top: 6px;
  color: #b9b9b9;
}
.dlm-link-redesign .dlm-link-arrow {
  padding: 0 18px;
  font-size: 22px;
  color: #fff;
}

/* Views and related polish */
.mhero-meta span:last-child {
  color: #d8d8d8;
}
.related-section .msec-title {
  margin-bottom: 18px;
}

/* Comments */
.comments-section {
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
  min-height: 360px;
  contain: layout paint;
}
.comment-form {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.comments-section .comments-list {
  order: 20;
  min-height: 12px;
}
.comments-section .comments-load-more-wrap { order: 21; }
.comments-section .comment-form,
.comments-section .comment-login-box {
  order: 22;
  margin-top: 22px;
  margin-bottom: 0;
}
.comment-form-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}
.comment-form-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  outline: none;
  resize: none;
  font-size: 14px;
  line-height: 1.55;
  min-height: 90px;
  transition: border-color .2s, background .2s;
  font-family: inherit;
}
.comment-textarea:focus {
  border-color: var(--green);
  background: rgba(0,192,48,.04);
}
.comment-textarea::placeholder { color: #505050; }
.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.comment-form-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.comment-form-user {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.comment-form-user svg { flex-shrink: 0; }

/* Spoiler toggle */
.comment-spoiler-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.comment-spoiler-toggle input { display: none; }
.comment-spoiler-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.comment-spoiler-toggle input:checked + .comment-spoiler-box {
  color: #f59e0b;
  border-color: rgba(245,158,11,.4);
  background: rgba(245,158,11,.08);
}
.comment-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: opacity .18s, transform .18s;
  white-space: nowrap;
}
.comment-submit-btn:hover { opacity: .88; transform: translateY(-1px); }
.comment-submit-btn:active { transform: scale(.97); }

/* Login prompt */
.comment-login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
  margin-bottom: 24px;
}
.comment-login-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,192,48,.08);
  border: 1px solid rgba(0,192,48,.2);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.comment-login-box p {
  color: #b0b0b0;
  font-size: 14px;
  margin: 0;
}
.comment-login-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.comments-list {
  display: grid;
  gap: 14px;
}
.comment-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.025);
  transition: border-color .18s;
}
.comment-card:hover { border-color: rgba(255,255,255,.13); }
.comment-card.is-spoiler { border-color: rgba(245,158,11,.2); }
.comment-card.is-featured {
  border-color: rgba(255,198,61,.5);
  border-left: 3px solid #ffc83d;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255,198,61,.14) 0%, transparent 55%),
    linear-gradient(135deg, rgba(255,198,61,.08) 0%, rgba(255,255,255,.02) 100%);
  box-shadow:
    0 0 0 1px rgba(255,198,61,.14),
    0 8px 32px rgba(0,0,0,.22),
    0 0 24px rgba(255,180,0,.06),
    inset 0 1px 0 rgba(255,255,255,.07);
  padding-left: 13px;
}
.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.comment-head strong { font-size: 13px; color: #e0e0e0; }
.comment-author-block {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  margin-right: 2px;
}
.comment-username-handle {
  color: rgba(255,255,255,.42) !important;
  font-size: 10px !important;
  line-height: 1.1;
}
.comment-head span {
  color: #666;
  font-size: 11px;
}
.comment-spoiler-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.3);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: .3px;
}
.comment-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #ffd45a !important;
  background: linear-gradient(135deg, #92400e 0%, #78350f 100%);
  border: 1px solid rgba(255,200,61,.55);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .3px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 2px 8px rgba(0,0,0,.3),
    0 0 12px rgba(255,180,0,.18);
}
.comment-featured-badge svg {
  color: #ffd45a;
  filter: drop-shadow(0 0 4px rgba(255,212,90,.6));
}
.comment-text-wrap { display: flex; flex-direction: column; gap: 10px; }
.comment-text {
  color: #c8c8c8;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  margin: 0;
}

/* Spoiler cover — block element shown before text */
.comment-spoiler-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px 14px 14px;
  border-radius: 10px;
  background: rgba(245,158,11,.05);
  border: 1px solid rgba(245,158,11,.22);
  cursor: pointer;
  width: 100%;
  transition: background .18s, border-color .18s;
}
.comment-spoiler-cover:hover {
  background: rgba(245,158,11,.1);
  border-color: rgba(245,158,11,.4);
}
.comment-spoiler-cover-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.25);
  display: flex; align-items: center; justify-content: center;
  color: #f59e0b;
  margin-bottom: 2px;
}
.comment-spoiler-cover-title {
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
}
.comment-spoiler-cover-hint {
  font-size: 11px;
  color: rgba(245,158,11,.6);
}

/* Hide text until revealed */
.is-spoiler .comment-text { display: none; }
.is-spoiler.revealed .comment-text { display: block; }
.is-spoiler.revealed .comment-spoiler-cover { display: none; }
.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.comment-like-btn,
.comment-reply-btn,
.comment-reply-cancel,
.comment-reply-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.045);
  color: #bdbdbd;
  padding: 6px 10px;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.comment-like-btn:hover,
.comment-reply-btn:hover,
.comment-reply-cancel:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: #f2f2f2;
}
.comment-like-btn.is-liked {
  color: #07140b;
  background: #78d66f;
  border-color: rgba(120,214,111,.55);
}
.comment-like-btn:disabled,
.comment-reply-submit:disabled {
  opacity: .65;
  cursor: wait;
}
.comment-reply-count {
  color: #777;
  font-size: 11px;
  font-weight: 700;
}
.comment-reply-slot {
  margin-top: 12px;
}
.comment-reply-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.026);
  border-radius: 12px;
}
.comment-reply-textarea {
  width: 100%;
  min-height: 68px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.18);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}
.comment-reply-textarea:focus {
  border-color: rgba(0,192,48,.55);
  background: rgba(0,192,48,.035);
}
.comment-reply-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.comment-reply-submit {
  color: #07140b;
  background: var(--green);
  border-color: rgba(0,192,48,.55);
}
.comment-replies {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.comment-reply-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid rgba(0,192,48,.34);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.comment-reply-avatar {
  width: 32px;
  height: 32px;
}
.comment-reply-body {
  min-width: 0;
}
.comments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 16px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.1);
  color: #c8c8c8;
  min-height: 158px;
}
.comments-empty svg { color: rgba(255,255,255,.34); }
.comments-empty strong {
  font-size: 15px;
  font-weight: 700;
  color: #f2f2f2;
}
.comments-empty span {
  font-size: 13px;
  color: #c2c2c2;
  line-height: 1.5;
}

/* ── Report button on comment ── */
.comment-report-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 5px;
  transition: color .16s, background .16s;
}
.comment-report-btn:hover { color: #ef4444; background: rgba(239,68,68,.08); }
.comment-report-btn.reported { color: #ef4444; opacity: .5; cursor: default; }
.comment-feature-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,198,61,.2);
  background: rgba(255,198,61,.06);
  color: #d7ad47;
  border-radius: 8px;
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
}
.comment-feature-toggle-btn:hover {
  color: #ffd45a;
  border-color: rgba(255,198,61,.44);
  background: rgba(255,198,61,.12);
  transform: translateY(-1px);
}
.comment-feature-toggle-btn:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}
.comment-date { color: #666; font-size: 11px; }

/* ── Report modal ── */
.report-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.report-overlay.open { display: flex; }
.report-modal {
  background: #1a1a22;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
  overflow: hidden;
}
.report-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.report-modal-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  color: #ef4444;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.report-modal-title { font-size: 15px; font-weight: 700; color: #eee; margin: 0 0 2px; }
.report-modal-sub   { font-size: 12px; color: var(--muted); margin: 0; }
.report-modal-close {
  margin-left: auto;
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 6px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.report-modal-close:hover { color: #eee; background: rgba(255,255,255,.07); }
.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 8px;
}
.report-reason-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  font-size: 14px;
  color: #ccc;
}
.report-reason-item:hover { background: rgba(255,255,255,.05); }
.report-reason-item input { accent-color: #ef4444; width: 15px; height: 15px; cursor: pointer; }
.report-reason-item:has(input:checked) { background: rgba(239,68,68,.08); color: #fff; }
.report-custom-wrap { padding: 0 16px 8px; }
.report-custom-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color .18s;
}
.report-custom-input:focus { border-color: #ef4444; }
.report-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.report-cancel-btn {
  background: none; border: 1px solid rgba(255,255,255,.12);
  color: var(--muted); padding: 8px 18px; border-radius: 999px;
  font-size: 13px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.report-cancel-btn:hover { color: #eee; border-color: rgba(255,255,255,.25); }
.report-submit-btn {
  background: #ef4444; color: #fff;
  border: none; padding: 8px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: opacity .15s;
}
.report-submit-btn:hover { opacity: .88; }
.report-submit-btn:disabled { opacity: .5; cursor: default; }

/* ═══════════════════════════════════════════════════════════════════════
   NAVBAR USER PILL + DROPDOWN
   ═══════════════════════════════════════════════════════════════════════ */
.btn-entrar {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--green);
  color: #000;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background var(--transition), transform var(--transition);
}
.btn-entrar:hover  { background: #00e040; }
.btn-entrar:active { transform: scale(.96); }

.navbar-user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  position: relative;
  user-select: none;
}
.navbar-user-pill:hover { background: rgba(255,255,255,.1); border-color: rgba(0,192,48,.3); }
.navbar-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.navbar-user-name { font-size: 13px; font-weight: 700; color: #e5e5e5; }
.navbar-user-caret { color: var(--muted); transition: transform var(--transition); }
.navbar-user-pill.open .navbar-user-caret { transform: rotate(180deg); }

.navbar-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  min-width: 220px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(.97);
  transition: opacity .2s, transform .2s;
  z-index: 920;
}
.navbar-user-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.user-dd-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 8px;
}
.user-dd-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-dd-name  { font-size: 14px; font-weight: 700; }
.user-dd-email { font-size: 11px; color: var(--muted); margin-top: 2px; }
.user-dd-divider { height: 1px; background: rgba(255,255,255,.07); margin: 4px 0; }
.user-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
  width: 100%;
  border: none;
  background: none;
  text-align: left;
}
.user-dd-item:hover { background: rgba(255,255,255,.07); }
.user-dd-logout { color: #f87171; }
.user-dd-logout:hover { background: rgba(248,113,113,.1); }

/* Drawer auth updates */
.drawer-auth-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.drawer-auth-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: #000; font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.drawer-auth-enter {
  background: var(--green) !important;
  color: #000 !important;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════════════════════════════════════ */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 960;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.auth-overlay.open { opacity: 1; pointer-events: all; }

.auth-modal {
  position: relative;
  background: #141414;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 28px;
  box-shadow: 0 32px 80px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.07);
  transform: translateY(16px) scale(.97);
  transition: transform .32s cubic-bezier(.25,1,.3,1);
}
.auth-overlay.open .auth-modal { transform: none; }

.auth-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.auth-close:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Brand — centered */
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  text-align: center;
}
.auth-brand-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green); color: #000;
  font-size: 26px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(0,192,48,.35);
}
.auth-brand-name { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.3px; }

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 7px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.auth-tab:focus-visible {
  outline: 2px solid rgba(0,192,48,.92);
  outline-offset: 2px;
}
.auth-tab.is-active {
  background: rgba(0,192,48,.15);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(0,192,48,.3);
}

/* Panels */
.auth-panel-hidden { display: none; }
.auth-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }

/* Fields */
.auth-field { margin-bottom: 16px; }
.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #c0c0c0;
  margin-bottom: 7px;
  letter-spacing: .3px;
}
.auth-input {
  width: 100%;
  height: 46px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  padding: 0 14px;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.auth-input::placeholder { color: rgba(255,255,255,.25); }
.auth-input:focus {
  border-color: rgba(0,192,48,.55);
  background: rgba(0,192,48,.05);
  box-shadow: 0 0 0 3px rgba(0,192,48,.12);
}

/* Password wrapper */
.auth-pw-wrap { position: relative; }
.auth-pw-wrap .auth-input { padding-right: 44px; }
.auth-pw-eye {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 44px;
  border: none; background: none;
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition);
}
.auth-pw-eye:hover { color: var(--green); }

/* Error */
.auth-error {
  font-size: 13px;
  color: #f87171;
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.2);
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 14px;
  display: none;
}
.auth-error:not(:empty) { display: block; }

/* Submit button */
.auth-submit {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: var(--green);
  color: #000;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: .3px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0,192,48,.35);
  margin-top: 4px;
}
.auth-submit:hover  { background: #00e040; box-shadow: 0 6px 28px rgba(0,192,48,.5); }
.auth-submit:active { transform: scale(.98); }
.auth-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Switch link below form */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.auth-switch-btn {
  background: none;
  border: none;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  transition: opacity var(--transition);
}
.auth-switch-btn:hover { opacity: .8; }

/* ═══════════════════════════════════════════════════════════════════════
   ADMIN USERS PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dk), var(--green));
  color: #000;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-row-banned { opacity: .55; }
.user-row-banned td:first-child .user-avatar { background: #444; color: #888; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.status-active { background: rgba(0,192,48,.12); color: #4ade80; border: 1px solid rgba(0,192,48,.28); }
.status-banned  { background: rgba(248,113,113,.12); color: #f87171; border: 1px solid rgba(248,113,113,.28); }

.comment-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #d0d0d0;
  padding: 0 6px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FULL-SCREEN SEARCH OVERLAY
   ═══════════════════════════════════════════════════════════════════════ */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 960;
  background: rgba(5,5,5,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(60px, 12vh, 130px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}
.search-overlay.open { opacity: 1; pointer-events: all; }

.search-overlay-inner {
  width: min(720px, 96vw);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Search bar */
.search-overlay-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 0 18px;
  height: 60px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
  transition: border-color .2s, box-shadow .2s;
}
.search-overlay-bar:focus-within {
  border-color: rgba(0,192,48,.5);
  box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 0 3px rgba(0,192,48,.12);
}
.search-overlay-icon { flex-shrink: 0; color: var(--muted); }
.search-overlay-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  caret-color: var(--green);
}
.search-overlay-input::placeholder { color: rgba(255,255,255,.35); }
.search-overlay-close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.search-overlay-close:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Results container */
.search-overlay-results {
  margin-top: 10px;
  background: rgba(16,16,16,.98);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  max-height: min(520px, 65vh);
  overflow-y: auto;
}
.search-overlay-results.has-results { display: flex; }

/* ── Filter toggle ─────────────────────────────────────────────────── */
.srf-filter {
  display: flex;
  gap: 6px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.srf-filter-btn {
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.srf-filter-btn:hover { background: rgba(255,255,255,.09); color: var(--text); border-color: rgba(255,255,255,.2); }
.srf-filter-btn.is-active { background: var(--green); border-color: var(--green); color: #041308; }

/* ── Poster grid ───────────────────────────────────────────────────── */
.srf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 14px;
}
@media (max-width: 500px) {
  .srf-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px; }
}
@media (max-width: 340px) {
  .srf-grid { grid-template-columns: repeat(2, 1fr); }
}

.srf-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  color: #fff;
  border-radius: 10px;
  transition: transform .18s ease;
  outline-offset: 3px;
}
.srf-card:hover { transform: translateY(-2px); }
.srf-card[hidden] { display: none; }

.srf-card-img-wrap {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,.07);
}
.srf-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.srf-card:hover .srf-card-img { transform: scale(1.04); }
.srf-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--muted);
}

.srf-card-badge {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 8px; font-weight: 900; letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.5;
}
.srf-badge-movie  { background: rgba(0,0,0,.7); color: var(--green); border: 1px solid rgba(0,192,48,.4); }
.srf-badge-series { background: rgba(0,0,0,.7); color: #c4b5fd;      border: 1px solid rgba(139,92,246,.4); }

.srf-card-info { padding: 0 2px 2px; }
.srf-card-title {
  font-size: 11px; font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  color: #fff;
}
.srf-card-meta { font-size: 10px; color: var(--muted); margin-top: 2px; white-space: nowrap; }

.srf-empty {
  padding: 22px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* See all results row */
.search-result-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 18px;
  background: rgba(0,192,48,.06);
  text-decoration: none;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  border-top: 1px solid rgba(0,192,48,.15);
  transition: background .18s;
}
.search-result-all:hover { background: rgba(0,192,48,.12); }
.search-result-all { flex-shrink: 0; }

/* ── Search results page filter toggle ────────────────────────────── */
.srp-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.srp-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.srp-filter-btn:hover { background: rgba(255,255,255,.09); color: var(--text); border-color: rgba(255,255,255,.18); }
.srp-filter-btn.is-active { background: var(--green); border-color: var(--green); color: #041308; }
.srp-filter-count {
  font-size: 11px;
  font-weight: 800;
  opacity: .75;
}

/* Hint text */
.search-overlay-hint {
  text-align: center;
  color: rgba(255,255,255,.3);
  font-size: 13px;
  margin-top: 24px;
}
.search-overlay-hint.hidden { display: none; }

/* Loading spinner */
.search-overlay-spinner {
  display: flex;
  justify-content: center;
  padding: 16px;
}
.search-overlay-spinner::after {
  content: '';
  width: 22px; height: 22px;
  border: 2px solid rgba(255,255,255,.12);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════
   USER SETTINGS PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.settings-page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 40px) 5% 60px;
}
@media (min-width: 768px) { .settings-page { padding-left: 6%; padding-right: 6%; } }

.settings-container {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Hero row */
.settings-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0 8px;
}
.settings-avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  transition: background .25s;
}
.settings-username {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.settings-email {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.settings-handle {
  font-size: 13px;
  color: rgba(255,255,255,.62);
  margin-top: 4px;
}

/* Card */
.settings-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 24px;
}
.settings-rd-help-card {
  margin-top: 16px;
  background:
    radial-gradient(circle at top right, rgba(0,192,48,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
}
.settings-rd-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.settings-card-title {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  color: #f0f0f0;
}
.settings-card-title svg { color: var(--green); flex-shrink: 0; }
.settings-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Color swatches */
.avatar-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.avatar-color-swatch {
  position: relative;
  cursor: pointer;
}
.avatar-color-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.avatar-color-dot {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid transparent;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.avatar-color-swatch input:checked + .avatar-color-dot {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
.avatar-color-swatch:hover .avatar-color-dot { transform: scale(1.1); }

.avatar-color-custom {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-color-custom input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border: none;
  padding: 0;
}
.avatar-color-custom-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color .18s, color .18s;
  pointer-events: none;
}
.avatar-color-custom:hover .avatar-color-custom-icon {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

/* Form fields */
.settings-avatar-form,
.settings-pw-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.settings-profile-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.settings-avatar-preview-lg {
  width: 96px;
  height: 96px;
}
.settings-profile-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-input-readonly {
  opacity: .78;
  cursor: not-allowed;
}
.settings-avatar-open-btn {
  min-width: 150px;
}
.settings-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(10px);
}
.settings-modal-backdrop[hidden] {
  display: none !important;
}
.settings-modal {
  width: min(900px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20,24,31,.98), rgba(11,14,19,.98));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.settings-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.settings-modal-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 900;
}
.settings-modal-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.settings-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.settings-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
body.modal-open {
  overflow: hidden;
}
.settings-field { display: flex; flex-direction: column; gap: 6px; }

/* Image avatars */
.drawer-user-avatar,
.navbar-user-avatar,
.user-dd-avatar,
.settings-avatar-preview,
.comment-form-avatar,
.comment-avatar,
.mhero-like-avatar {
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.drawer-user-avatar img,
.navbar-user-avatar img,
.user-dd-avatar img,
.settings-avatar-preview img,
.comment-form-avatar img,
.comment-avatar img,
.mhero-like-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.settings-avatar-preview {
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 42px rgba(0,0,0,.45), 0 0 0 6px rgba(0,192,48,.08);
}
.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}
.avatar-choice-card {
  position: relative;
  cursor: pointer;
}
.avatar-choice-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.avatar-choice-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  overflow: hidden;
}
.avatar-choice-frame img {
  width: 76%;
  height: 76%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.28));
}
.avatar-choice-label {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.avatar-choice-card:hover .avatar-choice-frame {
  transform: translateY(-2px);
  border-color: rgba(0,192,48,.35);
}
.avatar-choice-card input:checked + .avatar-choice-frame {
  border-color: rgba(0,192,48,.82);
  box-shadow: 0 0 0 2px rgba(0,192,48,.26), 0 18px 36px rgba(0,0,0,.32);
}
@media (max-width: 720px) {
  .settings-profile-grid {
    grid-template-columns: 1fr;
  }
  .settings-profile-avatar-card {
    align-items: flex-start;
  }
  .settings-modal {
    padding: 18px;
    border-radius: 20px;
  }
}

/* Stronger season hover */
.card-season-chip,
.card-season-strip-title {
  transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}
.movie-card:hover .card-season-chip {
  transform: translateY(-2px) scale(1.08);
  background: #21df55;
  border-color: rgba(255,255,255,.38);
  filter: drop-shadow(0 8px 14px rgba(0,192,48,.34));
}
.seasons-strip-track .movie-card.is-season-strip:hover .card-season-strip-title {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 14px 24px rgba(0,200,83,.45));
}
.seasons-strip-track .movie-card.is-season-strip:hover .card-season-strip-number {
  filter: drop-shadow(0 6px 18px rgba(0,200,83,.6));
}
.settings-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.settings-input {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #fff;
  padding: 0 16px;
  height: 46px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.settings-input:focus {
  border-color: rgba(0,192,48,.5);
  box-shadow: 0 0 0 3px rgba(0,192,48,.1);
}
.settings-pw-wrap { position: relative; }
.settings-pw-wrap .settings-input { padding-right: 48px; }
.settings-pw-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.settings-pw-eye:hover { color: #fff; }
.settings-save-btn { align-self: flex-start; }

.stab-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}

.stab {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}

.stab:hover,
.stab.is-active,
.stab[aria-selected="true"] {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.stab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(0,192,48,.14);
  color: var(--green);
}

.stab-panel {
  display: none;
}

.stab-panel.is-active {
  display: block;
}

.stab-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stab-rd-info {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}

.stab-rd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.stab-rd-label {
  color: var(--muted);
}

.stab-rd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(0,192,48,.14);
  color: var(--green);
}

.stab-rd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .settings-container {
    max-width: 100%;
  }

  .stab-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-card {
    padding: 18px;
  }
}
.settings-pw-eye:hover { color: #fff; }
.settings-save-btn { align-self: flex-start; }

/* user-dd-item link style (for Configurações link) */
.user-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background .18s;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
}
.user-dd-item:hover { background: rgba(255,255,255,.06); }
.user-dd-item svg { color: var(--muted); flex-shrink: 0; }

/* ── movie-bottom-grid: related + comments side by side on desktop ── */
.movie-bottom-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.movie-bottom-grid > .mpage-section {
  width: 100%;
  min-width: 0;
}
@media (min-width: 900px) {
  .movie-bottom-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: start;
    gap: 0 8px;
  }
  .movie-bottom-grid .comments-section { order: 1; }
  .movie-bottom-grid .related-section  { order: 2; }
  .movie-bottom-grid.has-related-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
  }
  .movie-bottom-grid.has-related-split > .mpage-section {
    min-width: 0;
  }
  .movie-bottom-grid.has-related-split .comments-section {
    order: 1;
  }
  .movie-bottom-grid.has-related-split .related-strip-inline {
    order: 2;
  }
}

/* Related movies: horizontal scroll on mobile, 2-row grid on desktop */
.related-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
  min-height: 198px;
  contain: layout paint;
}
.related-grid::-webkit-scrollbar { display: none; }
.related-grid .movie-card {
  flex: 0 0 130px;
  scroll-snap-align: start;
}
@media (min-width: 480px) { .related-grid .movie-card { flex-basis: 145px; } }
@media (min-width: 900px) {
  .related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    grid-auto-rows: 0;
    overflow: hidden;
    gap: 10px;
    padding-bottom: 0;
    min-height: 490px;
  }
  .related-grid .movie-card {
    flex: unset;
    width: 100%;
  }
}

.seasons-strip-section {
  margin-bottom: 8px;
  min-height: 230px;
  contain: layout paint;
}
.series-strips-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.series-strips-grid > .mpage-section {
  min-width: 0;
}
.seasons-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.seasons-strip-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  padding-left: 2px;
  padding-right: 12px;
  scroll-snap-type: x proximity;
  scroll-padding-left: 2px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
  scrollbar-width: none;
  min-height: 190px;
}
.seasons-strip-track.is-dragging { cursor: grabbing; user-select: none; }
.seasons-strip-track::-webkit-scrollbar { display: none; }
.seasons-strip-track .movie-card {
  flex: 0 0 126px;
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.seasons-strip-track .movie-card:hover {
  transform: translateY(-3px) scale(1.02);
}
.seasons-strip-track .movie-card.is-season-strip .movie-card-overlay::before {
  height: 80%;
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,.92) 45%, rgba(0,0,0,.55) 72%, rgba(0,0,0,.1) 90%, transparent 100%);
}
.seasons-strip-track .movie-card.is-season-strip {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}
.seasons-strip-track .movie-card.is-season-strip .movie-card-inner {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.32);
}
.seasons-strip-track .movie-card.is-season-strip .movie-card-overlay {
  opacity: 1;
  justify-content: flex-end;
  padding: 10px 10px 12px;
  border-radius: 10px;
}
@media (min-width: 1024px) {
  .seasons-strip-track .movie-card.is-season-strip .movie-card-overlay {
    opacity: 1;
  }
  .seasons-strip-track .movie-card.is-season-strip .movie-card-overlay::before {
    height: 80%;
  }
  .seasons-strip-track .movie-card.is-season-strip:hover .movie-card-inner {
    box-shadow: 0 12px 32px rgba(0,0,0,.45);
  }
}
@media (min-width: 480px) {
  .seasons-strip-track .movie-card { flex-basis: 140px; }
}
@media (min-width: 900px) {
  .series-strips-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }
.series-strips-grid > .mpage-section {
  min-width: 0;
}
  .seasons-strip-track {
    flex-wrap: nowrap;
    min-height: 252px;
  }
  .seasons-strip-track .movie-card {
    flex-basis: 168px;
  }
  .seasons-strip-track .movie-card.is-season-strip .card-season-strip-number {
    font-size: 28px;
  }
  .seasons-strip-track .movie-card.is-season-strip .card-season-strip-label {
    font-size: 12px;
  }
}
.related-strip-inline {
  margin-bottom: 0;
}
@media (max-width: 899px) {
  .series-strips-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .movie-bottom-grid,
  .movie-bottom-grid.has-related-split {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .movie-bottom-grid.has-related-split > .mpage-section,
  .movie-bottom-grid > .mpage-section {
    width: 100%;
    min-width: 0;
  }
  .related-strip-inline {
    margin-bottom: 0;
  }
}

/* ── Settings comments list ─────────────────────────────────────────── */
.settings-comment-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0,192,48,.15);
  color: var(--green);
  border: 1px solid rgba(0,192,48,.3);
  border-radius: 20px;
  padding: 2px 9px;
}
.settings-comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-comment-item {
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 14px 46px 14px 16px;
}
.settings-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.settings-comment-movie {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.settings-comment-movie:hover { text-decoration: underline; }
.settings-comment-movie-total {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,.05);
  border-radius: 20px;
  padding: 1px 7px;
}
.settings-comment-date {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.settings-comment-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.settings-comment-stats span {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #a8a8a8;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 3px 8px;
}
.settings-comment-stats .settings-comment-featured {
  color: #06140b;
  background: linear-gradient(135deg, #7ddc75, #19c95a);
  border-color: rgba(125,220,117,.45);
}
.settings-comment-body {
  font-size: 13px;
  color: #ccc;
  line-height: 1.5;
  margin: 0;
}
.settings-comment-del {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color .18s, background .18s;
}
.settings-comment-del:hover { color: var(--red); background: rgba(229,9,20,.1); }

.drawer-user-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

/* ─── Notifications ─────────────────────────────────────────────────── */

.navbar-notifications {
  position: relative;
}

.navbar-notify-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.07);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .15s;
  flex-shrink: 0;
}

.navbar-notify-btn:hover,
.navbar-notify-btn.open {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.24);
  transform: translateY(-1px);
}

.navbar-notify-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  line-height: 1;
}

.navbar-notify-badge.is-hidden {
  display: none;
}

/* backdrop (mobile only) */
.notify-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.notify-backdrop.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* dropdown / sheet */
.navbar-notify-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(390px, calc(100vw - 24px));
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.09);
  background: #0f0f0f;
  box-shadow: 0 28px 72px rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.98);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 999;
  overflow: hidden;
}

.navbar-notify-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* drag handle shown only on mobile */
.notify-handle {
  display: none;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.2);
  margin: 0 auto 14px;
}

.notify-inner {
  padding: 14px 14px 8px;
}

.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.notify-head strong {
  font-size: 15px;
}

.notify-mark-read {
  border: 1px solid rgba(0,192,48,.26);
  background: rgba(0,192,48,.1);
  color: #7df59c;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing: .02em;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.notify-mark-read:hover {
  background: rgba(0,192,48,.16);
  border-color: rgba(0,192,48,.42);
  color: #caffd6;
  transform: translateY(-1px);
}
.notify-mark-read:active {
  transform: scale(.97);
}

.notify-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notify-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.055);
  transition: background .15s;
  cursor: pointer;
}
.notify-item:hover {
  background: rgba(255,255,255,.06);
}

.notify-item.is-unread {
  border-color: rgba(0,192,48,.22);
  background: rgba(0,192,48,.06);
}

.notify-poster {
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  flex-shrink: 0;
}

.notify-poster-empty {
  width: 48px;
  height: 68px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.notify-poster-icon {
  background: linear-gradient(145deg, rgba(0,192,48,.18), rgba(255,255,255,.05));
  border: 1px solid rgba(0,192,48,.28);
  color: #d7ffe0;
  font-size: 18px;
  letter-spacing: .02em;
}

.notify-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notify-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.notify-item-top strong {
  font-size: 13px;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notify-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.notify-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255,255,255,.09);
  color: #ddd;
  white-space: nowrap;
}

.notify-status-downloaded,
.notify-status-realdebrid_completed {
  background: rgba(0,192,48,.15);
  color: #5dfc89;
}

.notify-status-error,
.notify-status-virus,
.notify-status-dead,
.notify-status-magnet_error,
.notify-status-realdebrid_error {
  background: rgba(229,9,20,.15);
  color: #ff8a90;
}

.notify-body,
.notify-empty {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.notify-progress-wrap {
  position: relative;
  margin-top: 6px;
  height: 14px;
  background: rgba(255,255,255,.08);
  border-radius: 7px;
  overflow: hidden;
}
.notify-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--green, #00c030);
  border-radius: 7px;
  transition: width .4s ease;
  min-width: 4px;
}
.notify-progress-label {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  line-height: 14px;
  letter-spacing: .3px;
}

.notify-empty {
  padding: 20px 0;
  text-align: center;
}

.notify-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.notify-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: color .15s;
}
.notify-footer-link:hover { color: #fff; }

.notify-remove-btn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  transition: background .15s, color .15s, border-color .15s;
}

.notify-remove-btn:hover {
  color: #fff;
  background: rgba(229,9,20,.14);
  border-color: rgba(229,9,20,.25);
}

/* ── dlm-card: selection + choice panel ─────────────────────────────── */

/* dim not-selected cards when a sibling is selected */
.dlm-body.has-selection .dlm-group:not(.is-active) {
  display: none;
}

.dlm-cards.has-selection .dlm-card:not(.is-selected) {
  display: none;
}

.dlm-card.is-selected {
  border-color: rgba(0,192,48,.55);
  background: rgba(0,192,48,.07);
  transform: none !important;
  box-shadow: 0 0 0 1px rgba(0,192,48,.3), 0 6px 24px rgba(0,192,48,.16);
}

.dlm-card.is-direct .dlm-choice {
  display: none !important;
}
.dlm-card.is-direct .dlm-card-main {
  color: inherit;
  text-decoration: none;
}

/* choice panel */
.dlm-choice {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 0 12px 14px;
  animation: dlm-choice-in .22s ease;
}

.dlm-card.is-selected .dlm-choice {
  display: flex;
}

.dlm-episode-choice {
  gap: 12px;
}

.dlm-episode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dlm-option-card.is-expanded {
  grid-column: 1 / -1;
  border-color: rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), rgba(12,12,12,.38);
}

.dlm-option-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)),
    rgba(12,12,12,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

@media (min-width: 480px) {
  .dlm-option-card {
    padding: 13px;
  }
}

.dlm-option-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

/* hide buttons by default, reveal when expanded */
.dlm-option-card .dlm-choice-row   { display: none; }
.dlm-option-card.is-expanded .dlm-choice-row { display: flex; animation: dlm-choice-in .2s ease; }


.dlm-option-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: rgba(255,255,255,.3);
  display: inline-flex;
  align-items: center;
  transition: transform .22s cubic-bezier(.25,1,.3,1), color .15s ease;
}
.dlm-option-card.is-expanded .dlm-option-chevron {
  transform: rotate(180deg);
  color: var(--green);
}

.dlm-option-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dlm-option-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.dlm-option-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dlm-option-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: #f2f2f2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dlm-option-badge-quality {
  color: #d9ffe5;
  border-color: rgba(0,192,48,.28);
  background: rgba(0,192,48,.12);
}

.dlm-option-badge-size {
  color: #d9e7ff;
  border-color: rgba(96,165,250,.22);
  background: rgba(96,165,250,.1);
}

.dlm-option-badge-pack {
  color: #ffe4a3;
  border-color: rgba(255,184,0,.22);
  background: rgba(255,184,0,.1);
}

.dlm-option-pack-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,184,0,.18);
  background: rgba(255,184,0,.06);
}

.dlm-option-pack-note strong {
  font-size: 11px;
  font-weight: 800;
  color: #ffe4a3;
}

.dlm-option-pack-note span {
  font-size: 11px;
  line-height: 1.45;
  color: #d7d0bf;
}

.dlm-option-sub {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

@keyframes dlm-choice-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dlm-choice-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
}

/* choice options — vertical stack, horizontal row layout per button */
.dlm-choice-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dlm-choice-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  min-height: 58px;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, transform .15s ease, box-shadow .18s ease;
  user-select: none;
  -webkit-user-select: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.dlm-choice-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  transform: translateY(-1px);
}

.dlm-choice-btn:active { transform: scale(.98); }

.dlm-choice-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,.07);
  transition: background .18s ease, box-shadow .18s ease;
}

.dlm-choice-magnet .dlm-choice-icon {
  background: rgba(96,165,250,.14);
  color: #93c5fd;
}
.dlm-choice-magnet:hover {
  border-color: rgba(96,165,250,.3);
  background: rgba(96,165,250,.07);
  box-shadow: 0 4px 18px rgba(96,165,250,.1);
}
.dlm-choice-magnet:hover .dlm-choice-icon {
  background: rgba(96,165,250,.24);
  box-shadow: 0 0 14px rgba(96,165,250,.2);
}

/* Magnet — success / opened state */
.dlm-choice-magnet.is-copied {
  border-color: rgba(0,192,48,.45);
  background: rgba(0,192,48,.09);
  pointer-events: none;
  animation: dlm-magnet-success .52s cubic-bezier(.25,1,.3,1) forwards;
}
.dlm-choice-magnet.is-copied .dlm-choice-icon {
  background: rgba(0,192,48,.22);
  color: var(--green);
  box-shadow: 0 0 12px rgba(0,192,48,.22);
}
.dlm-choice-magnet.is-copied .dlm-choice-text small { color: var(--green); }
@keyframes dlm-magnet-success {
  0%   { box-shadow: 0 0 0 0 rgba(0,192,48,.52); }
  50%  { box-shadow: 0 0 0 10px rgba(0,192,48,.1); }
  100% { box-shadow: 0 0 0 0 rgba(0,192,48,0); }
}

.dlm-choice-rd .dlm-rd-icon {
  background: rgba(0,192,48,.14);
  color: var(--green);
}
.dlm-choice-rd:hover {
  border-color: rgba(0,192,48,.35);
  background: rgba(0,192,48,.07);
  box-shadow: 0 4px 18px rgba(0,192,48,.12);
}
.dlm-choice-rd:hover .dlm-rd-icon {
  background: rgba(0,192,48,.24);
  box-shadow: 0 0 14px rgba(0,192,48,.2);
}

.dlm-choice-go-dl {
  flex-direction: row;
  padding: 13px 14px;
  border-color: rgba(0,192,48,.3);
  background: rgba(0,192,48,.06);
}
.dlm-choice-go-dl:hover {
  border-color: rgba(0,192,48,.5);
  background: rgba(0,192,48,.11);
  box-shadow: 0 4px 18px rgba(0,192,48,.14);
}

.dlm-option-card .dlm-choice-go-dl {
  margin-top: 2px;
}
.dlm-choice-go-dl .dlm-choice-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,192,48,.14);
  color: var(--green);
}

.dlm-choice-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}
.dlm-choice-go-dl .dlm-choice-text { align-items: flex-start; }

.dlm-card-subtitles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 14px 14px;
}

@media (min-width: 480px) {
  .dlm-card-subtitles {
    padding: 0 16px 16px;
  }
}

.dlm-choice-subtitles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.dlm-subtitle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(251,191,36,.22);
  background: rgba(251,191,36,.06);
  color: #fef3c7;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .15s ease, box-shadow .18s ease;
}

.dlm-subtitle-btn:hover {
  background: rgba(251,191,36,.12);
  border-color: rgba(251,191,36,.36);
  box-shadow: 0 4px 16px rgba(251,191,36,.12);
  transform: translateY(-1px);
}

.dlm-subtitle-btn-index {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(251,191,36,.18);
  color: #fde68a;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.dlm-subtitle-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dlm-subtitle-btn-text strong {
  font-size: 12px;
  line-height: 1.3;
  color: #fff7db;
}

.dlm-subtitle-btn-text small {
  font-size: 10px;
  color: rgba(255,244,214,.72);
  line-height: 1.2;
}

.dlm-choice-text strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.dlm-choice-text small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}

/* ── Locked RD button ────────────────────────────────────────────────── */
.dlm-choice-rd--locked {
  opacity: .55;
  border-color: rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.03) !important;
  box-shadow: none !important;
  cursor: pointer;
}
.dlm-choice-rd--locked:hover {
  opacity: .75;
  border-color: rgba(255,255,255,.13) !important;
  background: rgba(255,255,255,.06) !important;
  transform: none !important;
}
.dlm-choice-rd--locked .dlm-rd-icon {
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.45) !important;
  box-shadow: none !important;
}
.dlm-rd-lock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  flex-shrink: 0;
}

/* ── RD Gate modal ───────────────────────────────────────────────────── */
.dlm-rd-gate {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  padding: 0 0 env(safe-area-inset-bottom, 0);
}
.dlm-rd-gate[hidden] { display: none; }
@media (min-width: 640px) { .dlm-rd-gate { align-items: center; } }
.dlm-rd-gate.open { opacity: 1; pointer-events: all; }

.dlm-rd-gate-box {
  width: 100%;
  max-width: 440px;
  background: #161616;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px 22px 0 0;
  padding: 32px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transform: translateY(32px);
  transition: transform .3s cubic-bezier(.25,1,.3,1);
  box-shadow: 0 -12px 60px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}
.dlm-rd-gate-box:focus-visible {
  outline: 2px solid rgba(0,192,48,.95);
  outline-offset: 3px;
}
@media (min-width: 640px) {
  .dlm-rd-gate-box {
    border-radius: 22px;
    transform: translateY(20px) scale(.96);
  }
}
.dlm-rd-gate.open .dlm-rd-gate-box { transform: none; }

.dlm-rd-gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(0,192,48,.13);
  border: 1px solid rgba(0,192,48,.25);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 0 24px rgba(0,192,48,.12);
}

.dlm-rd-gate-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.dlm-rd-gate-desc {
  font-size: 13px;
  color: #d7d7d7;
  line-height: 1.6;
  max-width: 320px;
}

.dlm-rd-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.dlm-rd-gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .15s ease, box-shadow .18s ease;
  border: 1px solid transparent;
}
.dlm-rd-gate-btn--primary {
  background: var(--green);
  color: #000;
  box-shadow: 0 4px 18px rgba(0,192,48,.35);
}
.dlm-rd-gate-btn--primary:hover {
  background: #00e840;
  box-shadow: 0 6px 24px rgba(0,192,48,.5);
  transform: translateY(-1px);
}
.dlm-rd-gate-btn--ghost {
  background: rgba(255,255,255,.05);
  color: #ececec;
  border-color: rgba(255,255,255,.14);
}
.dlm-rd-gate-btn--ghost:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}

/* RD button states */
.dlm-choice-rd {
  position: relative;
  overflow: hidden;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}

/* shimmer sweep on loading */
.dlm-choice-rd::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(0,192,48,.18) 50%, transparent 60%);
  background-size: 200% 100%;
  background-position: 200% 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.dlm-choice-rd.is-loading::after {
  opacity: 1;
  animation: dlm-rd-shimmer 1.1s linear infinite;
}
@keyframes dlm-rd-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dlm-choice-rd.is-loading {
  pointer-events: none;
  border-color: rgba(0,192,48,.35);
  background: rgba(0,192,48,.1);
  box-shadow: 0 0 18px rgba(0,192,48,.12);
}
.dlm-choice-rd.is-loading .dlm-rd-icon {
  animation: dlm-rd-pulse .9s ease-in-out infinite alternate;
}
@keyframes dlm-rd-pulse {
  from { box-shadow: 0 0 0 0 rgba(0,192,48,.5);  background: rgba(0,192,48,.2); }
  to   { box-shadow: 0 0 0 10px rgba(0,192,48,0); background: rgba(0,192,48,.36); }
}

/* spinner inside RD btn */
.dlm-rd-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(0,192,48,.22);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: dlm-spin .65s linear infinite;
  flex-shrink: 0;
}
.dlm-choice-rd.is-loading .dlm-rd-spinner { display: block; }

@keyframes dlm-spin { to { transform: rotate(360deg); } }

/* success state */
.dlm-choice-rd.is-done {
  border-color: rgba(0,192,48,.55);
  background: rgba(0,192,48,.13);
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(0,192,48,0);
  animation: dlm-rd-success-flash .55s cubic-bezier(.25,1,.3,1) forwards;
}
.dlm-choice-rd.is-done .dlm-rd-icon {
  background: rgba(0,192,48,.28);
  box-shadow: 0 0 14px rgba(0,192,48,.3);
}
@keyframes dlm-rd-success-flash {
  0%   { box-shadow: 0 0 0 0 rgba(0,192,48,.55); }
  50%  { box-shadow: 0 0 0 12px rgba(0,192,48,.14); }
  100% { box-shadow: 0 0 0 0 rgba(0,192,48,0); }
}

/* error state */
.dlm-choice-rd.is-error {
  border-color: rgba(229,9,20,.4);
  background: rgba(229,9,20,.08);
  animation: dlm-rd-error-shake .38s ease;
}
@keyframes dlm-rd-error-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-5px); }
  40%     { transform: translateX(5px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

/* cancel button */
.dlm-choice-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, background .15s;
  font-family: inherit;
  user-select: none;
  -webkit-user-select: none;
}

.dlm-choice-cancel:hover {
  color: #fff;
  background: rgba(255,255,255,.05);
}

.dlm-rd-note,
.dlm-status {
  margin-top: 16px;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.dlm-rd-note {
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.dlm-rd-note a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.dlm-status {
  display: none;
}

.dlm-status.is-info,
.dlm-status.is-success,
.dlm-status.is-error {
  display: block;
}

.dlm-status.is-info {
  color: #d7dde7;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.dlm-status.is-success {
  color: #d5ffe1;
  background: rgba(0,192,48,.1);
  border: 1px solid rgba(0,192,48,.2);
}

.dlm-status.is-error {
  color: #ffd7da;
  background: rgba(229,9,20,.12);
  border: 1px solid rgba(229,9,20,.22);
}

/* ─── Downloads page ─────────────────────────────────────────────────── */

.dl-page {
  padding: calc(var(--nav-h) + 72px) 0 60px;
  min-height: 100vh;
}

.dl-wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.dl-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.dl-header-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,192,48,.18), rgba(0,192,48,.06));
  border: 1px solid rgba(0,192,48,.22);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-title {
  margin: 0 0 4px;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.15;
}

.dl-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Stats */
.dl-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dl-stat {
  flex: 1 1 0;
  min-width: 90px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}

.dl-stat-success { border-color: rgba(0,192,48,.18); background: rgba(0,192,48,.05); }
.dl-stat-warn    { border-color: rgba(255,184,0,.18); background: rgba(255,184,0,.04); }

.dl-stat-num {
  display: block;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.dl-stat-success .dl-stat-num { color: var(--green); }
.dl-stat-warn .dl-stat-num    { color: #ffd060; }

.dl-stat-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

/* Empty state */
.dl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 52px 24px;
  border-radius: 24px;
  background: rgba(255,255,255,.025);
  border: 1px dashed rgba(255,255,255,.1);
  margin-bottom: 20px;
}

.dl-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.25);
  margin-bottom: 8px;
}

.dl-empty-title {
  font-size: 18px;
  font-weight: 700;
}

.dl-empty-body {
  color: var(--muted);
  font-size: 14px;
  max-width: 360px;
  line-height: 1.6;
}

/* Cards */
.dl-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* 2 per row on desktop */
@media (min-width: 700px) {
  .dl-list {
    grid-template-columns: 1fr 1fr;
  }
}

.dl-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
  transition: border-color .2s, background .2s;
  align-items: stretch;
}
.dl-card:hover {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}

.dl-card-poster-wrap {
  position: relative;
  width: 110px;
  overflow: hidden;
  flex-shrink: 0;
  align-self: stretch;
}

.dl-poster-audio {
  position: absolute;
  bottom: 8px;
  left: 6px;
  z-index: 2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* gradient fade right-edge: poster blends into card body */
.dl-card-poster-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 55%, rgba(18,18,18,.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.dl-card-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.dl-card-poster-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.18);
}

/* delete button (inline in actions) */
.dl-btn-delete {
  background: rgba(229,9,20,.12);
  border: 1px solid rgba(229,9,20,.25);
  color: rgba(229,9,20,.7);
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.dl-btn-delete:hover {
  background: rgba(229,9,20,.75);
  border-color: rgba(229,9,20,.5);
  color: #fff;
  opacity: 1;
}

/* badge lives inside body now */
.dl-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dl-card-titles {
  min-width: 0;
  flex: 1;
}

.dl-card-badge,
.dl-card-audio {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: rgba(255,255,255,.08);
  color: #ccc;
  border: 1px solid rgba(255,255,255,.1);
}

.dl-audio-dual      { background: rgba(0,192,48,.12);   color: #4ade80; border-color: rgba(0,192,48,.28); }
.dl-audio-nacional  { background: rgba(96,165,250,.12); color: #93c5fd; border-color: rgba(96,165,250,.28); }
.dl-audio-legendado { background: rgba(192,132,252,.12); color: #d8b4fe; border-color: rgba(192,132,252,.28); }
.dl-card-badge-downloaded       { color: #5dfc89; background: rgba(0,192,48,.12); border-color: rgba(0,192,48,.28); }
.dl-card-badge-downloading,
.dl-card-badge-queued,
.dl-card-badge-waiting_files_selection,
.dl-card-badge-magnet_conversion,
.dl-card-badge-compressing,
.dl-card-badge-uploading         { color: #ffd060; background: rgba(255,184,0,.1); border-color: rgba(255,184,0,.25); }
.dl-card-badge-error,
.dl-card-badge-virus,
.dl-card-badge-dead,
.dl-card-badge-magnet_error      { color: #ff8a90; background: rgba(229,9,20,.1); border-color: rgba(229,9,20,.25); }

.dl-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.dl-card-title {
  margin: 0;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-card-subtitle {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Progress */
.dl-progress {}

.dl-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-bottom: 6px;
}

.dl-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00c030, #5dfc89);
  transition: width .5s ease;
}

.dl-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}

.dl-progress-pct {
  font-weight: 700;
  color: var(--text);
}

/* File size */
.dl-filesize {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--green);
  font-weight: 600;
}

/* Error */
.dl-error-msg {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: #ffd2d7;
  background: rgba(229,9,20,.1);
  border: 1px solid rgba(229,9,20,.2);
  line-height: 1.5;
}

/* Actions */
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s, background .15s;
  flex-shrink: 0;
}
.dl-btn:hover { opacity: .88; transform: translateY(-1px); }
.dl-btn:active { transform: translateY(0); }

.dl-btn-primary {
  background: var(--green);
  color: #000;
}

.dl-btn-watch {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}

.dl-btn-watch:hover {
  background: rgba(255,255,255,.2);
}

.dl-btn-ghost {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}
.dl-btn-ghost:hover {
  background: rgba(255,255,255,.15);
}

/* ─── Responsive: downloads + notifications ──────────────────────────── */

/* Notification bottom-sheet on mobile */
@media (max-width: 720px) {
  .notify-backdrop {
    display: block;
  }

  .navbar-notify-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    transform: translateY(20px) scale(1);
    max-height: 78vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 14px;
    z-index: 999;
  }

  .navbar-notify-dropdown.open {
    transform: translateY(0) scale(1);
  }

  .notify-handle {
    display: block;
  }

  .notify-list {
    max-height: none;
  }

  /* Slightly larger touch targets for notification items on mobile */
  .notify-item {
    padding: 12px;
    gap: 12px;
  }

  .notify-remove-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

/* Downloads – mobile adjustments (mantém layout horizontal) */
@media (max-width: 560px) {
  .dl-page {
    padding-top: calc(var(--nav-h) + 48px);
  }

  .dl-header {
    gap: 12px;
    margin-bottom: 20px;
  }

  .dl-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .dl-header-icon svg {
    width: 22px;
    height: 22px;
  }

  .dl-title {
    font-size: 20px;
  }

  .dl-subtitle {
    font-size: 12.5px;
  }

  .dl-stats {
    gap: 8px;
    margin-bottom: 18px;
  }

  .dl-stat {
    padding: 12px 14px;
    min-width: 0;
    flex: 1 1 0;
  }

  .dl-stat-num {
    font-size: 24px;
  }

  /* Card mobile: poster proporcional + gradiente mais suave */
  .dl-card {
    grid-template-columns: 100px minmax(0, 1fr);
    border-radius: 16px;
    min-height: 140px;
  }

  .dl-card-poster-wrap {
    width: 100px;
  }

  /* gradiente um pouco mais pronunciado no mobile */
  .dl-card-poster-wrap::after {
    background: linear-gradient(to right, transparent 45%, rgba(18,18,18,.9) 100%);
  }

  .dl-card-body {
    padding: 12px 14px 14px;
    gap: 8px;
  }

  .dl-card-title {
    font-size: 14px;
  }

  .dl-card-subtitle {
    font-size: 11px;
  }

  .dl-card-badge {
    font-size: 8.5px;
    padding: 3px 7px;
  }

  /* Botões ícone: aumenta o touch target no mobile */
  .dl-btn {
    width: 44px;
    height: 44px;
  }

  .dl-watch-dialog {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
    margin: 6px auto;
    padding: 18px 14px 16px;
    border-radius: 22px;
  }

  .dl-watch-topbar {
    padding-right: 46px;
  }
}

.watch-page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 30px) 0 56px;
}

body.watch-modal-open {
  overflow: hidden;
}

.dl-watch-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.dl-watch-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
}

.dl-watch-dialog {
  position: relative;
  width: min(1320px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  padding: 26px;
  overflow: auto;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(0,192,48,.14), transparent 28%),
    linear-gradient(180deg, rgba(20,20,20,.98), rgba(8,8,8,.98));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.dl-watch-topbar {
  padding-right: 56px;
}

.dl-watch-title {
  margin-top: 0;
}

.dl-watch-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: rgba(255,255,255,.08);
  transition: background .15s, transform .15s;
}

.dl-watch-close:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

.dl-watch-shell {
  align-items: start;
}

.dl-watch-qualities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dl-watch-quality {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #d7dde7;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, color .15s;
}

.dl-watch-quality:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-1px);
}

.dl-watch-quality.is-active {
  background: rgba(0,192,48,.14);
  border-color: rgba(0,192,48,.25);
  color: #ddffe6;
}

.watch-wrap {
  width: min(1360px, calc(100% - 34px));
  margin: 0 auto;
}

.watch-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.watch-title {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 40px);
}

.watch-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.watch-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) 320px;
  gap: 18px;
}

.watch-player-card,
.watch-panel,
.watch-meta-card {
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}

.watch-player-card {
  overflow: hidden;
  min-height: 420px;
}

.watch-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.jw-watch-player {
  min-height: 420px;
}

.watch-player-card .plyr {
  --plyr-color-main: #00c030;
  --plyr-video-control-color: #ffffff;
  --plyr-video-controls-background: linear-gradient(180deg, rgba(5,5,5,0), rgba(5,5,5,.82));
  --plyr-video-control-background-hover: rgba(0,192,48,.18);
  --plyr-range-fill-background: #00c030;
  --plyr-menu-background: rgba(10,10,10,.96);
  --plyr-menu-color: #fff;
  --plyr-tooltip-background: rgba(8,8,8,.92);
  border-radius: 22px;
  overflow: hidden;
}

.watch-player-card .plyr__control--overlaid {
  background: rgba(0,192,48,.92);
  color: #021306;
}

.watch-player-card .plyr__menu__container .plyr__control[aria-checked="true"]::before {
  background: #00c030;
}

.watch-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.watch-meta-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
}

.watch-poster {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.watch-meta-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.watch-meta-copy strong {
  font-size: 15px;
}

.watch-meta-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.watch-panel {
  padding: 14px;
}

.watch-panel-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.watch-status-message {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #d7dde7;
}

.watch-status-message.is-success {
  color: #d7ffe4;
  background: rgba(0,192,48,.1);
  border-color: rgba(0,192,48,.18);
}

.watch-status-message.is-error {
  color: #ffd4d8;
  background: rgba(229,9,20,.12);
  border-color: rgba(229,9,20,.2);
}

.watch-audio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-audio-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.watch-audio-btn.is-active {
  border-color: rgba(0,192,48,.22);
  background: rgba(0,192,48,.12);
  color: var(--green);
}

.watch-tips {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .watch-shell {
    grid-template-columns: 1fr;
  }

  .watch-topbar {
    flex-direction: column;
  }
}
.legal-page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 34px) 0 56px;
}

.legal-wrap {
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
}

.legal-hero {
  margin-bottom: 24px;
}

.legal-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.legal-hero p {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.legal-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 12px;
}

.legal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: #fff;
  padding: 14px 16px;
  font-size: 14px;
  outline: none;
}

.legal-textarea:focus {
  border-color: rgba(0,192,48,.5);
  box-shadow: 0 0 0 3px rgba(0,192,48,.1);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-select {
  min-width: 160px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: #fff;
}

.admin-select-sm {
  min-width: 128px;
  height: 34px;
}

.type-badge-sm.pending {
  background: rgba(255,184,0,.13);
  color: #ffd060;
}

.type-badge-sm.reviewed {
  background: rgba(96,165,250,.13);
  color: #93c5fd;
}

.type-badge-sm.removed {
  background: rgba(0,192,48,.13);
  color: #8df2ac;
}

.type-badge-sm.rejected {
  background: rgba(229,9,20,.13);
  color: #ff9ba2;
}

@media (max-width: 860px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

.detail-shell,
.guide-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
  margin: calc(var(--nav-h) + 18px) auto 16px;
}

.page-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.page-breadcrumbs a:hover {
  color: var(--text);
}

.detail-breadcrumbs {
  margin-bottom: 0;
}

.mhero-breadcrumbs {
  width: 100%;
  margin: 0 0 6px;
  position: relative;
  z-index: 2;
}
.mhero-title-breadcrumbs {
  width: auto;
  margin: 2px 0 12px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  gap: 5px;
}
.mhero-title-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 3px 11px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  line-height: 1.4;
}
.mhero-title-breadcrumbs a:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.mhero-title-breadcrumbs span {
  font-size: 9px;
  opacity: .4;
}

@media (max-width: 639px) {
  .mhero-main {
    display: flex;
    flex-direction: column;
  }
  .mhero-title-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .mhero-heading-stack {
    align-items: center;
  }
  .mhero-title {
    text-align: center;
  }
  .mhero-title-breadcrumbs {
    width: 100%;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
  }
  .mhero-like-cluster {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 10px;
  }
}
@media (min-width: 640px) {
  .mhero-breadcrumbs {
    flex-basis: 100%;
    margin-bottom: 10px;
  }
  .mhero-title-breadcrumbs {
    flex-basis: auto;
    margin-top: 6px;
    margin-bottom: 14px;
  }
}

.guide-page {
  width: min(980px, 100%);
  margin: 0 auto 48px;
}

.guide-hero {
  padding: 28px 28px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(0,192,48,.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}

.guide-kicker {
  margin: 0 0 10px;
  color: #7ee787;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}

.guide-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.06;
}

.guide-intro {
  margin: 16px 0 0;
  max-width: 760px;
  color: rgba(255,255,255,.8);
  font-size: 17px;
  line-height: 1.7;
}

.guide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.guide-btn:hover {
  transform: translateY(-1px);
}

.guide-btn-primary {
  background: var(--green);
  color: #08180d;
}

.guide-btn-secondary {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: var(--text);
}

.guide-content {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.guide-section {
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.guide-section h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
}

.guide-section h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.guide-section p {
  margin: 0;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
}

.guide-section p + p {
  margin-top: 12px;
}

.guide-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.82);
  line-height: 1.8;
}

.guide-faq-list {
  display: grid;
  gap: 14px;
}

.guide-faq-item {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}

@media (max-width: 720px) {
  .detail-shell,
  .guide-shell {
    width: min(100% - 20px, 100%);
  }

  .page-breadcrumbs {
    font-size: 13px;
    gap: 6px;
    margin: calc(var(--nav-h) + 14px) auto 14px;
  }
  .mhero-title-breadcrumbs {
    font-size: 12px;
    gap: 5px;
    margin: 9px 0 0;
  }

  .guide-hero,
  .guide-section {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .guide-intro {
    font-size: 15px;
  }
}


/* ── Trailer modal (public) ── */
/* Trailer modal */
.trailer-overlay {
  position: fixed;
  inset: 0;
  z-index: 981;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}
.trailer-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.trailer-modal {
  width: min(92vw, 980px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  background: #0d0d0d;
  box-shadow: 0 30px 100px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06);
  transform: scale(.94) translateY(12px);
  transition: transform .3s cubic-bezier(.25,1,.3,1);
}
.trailer-overlay.open .trailer-modal { transform: none; }
.trailer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.trailer-header-info { flex: 1; min-width: 0; }
.trailer-eyebrow {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 2px;
}
.trailer-title {
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trailer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.trailer-close:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.16); }
.trailer-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.trailer-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
