/* ==========================================================================
   CINEMASTORE 2026 — MODERN LIGHT DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --border-subtle: #e2e8f0;
  --border-accent: rgba(37, 99, 235, 0.35);
  --border-glow: rgba(37, 99, 235, 0.2);
  
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --accent-cyan: #0284c7;
  --accent-gold: #d97706;
  --accent-green: #059669;
  --accent-red: #dc2626;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.12);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.bg-main {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.05), transparent 50%);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   TOP NAVIGATION NAVBAR
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--border-subtle); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  height: 72px;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Brand Logo */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 10px rgba(77, 148, 255, 0.4));
}

.brand-text {
  color: #0f172a;
}

.brand-text span {
  color: var(--primary);
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.88rem;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: #f1f5f9;
}

.nav-link.active {
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.15);
}

/* Instant Quicksearch */
.nav-search-wrap {
  position: relative;
  flex: 1;
  max-width: 240px;
  min-width: 120px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff; border: 1px solid #cbd5e1;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  gap: 6px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 12px var(--primary-glow);
  background: var(--bg-surface);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.9rem;
  width: 100%;
}

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1050;
}

.search-dropdown.show {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: rgba(47, 123, 240, 0.15);
}

.search-thumb {
  width: 36px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.search-item-info h4 {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.search-item-info span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* User Pill & Auth */
.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff; border: 1px solid #cbd5e1;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.badge-admin {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.btn-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
  transition: var(--transition);
}

.btn-logout:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 12px 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link.active {
  color: var(--primary-light);
  font-weight: 600;
}

.mobile-user-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-logout-mobile {
  color: #ef4444;
  font-weight: 600;
}

/* ==========================================================================
   AUTH PAGES (LOGIN & REGISTER)
   ========================================================================== */

.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px);
  padding: 40px 16px;
  position: relative;
}

.auth-wrapper::before {
  content: "";
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(47, 123, 240, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 42px 34px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(37, 99, 235, 0.3));
}

.auth-header h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.auth-header h2 span {
  color: var(--primary);
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.badge-auth-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 123, 240, 0.12);
  border: 1px solid rgba(77, 148, 255, 0.3);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 20px;
  text-align: center;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-wrap .icon {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  pointer-events: none;
  opacity: 0.7;
}

.input-icon-wrap input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px 12px 44px;
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.input-icon-wrap input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 16px var(--primary-glow);
  background: var(--bg-surface);
}

.btn-submit {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(47, 123, 240, 0.65);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary-light);
  font-weight: 700;
  margin-left: 4px;
  transition: var(--transition);
}

.auth-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 123, 240, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f1f5f9;
  color: var(--text-main);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.badge-type-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-movie {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.pill-series {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-imdb-pill {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid #fde68a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   MAIN CONTENT WRAPPER
   ========================================================================== */

.main-content {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

/* ==========================================================================
   HERO BANNER (HOME)
   ========================================================================== */

.hero-banner {
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center top;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  margin-bottom: 32px;
  position: relative;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.hero-content {
  max-width: 680px;
  z-index: 2;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.badge-type {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.badge-cat {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.badge-year {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.badge-imdb {
  background: rgba(245, 197, 24, 0.2);
  color: #f5c518;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 197, 24, 0.35);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.hero-orig-title {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-style: italic;
}

.hero-desc {
  color: #e2e8f0;
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transition: var(--transition);
}

.btn-hero-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.7);
}

.btn-hero-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-hero-info:hover {
  background: #ffffff;
  color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-info:hover {
  background: rgba(30, 41, 59, 0.9);
}

/* ==========================================================================
   STATS BAR (HOME)
   ========================================================================== */

.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.stat-lbl {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 38px;
  background: var(--border-subtle);
}

.stat-actions {
  display: flex;
  gap: 12px;
}

.btn-stat-action {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(47, 123, 240, 0.15);
  color: var(--primary-light);
  border: 1px solid var(--border-accent);
  transition: var(--transition);
}

.btn-stat-action:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-stat-req {
  background: rgba(245, 197, 24, 0.12);
  color: var(--accent-gold);
  border-color: rgba(245, 197, 24, 0.25);
}

.btn-stat-req:hover {
  background: var(--accent-gold);
  color: #000000;
}

/* ==========================================================================
   CONTENT SECTIONS & GRIDS
   ========================================================================== */

.content-section {
  margin-bottom: 44px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  font-size: 1.4rem;
}

.section-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
}

.section-all-link {
  color: var(--primary-light);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
}

.section-all-link:hover {
  color: var(--primary-dark);
}

/* Movie Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.movie-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08), 0 0 15px rgba(47, 123, 240, 0.25);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f1f5f9;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .card-poster {
  transform: scale(1.05);
}

.card-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-dim);
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.btn-card-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 3px;
  box-shadow: 0 0 20px rgba(47, 123, 240, 0.8);
  transform: scale(0.85);
  transition: var(--transition);
}

.movie-card:hover .btn-card-play {
  transform: scale(1);
}

.card-badges-top {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge-year-corner {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.card-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.card-cat {
  color: var(--text-muted);
}

/* ==========================================================================
   BROWSE PAGE
   ========================================================================== */

.browse-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.browse-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}

.filter-controls-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.type-filter-group {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.type-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.type-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.sort-select {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  outline: none;
  font-size: 0.88rem;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--primary-light);
}

.active-filter-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(47, 123, 240, 0.12);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-clear-search {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.85rem;
}

.categories-scroll-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.cat-chip {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  white-space: nowrap;
  transition: var(--transition);
}

.cat-chip:hover {
  background: #eff6ff;
  color: var(--primary);
  border-color: #bfdbfe;
}

.cat-chip.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Pagination */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.page-link {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.page-link:hover {
  background: #eff6ff;
  color: var(--primary);
  border-color: #bfdbfe;
}

.page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.empty-state-box {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.empty-state-box h2 {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.empty-state-box p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.empty-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* ==========================================================================
   MOVIE DETAIL PAGE
   ========================================================================== */

.movie-detail-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.detail-backdrop {
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center 25%;
  padding: 60px 40px 32px 40px;
  border: 1px solid var(--border-subtle);
}

.backdrop-breadcrumb {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.backdrop-breadcrumb a {
  color: #cbd5e1;
}

.backdrop-breadcrumb a:hover {
  color: #ffffff;
}

.backdrop-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
}

.backdrop-orig-title {
  color: #94a3b8;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 16px;
}

.backdrop-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-cat-tag, .badge-year-tag, .badge-imdb-tag, .badge-views-tag {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.badge-imdb-tag {
  color: var(--accent-gold);
  border-color: rgba(245, 197, 24, 0.3);
}

/* ==========================================================================
   MOVIE DETAIL OVERVIEW & LINK SYSTEM (NO IFRAME PLAYER)
   ========================================================================== */

.movie-overview-card {
  display: flex;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.overview-poster-col {
  width: 220px;
  flex-shrink: 0;
}

.overview-poster-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
}

.overview-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--text-dim);
}

.overview-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.overview-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  font-size: 0.92rem;
}

.quick-meta-item {
  display: flex;
  align-items: center;
}

.meta-label {
  color: var(--text-dim);
  margin-right: 6px;
}

.meta-val {
  color: #0f172a;
}

.overview-story-box {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.story-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.story-paragraph {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.65;
}

.overview-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn-jump-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
  transition: var(--transition);
}

.btn-jump-links:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.65);
}

/* Link System Section */
.links-system-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.links-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.links-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.links-icon {
  font-size: 2.2rem;
}

.links-header h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
}

.links-subtitle {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.btn-add-link-pill {
  padding: 8px 18px;
}
/* Stream Servers Header & List System */
.stream-servers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 16px;
}

.stream-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.stream-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.stream-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stream-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.servers-count-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
}

.btn-toggle-add-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-toggle-add-link:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Stream Server Cards */
.stream-servers-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stream-server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
  flex-wrap: wrap;
}

.stream-server-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.server-ident-col {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 220px;
}

.server-idx-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--text-main);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-host-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-health-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.health-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.server-specs-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.specs-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-link-ep-chip {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.server-meta-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.server-action-col {
  flex-shrink: 0;
}

.btn-server-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
  text-decoration: none;
}

.btn-server-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.55);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.play-triangle {
  font-size: 0.75rem;
}

.play-arrow {
  font-size: 0.95rem;
  font-weight: 900;
}

/* Collapsible Add Link Drawer */
.add-link-drawer {
  margin-bottom: 24px;
}

.drawer-inner-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.08);
}

.drawer-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-icon {
  font-size: 1.8rem;
}

.drawer-title-group h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.drawer-title-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-close-drawer {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-drawer:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.form-actions-drawer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.btn-submit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: var(--transition);
}

.btn-submit-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.55);
}

/* Provider Pills (All 21 hosters high contrast light theme) */
.provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.prov-videa {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.prov-inda {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.prov-yt {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.prov-streamtape {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.prov-dood {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.prov-voe {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.prov-mixdrop {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.prov-streamwish {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.prov-filemoon {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.prov-vidmoly {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

.prov-upstream {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.prov-supervideo {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.prov-lulu {
  background: #fdf4ff;
  color: #a21caf;
  border: 1px solid #f0abfc;
}

.prov-wolf {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.prov-netu {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.prov-okru {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.prov-dailymotion {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.prov-mega {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.prov-gofile {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.prov-gdrive {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.prov-other {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
}

.prov-other {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Real-time host auto-detection badge */
.detected-host-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.detected-host-badge strong {
  color: #ffffff;
}

.link-meta-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}

/* Quality Badges */
.badge-link-quality {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 5px 11px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.badge-quality-dvd {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.badge-quality-dvd-mozis {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.badge-quality-cam {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.badge-quality-hdcam {
  background: #fefce8;
  color: #a16207;
  border: 1px solid #fef08a;
}

.badge-quality-bdrip {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.badge-quality-webrip {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Language Badges with Flags */
.badge-link-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 5px 12px;
  border-radius: 4px;
}

.badge-lang-hu {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-lang-en-hu {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-lang-en {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.badge-lang-hu-en {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.badge-lang-sub {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-lang-other {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.badge-link-label {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.link-date-added {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-left: auto;
}

.btn-open-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: var(--transition);
}

.btn-open-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.65);
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
}

.empty-links-box {
  text-align: center;
  padding: 48px 20px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
}

.empty-links-box .empty-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.empty-links-box h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-links-box p {
  color: #475569;
  max-width: 480px;
  margin: 0 auto 20px auto;
  font-size: 0.92rem;
}

/* Series Seasons Selector */
.seasons-selector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.seasons-header {
  margin-bottom: 16px;
}

.seasons-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.seasons-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.season-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.season-tab-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.season-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.season-pane {
  display: none;
}

.season-pane.active {
  display: block;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.episode-chip {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.episode-chip:hover {
  background: rgba(47, 123, 240, 0.15);
  border-color: var(--border-accent);
}

.episode-chip.active {
  background: var(--primary);
  border-color: var(--primary);
}

.ep-chip-num {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.episode-chip.active .ep-chip-num {
  color: #ffffff;
}

.ep-chip-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.episode-chip.active .ep-chip-count {
  color: rgba(255, 255, 255, 0.85);
}

/* Add Link Section */
.add-link-section {
  margin-bottom: 32px;
}

.seasons-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.season-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.season-tab-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.season-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.season-content-pane {
  display: none;
}

.season-content-pane.active {
  display: block;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.episode-btn {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.episode-btn:hover {
  background: rgba(47, 123, 240, 0.15);
  border-color: var(--border-accent);
}

.episode-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

.ep-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.episode-btn.active .ep-num {
  color: #ffffff;
}

.ep-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.episode-btn.active .ep-badge {
  color: rgba(255, 255, 255, 0.85);
}

/* Add Link Card */
.add-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.add-link-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.add-link-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* Info Column */
.info-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.movie-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.info-poster-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: #f1f5f9;
}

.info-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-dim);
}

.info-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.info-label {
  color: var(--text-dim);
}

.info-val {
  color: var(--text-main);
}

.text-gold {
  color: var(--accent-gold);
  font-weight: 700;
}

.info-story-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.story-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Related */
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.related-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.related-item:hover {
  background: #f1f5f9;
}

.related-thumb-wrap {
  width: 44px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.related-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-item-title {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.related-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   FORMS & UPLOAD PAGE
   ========================================================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #0f172a;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 12px var(--primary-glow);
  background: var(--bg-surface);
}

.form-row {
  display: flex;
  gap: 16px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* TMDB Box */
.tmdb-search-box-card {
  background: #f0f7ff; border: 1px solid #bfdbfe;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
}

.tmdb-search-inner {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.tmdb-icon {
  font-size: 2rem;
  padding-bottom: 8px;
}

.tmdb-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tmdb-input-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-light);
}

.btn-tmdb-search {
  padding: 10px 22px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  height: 42px;
}

.tmdb-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  max-height: 450px;
  overflow-y: auto;
  z-index: 1050;
}

.tmdb-dropdown.show {
  display: block;
}

.tmdb-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: var(--transition);
}

.tmdb-result-item:hover {
  background: rgba(47, 123, 240, 0.15);
}

.tmdb-thumb {
  width: 44px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.upload-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.card-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.section-hint {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.btn-submit-upload {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transition: var(--transition);
}

.btn-submit-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.6);
}

/* Upload Preview */
.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 96px;
}

.preview-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.preview-poster-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
  border: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.preview-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}

.preview-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-caption strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.preview-caption span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   REQUESTS PAGE
   ========================================================================== */

.requests-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.requests-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
}

.request-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 96px;
}

.form-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.btn-block {
  width: 100%;
}

.requests-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.list-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.sort-hint {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.requests-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.request-item-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.request-item-card:hover {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-color: var(--border-accent);
}

.btn-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  min-width: 48px;
}

.btn-vote:hover {
  background: rgba(47, 123, 240, 0.2);
  color: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-vote.voted {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 12px var(--primary-glow);
}

.vote-arrow {
  font-size: 0.75rem;
}

.vote-count {
  font-size: 1rem;
  font-weight: 800;
}

.req-main-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.req-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.req-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.req-year {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.badge-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-pending {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.status-process {
  background: rgba(47, 123, 240, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(47, 123, 240, 0.35);
}

.status-done {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.req-desc-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}

.req-footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-copy span {
  color: var(--primary-light);
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 1200px) {
  .nav-menu {
    gap: 3px;
  }
  .nav-link {
    padding: 5px 8px;
    font-size: 0.82rem;
    gap: 4px;
  }
  .nav-search-wrap {
    max-width: 180px;
    min-width: 100px;
  }
  .user-pill {
    padding: 4px 8px;
    gap: 6px;
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px) {
  .detail-main-layout {
    grid-template-columns: 1fr;
  }
  .upload-layout {
    grid-template-columns: 1fr;
  }
  .requests-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-search-wrap {
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 24px;
    min-height: 380px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .stats-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .stat-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 12px;
    gap: 8px;
  }
  .nav-brand {
    font-size: 1.1rem;
    gap: 8px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
  }
  .nav-user {
    gap: 6px;
  }
  .nav-user .nav-link {
    padding: 6px 8px;
    font-size: 0.82rem;
  }
  .nav-user .btn-primary {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
  }
  .auth-card {
    padding: 28px 18px;
  }
}

/* ==========================================================================
   RANK SYSTEM BADGES (ROLES)
   ========================================================================== */

.badge-rank {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-rank-admin {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.badge-rank-mod {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.badge-rank-uploader {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.badge-rank-vip {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #000000;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.badge-rank-user {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

.badge-rank-banned {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  text-decoration: line-through;
}

.btn-admin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(47, 123, 240, 0.15);
  border: 1px solid var(--border-accent);
  color: var(--primary-light);
  font-size: 1rem;
  transition: var(--transition);
}

.btn-admin-icon:hover {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 14px var(--primary-glow);
}

.nav-link-admin {
  color: #60a5fa !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   ADMIN PANEL LAYOUT & COMPONENTS
   ========================================================================== */

.admin-wrapper {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.admin-sidebar {
  width: 210px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: sticky;
  top: 96px;
}

.admin-sidebar-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.admin-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.08em;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.admin-sidebar-title {
  font-size: 1.15rem;
  color: #0f172a;
  font-weight: 800;
}

.admin-sidebar-user {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.admin-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.admin-nav-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.admin-nav-item.active {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-weight: 700;
  box-shadow: none;
}

.admin-nav-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 10px 0;
}

.back-item {
  color: var(--text-dim);
}

.back-item:hover {
  color: var(--primary-light);
}

.admin-main {
  flex: 1;
  min-width: 0;
}

.admin-page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-page-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
}

.admin-page-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.admin-header-actions {
  display: flex;
  gap: 10px;
}

.alert-banner {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.alert-info {
  background: rgba(47, 123, 240, 0.15);
  border: 1px solid var(--border-accent);
  color: #93c5fd;
}

/* Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
}

.stat-card-icon {
  font-size: 2.2rem;
  background: #f8fafc;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card-info {
  display: flex;
  flex-direction: column;
}

.stat-card-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.stat-card-lbl {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-card-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.text-green { color: #34d399 !important; }

/* 2-Column Boxes */
.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.admin-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.box-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.box-link {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
}

.box-content-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.box-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.item-thumb-box {
  width: 40px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-avatar-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.item-text-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.item-title {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.item-desc-snippet {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

.btn-sm-edit {
  padding: 4px 10px;
  background: rgba(47, 123, 240, 0.2);
  border: 1px solid var(--border-accent);
  color: var(--primary-light);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-sm-action {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-sm-process {
  background: rgba(47, 123, 240, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(47, 123, 240, 0.4);
}

.btn-sm-done {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Filter bar & table */
.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 520px;
}

.admin-search-input {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: var(--text-main);
  font-size: 0.88rem;
  width: 100%;
}

.admin-select-sm {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.85rem;
}

.admin-role-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.admin-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.admin-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  background: #f8fafc;
  padding: 11px 12px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.admin-table tr:hover {
  background: rgba(47, 123, 240, 0.06);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.user-cell-name {
  color: var(--text-main);
  font-weight: 600;
}

.user-cell-email {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.user-cell-date {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.inline-role-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sm-save {
  padding: 6px 12px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.badge-count {
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-indicator {
  font-size: 0.82rem;
  font-weight: 700;
}

.status-indicator.active { color: #34d399; }
.status-indicator.banned { color: #ef4444; }

.table-actions-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.btn-action-icon {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: #f1f5f9;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: var(--transition);
}

.btn-action-icon:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.btn-ban {
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

.btn-activate {
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  background: rgba(16, 185, 129, 0.1) !important;
}

.btn-delete {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.btn-delete:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.movie-table-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.movie-mini-poster {
  width: 36px;
  height: 52px;
  border-radius: 4px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.movie-mini-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-table-title {
  color: #0f172a;
  font-weight: 700;
  display: block;
}

.movie-table-orig {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-style: italic;
}

.movie-table-year {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Edit layout */
.admin-edit-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edit-poster-box {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-links-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.admin-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.link-info-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.link-prov {
  background: rgba(47, 123, 240, 0.2);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.link-qual, .link-lang, .link-ep {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.link-url-text {
  width: 100%;
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-sm-delete {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-sm-delete:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Request status buttons */
.req-actions-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-status-switch {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-switch-blue {
  background: rgba(47, 123, 240, 0.15);
  color: #60a5fa;
  border-color: rgba(47, 123, 240, 0.3);
}

.btn-switch-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-switch-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.status-banned {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   ADMIN IMPORT & SERIES STYLES
   ========================================================================== */

.import-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.import-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  white-space: nowrap;
}

.import-tab-btn:hover {
  color: #2563eb;
  background: #eff6ff;
  border-color: #93c5fd;
}

.import-tab-btn.active {
  color: #ffffff;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.import-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.import-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.import-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(47, 123, 240, 0.2);
}

.import-card-poster {
  position: relative;
  width: 110px;
  min-width: 110px;
  background: #f8fafc;
}

.import-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.import-type-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.import-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.import-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.3;
}

.import-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.import-card-meta .orig-title {
  font-style: italic;
  color: #94a3b8;
}

.import-card-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.import-card-footer {
  margin-top: auto;
}

.btn-import-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #2f7bf0, #1b4899);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-import-action:hover {
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-1px);
}

.btn-already-imported {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-already-imported:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
}

.empty-hint-card {
  padding: 36px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.empty-hint-card .icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.badge-subtle {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   ADMIN NOTIFICATIONS BELL & DROPDOWN
   ========================================================================== */

.nav-notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-notif-bell {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-notif-bell:hover {
  background: #f1f5f9;
  transform: scale(1.05);
}

.notif-badge-pill {
  position: absolute;
  top: 0px;
  right: -2px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 17px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
  line-height: 1.1;
  pointer-events: none;
  animation: pulseDot 2s infinite ease-in-out;
}

.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  z-index: 1200;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}

.notif-dropdown.show {
  display: block;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: #f8fafc;
}

.notif-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 800;
}

.notif-header-count {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

.btn-mark-all-read {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-mark-all-read:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.notif-items-list {
  max-height: 380px;
  overflow-y: auto;
}

.notif-row-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: var(--transition);
}

.notif-row-item:hover {
  background: #f8fafc;
}

.notif-row-item.notif-unread {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
}

.notif-type-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-row-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.notif-row-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
}

.notif-row-msg {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-row-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.notif-empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-dim);
}

.notif-empty-state span {
  font-size: 2rem;
  display: block;
  margin-bottom: 6px;
}

.notif-dropdown-footer {
  padding: 10px 18px;
  text-align: center;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
}

.notif-dropdown-footer a {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.notif-dropdown-footer a:hover {
  text-decoration: underline;
}

/* Admin Dashboard Notification Box */
.admin-notif-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.notif-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-notif-new {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.admin-notif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-notif-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.admin-notif-card:hover {
  border-color: var(--primary);
  background: #eff6ff;
  transform: translateY(-1px);
}

.admin-notif-card.card-unread {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left: 3px solid #2563eb;
}

.notif-card-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.notif-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.notif-card-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-card-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .admin-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    position: static;
  }
  .admin-two-col {
    grid-template-columns: 1fr;
  }
  .admin-edit-layout {
    grid-template-columns: 1fr;
  }
}


