/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07090f;
  --bg2: #0c101a;
  --bg3: #151b2a;
  --card: #121826;
  --card-hover: #1a2233;
  --border: rgba(148, 163, 184, 0.12);
  --border2: rgba(148, 163, 184, 0.22);
  --text: #f4f7ff;
  --text2: #9aabc8;
  --text3: #64748b;
  --accent: #1f9cff;
  --accent2: #5b8cff;
  --accent-glow: rgba(31, 156, 255, 0.38);
  --green: #22c55e;
  --red: #ef4444;
  --gold: #f5b942;
  --nav-h: 68px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 36px rgba(0,0,0,0.45);
  --shadow-lg: 0 18px 56px rgba(0,0,0,0.55);
  --surface: #121826;
  --hero-shadow: #07090f;
  --transition: 0.22s ease;
  --nav-glass: rgba(7, 9, 15, 0.72);
  --accent-soft: rgba(31, 156, 255, 0.14);
}

html[data-theme="light"] {
  --bg: #f6f8fc;
  --bg2: #ffffff;
  --bg3: #e9eef7;
  --card: #ffffff;
  --card-hover: #f0f4fb;
  --border: rgba(15,23,42,0.08);
  --border2: rgba(15,23,42,0.14);
  --text: #111827;
  --text2: #526173;
  --text3: #7b8798;
  --accent: #2563eb;
  --accent2: #7c3aed;
  --accent-glow: rgba(37,99,235,0.22);
  --shadow: 0 4px 24px rgba(15,23,42,0.12);
  --shadow-lg: 0 8px 48px rgba(15,23,42,0.18);
  --surface: #ffffff;
  --hero-shadow: rgba(246, 248, 252, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(31, 156, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(91, 140, 255, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
input { font-family: inherit; }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

html.admin-route,
body.admin-route {
  overflow: hidden !important;
  height: 100%;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html.admin-route::-webkit-scrollbar,
body.admin-route::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.admin-page,
.admin-page * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.admin-page *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-glass);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(7, 9, 15, 0.92);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
html[data-theme="light"] .navbar {
  background: rgba(246,248,252,0.82);
}
html[data-theme="light"] .navbar.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 2px 20px rgba(15,23,42,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 20px var(--accent-glow);
}
.logo-text {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
html[data-theme="light"] .logo-text {
  background: linear-gradient(90deg, #111827, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-menu-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text2);
}
.nav-menu-toggle:hover,
.nav-menu-toggle:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}
body.nav-mobile-open {
  overflow: hidden;
}
.nav-mobile-drawer[hidden] {
  display: none !important;
}
.nav-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1300;
}
.nav-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(6px);
}
.nav-mobile-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(300px, 86vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-right: 1px solid var(--border2);
  box-shadow: var(--shadow-lg);
  animation: navMobileSlideIn 0.22s ease both;
}
@keyframes navMobileSlideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.nav-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  overflow-y: auto;
}
.nav-mobile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}
.nav-mobile-search {
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.nav-mobile-link.active {
  color: var(--accent);
}
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}
.nav-link.active { color: var(--accent); }
.nav-link.nav-gate-locked,
.nav-logo.nav-gate-locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}
body.profile-gate-active .nav-link.nav-gate-locked:hover,
body.profile-gate-active .nav-logo.nav-gate-locked:hover {
  color: var(--text2);
  background: transparent;
}
.nav-link-new {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-new-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  background: #ef4444;
  padding: 3px 6px;
  border-radius: 4px;
  animation: nav-new-blink 1.1s ease-in-out infinite;
}
@keyframes nav-new-blink {
  0%, 100% {
    opacity: 1;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.85);
  }
  50% {
    opacity: 0.4;
    background: #dc2626;
    box-shadow: none;
  }
}
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
  background: rgba(15,23,42,0.07);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  min-width: 0;
  flex-shrink: 1;
}
.nav-search-toggle,
#search-toggle {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.btn-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: all var(--transition);
}
.btn-icon:hover { background: rgba(255,255,255,0.08); color: var(--text); }
html[data-theme="light"] .btn-icon:hover { background: rgba(15,23,42,0.06); }
.theme-toggle {
  position: relative;
  overflow: hidden;
}
.theme-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  transition: transform var(--transition), opacity var(--transition);
}
.theme-sun { opacity: 0; transform: translateY(12px); }
.theme-moon { opacity: 1; transform: translateY(0); }
html[data-theme="light"] .theme-sun { opacity: 1; transform: translateY(0); }
html[data-theme="light"] .theme-moon { opacity: 0; transform: translateY(-12px); }

.pro-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text2);
  line-height: 1.15;
  cursor: default;
  user-select: none;
}
.pro-badge .sub-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
.pro-badge .sub-chip-hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #fda4af;
  opacity: 0.95;
}
.pro-badge .sub-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}
.pro-badge .sub-chip-dot.is-on {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.55);
}
.pro-badge.is-active {
  background: linear-gradient(160deg, rgba(6, 78, 59, 0.55), rgba(15, 23, 42, 0.9));
  border-color: rgba(52, 211, 153, 0.42);
  color: #86efac;
}
.pro-badge.is-locked,
.pro-badge.is-subscribe-cta {
  background: linear-gradient(160deg, rgba(127, 29, 29, 0.42), rgba(15, 23, 42, 0.92));
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.pro-badge.is-subscribe-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(252, 165, 165, 0.7);
  box-shadow: 0 10px 24px rgba(127, 29, 29, 0.35);
}
.pro-badge.is-admin {
  background: rgba(49, 46, 129, 0.35);
  border-color: rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
}
.pro-badge.is-guest {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}
.pro-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.85); }
}

/* ── Search Bar ──────────────────────────────────────────────────────────── */
.search-bar {
  display: none;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  background: rgba(8,9,15,0.97);
}
.search-bar.open { display: block; }
.search-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 10px 16px;
}
.search-inner svg { color: var(--text3); flex-shrink: 0; }
.search-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--text3);
}
.search-submit-btn:hover svg { color: var(--accent); }
#search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
}
#search-input::placeholder { color: var(--text3); }

/* ── Page Layout ─────────────────────────────────────────────────────────── */
#app {
  flex: 1;
  min-height: calc(100vh - var(--nav-h));
  padding-top: var(--nav-h);
  background: var(--bg);
}

/* ── Loaders ─────────────────────────────────────────────────────────────── */
.page-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h));
}
.loader-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--bg3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--card-hover) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Hero / Banner ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  margin-bottom: 8px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5,6,10,0.97) 0%,
    rgba(5,6,10,0.72) 45%,
    rgba(5,6,10,0.25) 100%
  ),
  linear-gradient(
    to top,
    var(--hero-shadow) 0%,
    rgba(5,6,10,0.94) 12%,
    rgba(5,6,10,0.58) 28%,
    transparent 62%
  );
}
html[data-theme="light"] .hero-gradient {
  background: linear-gradient(
    to right,
    rgba(246,248,252,0.98) 0%,
    rgba(246,248,252,0.82) 45%,
    rgba(246,248,252,0.35) 100%
  ),
  linear-gradient(
    to top,
    var(--hero-shadow) 0%,
    rgba(246,248,252,0.95) 14%,
    rgba(246,248,252,0.6) 30%,
    transparent 62%
  );
}
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin-bottom: 0;
}
.hero-home {
  position: relative;
  height: 580px;
  overflow: hidden;
  margin-bottom: 8px;
}
.hero-home .hero-carousel {
  height: 100%;
  min-height: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-slide.active .hero-bg.loaded {
  transform: scale(1);
}
.hero-slide .hero-bg-img {
  transform: scale(1.06);
}
.hero-slide.active .hero-bg-img.loaded {
  transform: scale(1);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
}
.hero-topbar {
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-theme-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: rgba(8,9,15,0.55);
  color: var(--text);
  backdrop-filter: blur(12px);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: all var(--transition);
}
html[data-theme="light"] .hero-theme-btn {
  background: rgba(255,255,255,0.82);
  color: #0f172a;
}
.hero-theme-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.hero-theme-btn {
  position: relative;
  overflow: hidden;
}
.hero-theme-btn .theme-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: rgba(8,9,15,0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
html[data-theme="light"] .hero-nav-btn {
  background: rgba(255,255,255,0.85);
  color: #0f172a;
}
.hero-nav-btn.prev { left: 20px; }
.hero-nav-btn.next { right: 20px; }
.hero-dots {
  position: absolute;
  left: 60px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all var(--transition);
}
html[data-theme="light"] .hero-dot {
  background: rgba(15,23,42,0.25);
}
.hero-dot.active {
  width: 28px;
  background: var(--accent);
}
.hero-content {
  position: absolute;
  bottom: 72px;
  left: 60px;
  max-width: 560px;
  z-index: 3;
  animation: fadeUp 0.6s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.hero-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 24px;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(61,142,248,0.4);
}
.btn-primary:hover {
  background: #5aa0ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 30px rgba(61,142,248,0.5);
}
.btn-glass {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}
html[data-theme="light"] .btn-glass {
  background: rgba(15,23,42,0.08);
  border-color: rgba(15,23,42,0.16);
  color: var(--text);
}
html[data-theme="light"] .hero .btn-glass,
html[data-theme="light"] .detail-hero .btn-glass,
html[data-theme="light"] .player-overlay .btn-glass {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: rgba(61,142,248,0.1);
}

/* ── Content Sections ────────────────────────────────────────────────────── */
.content-section {
  padding: 0 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 6%);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 0 16px var(--accent-glow);
}
.section-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.section-link:hover { opacity: 1; }

.scroll-sentinel {
  width: 100%;
  height: 1px;
  grid-column: 1 / -1;
}
.scroll-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 18px 12px 28px;
  font-size: 13px;
  color: var(--text2);
}
.scroll-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  vertical-align: -3px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Horizontal Scroll Row ───────────────────────────────────────────────── */
.movies-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--bg3) transparent;
}
.movies-row::-webkit-scrollbar { height: 4px; }
.movies-row::-webkit-scrollbar-thumb { background: var(--bg3); }

/* ── Movie Card ──────────────────────────────────────────────────────────── */
.movie-card {
  flex-shrink: 0;
  width: 180px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.25s ease;
  position: relative;
}
/* Hover play / scale on posters disabled — click opens title only */
.movie-card:hover { transform: none; z-index: auto; }

.movie-thumb {
  position: relative;
  width: 180px;
  height: 255px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.movie-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.movie-card:hover .movie-thumb img { transform: none; }

.movie-overlay {
  display: none;
}

.play-btn {
  display: none;
}
.play-btn:hover { transform: none; }

.badge-free,
.badge-pro {
  display: none !important;
}
/* VJ name tag — match home screenshot: black box, soft light-blue text */
.badge-vj {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  max-width: calc(100% - 14px);
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  background: rgba(0, 0, 0, 0.88);
  color: #c5d8f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}
.badge-series {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(8, 9, 15, 0.82);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-info {
  padding: 10px 2px 0;
  text-align: center;
}
.movie-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  margin-bottom: 4px;
  text-align: center;
}
.movie-vj {
  font-size: 12px;
  color: var(--text2);
  font-weight: 600;
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flat-catalog-grid .movie-vj,
.movies-grid .movie-vj {
  color: #93c5fd;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Netflix-style Continue Watching landscape player cards */
.cw-row {
  gap: 14px !important;
  align-items: stretch;
}
.cw-card {
  flex: 0 0 auto;
  width: 280px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}
.cw-card:hover { transform: none; z-index: auto; }
.cw-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0c12;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.cw-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
}
.cw-still--empty {
  background: linear-gradient(135deg, #1a2235, #0d1220);
  opacity: 0.4;
}
.cw-player-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 45%),
    radial-gradient(circle at center, transparent 35%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.cw-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.cw-card:hover .cw-play-btn {
  background: rgba(0,0,0,0.45);
  color: #fff;
  transform: translate(-50%, -50%);
}
.cw-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255,255,255,0.25);
}
.cw-progress-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.cw-meta {
  padding: 10px 2px 0;
}
.cw-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text3);
  font-weight: 600;
}
.cw-resume { color: var(--accent); }
.home-rail--continue .home-rail-track {
  padding-bottom: 10px;
}
.movies-grid--continue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.movies-grid--continue .cw-card {
  width: 100%;
}
@media (max-width: 640px) {
  .cw-card { width: 240px; }
  .cw-play-btn { width: 44px; height: 44px; font-size: 16px; }
}
.movie-episode {
  margin-top: 4px;
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}
.movie-card.current-episode .movie-thumb {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.movie-card.current-episode .movie-title::after {
  content: "Current";
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(229, 9, 20, 0.16);
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.movie-ldur {
  font-size: 11px;
  color: var(--accent);
  margin-top: 3px;
}

/* ── Grid Layout (Browse / Movies / Series / New / Categories) ───────────── */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.movies-grid .movie-card { width: 100%; }
.movies-grid .movie-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
}
.movies-grid .badge-vj {
  font-size: 12px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.88);
  color: #c5d8f5;
}
@media (max-width: 1100px) {
  .movies-grid:not(.movies-grid--continue) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .movies-grid:not(.movies-grid--continue) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 420px) {
  .movies-grid:not(.movies-grid--continue) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Genre Cards ─────────────────────────────────────────────────────────── */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.genre-card {
  padding: 20px 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  font-weight: 600;
  font-size: 14px;
}
.genre-card:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(61,142,248,0.15);
}
.genre-emoji { font-size: 28px; margin-bottom: 8px; }

/* ── VJ Cards ────────────────────────────────────────────────────────────── */
.vj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}
.vj-card {
  text-align: center;
  cursor: pointer;
  padding: 16px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  transition: all var(--transition);
}
.vj-card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(61,142,248,0.2);
}
.vj-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 2px solid var(--border2);
  background: var(--bg3);
}
.vj-name { font-size: 13px; font-weight: 600; }

/* ── Detail / Watch Page ─────────────────────────────────────────────────── */
.detail-hero {
  position: relative;
  height: 450px;
  overflow: hidden;
}
.nf-detail-hero {
  height: min(78vh, 640px);
  min-height: 420px;
}
.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.55);
  transform: scale(1.04);
}
.nf-detail-hero .detail-hero-bg {
  filter: none;
}
.detail-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(8,9,15,0.5) 50%, transparent 100%);
}
.nf-detail-gradient {
  background:
    linear-gradient(90deg, rgba(5,6,10,0.96) 0%, rgba(5,6,10,0.72) 42%, rgba(5,6,10,0.2) 72%, transparent 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5,6,10,0.55) 28%, transparent 55%);
}
.detail-hero-content {
  position: absolute;
  bottom: 40px;
  left: 60px;
  right: 60px;
  display: flex;
  gap: 32px;
  align-items: flex-end;
}
.nf-detail-content {
  bottom: 48px;
  left: 48px;
  right: 48px;
  max-width: 720px;
  align-items: flex-end;
}
.detail-poster {
  width: 180px;
  height: 255px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.1);
}
.detail-info { flex: 1; }
.nf-detail-info { max-width: 640px; }
.nf-detail-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.detail-title {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.nf-detail-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 14px;
  text-shadow: 0 8px 40px rgba(0,0,0,0.55);
}
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.nf-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.nf-meta-pill {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
}
.nf-meta-pill--accent { color: #fff; }
.nf-meta-match {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border2);
  color: var(--text2);
}
.tag.accent { border-color: var(--accent); color: var(--accent); }
.detail-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 20px;
  max-width: 600px;
}
.nf-detail-desc {
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 22px;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nf-actions {
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.nf-actions-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.btn-nf-play {
  background: #fff !important;
  color: #111 !important;
  border: none !important;
  font-weight: 800 !important;
  padding: 12px 28px !important;
  border-radius: 6px !important;
  min-width: 120px;
  justify-content: center;
}
.btn-nf-play:hover:not(:disabled) {
  background: rgba(255,255,255,0.85) !important;
}
.btn-nf-play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-nf-secondary {
  background: rgba(109,109,110,0.7) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 12px 22px !important;
  border-radius: 6px !important;
}
.btn-nf-secondary:hover {
  background: rgba(109,109,110,0.9) !important;
}
.btn-nf-circle {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 2px solid rgba(255,255,255,0.55) !important;
  background: rgba(20,20,20,0.45) !important;
  color: #fff !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.btn-nf-circle:hover {
  border-color: #fff !important;
  background: rgba(42,42,42,0.7) !important;
}
.btn-nf-ghost {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  color: rgba(255,255,255,0.88) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
}
.btn-nf-ghost:hover:not(:disabled) {
  border-color: rgba(255,255,255,0.7) !important;
  color: #fff !important;
}
.nf-access {
  margin-top: 10px;
  max-width: 520px;
}

.detail-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 40px 48px;
}
.nf-detail-body {
  padding-top: 8px;
}
.nf-more-like {
  margin-top: 12px;
  padding-left: 0;
  padding-right: 0;
}
.episodes-section {
  margin-bottom: 40px;
}
.nf-episodes-section .section-title::before {
  display: none;
}
.episodes-section-header {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.episodes-section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.episodes-section-heading .section-title {
  margin-bottom: 0;
}
.season-block {
  margin-bottom: 22px;
}
.season-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}
.season-title span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text3);
  font-size: 11px;
}
.episode-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.episode-range-tab {
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.episode-range-tab:hover {
  color: var(--text);
  border-color: var(--accent);
}
.episode-range-tab.active {
  background: var(--bg3);
  color: #fff;
  border-color: var(--border2);
}
.episode-range-panels {
  display: block;
}
.episode-range-panel:not(.active) {
  display: none;
}
.nf-episode-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nf-episode-row {
  display: grid;
  grid-template-columns: 48px 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
.nf-episode-row:hover,
.nf-episode-row.is-current {
  background: rgba(255,255,255,0.04);
}
.nf-ep-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--text3);
  text-align: center;
}
.nf-ep-thumb {
  position: relative;
  width: 160px;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg3);
  flex-shrink: 0;
}
.nf-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nf-ep-thumb.no-img {
  background: linear-gradient(135deg, #1a2235, #0d1220);
}
.nf-ep-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.15s ease;
  font-size: 22px;
  color: #fff;
}
.nf-episode-row:hover .nf-ep-play { opacity: 1; }
.nf-ep-body { min-width: 0; }
.nf-ep-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.nf-ep-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.nf-ep-dur,
.nf-ep-label {
  font-size: 13px;
  color: var(--text3);
  white-space: nowrap;
}
.nf-ep-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nf-episode-row--skeleton {
  pointer-events: none;
  opacity: 0.55;
}
.episodes-row-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.episode-row-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.episode-row-label {
  color: var(--text2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 4px;
}
.episodes-row {
  padding: 4px 4px 18px;
}
.episodes-grid-row {
  display: grid;
  grid-template-columns: repeat(7, 180px);
  gap: 14px;
  width: 100%;
  padding-bottom: 12px;
}
.episodes-grid-row-loading {
  opacity: 0.55;
}
@media (max-width: 1320px) {
  .episodes-grid-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--bg3) transparent;
  }
  .episodes-grid-row .movie-card {
    width: 180px;
    flex: 0 0 180px;
    scroll-snap-align: start;
  }
}
.episodes-grid-row .movie-card {
  width: 180px;
}
.episodes-grid-row .movie-thumb {
  width: 180px;
  height: 255px;
}
.episodes-grid-row .movie-thumb img {
  width: 180px;
  height: 255px;
  object-fit: cover;
}
.episodes-section .movie-card:not(.episode-placeholder-card) .movie-overlay,
.episodes-section .movie-card:not(.episode-placeholder-card) .play-btn {
  display: none;
}
.episode-placeholder-card {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
.episode-placeholder-card:hover {
  transform: none;
}
.episode-placeholder-card .movie-thumb img {
  filter: grayscale(0.35);
}
.episode-placeholder-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,0.07) 50%, transparent 72%);
  animation: episode-shimmer 1.6s ease-in-out infinite;
}
@keyframes episode-shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.episode-placeholder-status {
  font-size: 11px;
  color: var(--text3);
}
.episode-count {
  color: var(--text3);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .nf-episode-row {
    grid-template-columns: 28px 112px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 4px;
  }
  .nf-ep-thumb {
    width: 112px;
    height: 64px;
  }
  .nf-ep-num { font-size: 16px; }
  .nf-ep-title { font-size: 14px; }
}

/* ── Progress bar on card ────────────────────────────────────────────────── */
.watch-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 0 0 var(--radius) var(--radius);
}
.watch-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  min-width: 4px;
}

/* ── Load More ───────────────────────────────────────────────────────────── */
.load-more-btn {
  display: block;
  margin: 32px auto 0;
  padding: 12px 32px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.load-more-btn:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  color: var(--accent);
}
.load-more-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Plans Page (professional) ───────────────────────────────────────────── */
.plans-page-pro {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 22px 72px;
}
.plans-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}
.plans-hero-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b9fff;
  margin-bottom: 10px;
}
.plans-hero h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.plans-hero p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.65;
}
.plans-grid-pro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.plan-card-pro {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.035), transparent 42%),
    var(--card);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  padding: 26px 22px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.plan-card-pro:hover {
  border-color: rgba(91, 159, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}
.plan-card-pro.is-popular {
  border-color: rgba(91, 159, 255, 0.55);
  background:
    linear-gradient(165deg, rgba(61, 142, 248, 0.16), transparent 48%),
    var(--card);
  box-shadow: 0 0 0 1px rgba(61, 142, 248, 0.12), 0 20px 44px rgba(0, 0, 0, 0.3);
}
.plan-card-pro.is-current {
  border-color: rgba(34, 197, 94, 0.45);
}
.plan-card-pro.is-free {
  opacity: 0.92;
}
.plan-pro-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3d8ef8, #6366f1);
  color: #fff;
}
.plan-pro-badge.current {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}
.plan-pro-head h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.plan-pro-price {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.plan-pro-cycle {
  font-size: 13px;
  color: var(--text3);
  margin-top: 6px;
  margin-bottom: 14px;
}
.plan-pro-limits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.plan-limit-pill {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text2);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border2);
}
.plan-limit-pill strong {
  color: var(--text);
  font-weight: 800;
}
.plan-limit-pill em {
  font-style: normal;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
html[data-theme="light"] .plan-limit-pill {
  background: rgba(15, 23, 42, 0.04);
}
.plan-pro-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
  align-content: start;
}
.plan-card-pro.is-free .plan-pro-features {
  flex: 0 0 auto;
  gap: 8px;
  margin-bottom: 12px;
}
.plan-card-pro.is-free .plan-pro-features li {
  font-size: 13px;
  line-height: 1.4;
}
.plan-pro-features li {
  font-size: 14px;
  color: var(--text2);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}
.plan-pro-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 800;
}
.plan-pro-features strong { color: var(--text); }
.plan-pro-cta {
  width: 100%;
  justify-content: center;
  min-height: 44px;
  font-weight: 800;
}
.plan-checkout {
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.45);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-checkout.is-static {
  background: transparent;
  border: 0;
  padding: 0;
}
.plan-checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan-checkout-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.plan-checkout-secure {
  font-size: 11px;
  font-weight: 700;
  color: #86efac;
}
.plan-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(61, 142, 248, 0.35);
  background: linear-gradient(135deg, rgba(61, 142, 248, 0.16), rgba(15, 23, 42, 0.55));
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.plan-pay-method:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}
.plan-pay-method:disabled,
.plan-pay-method.is-offline {
  opacity: 0.72;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.5);
}
.plan-pay-method.is-loading {
  opacity: 0.8;
  pointer-events: none;
}
.plan-pay-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #93c5fd;
}
.plan-pay-method-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.plan-pay-method-copy strong {
  font-size: 13px;
  font-weight: 800;
}
.plan-pay-method-copy small {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.35;
}
.plan-checkout-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.plan-checkout-divider::before,
.plan-checkout-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(148, 163, 184, 0.22);
}
.plan-checkout-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text3);
}
.plan-pro-pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.plan-coupon-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text2);
  font-weight: 700;
}
.plan-coupon-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.plan-pay-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-pay-actions .btn {
  width: 100%;
  justify-content: center;
}
.plan-coupon-field input,
.plan-coupon-input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.55);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plan-coupon-field input:focus,
.plan-coupon-input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.plan-coupon-apply {
  flex-shrink: 0;
  white-space: nowrap;
}
.plan-coupon-msg {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}
.plan-coupon-msg.is-ok { color: #34d399; }
.plan-coupon-msg.is-error { color: #f87171; }
.plan-price-was {
  margin-left: 8px;
  font-size: 0.55em;
  color: var(--text3);
  text-decoration: line-through;
  font-weight: 600;
  vertical-align: middle;
}
.plan-pay-hint {
  margin: 0;
  font-size: 12px;
  color: var(--danger, #f87171);
}
.plan-pro-cta.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.plans-subscribe-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.55));
}
.plans-subscribe-banner strong {
  display: block;
  color: #dbeafe;
  font-size: 14px;
}
.plans-subscribe-banner p {
  margin: 4px 0 0;
  color: #bfdbfe;
  font-size: 13px;
  line-height: 1.45;
  max-width: 52rem;
}
.plans-subscribe-banner em {
  font-style: normal;
  font-weight: 800;
  color: #fff;
}
.plans-banner-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.plans-banner-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(147, 197, 253, 0.28);
}
.plans-subscribe-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.plans-support-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.plans-support-row span {
  font-size: 13px;
  color: var(--text2);
}
html[data-theme="light"] .plan-checkout {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.28);
}
html[data-theme="light"] .plan-coupon-input {
  background: #fff;
}
html[data-theme="light"] .plan-pay-method {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.9), #fff);
}
html[data-theme="light"] .plans-subscribe-banner {
  background: linear-gradient(120deg, rgba(219, 234, 254, 0.95), rgba(248, 250, 252, 0.95));
  border-color: rgba(59, 130, 246, 0.25);
}
html[data-theme="light"] .plans-subscribe-banner strong { color: #1e3a8a; }
html[data-theme="light"] .plans-subscribe-banner p { color: #1e40af; }
html[data-theme="light"] .plans-subscribe-banner em { color: #0f172a; }
html[data-theme="light"] .plans-banner-pill {
  background: #fff;
  color: #1d4ed8;
}
.plans-footnote {
  margin-top: 36px;
  text-align: center;
  color: var(--text2);
  font-size: 14px;
}
.plans-footnote p { margin-top: 12px; }
.plans-footnote a { color: var(--accent); font-weight: 600; }

/* Fresh subscription page */
.subscription-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 18px 96px;
  display: grid;
  gap: 18px;
}
.sub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}
.sub-hero-copy {
  padding: 26px 24px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 12% 10%, rgba(61,142,248,0.22), transparent 42%),
    linear-gradient(160deg, rgba(15,23,42,0.9), rgba(2,6,23,0.75));
}
.sub-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 10px;
}
.sub-hero-copy h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  line-height: 1.1;
}
.sub-hero-copy p {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 36rem;
}
.sub-status-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sub-status-card.is-active {
  border-color: rgba(52, 211, 153, 0.35);
  background: linear-gradient(160deg, rgba(6,78,59,0.35), rgba(15,23,42,0.85));
}
.sub-status-card.is-locked {
  border-color: rgba(248, 113, 113, 0.3);
  background: linear-gradient(160deg, rgba(127,29,29,0.28), rgba(15,23,42,0.85));
}
.sub-status-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sub-status-top strong {
  font-size: 22px;
  font-weight: 900;
}
.sub-status-pill {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.sub-status-card.is-active .sub-status-pill {
  color: #86efac;
  background: rgba(34,197,94,0.16);
}
.sub-status-card.is-locked .sub-status-pill {
  color: #fecaca;
  background: rgba(239,68,68,0.16);
}
.sub-status-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sub-status-dates div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(2,6,23,0.35);
}
.sub-status-dates span {
  display: block;
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 4px;
}
.sub-status-dates strong {
  font-size: 13px;
}
.sub-countdown { margin: 0; }
.sub-admin-note {
  margin: 0;
  font-size: 13px;
  color: var(--text2);
}
.sub-panel {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
}
.sub-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 16px;
}
.sub-panel-head h2 {
  font-size: 18px;
  font-weight: 900;
}
.sub-panel-head span {
  font-size: 12px;
  color: var(--text3);
  font-weight: 700;
}
.sub-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.sub-plan-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.16);
  background: rgba(2,6,23,0.4);
  min-height: 100%;
}
.sub-plan-card.is-popular {
  border-color: rgba(96,165,250,0.45);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.12);
}
.sub-plan-card.is-daypass {
  border-color: rgba(251,191,36,0.4);
  background:
    linear-gradient(160deg, rgba(245,158,11,0.14), transparent 50%),
    rgba(2,6,23,0.45);
}
.sub-plan-card.is-current {
  border-color: rgba(52,211,153,0.4);
}
.sub-plan-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.sub-plan-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
  margin-bottom: 6px;
}
.sub-chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text2);
}
.sub-chip.day {
  color: #fde68a;
  background: rgba(245,158,11,0.18);
}
.sub-chip.popular {
  color: #bfdbfe;
  background: rgba(59,130,246,0.18);
}
.sub-chip.current {
  color: #86efac;
  background: rgba(34,197,94,0.18);
}
.sub-plan-card h3 {
  font-size: 17px;
  font-weight: 900;
  margin: 0;
}
.sub-plan-duration {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text3);
  font-weight: 700;
}
.sub-plan-price-wrap { text-align: right; }
.sub-plan-price {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
}
.sub-plan-cycle {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text3);
}
.sub-plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.sub-plan-features li {
  font-size: 12px;
  color: var(--text2);
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.12);
}
.sub-plan-checkout {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.sub-pay-btn {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(61,142,248,0.35);
  background: linear-gradient(135deg, rgba(61,142,248,0.18), rgba(15,23,42,0.55));
  color: var(--text);
  cursor: pointer;
}
.sub-pay-btn strong { display: block; font-size: 13px; }
.sub-pay-btn span { font-size: 11px; color: var(--text2); }
.sub-pay-btn:disabled,
.sub-pay-btn.is-offline {
  opacity: 0.72;
  cursor: not-allowed;
  border-color: rgba(148,163,184,0.28);
}
.sub-coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.sub-coupon-row .btn {
  min-height: 42px;
  padding: 0 14px;
}
.sub-plan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.2);
  color: var(--text2);
  font-size: 12px;
  font-weight: 800;
}
.sub-footnote {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text3);
  text-align: center;
}
@media (max-width: 860px) {
  .sub-hero { grid-template-columns: 1fr; }
}

.plans-page-compact { padding: 28px 18px 80px; }
.plans-hero-compact { margin: 0 auto 22px; max-width: 520px; }
.plans-hero-compact h1 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin-bottom: 6px;
}
.plans-hero-compact p {
  font-size: 14px;
  line-height: 1.5;
}
.plans-subscribe-banner-compact {
  margin-bottom: 18px;
  padding: 12px 14px;
}
.plans-subscribe-banner-compact p { margin-top: 2px; font-size: 12px; }
.plans-grid-compact {
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.plan-card-compact {
  padding: 18px 16px 14px;
  border-radius: 16px;
}
.plan-card-compact .plan-pro-head h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.plan-card-compact .plan-pro-price {
  font-size: 26px;
}
.plan-card-compact .plan-pro-cycle {
  margin-bottom: 10px;
  font-size: 12px;
}
.plan-pro-highlights {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.plan-pro-highlights li {
  font-size: 12px;
  color: var(--text2);
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148,163,184,0.14);
}
.plan-checkout-compact {
  gap: 8px;
  padding: 10px;
}
.plan-checkout-compact .plan-pay-method {
  padding: 10px 12px;
}
.plan-coupon-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.plan-coupon-inline .plan-pro-cta {
  width: auto;
  min-height: 42px;
  padding: 0 14px;
}
.plans-wa-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #ecfdf5;
  background: linear-gradient(135deg, #128c7e, #25d366);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plans-wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.42);
}
.plans-wa-float-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.16);
  flex-shrink: 0;
}
.plans-wa-float-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.plans-wa-float-copy strong {
  font-size: 13px;
  font-weight: 800;
}
.plans-wa-float-copy small {
  font-size: 11px;
  opacity: 0.92;
}
@media (max-width: 640px) {
  .plans-wa-float-copy small { display: none; }
  .plans-wa-float { right: 12px; bottom: 16px; padding: 11px 12px; }
}

.profile-insights-card { overflow: hidden; }
.profile-insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: center;
}
.profile-donut-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}
.profile-donut {
  position: relative;
  width: 150px;
  height: 150px;
}
.profile-donut-svg {
  width: 100%;
  height: 100%;
}
.profile-donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.profile-donut-center strong {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.profile-donut-center span {
  font-size: 11px;
  color: var(--text3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.profile-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.profile-donut-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text2);
}
.profile-donut-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.profile-donut-label { min-width: 0; }
.profile-insights-plan .profile-plan-name {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}
.profile-countdown-card {
  margin: 14px 0 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(6, 78, 59, 0.22);
}
.profile-countdown-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
  margin-bottom: 8px;
}
.profile-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.profile-countdown-grid div {
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.35);
}
.profile-countdown-grid strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #ecfdf5;
  font-variant-numeric: tabular-nums;
}
.profile-countdown-grid span {
  font-size: 10px;
  color: #a7f3d0;
  font-weight: 700;
  text-transform: uppercase;
}
.profile-countdown-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #a7f3d0;
}
.profile-countdown-empty,
.profile-countdown-expired {
  font-size: 13px;
  color: var(--text2);
}
.profile-countdown-expired {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.profile-countdown-expired strong { color: #fecaca; }
@media (max-width: 900px) {
  .profile-insights-grid { grid-template-columns: 1fr; }
  .profile-donut-wrap { grid-template-columns: 130px 1fr; }
}

.profile-upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* ── Browse Page (professional) ────────────────────────────────────────── */
.browse-page-pro {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 28px 64px;
}
.browse-hero-pro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}
.browse-hero-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.browse-hero-pro h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.15;
}
.browse-hero-pro p {
  color: var(--text2);
  font-size: 16px;
  line-height: 1.6;
}
.browse-section-pro {
  margin-bottom: 48px;
}
.browse-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.browse-section-head h2 {
  font-size: 20px;
  font-weight: 800;
}
.browse-section-head span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text3);
  letter-spacing: 0.06em;
}
.browse-genre-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.browse-genre-card {
  border: none;
  font: inherit;
  color: inherit;
  width: 100%;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.browse-genre-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.browse-vj-grid {
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 14px;
}
.browse-vj-card {
  border: none;
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 18px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.browse-vj-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(61, 142, 248, 0.18);
}
.vj-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.2), rgba(61, 142, 248, 0.22));
  border: 1px solid rgba(61, 142, 248, 0.35);
  color: var(--accent2);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.vj-play-icon svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}
.browse-vj-card:hover .vj-play-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  transform: scale(1.06);
}
.browse-vj-card .vj-name {
  font-size: 12px;
  line-height: 1.35;
  max-width: 100%;
  word-break: break-word;
}
.browse-skeleton {
  height: 108px;
  border-radius: var(--radius);
}
.browse-skeleton.vj {
  height: 118px;
}
.browse-error {
  text-align: center;
  padding: 24px;
  margin-top: 8px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
  color: var(--text2);
}
.browse-error p { margin-bottom: 14px; }

/* ── Search Results Page ─────────────────────────────────────────────────── */
/* ── Account / Profile / Admin ───────────────────────────────────────────── */
.account-page, .profile-page, .admin-page {
  padding: 32px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.account-page {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
}
.account-panel {
  width: min(100%, 460px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.account-title { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.account-sub, .profile-meta { color: var(--text2); font-size: 14px; margin-bottom: 22px; }
.account-form, .profile-form, .admin-settings, .admin-create-user, .admin-plan-form { display: flex; flex-direction: column; gap: 14px; }
.account-form label, .profile-form label, .admin-settings label,
.admin-create-user label, .admin-edit-grid label, .admin-plan-form label, .plan-form-grid label {
  display: flex; flex-direction: column; gap: 7px;
  color: var(--text2); font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.account-form input, .profile-form input, .profile-form select,
.admin-settings input, .admin-settings select,
.admin-create-user input, .admin-create-user select,
.admin-edit-grid input, .admin-edit-grid select,
.admin-plan-form input, .admin-plan-form select,
.plan-form-grid input, .plan-form-grid select,
.plan-period-select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 11px 12px;
  outline: none;
}
.account-form input:focus, .profile-form input:focus, .profile-form select:focus,
.admin-settings input:focus, .admin-settings select:focus,
.admin-create-user input:focus, .admin-create-user select:focus,
.admin-edit-grid input:focus, .admin-edit-grid select:focus,
.admin-plan-form input:focus, .admin-plan-form select:focus,
.plan-form-grid input:focus, .plan-form-grid select:focus { border-color: var(--accent); }
.profile-hero, .admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(229,9,20,0.14), rgba(61,142,248,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.admin-hero {
  position: sticky;
  top: 82px;
  z-index: 20;
  backdrop-filter: blur(16px);
}
.admin-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}
.profile-identity { flex: 1; min-width: 0; }
.profile-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.profile-identity h1, .admin-hero h1 {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 4px;
}
.profile-identity p, .admin-hero p {
  color: var(--text2);
  font-size: 14px;
}
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.profile-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
html[data-theme="light"] .profile-chips span {
  background: rgba(15,23,42,0.05);
  color: #334155;
}
.profile-signout { flex-shrink: 0; }
.profile-admin-card { grid-column: 1 / -1; }
.profile-admin-copy {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.profile-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Profile Page (professional) ─────────────────────────────────────────── */
.profile-page-pro {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.profile-banner-pro {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  background: var(--card);
}
.profile-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(229, 9, 20, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(61, 142, 248, 0.18), transparent 50%),
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.profile-banner-content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 28px;
}
.profile-banner-user {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.profile-avatar-pro {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.25);
}
.profile-banner-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.profile-banner-info h1 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  margin-bottom: 4px;
  line-height: 1.15;
}
.profile-banner-email {
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 12px;
}
.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-plan-badge,
.profile-verify-badge,
.profile-loc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,0.06);
  text-transform: capitalize;
}
.profile-plan-badge.active {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}
.profile-plan-badge.locked {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}
.profile-verify-badge.ok {
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--green);
}
.profile-verify-badge.warn {
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}
html[data-theme="light"] .profile-plan-badge,
html[data-theme="light"] .profile-verify-badge,
html[data-theme="light"] .profile-loc-badge {
  background: rgba(15, 23, 42, 0.05);
}
.profile-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.profile-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.profile-stat-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.profile-stat-pill:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.profile-stat-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.profile-stat-pill strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}
.profile-stat-pill span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text2);
  margin-top: 2px;
}
.profile-layout-pro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.profile-sidebar-pro {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 90px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.profile-nav-item {
  text-align: left;
  padding: 12px 14px;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s ease, color 0.15s ease;
}
.profile-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.profile-nav-item.active {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.18), rgba(61, 142, 248, 0.1));
  color: var(--text);
  font-weight: 700;
}
.profile-upgrade-card {
  text-align: center;
  padding-bottom: 28px;
}
.profile-upgrade-lead {
  margin: 0 auto 20px;
  color: var(--text2);
  line-height: 1.55;
  max-width: 520px;
}
.profile-whatsapp-btn {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  min-width: 220px;
}
.profile-whatsapp-btn:hover {
  background: #1ebe57;
  border-color: #1ebe57;
  color: #fff;
}
.profile-upgrade-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text3);
}
.profile-upgrade-note a {
  color: var(--accent);
}
html[data-theme="light"] .profile-nav-item:hover {
  background: rgba(15, 23, 42, 0.05);
}
.profile-panels-pro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.profile-panel-pro {
  display: none;
  flex-direction: column;
  gap: 16px;
}
.profile-panel-pro.active {
  display: flex;
}
.profile-pro-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.profile-pro-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.profile-pro-card-head h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.profile-pro-card-head span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text3);
}
.profile-pro-admin {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(61, 142, 248, 0.12), var(--card) 60%);
  border-color: rgba(61, 142, 248, 0.35);
}
.profile-pro-admin-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  background: rgba(61, 142, 248, 0.2);
}
.profile-pro-admin-body h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.profile-pro-admin-body p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.profile-pro-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-plan-display {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-plan-name {
  font-size: 26px;
  font-weight: 900;
}
.profile-plan-dates {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.profile-plan-date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text2);
  max-width: 420px;
}
.profile-plan-date-row strong {
  color: var(--text);
  font-size: 14px;
}
.profile-plan-desc {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 520px;
}
.profile-usage-grid {
  display: grid;
  gap: 18px;
}
.profile-usage-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
}
.profile-usage-label span {
  color: var(--text2);
  font-weight: 600;
}
.profile-usage-label strong {
  font-size: 14px;
}
.profile-usage-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg2);
  overflow: hidden;
}
.profile-usage-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  transition: width 0.4s ease;
}
.profile-usage-fill.accent {
  background: linear-gradient(90deg, var(--accent2), #60a5fa);
}
.profile-usage-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text3);
}
.profile-usage-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text2);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
}
.profile-pro-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile-pro-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.profile-pro-form input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 11px 12px;
  outline: none;
}
.profile-pro-form input:focus {
  border-color: var(--accent);
}
.profile-verify-status.ok { color: var(--green); }
.profile-verify-status.warn { color: #fbbf24; }
.profile-library-card {
  padding: 0;
  overflow: hidden;
}
.profile-library-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 8px;
  overflow-x: auto;
}
.profile-library-tab {
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.profile-library-tab:hover { color: var(--text); }
.profile-library-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.profile-library-panel {
  display: none;
  padding: 20px;
}
.profile-library-panel.active { display: block; }
.profile-library-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-library-panel-note {
  margin: 0;
  color: var(--text2);
  font-size: 13px;
}
.profile-library-row {
  padding: 0;
}
.profile-library-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text2);
}
.profile-library-empty span {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}
.profile-library-empty p {
  margin-bottom: 16px;
  font-size: 14px;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}
@media (max-width: 900px) {
  .profile-quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-layout-pro {
    grid-template-columns: 1fr;
  }
  .profile-sidebar-pro {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
  }
  .profile-nav-item {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    font-size: 13px;
    padding: 12px 8px;
    min-height: 48px;
  }
}
@media (max-width: 560px) {
  .profile-page-pro { padding: 20px 16px 48px; }
  .profile-banner-content { padding: 24px 18px; }
  .profile-banner-user { flex-direction: column; text-align: center; }
  .profile-badge-row { justify-content: center; }
  .profile-banner-actions { width: 100%; justify-content: center; }
  .profile-form-grid { grid-template-columns: 1fr; }
  .profile-quick-stats { grid-template-columns: 1fr 1fr; }
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1.25fr) minmax(300px, 0.9fr);
  gap: 20px;
  margin-bottom: 32px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-heading span {
  color: var(--text3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.panel-title { font-size: 18px; font-weight: 800; margin-bottom: 0; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid label:last-child { grid-column: 1 / -1; }
.form-grid label.full-width { grid-column: 1 / -1; }
.subscription-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  background: var(--bg2);
}
.subscription-card span {
  color: var(--text3);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.subscription-card strong {
  color: var(--text);
  font-size: 18px;
}
.subscription-card small {
  color: var(--text2);
  font-size: 12px;
}
.profile-stats { display: grid; grid-template-columns: 1fr; gap: 14px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  min-height: 92px;
}
.stat-card strong { display: block; font-size: 28px; margin-bottom: 6px; }
.stat-card span { color: var(--text2); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.admin-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.admin-stat span { order: 0; }
.admin-stat strong { order: 1; margin: 0; }
.admin-stat small {
  order: 2;
  color: var(--text3);
  font-size: 12px;
}
.admin-stat.danger {
  border-color: rgba(239, 68, 68, 0.35);
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}
.admin-console {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.admin-console-main {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}
.admin-side-nav {
  position: sticky;
  top: 108px;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.admin-side-nav .admin-tab {
  width: 100%;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 14px;
}
.admin-console .admin-tab-panel {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.admin-console .admin-tabs {
  display: none;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--text2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-tab span {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--bg2);
  color: var(--text3);
  font-size: 11px;
}
.admin-tab.active {
  background: var(--accent);
  color: white;
}
.admin-tab.active span {
  background: rgba(255,255,255,0.2);
  color: white;
}
.admin-tab-panel {
  display: none;
}
.admin-tab-panel.active {
  display: block;
}
.admin-users-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.admin-plans-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.admin-users-main {
  min-width: 0;
}
.admin-settings, .admin-create-user, .admin-plan-form {
  width: 100%;
  max-width: none;
  margin-bottom: 28px;
}
.admin-create-user, .admin-plan-form {
  position: sticky;
  top: 252px;
}
.admin-create-user form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-create-grid, .admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-create-grid label:nth-child(-n+3) {
  grid-column: 1 / -1;
}
.plan-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.plan-form-grid .wide {
  grid-column: 1 / -1;
}
.admin-check {
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  background: var(--bg2);
}
html[data-theme="light"] .admin-check {
  background: #f8fafc;
  color: #334155;
}
.admin-check input {
  width: auto;
  min-width: 0;
  margin: 0 8px 0 0;
  accent-color: var(--accent);
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.admin-toolbar p {
  margin-top: 4px;
  color: var(--text2);
  font-size: 13px;
}
.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px;
  gap: 10px;
  min-width: min(100%, 420px);
}
.admin-filter-bar input, .admin-filter-bar select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
}
.admin-filter-bar input:focus, .admin-filter-bar select:focus {
  border-color: var(--accent);
}
.admin-empty-filter {
  padding: 28px;
  text-align: center;
  color: var(--text2);
  background: var(--card);
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
}
.admin-users-header { margin-top: 8px; }
.admin-user-grid {
  display: grid;
  gap: 16px;
}
.admin-user-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.admin-user-card.blocked {
  border-color: rgba(239, 68, 68, 0.4);
}
.admin-user-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-user-top h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.admin-user-top p {
  color: var(--text2);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.admin-user-top small {
  flex-shrink: 0;
  color: var(--text3);
  font-size: 11px;
  text-align: right;
}
.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.admin-user-badges span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
html[data-theme="light"] .admin-user-badges span {
  background: #f8fafc;
  color: #334155;
}
.admin-user-badges .ok { color: #22c55e; }
.admin-user-badges .warn { color: #f59e0b; }
.admin-user-badges .danger { color: #ef4444; }
.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.admin-card-actions.no-border {
  margin: 4px 0 0;
  padding-top: 0;
  border-top: 0;
}
.btn-danger {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.24);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.admin-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 20px;
  align-items: start;
}
.admin-plans-main { min-width: 0; }
.admin-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.admin-plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.admin-plan-card.inactive {
  opacity: 0.75;
}
.admin-plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-plan-top h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.admin-plan-top p {
  color: var(--text2);
  font-size: 13px;
}
.admin-plan-top span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.admin-plan-top .ok { color: var(--green); }
.admin-plan-top .warn { color: var(--gold); }
.admin-settings-note {
  width: 100%;
}
.admin-rule-list {
  display: grid;
  gap: 12px;
}
.admin-rule-list div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
}
.admin-rule-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
}
.admin-rule-list span {
  color: var(--text2);
  font-size: 13px;
  line-height: 1.45;
}
.admin-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.admin-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.4fr) minmax(110px, 0.7fr) minmax(240px, 0.9fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
  font-size: 13px;
}
.admin-user-cell strong, .admin-status-cell b {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 3px;
}
.admin-row small {
  display: block;
  margin-top: 4px;
  color: var(--text3);
  font-size: 11px;
}
.admin-row:last-child { border-bottom: 0; }
.admin-head { color: var(--text); font-weight: 800; background: var(--bg2); }
.admin-password-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.admin-password-cell input {
  min-width: 0;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px 10px;
}

.search-page { padding: 30px 40px; max-width: 1400px; margin: 0 auto; }
.search-query-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.search-result-count { color: var(--text2); font-size: 14px; margin-bottom: 28px; }

/* ── New Uploads Page ────────────────────────────────────────────────────── */
.new-page { padding: 30px 40px; max-width: 1400px; margin: 0 auto; }

/* ── Error States ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-icon-svg svg,
.kw-catalog-hdr-icon {
  width: 28px;
  height: 28px;
  max-width: 28px;
  display: block;
}
.kw-catalog-hdr { padding: 28px 40px 4px; }
.kw-catalog-hdr-bar { display: flex; align-items: center; gap: 14px; }
.kw-catalog-hdr-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
  flex-shrink: 0;
}
.kw-catalog-hdr-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text3, #94a3b8);
}
.kw-catalog-hdr-title { margin: 0; font-size: 28px; font-weight: 700; }
.kw-catalog-hdr-sub { margin: 6px 0 0; color: var(--text2); font-size: 14px; }
.empty-title { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.empty-sub { color: var(--text2); font-size: 14px; }

/* ── Video Player Overlay ────────────────────────────────────────────────── */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: none;
  flex-direction: column;
}
.player-overlay.open { display: flex; }

.player-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.player-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  z-index: 10;
  flex-shrink: 0;
}
.player-back {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  transition: all var(--transition);
}
.player-back:hover { background: rgba(255,255,255,0.16); }

.player-title-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#player-title {
  font-size: 16px;
  font-weight: 700;
}
.player-vj-name {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
}

.player-dl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
}
.player-dl-btn:hover {
  background: rgba(61,142,248,0.2);
  border-color: var(--accent);
  color: var(--accent);
}
.player-clear-history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: rgba(225, 29, 72, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}
.player-clear-history-btn:hover {
  background: #be123c;
}

.video-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
#main-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}
.video-spinner {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
}
.video-spinner.show { display: flex; }

.player-meta {
  background: rgba(0,0,0,0.9);
  padding: 16px 24px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text2);
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.player-meta-item { display: flex; align-items: center; gap: 6px; }
.player-meta-item strong { color: var(--text); }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  right: 20px;
  left: auto;
  transform: translateX(12px);
  background: var(--surface-strong, var(--card));
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 40px));
  white-space: normal;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast-success {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), var(--surface-strong, var(--card)));
}
.toast-error {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), var(--surface-strong, var(--card)));
}

.ban-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 18, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ban-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.ban-modal-card {
  width: min(420px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(239, 68, 68, 0.55);
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.35), rgba(15, 23, 42, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 28px 24px 22px;
  text-align: center;
}
.ban-modal-icon {
  font-size: 42px;
  margin-bottom: 10px;
}
.ban-modal-card h2 {
  margin: 0 0 10px;
  color: #fecaca;
  font-size: 1.35rem;
}
.ban-modal-card p {
  margin: 0 0 20px;
  color: #fca5a5;
  line-height: 1.5;
}
.ban-modal-close {
  min-width: 120px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
/* Professional theme polish inspired by modern CSS component libraries */
:root {
  --surface: rgba(17, 24, 39, 0.82);
  --surface-strong: rgba(15, 23, 42, 0.96);
  --field: #0b1020;
  --text2: #b8c2d9;
  --text3: #7e8aa5;
  --accent: #2dd4bf;
  --accent2: #60a5fa;
  --accent3: #f43f5e;
  --ring: rgba(45, 212, 191, 0.34);
}
html[data-theme="light"] {
  --bg: #eef3f8;
  --bg2: #f8fafc;
  --bg3: #e2e8f0;
  --card: #ffffff;
  --card-hover: #f1f5f9;
  --field: #ffffff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --border: rgba(15, 23, 42, 0.12);
  --border2: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --accent: #0f766e;
  --accent2: #2563eb;
  --accent3: #e11d48;
  --ring: rgba(15, 118, 110, 0.22);
}
body {
  background: radial-gradient(circle at 10% 0%, rgba(45, 212, 191, 0.12), transparent 30%), radial-gradient(circle at 90% 10%, rgba(96, 165, 250, 0.12), transparent 26%), var(--bg);
}
html[data-theme="light"] body {
  background: radial-gradient(circle at 8% 0%, rgba(20, 184, 166, 0.12), transparent 30%), radial-gradient(circle at 94% 12%, rgba(37, 99, 235, 0.10), transparent 28%), var(--bg);
}
.navbar { background: rgba(7, 10, 18, 0.82); }
html[data-theme="light"] .navbar { background: rgba(248, 250, 252, 0.88); }
.nav-link { font-weight: 700; }
.nav-link:hover, .nav-link.active { box-shadow: inset 0 0 0 1px var(--border2); }
.pro-badge {
  min-width: 0;
  justify-content: center;
}
.pro-badge.is-active { background: linear-gradient(160deg, rgba(6, 78, 59, 0.55), rgba(15, 23, 42, 0.9)); border-color: rgba(52, 211, 153, 0.42); color: #86efac; }
.pro-badge.is-locked,
.pro-badge.is-subscribe-cta { background: linear-gradient(160deg, rgba(127, 29, 29, 0.42), rgba(15, 23, 42, 0.92)); border-color: rgba(248, 113, 113, 0.4); color: #fecaca; }
html[data-theme="light"] .pro-badge.is-active {
  background: linear-gradient(160deg, rgba(220, 252, 231, 0.95), rgba(255, 255, 255, 0.95));
  border-color: rgba(34, 197, 94, 0.45);
  color: #15803d;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .pro-badge.is-locked,
html[data-theme="light"] .pro-badge.is-subscribe-cta {
  background: linear-gradient(160deg, rgba(254, 226, 226, 0.95), rgba(255, 255, 255, 0.95));
  border-color: rgba(239, 68, 68, 0.35);
  color: #b91c1c;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .pro-badge .sub-chip-hint { color: #dc2626; }
html[data-theme="light"] .pro-badge.is-guest {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(148, 163, 184, 0.35);
  color: #64748b;
}

.sub-status-blink {
  font-weight: 700;
}

.sub-status-blink.subscribed,
.pro-badge.is-active .sub-status-blink {
  color: #22c55e;
}

.sub-status-blink.unsubscribed,
.pro-badge.is-locked .sub-status-blink {
  color: #ef4444;
}

html[data-theme="light"] .sub-status-blink.subscribed,
html[data-theme="light"] .pro-badge.is-active .sub-status-blink {
  color: #15803d;
}

html[data-theme="light"] .sub-status-blink.unsubscribed,
html[data-theme="light"] .pro-badge.is-locked .sub-status-blink {
  color: #dc2626;
}

.access-pill .sub-status-blink.subscribed { color: #22c55e; }
.access-pill .sub-status-blink.unsubscribed { color: #ef4444; }
html[data-theme="light"] .access-pill .sub-status-blink.subscribed { color: #15803d; }
html[data-theme="light"] .access-pill .sub-status-blink.unsubscribed { color: #dc2626; }
.search-inner, .account-panel, .stat-card, .genre-card, .vj-card, .admin-tabs, .admin-toolbar, .admin-user-card, .admin-plan-card, .plan-card {
  background: var(--surface);
  border-color: var(--border2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .search-inner, html[data-theme="light"] .account-panel, html[data-theme="light"] .stat-card, html[data-theme="light"] .genre-card, html[data-theme="light"] .vj-card, html[data-theme="light"] .admin-tabs, html[data-theme="light"] .admin-toolbar, html[data-theme="light"] .admin-user-card, html[data-theme="light"] .admin-plan-card, html[data-theme="light"] .plan-card {
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}
.btn {
  border-radius: 999px;
  min-height: 42px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #ffffff;
  box-shadow: 0 12px 30px var(--ring);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--accent2), var(--accent)); }
.btn-outline, .btn-glass {
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid var(--border2);
  color: var(--text);
}
.btn-outline:hover, .btn-glass:hover {
  background: rgba(45, 212, 191, 0.14);
  color: var(--text);
  border-color: var(--accent);
}
html[data-theme="light"] .hero-kicker,
html[data-theme="light"] .nf-detail-kicker {
  color: rgba(15, 23, 42, 0.65);
}
html[data-theme="light"] .btn-nf-secondary {
  background: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .btn-nf-circle {
  border-color: rgba(15, 23, 42, 0.35) !important;
  background: rgba(255,255,255,0.65) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .nf-episode-row {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}
html[data-theme="light"] .nf-episode-list {
  border-top-color: rgba(15, 23, 42, 0.08);
}
.hero .btn-glass, .detail-hero .btn-glass { color: #fff; background: rgba(255, 255, 255, 0.14); }
.movie-thumb {
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}
html[data-theme="light"] .movie-thumb { border-color: rgba(15, 23, 42, 0.10); box-shadow: 0 18px 28px rgba(15, 23, 42, 0.16); }
.movie-title, .detail-title, .profile-identity h1, .admin-hero h1, .account-title, .panel-title, .section-title { color: var(--text); letter-spacing: 0; }
.hero-title, .hero-desc, .hero-meta, .detail-hero .detail-title, .detail-hero .detail-desc, .detail-hero .detail-tags, .detail-hero .access-strip { color: #ffffff; }
.detail-desc, .hero-desc, .movie-vj, .account-sub, .profile-meta, .admin-toolbar p, .admin-user-top p, .admin-plan-top p { color: var(--text2); }
.detail-hero .detail-desc { color: rgba(255,255,255,0.82); }
.tag { background: rgba(148, 163, 184, 0.12); color: var(--text2); }
.tag.accent { background: rgba(45, 212, 191, 0.14); color: var(--accent); }
.access-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
  font-size: 13px;
  color: var(--text2);
}
.access-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.access-pill.active { background: rgba(34, 197, 94, 0.16); color: var(--green); border-color: rgba(34, 197, 94, 0.32); }
.access-pill.locked { background: rgba(244, 63, 94, 0.14); color: #fb7185; border-color: rgba(244, 63, 94, 0.30); }
html[data-theme="light"] .access-pill.locked { color: #be123c; }
.account-form input, .profile-form input, .profile-form select, .admin-settings input, .admin-settings select, .admin-create-user input, .admin-create-user select, .admin-edit-grid input, .admin-edit-grid select, .admin-plan-form input, .admin-plan-form select, .plan-form-grid input, .plan-form-grid select, .admin-filter-bar input, .admin-filter-bar select, .admin-password-cell input {
  background: var(--field);
  color: var(--text);
  border-color: var(--border2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.account-form input::placeholder, .admin-filter-bar input::placeholder, .admin-password-cell input::placeholder { color: var(--text3); }
.account-form input:focus, .profile-form input:focus, .profile-form select:focus, .admin-settings input:focus, .admin-settings select:focus, .admin-create-user input:focus, .admin-create-user select:focus, .admin-edit-grid input:focus, .admin-edit-grid select:focus, .admin-plan-form input:focus, .admin-plan-form select:focus, .plan-form-grid input:focus, .plan-form-grid select:focus, .admin-filter-bar input:focus, .admin-filter-bar select:focus, .admin-password-cell input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}
.profile-hero, .admin-hero {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(96, 165, 250, 0.12)), var(--surface);
  border-color: var(--border2);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
}
html[data-theme="light"] .profile-hero, html[data-theme="light"] .admin-hero {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(37, 99, 235, 0.10)), var(--surface-strong);
}
.admin-tab { border: 1px solid transparent; transition: all 0.2s ease; }
.admin-tab:hover { background: var(--card-hover); border-color: var(--border2); }
.admin-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 12px 26px var(--ring); }
.admin-page { max-width: 1280px; }
.admin-page .admin-hero {
  position: static;
  padding: 14px 18px;
  margin-bottom: 14px;
  gap: 14px;
}
.admin-page .admin-hero h1 {
  font-size: 22px;
  margin-bottom: 2px;
}
.admin-page .admin-hero p {
  font-size: 12px;
}
.admin-page .profile-kicker {
  margin-bottom: 3px;
}
.admin-page .admin-hero-actions .btn {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 13px;
}
.admin-page .admin-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.admin-page .stat-card {
  min-height: 74px;
  padding: 12px;
}
.admin-page .stat-card strong {
  font-size: 22px;
}
.admin-user-card, .admin-plan-card, .plan-card { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.admin-user-card:hover, .admin-plan-card:hover, .plan-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.plan-card.current { border-color: var(--green); }
.plan-current-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}
.plan-feature-text { margin-top: 12px; color: var(--text2); font-size: 13px; line-height: 1.45; }
.plans-access-note { display: flex; justify-content: center; margin-top: 34px; }
.play-btn { color: #fff; font-size: 11px; font-weight: 900; }
.badge-series { color: #fff; }
.toast { background: var(--surface-strong); color: var(--text); }

@media (max-width: 900px) {
  .content-section { padding: 0 20px 32px; }
  .hero-content { left: 24px; bottom: 60px; max-width: min(560px, calc(100% - 48px)); }
  .hero-home,
  .hero { height: 420px; }
  .hero-dots { left: 24px; bottom: 22px; }
  .detail-hero-content { left: 24px; right: 24px; gap: 20px; }
  .nf-detail-content { left: 20px; right: 20px; bottom: 28px; }
  .nf-detail-hero { height: min(70vh, 520px); min-height: 360px; }
  .detail-body { padding: 24px; }
  .detail-poster { width: 130px; height: 185px; }
  .search-page, .new-page { padding: 20px; }
  .plans-page { padding: 40px 20px; }
  .profile-page, .admin-page { padding: 24px 20px; }
  .admin-hero { position: static; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-console { grid-template-columns: 1fr; }
  .admin-console-main {
    grid-column: 1;
    grid-row: 2;
  }
  .admin-side-nav {
    position: static;
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    order: -1;
  }
  .admin-side-nav .admin-tab {
    justify-content: center;
    flex-direction: column;
    gap: 4px;
  }
  .admin-users-layout, .admin-plans-layout, .admin-settings-layout { grid-template-columns: 1fr; }
  .admin-create-user, .admin-plan-form { position: static; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-filter-bar { min-width: 0; width: 100%; }
  .admin-create-grid, .admin-edit-grid, .plan-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .admin-head { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  body.is-logged-in .nav-menu-toggle { display: inline-flex !important; }
  .hero-content { left: 16px; bottom: 52px; max-width: calc(100% - 32px); }
  .hero-home,
  .hero { height: 360px; }
  .hero-dots { left: 16px; bottom: 18px; }
  .detail-hero-content { flex-direction: column; align-items: flex-start; bottom: 20px; }
  .detail-poster { width: 100px; height: 142px; }
  .movie-card { width: 145px; }
  .movie-thumb { width: 145px; height: 205px; }
  .profile-hero, .admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-hero-actions, .admin-tabs, .admin-card-actions {
    width: 100%;
  }
  .admin-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .admin-tab {
    flex: 1;
  }
  .admin-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-filter-bar {
    grid-template-columns: 1fr;
  }
  .profile-avatar { width: 60px; height: 60px; border-radius: 14px; }
  .profile-identity h1, .admin-hero h1 { font-size: 24px; }
  .profile-stats, .admin-metrics, .form-grid, .admin-create-grid, .admin-edit-grid, .plan-form-grid { grid-template-columns: 1fr; }
  .account-panel { padding: 18px; }
  .admin-user-top { flex-direction: column; }
  .admin-user-top small { text-align: left; }
  .admin-password-cell { grid-template-columns: 1fr; }
}

/* ── Page Transition ─────────────────────────────────────────────────────── */
.page-enter {
  animation: pageEnter 0.3s ease both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slim migration UI refresh */
:root {
  --radius: 8px;
  --radius-lg: 8px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body,
button,
input,
select {
  letter-spacing: 0;
}

body {
  transition: background-color 0.28s var(--ease-out), color 0.28s var(--ease-out);
}

.logo-text {
  letter-spacing: 0;
}

#app > * {
  animation: pageEnter 0.34s var(--ease-soft) both;
}

.navbar,
.search-bar,
.movie-card,
.movie-thumb,
.account-panel,
.profile-hero,
.admin-hero,
.admin-console .admin-tab-panel,
.admin-side-nav,
.admin-user-card,
.admin-plan-card,
.stat-card,
.plan-card {
  transition:
    background-color 0.24s var(--ease-out),
    border-color 0.24s var(--ease-out),
    box-shadow 0.24s var(--ease-out),
    transform 0.24s var(--ease-out),
    color 0.24s var(--ease-out);
}

.admin-user-card:hover,
.admin-plan-card:hover,
.plan-card:hover,
.genre-card:hover,
.vj-card:hover {
  transform: translateY(-3px);
}

.btn,
.btn-icon,
.admin-tab,
.admin-check,
.player-dl-btn,
.player-back {
  transition:
    transform 0.22s var(--ease-out),
    background-color 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out),
    color 0.22s var(--ease-out);
}

.btn:hover,
.btn-icon:hover,
.admin-tab:hover,
.player-dl-btn:hover,
.player-back:hover {
  transform: translateY(-1px);
}

.btn:active,
.btn-icon:active,
.admin-tab:active {
  transform: translateY(0) scale(0.98);
}

.admin-page {
  width: min(100%, 1440px);
}

.admin-page .admin-hero {
  min-height: 96px;
  overflow: hidden;
}

.admin-page .admin-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-stat {
  position: relative;
  overflow: hidden;
}

.admin-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0.72;
}

.admin-stat.danger::before {
  background: linear-gradient(90deg, var(--accent3), var(--gold));
}

.admin-console {
  grid-template-columns: 190px minmax(0, 1fr);
}

.admin-side-nav {
  top: 88px;
  background: var(--surface-strong);
}

.admin-side-nav .admin-tab {
  min-height: 46px;
}

.admin-console .admin-tab-panel {
  padding: clamp(14px, 2vw, 22px);
  background: var(--surface);
}

.admin-tab-panel.active {
  animation: adminPanelIn 0.28s var(--ease-soft) both;
}

@keyframes adminPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-users-layout,
.admin-plans-layout {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.admin-create-user,
.admin-plan-form {
  top: 104px;
}

.admin-toolbar {
  position: sticky;
  top: 76px;
  z-index: 5;
  background: var(--surface-strong);
}

.admin-user-grid,
.admin-plan-grid,
.admin-diagnostics-layout {
  align-items: start;
}

.admin-user-card,
.admin-plan-card,
.admin-diagnostic-card,
.account-panel,
.stat-card {
  border-radius: 8px;
}

.admin-user-card[hidden] {
  display: none;
}

.admin-card-actions .btn,
.admin-hero-actions .btn,
.admin-create-user .btn,
.admin-plan-form .btn {
  min-width: 124px;
}

.admin-diagnostics-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-diagnostic-card {
  min-width: 0;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.diagnostic-grid div,
.diagnostic-list div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
}

.diagnostic-grid span,
.diagnostic-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--text3);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.diagnostic-grid strong,
.diagnostic-list strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.diagnostic-grid small {
  display: block;
  margin-top: 5px;
  color: var(--text2);
  font-size: 12px;
}

.diagnostic-list {
  display: grid;
  gap: 10px;
}

.diagnostic-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.diagnostic-pill.ok {
  color: var(--green);
  background: rgba(34, 197, 94, 0.13);
  border-color: rgba(34, 197, 94, 0.32);
}

.diagnostic-pill.danger {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.13);
  border-color: rgba(244, 63, 94, 0.30);
}

html[data-theme="light"] .diagnostic-pill.danger {
  color: #be123c;
}

@media (max-width: 1180px) {
  .admin-page .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-console {
    grid-template-columns: 1fr;
  }

  .admin-console-main {
    grid-column: 1;
    grid-row: 2;
  }

  .admin-side-nav {
    position: static;
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .admin-toolbar,
  .admin-create-user,
  .admin-plan-form {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-inner {
    gap: 12px;
    padding: 0 14px;
  }

  .logo-text {
    font-size: 17px;
  }

  .pro-badge {
    display: none;
  }

  .nav-right {
    gap: 8px;
  }

  .nav-search-toggle,
  #search-toggle {
    display: inline-flex !important;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .expiry-nav-alert {
    display: none !important;
  }

  .nav-app-downloads {
    display: none !important;
  }

  .search-bar.open {
    display: block;
    padding: 10px 14px 12px;
  }

  .search-inner {
    max-width: none;
  }

  #search-input {
    font-size: 16px; /* avoid iOS zoom */
  }

  .admin-page {
    padding: 18px 12px;
  }

  .admin-page .admin-metrics,
  .admin-diagnostics-layout,
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }

  .admin-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
  }

  .admin-side-nav .admin-tab {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .admin-console .admin-tab-panel {
    padding: 12px;
  }

  .admin-toolbar,
  .admin-filter-bar,
  .admin-card-actions {
    gap: 10px;
  }

  .admin-card-actions .btn,
  .admin-hero-actions .btn,
  .admin-create-user .btn,
  .admin-plan-form .btn {
    width: 100%;
    min-width: 0;
  }

  .toast {
    max-width: calc(100vw - 24px);
    white-space: normal;
    text-align: center;
  }
}

/* ── Auth gate (login/signup — no site chrome) ───────────────────────────── */
html.guest-user #navbar,
body.guest-user #navbar,
body.auth-gate-route #navbar,
body.privacy-route #navbar {
  display: none !important;
}

body.user-authenticated:not(.auth-gate-route):not(.privacy-route) #navbar {
  display: block;
}

body.guest-user:not(.privacy-route) #site-footer,
body.auth-gate-route #site-footer {
  display: none !important;
}

body.privacy-route.guest-user .site-footer-links {
  display: none !important;
}

body.privacy-route {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body.privacy-route #app {
  flex: 1 0 auto;
  min-height: 0;
}

body.privacy-route #site-footer {
  display: block !important;
  flex-shrink: 0;
  margin-top: 0;
}

body.auth-gate-route #app {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 0;
  background: transparent;
}

body.auth-gate-route {
  background: #05060a;
}

body.auth-gate-route #app .page-enter,
body.auth-gate-route #app .page-loader {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Auth layout ─────────────────────────────────────────────────────────── */
.auth-layout {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 480px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  gap: 0;
  align-items: stretch;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: linear-gradient(145deg, rgba(61,142,248,0.18), rgba(108,99,255,0.12));
  border: 1px solid var(--border);
  border-right: none;
}
.auth-brand h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.auth-brand p {
  color: var(--text2);
  line-height: 1.65;
  max-width: 36ch;
}
.auth-brand ul {
  margin-top: 28px;
  list-style: none;
  display: grid;
  gap: 12px;
}
.auth-brand li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text2);
  font-size: 14px;
}
.auth-brand li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
}
.auth-panel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-lg);
}
.auth-panel {
  width: min(100%, 400px);
}
.auth-panel h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}
.auth-panel-sub {
  color: var(--text2);
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.5;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
  font-size: 14px;
}
.auth-links a {
  color: var(--accent);
  font-weight: 600;
}
.auth-step-hint {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Admin shell (sidebar) ───────────────────────────────────────────────── */
.admin-page {
  padding: 0;
  max-width: none;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}
body:has(.admin-page) {
  overflow: hidden;
}
.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - var(--nav-h));
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}
.admin-sidebar {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.admin-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
/* Admin sidebar — clean */
.admin-sidebar-clean {
  background: #070910;
  border-right: 1px solid var(--border);
}
.admin-sidebar-clean .admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.admin-sidebar-clean .admin-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-brand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.admin-brand-text span {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.admin-nav-group {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 14px 12px 6px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text2);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.admin-nav-item.active {
  background: rgba(61, 142, 248, 0.14);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}
.admin-nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.85;
}
.admin-nav-item.active .admin-nav-icon svg { opacity: 1; }
.admin-nav-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.admin-nav-label {
  font-size: 14px;
  font-weight: 700;
}
.admin-nav-hint {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
}
.admin-nav-item.active .admin-nav-hint { color: var(--text2); }
.admin-sidebar-clean .admin-sidebar-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
}
.admin-footer-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}
.admin-footer-link:hover { color: var(--accent); }
.admin-dash-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.admin-dash-kpis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.admin-kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.admin-kpi-card.accent { border-color: rgba(61,142,248,0.35); }
.admin-kpi-card.ok { border-color: rgba(34,197,94,0.35); }
.admin-kpi-card.warn { border-color: rgba(239,68,68,0.35); }
.admin-kpi-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text3);
}
.admin-kpi-value {
  display: block;
  font-size: 28px;
  font-weight: 900;
  margin: 6px 0 4px;
}
.admin-kpi-card small { color: var(--text2); font-size: 12px; }
.admin-chart-card {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.admin-chart-card.wide { grid-column: 1 / -1; }
.admin-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  gap: 8px;
}
.admin-chart-head h3 { font-size: 15px; font-weight: 800; }
.admin-chart-head span { font-size: 12px; color: var(--text3); }
.admin-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding-top: 8px;
}
.admin-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.admin-bar {
  width: 100%;
  max-width: 36px;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}
.admin-bar-col span { font-size: 10px; color: var(--text3); font-weight: 700; }
.admin-donut-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 14px;
}
.admin-donut {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.admin-donut-center {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text3);
}
.admin-donut-center strong { font-size: 20px; color: var(--text); }
.admin-legend { display: grid; gap: 6px; }
.admin-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
}
.admin-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.admin-legend-item strong { margin-left: auto; color: var(--text); }
.admin-health-bars { display: grid; gap: 12px; margin-bottom: 14px; }
.admin-health-row {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.admin-health-track {
  height: 8px;
  background: var(--bg3);
  border-radius: 999px;
  overflow: hidden;
}
.admin-health-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}
.admin-health-fill.ok { background: var(--green); }
.admin-health-fill.bad { background: var(--red); }
.admin-health-row em { font-style: normal; color: var(--text3); font-weight: 700; }
.admin-meta-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.admin-meta-rows span { display: block; color: var(--text3); }
.admin-meta-rows strong { color: var(--text); }
.admin-broadcast-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-broadcast-form .wide { grid-column: 1 / -1; }
.admin-broadcast-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--text);
  resize: vertical;
}
.admin-broadcast-list { display: grid; gap: 8px; }
.admin-broadcast-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  font-size: 13px;
}
.admin-broadcast-item span { display: block; color: var(--text3); font-size: 11px; margin-top: 2px; }
.admin-broadcast-empty { color: var(--text3); font-size: 13px; }
.btn-sm { padding: 6px 12px; min-height: 32px; font-size: 12px; }
@media (max-width: 1100px) {
  .admin-chart-card { grid-column: span 6; }
}
@media (max-width: 720px) {
  .admin-chart-card { grid-column: 1 / -1; }
  .admin-broadcast-form { grid-template-columns: 1fr; }
  .admin-meta-rows { grid-template-columns: 1fr; }
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.admin-sidebar-brand strong {
  font-size: 16px;
  font-weight: 900;
}
.admin-sidebar-brand span {
  display: block;
  color: var(--text3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-sidebar-nav {
  display: grid;
  gap: 6px;
  flex: 1;
}
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text2);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}
.admin-sidebar-link:hover {
  background: var(--card-hover);
  color: var(--text);
}
.admin-sidebar-link.active {
  background: linear-gradient(135deg, rgba(61,142,248,0.22), rgba(108,99,255,0.12));
  border-color: rgba(61,142,248,0.35);
  color: var(--text);
}
.admin-sidebar-icon {
  width: 28px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}
.admin-sidebar-badge {
  margin-left: auto;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg3);
  color: var(--text3);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.admin-sidebar-link.active .admin-sidebar-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.admin-sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}
.admin-main {
  min-width: 0;
  padding: 24px 28px 40px;
  background: var(--bg);
  overflow-y: auto;
  height: calc(100vh - var(--nav-h));
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.admin-main::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.admin-topbar-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.admin-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--text2);
}
.admin-menu-toggle:hover,
.admin-menu-toggle:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}
body.admin-mobile-open {
  overflow: hidden;
}
.admin-mobile-drawer[hidden] {
  display: none !important;
}
.admin-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1400;
}
.admin-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(6px);
}
.admin-mobile-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(320px, 88vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #070910, var(--bg2));
  border-right: 1px solid var(--border2);
  box-shadow: var(--shadow-lg);
  animation: navMobileSlideIn 0.22s ease both;
}
.admin-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.admin-mobile-title {
  font-size: 15px;
  font-weight: 800;
}
.admin-mobile-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 16px;
  flex-direction: column;
}
.admin-mobile-nav .admin-nav-item {
  width: 100%;
  min-height: 52px;
}
.admin-mobile-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}
.admin-topbar h1 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 4px;
}
.admin-topbar p {
  color: var(--text2);
  font-size: 14px;
}
.admin-topbar-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.admin-section-head {
  margin-bottom: 16px;
}
.admin-section-head h2 {
  font-size: 20px;
  font-weight: 800;
}
.admin-section-head p {
  color: var(--text2);
  font-size: 13px;
  margin-top: 4px;
}
.admin-section-head.admin-cache-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-cache-note {
  color: var(--text2);
  font-size: 13px;
  margin: -8px 0 16px;
}
.admin-cache-note code {
  font-size: 12px;
}
.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.admin-panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.admin-panel-stack {
  display: grid;
  gap: 20px;
}
.admin-split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.admin-password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border2);
}

@media (max-width: 980px) {
  .admin-page {
    height: auto;
    min-height: calc(100vh - var(--nav-h));
    overflow: visible;
  }
  body:has(.admin-page) {
    overflow: auto;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
  .auth-brand {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-right: 1px solid var(--border);
    border-bottom: none;
    padding: 28px 24px;
  }
  .auth-panel-wrap {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .admin-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--nav-h));
    overflow: visible;
  }
  .admin-main {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .admin-sidebar-clean {
    display: none;
  }
  .admin-menu-toggle {
    display: inline-flex;
  }
  .hero-content, .hero-dots {
    left: 24px;
    right: 24px;
  }
  .hero-home,
  .hero-carousel {
    min-height: 420px;
  }
}

/* ── Notifications (navbar) ─────────────────────────────────────────────── */
.expiry-nav-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(320px, 42vw);
  padding: 6px 8px 6px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--text, #f8fafc);
}
.expiry-nav-alert[hidden] {
  display: none !important;
}
.expiry-nav-alert-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.expiry-nav-alert-text:hover {
  text-decoration: underline;
}
.expiry-nav-alert-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.expiry-nav-alert-close:hover {
  background: rgba(255, 255, 255, 0.16);
}
.expiry-home-banner {
  margin: 0 0 20px;
  padding: 0 4px;
}
.expiry-home-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(244, 63, 94, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.expiry-home-banner-icon {
  font-size: 22px;
  line-height: 1;
}
.expiry-home-banner-body {
  flex: 1;
  min-width: 200px;
}
.expiry-home-banner-body strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.expiry-home-banner-body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #94a3b8);
  line-height: 1.45;
}
.expiry-home-banner-cta {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 13px;
}
.expiry-home-banner-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
}
.expiry-home-banner-close:hover {
  background: rgba(255, 255, 255, 0.16);
}
@media (max-width: 720px) {
  .expiry-nav-alert {
    display: none !important;
  }
}
.notif-wrap {
  position: relative;
}
.notif-btn {
  position: relative;
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent3, #f43f5e);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: 480px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface-strong, var(--card));
  border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  pointer-events: auto;
}
.notif-panel[hidden] {
  display: none !important;
}
.notif-wrap:hover .notif-panel:not([hidden]) {
  /* click-only: no hover open */
}
.notif-section-label {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
}
.notif-preview-list {
  max-height: 200px;
  overflow-y: auto;
  border-bottom: 1px solid var(--border);
}
.notif-thumb {
  width: 40px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg3);
}
.notif-admin .notif-item-icon,
.notif-item.notif-admin .notif-item-icon {
  background: rgba(61, 142, 248, 0.2);
  color: var(--accent);
}
.notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notif-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-mark-read,
.notif-close {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.notif-mark-read { color: var(--accent); }
.notif-close {
  min-width: 32px;
  padding: 6px 8px;
  line-height: 1;
}
.notif-footer-link {
  display: block;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  border-top: 1px solid var(--border);
  text-align: center;
  flex-shrink: 0;
}
.notif-footer-link:hover { background: var(--card-hover); }
.notif-list {
  overflow-y: auto;
  max-height: 360px;
  flex: 1;
}
.notif-empty small {
  display: block;
  margin-top: 6px;
  color: var(--text3);
  font-weight: 500;
}
.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.notif-item:hover {
  background: var(--card-hover);
}
.notif-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.notif-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.notif-item-body strong {
  font-size: 13px;
}
.notif-item-body span {
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-empty {
  padding: 24px;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
}
.notif-account_activated .notif-item-icon {
  background: rgba(34, 197, 94, 0.2);
  color: var(--green);
}

/* ── Plan limits & usage ─────────────────────────────────────────────────── */
.plan-limits {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text2);
}
.plan-limits strong {
  color: var(--text);
}
.usage-meter-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.usage-meter {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--bg2);
  border: 1px solid var(--border);
}
.usage-meter span {
  display: block;
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 4px;
}
.usage-meter strong {
  font-size: 18px;
}

/* ── Admin polish ─────────────────────────────────────────────────────────── */
.admin-field-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
}
.admin-stat {
  border-left: 3px solid var(--accent);
}
.admin-stat.danger {
  border-left-color: var(--red);
}
.admin-main {
  background: radial-gradient(circle at 100% 0%, rgba(61, 142, 248, 0.06), transparent 40%), var(--bg);
}
.admin-sidebar {
  background: linear-gradient(180deg, var(--bg2) 0%, #070910 100%);
}
.admin-topbar {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.admin-plan-card,
.admin-user-card {
  border-radius: 14px;
}
.browse-page,
.search-page,
.plans-page,
.profile-page,
.new-page {
  background: var(--bg);
  min-height: calc(100vh - var(--nav-h));
}

/* ── Site footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 20px 24px;
  margin-top: auto;
}
.site-footer-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-footer-dot { opacity: 0.45; }
.site-footer-privacy {
  color: var(--text2);
  font-weight: 600;
  text-decoration: none;
}
.site-footer-privacy:hover { color: var(--accent); }
.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text3);
}
.site-footer-links {
  display: flex;
  gap: 18px;
}
.site-footer-links a {
  color: var(--text2);
  font-weight: 600;
}
.site-footer-links a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Viewer profiles (Who's watching?) ─────────────────────────────────── */
.viewer-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  text-align: center;
}
.viewer-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
}
.viewer-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.viewer-sub, .viewer-limit-note, .viewer-upgrade-note {
  color: var(--text2);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
.viewer-upgrade-note a { color: var(--accent); font-weight: 600; }
.viewer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 36px auto 24px;
  padding-bottom: 36px;
}
.viewer-poster {
  position: relative;
  width: clamp(120px, 18vw, 168px);
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.viewer-poster:hover,
.viewer-poster:focus-visible {
  transform: scale(1.06);
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  outline: none;
}
.viewer-poster-initials {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.viewer-poster-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
}
.viewer-poster-owner {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.viewer-poster-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--surface2);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.viewer-poster-add {
  border: 2px dashed rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
}
.viewer-poster-add-icon {
  font-size: 3rem;
  line-height: 1;
  color: var(--text2);
}
.viewer-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}
.viewer-color-crimson .viewer-poster-initials, .viewer-color-crimson.viewer-color-swatch { background: linear-gradient(145deg, #e50914, #831010); }
.viewer-color-ocean .viewer-poster-initials, .viewer-color-ocean.viewer-color-swatch { background: linear-gradient(145deg, #1e88e5, #0d47a1); }
.viewer-color-forest .viewer-poster-initials, .viewer-color-forest.viewer-color-swatch { background: linear-gradient(145deg, #43a047, #1b5e20); }
.viewer-color-violet .viewer-poster-initials, .viewer-color-violet.viewer-color-swatch { background: linear-gradient(145deg, #8e24aa, #4a148c); }
.viewer-color-sunset .viewer-poster-initials, .viewer-color-sunset.viewer-color-swatch { background: linear-gradient(145deg, #fb8c00, #e65100); }
.viewer-color-teal .viewer-poster-initials, .viewer-color-teal.viewer-color-swatch { background: linear-gradient(145deg, #00897b, #004d40); }
.viewer-color-rose .viewer-poster-initials, .viewer-color-rose.viewer-color-swatch { background: linear-gradient(145deg, #ec407a, #880e4f); }
.viewer-color-gold .viewer-poster-initials, .viewer-color-gold.viewer-color-swatch { background: linear-gradient(145deg, #ffb300, #ff6f00); }
.viewer-form-panel {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.viewer-form-panel h2 { margin: 0 0 8px; font-size: 1.5rem; }
.viewer-form-note { color: var(--text2); font-size: 14px; margin-bottom: 20px; }
.viewer-profile-form { display: flex; flex-direction: column; gap: 16px; }
.viewer-profile-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text2); }
.viewer-profile-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
}
.viewer-color-label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 10px; }
.viewer-color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.viewer-color-swatch {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 3px solid transparent;
  cursor: pointer;
  padding: 0;
}
.viewer-color-swatch.is-selected { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.viewer-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.viewer-poster-lock {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45));
}
.viewer-poster-kids-icon {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.4rem, 5vw, 3rem);
}
.viewer-color-teal .viewer-poster-kids-icon { background: linear-gradient(145deg, #00897b, #004d40); }
.is-kids-poster { border-color: rgba(0, 200, 160, 0.35); }
.viewer-poster-owner.kids { background: rgba(0, 137, 123, 0.85); }
.viewer-pin-field { display: flex; flex-direction: column; gap: 10px; }
.viewer-pin-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); cursor: pointer; }
.viewer-pin-toggle input { width: auto; }
.viewer-pin-inputs { display: flex; flex-direction: column; gap: 12px; }
.viewer-pin-remove { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 500; }
.viewer-pin-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.viewer-pin-modal {
  width: min(100%, 360px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.viewer-pin-modal h2 { margin: 0 0 8px; }
.viewer-pin-modal p { color: var(--text2); margin-bottom: 16px; }
.viewer-pin-entry {
  width: 100%;
  text-align: center;
  letter-spacing: 0.45em;
  font-size: 1.5rem;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  margin-bottom: 8px;
}
.viewer-pin-error { color: #ff6b6b; font-size: 13px; margin-bottom: 8px; }
.kids-mode-badge {
  margin-left: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(145deg, #00897b, #004d40);
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
}
.kids-hero .hero-badge { background: rgba(0, 137, 123, 0.85); }
body.kids-mode .section-sub { color: var(--text2); font-size: 13px; margin-left: 12px; }

.support-chat-root {
  display: none !important;
}
.support-chat-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 12px 16px 12px 14px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.support-chat-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.62), 0 0 24px rgba(99, 102, 241, 0.18);
}
.support-chat-toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-glow);
  flex-shrink: 0;
}
.support-chat-toggle-icon svg { display: block; }
.support-chat-toggle-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.support-chat-toggle-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.support-chat-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #86efac;
}
.support-chat-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: supportLivePulse 2s ease infinite;
  flex-shrink: 0;
}
@keyframes supportLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.support-chat-panel[hidden] { display: none !important; }
.support-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(380px, calc(100vw - 40px));
  height: 520px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.support-chat-toggle { position: relative; }
.support-chat-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #ef4444; color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 800; line-height: 18px; text-align: center;
}
.support-chat-author {
  display: block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 4px; opacity: 0.85;
}
.support-chat-bubble.is-user .support-chat-author { color: #a5b4fc; text-align: right; }
.support-chat-bubble.is-admin .support-chat-author { color: #34d399; }
.support-chat-bubble.is-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(99,102,241,0.28), rgba(79,70,229,0.22));
  border: 1px solid rgba(129,140,248,0.45);
  color: #eef2ff;
}
.support-chat-bubble.is-admin {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(16,185,129,0.14), rgba(5,150,105,0.1));
  border: 1px solid rgba(52,211,153,0.35);
  color: #ecfdf5;
}
.support-chat-typing-bubble {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  align-self: flex-start;
  max-width: 88%;
  margin-top: 4px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(5,150,105,0.08));
  border: 1px solid rgba(52,211,153,0.28);
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 6px 18px rgba(16,185,129,0.08);
  animation: chatTypingFade 0.28s ease;
}
.support-chat-typing-bubble[hidden] { display: none !important; }
.support-chat-typing-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ecfdf5; font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0.03em;
}
.support-chat-typing-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.support-chat-typing-name {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #6ee7b7;
}
.support-chat-typing-line {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text2);
}
.support-chat-typing-dots { display: inline-flex; gap: 3px; align-items: center; }
.support-chat-typing-dots span {
  width: 5px; height: 5px; border-radius: 50%; background: #34d399;
  animation: chatTypingDot 1.2s infinite ease-in-out;
}
.support-chat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.support-chat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes chatTypingDot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}
.viewer-form-delete {
  border-color: rgba(239,68,68,0.45) !important;
  color: #fca5a5 !important;
}
.viewer-form-delete:hover { background: rgba(239,68,68,0.12) !important; }
.kids-home-loading .kids-hero-skeleton { min-height: 360px; }
.kids-home-loading .kids-hero-skeleton .hero-bg { min-height: 360px; }
.support-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.14), rgba(15, 23, 42, 0.2));
  border-bottom: 1px solid var(--border);
}
.support-chat-header strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.support-chat-header p {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.support-chat-header-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #86efac;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.support-chat-profile {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(5,150,105,0.08));
  border: 1px solid rgba(52,211,153,0.28);
  margin-bottom: 4px;
}
.support-chat-profile-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ecfdf5; font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.support-chat-profile-body {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  font-size: 11px; color: var(--text2); line-height: 1.45;
}
.support-chat-profile-body strong {
  font-size: 13px; color: #6ee7b7; font-weight: 700;
}
.support-chat-profile-body span { display: block; }
.support-chat-author { white-space: normal; line-height: 1.35; }
.support-chat-close {
  background: none; border: none; color: var(--text2);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.support-chat-messages {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
}
.support-chat-empty { color: var(--text2); font-size: 13px; text-align: center; padding: 24px 12px; }
.support-chat-bubble {
  max-width: 88%; padding: 10px 12px; border-radius: 12px; font-size: 13px;
}
.support-chat-bubble p { margin: 0 0 4px; white-space: pre-wrap; word-break: break-word; }
.support-chat-bubble time { font-size: 10px; color: var(--text2); opacity: 0.75; }
.support-chat-bubble.is-user time { text-align: right; display: block; }
.support-chat-form {
  padding: 12px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px; background: var(--surface);
}
.support-chat-form input,
.support-chat-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface2); color: var(--text); padding: 10px 12px; font-size: 13px;
}
.support-chat-send { width: 100%; margin-top: 4px; }
.profile-viewer-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.profile-viewer-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2);
}
.profile-viewer-item strong { display: block; font-size: 14px; }
.profile-viewer-item span { display: block; font-size: 12px; color: var(--text2); margin-top: 2px; }
.profile-viewer-locked { font-size: 11px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.04em; }
.home-loading .hero-skeleton { min-height: 580px; position: relative; overflow: hidden; border-radius: 0; margin-bottom: 8px; }
.home-loading .hero-skeleton .hero-bg { width: 100%; height: 100%; min-height: 580px; }
@media (max-width: 900px) {
  .home-loading .hero-skeleton,
  .home-loading .hero-skeleton .hero-bg { min-height: 420px; }
}
@media (max-width: 600px) {
  .home-loading .hero-skeleton,
  .home-loading .hero-skeleton .hero-bg { min-height: 360px; }
}

.nav-avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28); display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 12px; font-weight: 700;
  text-decoration: none; flex-shrink: 0; cursor: pointer; padding: 0;
  box-shadow: 0 0 0 2px rgba(31, 156, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-avatar:hover,
.nav-avatar-menu.is-open .nav-avatar {
  transform: scale(1.04);
  box-shadow: 0 0 0 3px rgba(31, 156, 255, 0.3);
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-avatar-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 130;
}
.nav-avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(10, 14, 24, 0.98);
  border: 1px solid var(--border2);
  box-shadow: 0 20px 48px rgba(0,0,0,0.55);
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: kwMenuIn 0.16s ease;
}
.nav-avatar-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 12px;
  left: 12px;
  height: 8px;
}
@keyframes kwMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-avatar-dropdown[hidden] { display: none !important; }
.nav-avatar-dropdown-label {
  padding: 4px 10px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}
.nav-avatar-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--border);
}
.nav-avatar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-avatar-item-icon {
  width: 18px;
  text-align: center;
  opacity: 0.75;
  font-size: 12px;
}
.nav-avatar-item:hover {
  background: var(--accent-soft);
  color: #fff;
}
.nav-avatar-item--danger {
  color: #fca5a5;
}
.nav-avatar-item--danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}
.notif-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.home-rail {
  padding-top: 4px;
  padding-bottom: 20px;
  background: transparent;
}
.home-page {
  padding-bottom: 32px;
}
.home-rails {
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.home-rail-head {
  margin-bottom: 12px;
}
.home-rail-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.home-rail .section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.home-rail .section-title::before {
  height: 18px;
  width: 3px;
}
.home-rail-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  white-space: nowrap;
}
.home-rail-track {
  padding-bottom: 6px;
  gap: 14px;
  scrollbar-width: none;
}
.home-rail-track::-webkit-scrollbar { display: none; }
/* Exactly 6 posters visible across the home category row on desktop */
.home-rail:not(.home-rail--continue) .movie-card {
  flex: 0 0 calc((100% - 70px) / 6);
  width: calc((100% - 70px) / 6);
  max-width: none;
  transition: transform 0.2s ease;
}
.home-rail .movie-card:hover {
  transform: none;
  z-index: auto;
}
.home-rail:not(.home-rail--continue) .movie-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 160 / 228;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 32px rgba(0,0,0,0.4);
  border-radius: 8px;
}
.home-rail .badge-vj {
  font-size: 12px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.88);
  color: #c5d8f5;
}

.flat-catalog {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}
.flat-catalog-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 36px 28px;
  margin-bottom: 28px;
  border: 1px solid var(--border2);
  background:
    radial-gradient(ellipse 70% 120% at 50% -20%, rgba(31,156,255,0.28), transparent 55%),
    linear-gradient(160deg, rgba(18,24,38,0.95), rgba(8,12,22,0.98));
  text-align: center;
}
.flat-catalog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.flat-catalog-hero-glow {
  position: absolute;
  inset: -20% 20% auto;
  height: 160px;
  background: radial-gradient(circle, rgba(91,140,255,0.28), transparent 70%);
  pointer-events: none;
}
.flat-catalog-kicker {
  position: relative;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93c5fd;
}
.flat-catalog-hero h1 {
  position: relative;
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.flat-catalog-lead {
  position: relative;
  margin: 12px auto 0;
  max-width: 480px;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.6;
}
.flat-catalog-grid {
  gap: 16px;
}
.flat-catalog-more {
  min-width: 180px;
}

.kw-welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.kw-welcome-modal.is-visible { opacity: 1; }
.kw-welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 14, 0.72);
  backdrop-filter: blur(8px);
}
.kw-welcome-card {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 28px 26px 24px;
  border-radius: 22px;
  border: 1px solid rgba(148,163,184,0.2);
  background:
    radial-gradient(circle at 15% 0%, rgba(31,156,255,0.28), transparent 45%),
    linear-gradient(165deg, #121826, #0a0f1a 70%);
  box-shadow: 0 28px 80px rgba(0,0,0,0.55);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
}
.kw-welcome-modal.is-visible .kw-welcome-card {
  transform: translateY(0) scale(1);
}
.kw-welcome-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text2);
  font-size: 14px;
  cursor: pointer;
}
.kw-welcome-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.kw-welcome-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31,156,255,0.35);
  background: rgba(31,156,255,0.12);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kw-welcome-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.kw-welcome-card h2 span {
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.kw-welcome-card > p {
  margin: 12px 0 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.55;
}
.kw-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
body.kw-welcome-open { overflow: hidden; }

.section-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.section-load-more {
  white-space: nowrap;
}
.catalog-page {
  padding: 28px 0 48px;
}
.catalog-page-head {
  margin-bottom: 28px;
  max-width: 720px;
}
.catalog-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.catalog-page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.catalog-lead {
  color: var(--text2);
  font-size: 15px;
  line-height: 1.55;
}
.catalog-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
}
.profile-danger-card {
  border-color: rgba(239, 68, 68, 0.28) !important;
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.08), transparent 55%) !important;
}
.profile-danger-pill {
  color: #fca5a5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-user-card.deleted {
  opacity: 0.78;
  border-color: rgba(239, 68, 68, 0.35);
}

@media (max-width: 900px) {
  .home-rail:not(.home-rail--continue) .movie-card {
    flex: 0 0 calc((100% - 42px) / 4);
    width: calc((100% - 42px) / 4);
  }
}
@media (max-width: 600px) {
  .flat-catalog { padding: 12px 16px 40px; }
  .flat-catalog-hero { padding: 22px 18px; }
  .home-rail:not(.home-rail--continue) .movie-card {
    flex: 0 0 calc((100% - 28px) / 3);
    width: calc((100% - 28px) / 3);
  }
  .home-rail:not(.home-rail--continue) .movie-thumb { aspect-ratio: 140 / 200; }
  .kw-welcome-actions { flex-direction: column; }
  .kw-welcome-actions .btn { width: 100%; justify-content: center; }
}

.profile-avatar-upload { position: relative; overflow: visible; }
.profile-avatar-upload .profile-avatar-img,
.profile-avatar-upload img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-avatar-change {
  position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--accent); color: #fff; display: flex;
  align-items: center; justify-content: center; cursor: pointer; font-size: 14px;
  border: 2px solid var(--bg);
}

.comments-section { margin-top: 36px; }
.comments-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.comment-item {
  display: flex; gap: 12px; padding: 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
}
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
  overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; font-size: 12px; color: var(--text2); }
.comment-meta strong { color: var(--text); font-size: 14px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.comment-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface2); color: var(--text); padding: 12px; resize: vertical;
}
.comments-empty, .comments-loading, .comments-signin-hint { color: var(--text2); font-size: 14px; }

.legal-page { max-width: 860px; margin: 0 auto; padding: 32px 20px 64px; }
.legal-page-head h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal-page-sub { color: var(--text2); margin-bottom: 24px; }
.legal-page-body { line-height: 1.7; color: var(--text); }
.legal-page-body h1, .legal-page-body h2, .legal-page-body h3 { margin: 1.4em 0 0.6em; }
.legal-page-body p { margin: 0 0 1em; }

.watch-page { display: flex; flex-direction: column; }
.watch-inline-player:empty {
  display: none;
}
.watch-inline-player {
  width: 100%;
  background: #000;
  border-bottom: 1px solid var(--border);
}
.watch-inline-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.92);
  color: #fff;
}
.watch-inline-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watch-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.player-cast-launcher,
.watch-inline-cast-launcher,
.watch-inline-fs {
  --connected-color: #e50914;
  --disconnected-color: #fff;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  cursor: pointer;
}
.watch-inline-fs {
  color: #fff;
  font-size: 16px;
  line-height: 1;
  padding: 6px 10px;
  width: auto;
  height: auto;
}
.watch-inline-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.watch-inline-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.watch-page.watch-playing .detail-hero,
.watch-page.watch-playing #watch-detail-hero,
.watch-page.watch-playing .detail-body {
  display: none;
}
.watch-page.watch-playing {
  min-height: 56vw;
}
.watch-page.watch-playing .watch-inline-player {
  flex: 1;
  min-height: calc(100vh - 80px);
}
.watch-page.watch-playing .watch-inline-video-wrap {
  aspect-ratio: auto;
  height: calc(100vh - 80px);
  max-height: 100vh;
}
.watch-page.watch-playing .watch-inline-video-wrap video {
  height: 100%;
  object-fit: contain;
}
.watch-page.watch-playing .detail-body {
  margin-top: 0;
}
.detail-body { padding-top: 24px; }

/* ── App download (website only) ─────────────────────────────────────────── */
.nav-profile-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-app-downloads {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-app-downloads[hidden] {
  display: none !important;
}
.nav-username {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: -0.01em;
  flex-shrink: 1;
}
.nav-app-download {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(160deg, rgba(24, 30, 48, 0.95), rgba(12, 14, 24, 0.98));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.nav-app-download--mobile {
  background: linear-gradient(160deg, rgba(61, 142, 248, 0.22), rgba(12, 14, 24, 0.98));
  border-color: rgba(61, 142, 248, 0.35);
}
.nav-app-download--tv {
  background: linear-gradient(160deg, rgba(108, 99, 255, 0.22), rgba(12, 14, 24, 0.98));
  border-color: rgba(108, 99, 255, 0.35);
}
.nav-app-download:hover,
.nav-app-download:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
}
.nav-app-download--mobile:hover,
.nav-app-download--mobile:focus-visible {
  border-color: rgba(61, 142, 248, 0.55);
}
.nav-app-download--tv:hover,
.nav-app-download--tv:focus-visible {
  border-color: rgba(108, 99, 255, 0.55);
}
.nav-app-download-img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
.nav-app-download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-app-download-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text2);
  line-height: 1;
}
.nav-app-download-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #fff;
  background: rgba(15, 18, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}
.nav-app-download-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(15, 18, 28, 0.96);
}
.nav-app-download:hover .nav-app-download-tooltip,
.nav-app-download:focus-visible .nav-app-download-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.nav-play-btn,
.nav-play-icon {
  display: none !important;
}
.nav-avatar-guest {
  display: none !important;
}
body.app-download-open {
  overflow: hidden;
}
.app-download-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.app-download-modal[hidden] {
  display: none !important;
}
.app-download-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(8px);
}
.app-download-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 28px 24px 24px;
  border-radius: 20px;
  border: 1px solid var(--border2);
  background: linear-gradient(180deg, rgba(18, 22, 34, 0.98), rgba(10, 12, 20, 0.98));
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.app-download-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--text2);
  background: rgba(255,255,255,0.04);
}
.app-download-close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}
.app-download-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #34a853, #1f8f45);
  box-shadow: 0 12px 30px rgba(52, 168, 83, 0.28);
}
.app-download-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.app-download-lead {
  margin: 0 0 18px;
  color: var(--text2);
  line-height: 1.55;
  font-size: 14px;
}
.app-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #3d8ef8, #6c63ff);
  box-shadow: 0 10px 24px rgba(61, 142, 248, 0.28);
  transition: transform var(--transition), box-shadow var(--transition);
}
.app-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(61, 142, 248, 0.34);
}
.app-download-btn-icon {
  display: inline-flex;
}
.app-download-note {
  margin: 14px 0 0;
  color: var(--text3);
  font-size: 12px;
  line-height: 1.5;
}
.app-download-thanks-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
}
.app-download-done {
  margin-top: 18px;
  width: 100%;
}
@media (max-width: 720px) {
  .nav-profile-cluster {
    gap: 10px;
  }
  .nav-username {
    max-width: 72px;
    font-size: 12px;
  }
  .nav-app-downloads {
    gap: 6px;
  }
  .nav-app-download {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .nav-app-download-img {
    width: 20px;
    height: 20px;
  }
  .nav-app-download-label {
    font-size: 8px;
  }
  .nav-app-download-tooltip {
    display: none;
  }
  .social-proof-stack {
    right: 12px;
    bottom: 72px;
    width: min(300px, calc(100vw - 24px));
  }
}

/* ── Home social proof (bottom-right) ─────────────────────────────────────── */
.social-proof-stack {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}
.social-proof-stack[hidden] {
  display: none !important;
}
.social-proof-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 20, 34, 0.97), rgba(10, 14, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(14px);
  transform: translate3d(120%, 0, 0);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, box-shadow 0.35s ease;
  will-change: transform, opacity;
}
.social-proof-card.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
.social-proof-card.is-leaving {
  transform: translate3d(120%, 0, 0);
  opacity: 0;
}
.social-proof-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(251, 191, 36, 0.35);
  background: #1a1a2e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.social-proof-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
  text-align: left;
}
.social-proof-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.social-proof-action {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.4;
}
.social-proof-time {
  font-size: 10px;
  color: var(--text3);
  margin-top: 1px;
  letter-spacing: 0.02em;
}
.social-proof-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
}
html[data-theme="light"] .social-proof-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* ── PWA install (iOS / macOS / Windows) ──────────────────────────────────── */
/* Install App nav tab + floating banner disabled — use top-right App icon for APK */
#pwa-install-nav,
.pwa-install-banner {
  display: none !important;
}

.nav-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

body.pwa-install-banner-visible {
  padding-bottom: 0;
}

.pwa-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(5, 6, 10, 0) 0%, rgba(5, 6, 10, 0.92) 18%, rgba(5, 6, 10, 0.98) 100%);
  pointer-events: none;
}

.pwa-install-banner[hidden] {
  display: none !important;
}

.pwa-install-banner-inner {
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(19, 23, 42, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.pwa-install-banner-icon,
.pwa-install-modal-icon {
  flex: 0 0 auto;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  object-fit: contain;
}

.pwa-install-banner-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.pwa-install-banner-copy strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.pwa-install-banner-copy p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.35;
}

.pwa-install-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

body.pwa-install-open {
  overflow: hidden;
}

.pwa-install-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pwa-install-modal[hidden] {
  display: none !important;
}

.pwa-install-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.pwa-install-modal-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 28px 28px 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card, #131729);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.pwa-install-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
}

.pwa-install-modal-title {
  margin: 12px 0 8px;
  font-size: 24px;
}

.pwa-install-modal-lead {
  margin: 0 0 18px;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
}

.pwa-install-modal-steps {
  text-align: left;
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.55;
}

.pwa-install-modal-steps li + li {
  margin-top: 10px;
}

.pwa-install-modal-done {
  width: 100%;
}

@media (max-width: 720px) {
  .pwa-install-banner-inner {
    flex-wrap: wrap;
  }
  .pwa-install-banner-actions {
    width: 100%;
  }
  .pwa-install-banner-actions .btn {
    flex: 1 1 auto;
  }
  body.pwa-install-banner-visible {
    padding-bottom: 128px;
  }
}

/* ── Maintenance page ─────────────────────────────────────────────────────── */
body.maintenance-route #navbar,
body.maintenance-route #site-footer,
body.maintenance-route .nav-mobile-drawer,
body.maintenance-route .social-proof-stack,
body.maintenance-route .pwa-install-banner,
body.maintenance-route #toast,
html.maintenance-route #navbar,
html.maintenance-route #site-footer {
  display: none !important;
}
body.maintenance-route #app {
  padding-top: 0;
  min-height: 100vh;
  min-height: 100dvh;
}
body.maintenance-route {
  overflow-x: hidden;
  background: #06080f;
}
.kwm-page {
  --kwm-ink: #f4f7fb;
  --kwm-muted: #a8b4c7;
  --kwm-accent: #14b8a6;
  --kwm-rose: #e11d48;
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.5vh, 28px) clamp(14px, 3vw, 36px);
  color: var(--kwm-ink);
  overflow: hidden;
  font-family: "Outfit", "Segoe UI", sans-serif;
}
.kwm-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(20, 184, 166, 0.22), transparent 58%),
    radial-gradient(780px 480px at 92% 4%, rgba(225, 29, 72, 0.2), transparent 52%),
    linear-gradient(160deg, #05070d 0%, #0a1020 46%, #0d1526 100%);
}
.kwm-bg-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.kwm-bg-film {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.kwm-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: kwm-orb 12s ease-in-out infinite alternate;
}
.kwm-bg-orb-a {
  width: min(46vw, 420px);
  height: min(46vw, 420px);
  left: -8%;
  top: 18%;
  background: rgba(20, 184, 166, 0.28);
}
.kwm-bg-orb-b {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  right: -6%;
  bottom: 8%;
  background: rgba(225, 29, 72, 0.24);
  animation-delay: -4s;
}
@keyframes kwm-orb {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -22px, 0) scale(1.08); }
}
.kwm-glass {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(92dvh, 680px);
  text-align: left;
  padding: clamp(22px, 3.2vw, 40px);
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04) 42%, rgba(8, 12, 22, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  animation: kwm-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
}
.kwm-glass.kwm-landscape {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(20px, 3.5vw, 44px);
  align-items: center;
}
.kwm-col {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.kwm-col-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.kwm-col-time {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kwm-glass-shine {
  position: absolute;
  inset: 0 auto auto 0;
  width: 140%;
  height: 42%;
  left: -20%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}
@keyframes kwm-rise {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.kwm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  animation: kwm-rise 0.8s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.kwm-brand-name {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.kwm-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0f766e 48%, #e11d48);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 28px rgba(20, 184, 166, 0.28);
  animation: kwm-pulse 2.8s ease-in-out infinite;
}
@keyframes kwm-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 28px rgba(20, 184, 166, 0.28); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 16px 36px rgba(225, 29, 72, 0.28); }
}
.kwm-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kwm-accent);
}
.kwm-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #fff;
  max-width: 16ch;
}
.kwm-copy {
  margin: 0 0 16px;
  max-width: 46ch;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.6;
  color: var(--kwm-muted);
}
.kwm-clock-card {
  margin: 0 0 14px;
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2vw, 24px) 14px;
  border-radius: 18px;
  text-align: center;
  background: rgba(6, 10, 20, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.kwm-clock-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f8da3;
  margin-bottom: 8px;
}
.kwm-digital {
  font-family: "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, monospace;
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 28px rgba(20, 184, 166, 0.28);
  font-variant-numeric: tabular-nums;
}
.kwm-clock-date {
  margin-top: 10px;
  font-size: 13px;
  color: var(--kwm-muted);
}
.kwm-reopen {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  text-align: center;
}
.kwm-reopen-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7f8da3;
}
.kwm-reopen strong {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  color: #e8eef8;
}
.kwm-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.kwm-unit {
  padding: 12px 6px;
  border-radius: 14px;
  text-align: center;
  background: rgba(8, 12, 22, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.kwm-unit b {
  display: block;
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.kwm-unit span {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f8da3;
}
.kwm-status {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--kwm-muted);
  max-width: 42ch;
}
.kwm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.kwm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.kwm-btn.solid {
  color: #041014;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.28);
}
.kwm-btn.ghost {
  color: #e8eef8;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.kwm-btn:hover {
  transform: translateY(-2px);
}
.kwm-btn.solid:hover {
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.36);
}

/* Keep landscape side-by-side whenever width allows */
@media (max-width: 860px) {
  .kwm-glass.kwm-landscape {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 20px;
    max-height: none;
  }
  .kwm-title { max-width: none; font-size: clamp(22px, 4.5vw, 32px); }
  .kwm-digital { font-size: clamp(30px, 7vw, 44px); }
}

/* True portrait phones: still compact stack, fit viewport */
@media (max-width: 640px), (orientation: portrait) and (max-width: 900px) {
  .kwm-page {
    max-height: none;
    overflow-y: auto;
    padding: 16px 12px 24px;
  }
  .kwm-glass.kwm-landscape {
    grid-template-columns: 1fr;
    width: min(560px, 100%);
    max-height: none;
    text-align: center;
    padding: 22px 16px 24px;
  }
  .kwm-col-copy {
    align-items: center;
  }
  .kwm-title {
    max-width: 14ch;
  }
  .kwm-copy,
  .kwm-status {
    margin-left: auto;
    margin-right: auto;
  }
  .kwm-actions {
    justify-content: center;
    width: 100%;
  }
  .kwm-btn { flex: 1 1 auto; min-width: 140px; }
}

/* Prefer landscape layout on phones held sideways */
@media (orientation: landscape) and (max-height: 520px) {
  .kwm-page {
    padding: 10px 14px;
    max-height: 100dvh;
    overflow: hidden;
  }
  .kwm-glass.kwm-landscape {
    grid-template-columns: 1.1fr 0.9fr;
    width: min(960px, 100%);
    max-height: calc(100dvh - 20px);
    padding: 16px 18px;
    gap: 16px;
    border-radius: 20px;
  }
  .kwm-brand { margin-bottom: 8px; }
  .kwm-logo { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
  .kwm-brand-name { font-size: 20px; }
  .kwm-kicker { margin-bottom: 4px; font-size: 10px; }
  .kwm-title { margin-bottom: 6px; font-size: clamp(20px, 3.8vh, 28px); max-width: none; }
  .kwm-copy { margin-bottom: 8px; font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .kwm-status { margin-bottom: 10px; font-size: 12px; }
  .kwm-btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .kwm-clock-card { margin-bottom: 8px; padding: 10px 12px 8px; }
  .kwm-digital { font-size: clamp(28px, 8vh, 40px); }
  .kwm-clock-date { margin-top: 4px; font-size: 11px; }
  .kwm-reopen { margin-bottom: 8px; }
  .kwm-reopen strong { font-size: 14px; }
  .kwm-unit { padding: 8px 4px; border-radius: 10px; }
  .kwm-unit b { font-size: clamp(16px, 4.5vh, 22px); }
  .kwm-unit span { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .kwm-glass,
  .kwm-brand,
  .kwm-logo,
  .kwm-bg-orb {
    animation: none !important;
  }
}

/* Episode rows inside the details dialog */
.nf-ep-list { display: grid; gap: 8px; }
.nf-ep-row {
  display: grid;
  grid-template-columns: 36px 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
}
.nf-ep-row:hover,
.nf-ep-row.is-current {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
.nf-ep-row .nf-ep-num {
  font-size: 18px;
  font-weight: 800;
  color: #a3a3a3;
  text-align: center;
}
.nf-ep-row:hover .nf-ep-num,
.nf-ep-row.is-current .nf-ep-num { color: #fff; }
.nf-ep-row .nf-ep-thumb {
  width: 160px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}
.nf-ep-copy { min-width: 0; }
.nf-ep-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.nf-ep-play-btn,
.nf-ep-discuss,
.nf-ep-dl,
.kw-popup-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.22);
  background: #2a2a2a;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.nf-ep-play-btn,
.kw-popup-play {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.nf-ep-play-btn:hover,
.kw-popup-play:hover { background: #e5e5e5; }
.nf-ep-discuss:hover,
.nf-ep-dl:hover:not(:disabled),
.kw-popup-download:hover:not(:disabled) {
  border-color: #fff;
  background: #3a3a3a;
}
.nf-ep-dl:disabled,
.kw-popup-download:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 720px) {
  .nf-ep-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }
  .nf-ep-row .nf-ep-thumb { grid-column: 2; width: 100%; max-width: 220px; }
  .nf-ep-copy { grid-column: 1 / -1; }
}

/* -- Details popup modal (exact MovieDetailsModal from karawatch design) --- */
body.kw-popup-open { overflow: hidden; }
body.player-open .kw-popup-root,
.kw-popup-root[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.kw-popup-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.kw-popup-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
}
.kw-popup-card {
  position: relative;
  z-index: 2;
  pointer-events: auto;
  width: 100%;
  max-width: 56rem; /* max-w-4xl */
  margin: 0 auto 40px;
  background: #181818;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
  overflow: hidden;
  animation: kwPopupIn 0.35s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes kwPopupIn {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.kw-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #181818;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.kw-popup-close:hover { background: #262626; }
.kw-popup-hero {
  position: relative;
  width: 100%;
  height: 500px;
  background: #171717;
}
.kw-popup-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}
.kw-popup-hero-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #181818 0%, rgba(24,24,24,0.4) 45%, transparent 70%),
    linear-gradient(to right, rgba(24,24,24,0.8) 0%, transparent 55%);
}
.kw-popup-hero-content {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 32px;
  z-index: 2;
}
.kw-popup-title {
  margin: 0 0 22px;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: 0 8px 30px rgba(0,0,0,0.55);
}
.kw-popup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.kw-popup-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 32px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.kw-popup-play:hover:not(:disabled) {
  background: #e5e5e5;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
.kw-popup-play:disabled { opacity: 0.45; cursor: not-allowed; }

/* Exact download button from design: dark chip + red icon + red?orange gradient label */
.kw-popup-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(38,38,38,0.8);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.kw-popup-download .kw-dl-icon {
  color: #ef4444;
  flex-shrink: 0;
}
.kw-popup-download:hover:not(:disabled) .kw-dl-icon { color: #f87171; }
.kw-popup-download .kw-dl-label {
  background: linear-gradient(90deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.kw-popup-download:hover:not(:disabled) {
  background: #404040;
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.05);
}
.kw-popup-download:disabled { opacity: 0.4; cursor: not-allowed; }

.kw-popup-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(42,42,42,0.6);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.kw-popup-circle:hover {
  border-color: #fff;
  background: #2a2a2a;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
}
.kw-popup-circle.is-on {
  border-color: #fff;
  color: #fff;
}
.kw-popup-circle--party {
  border-color: rgba(168,85,247,0.5);
  background: rgba(147,51,234,0.2);
  color: #c084fc;
}
.kw-popup-circle--party:hover {
  border-color: #c084fc;
  background: rgba(147,51,234,0.4);
  color: #fff;
  box-shadow: 0 0 15px rgba(168,85,247,0.4);
}
.kw-popup-circle--flag {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #a3a3a3;
  font-size: 15px;
}
.kw-popup-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(38,38,38,0.75);
  color: #e5e5e5;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.kw-popup-body {
  padding: 16px 48px 64px;
}
.kw-popup-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr);
  gap: 48px;
  margin-bottom: 28px;
}
.kw-popup-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #d4d4d4;
}
.kw-popup-match { color: #4ade80; font-weight: 800; }
.kw-popup-box {
  display: inline-flex;
  padding: 2px 6px;
  border: 1px solid #525252;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #d4d4d4;
}
.kw-popup-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.kw-popup-critics {
  background: rgba(38,38,38,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.kw-popup-critics-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}
.kw-popup-critics-top span {
  color: #d4d4d4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kw-popup-critics-top b { color: #fff; font-size: 20px; }
.kw-popup-critics-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #404040;
  overflow: hidden;
}
.kw-popup-critics-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(52,211,153,0.5);
}
.kw-popup-critics p {
  margin: 12px 0 0;
  color: #a3a3a3;
  font-size: 12px;
  font-style: italic;
}
.kw-popup-desc {
  margin: 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.65;
}
.kw-popup-aside {
  display: grid;
  gap: 14px;
  padding-top: 4px;
  font-size: 14px;
  color: #a3a3a3;
}
.kw-popup-link {
  color: #d4d4d4;
  cursor: pointer;
}
.kw-popup-link:hover { color: #fff; text-decoration: underline; }
.kw-popup-loading,
.kw-popup-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  background: #181818;
}
.kw-popup-page-shell {
  min-height: 60vh;
  background: #050505;
}

@media (max-width: 900px) {
  .kw-popup-root { padding: 16px 10px 48px; }
  .kw-popup-hero { height: 360px; }
  .kw-popup-hero-content { left: 20px; right: 20px; bottom: 20px; }
  .kw-popup-body { padding: 12px 20px 40px; }
  .kw-popup-grid { grid-template-columns: 1fr; gap: 20px; }
  .kw-popup-title { font-size: 2rem; margin-bottom: 14px; }
  .kw-popup-play,
  .kw-popup-download { font-size: 15px; padding: 9px 18px; }
}

/* Catalog headers — Movies, Series, New Uploads */
.kw-catalog-hdr {
  margin: 0 auto 22px;
  padding: 12px 16px 0;
  max-width: 1400px;
}
.kw-catalog-page.flat-catalog .kw-catalog-hdr,
.kw-catalog-page .kw-catalog-hdr,
.new-page .kw-catalog-hdr {
  margin-top: 4px;
}
.kw-catalog-hdr-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 50%, rgba(12,12,14,0.55) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 28px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.kw-catalog-hdr-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #dc2626, #f43f5e, #f97316);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.45);
}
.kw-catalog-hdr-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-left: 6px;
  background: linear-gradient(145deg, rgba(220,38,38,0.22), rgba(249,115,22,0.12));
  border: 1px solid rgba(244, 63, 94, 0.28);
  color: #fb7185;
}
.kw-catalog-page .kw-catalog-hdr-icon {
  width: 20px;
  height: 20px;
  max-width: 20px;
}
.kw-catalog-hdr-copy { min-width: 0; flex: 1; }
.kw-catalog-page .kw-catalog-hdr-eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 146, 60, 0.95);
}
.kw-catalog-page .kw-catalog-hdr-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
}
.kw-catalog-page .kw-catalog-hdr-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #a3a3a3;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .kw-catalog-hdr { padding: 8px 12px 0; margin-bottom: 16px; }
  .kw-catalog-hdr-bar { padding: 12px 14px; gap: 12px; border-radius: 12px; }
  .kw-catalog-hdr-mark { width: 36px; height: 36px; border-radius: 10px; }
  .kw-catalog-page .kw-catalog-hdr-title { font-size: 1.2rem; }
}

/* Home banner chips: VIP, year, match, VJ */
.kw-hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.kw-hero-vip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eab308, #d97706);
  color: #111;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}
.kw-hero-vip .kw-icon,
.kw-hero-chip .kw-icon {
  width: 12px;
  height: 12px;
  display: block;
}
.kw-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.kw-hero-chip--match {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
}
.kw-hero-chip-icon {
  display: inline-flex;
  align-items: center;
}
