/* ============================================================
   NAIJAFLIX — CINEMATIC STREAMING PLATFORM STYLESHEET
   ============================================================ */

:root {
  --bg-main: #0c0d12;
  --bg-card: #15161f;
  --bg-card-hover: #1c1e2a;
  --bg-elevated: #222433;
  --bg-input: #101118;
  --primary: #e50914;
  --primary-hover: #ff202b;
  --accent-gold: #ffb800;
  --accent-green: #22c55e;
  --accent-blue: #3b82f6;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(229, 9, 20, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.7);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
  --navbar-height: 72px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #282a3a;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: #3c3f54;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ================= TYPOGRAPHY & UTILS ================= */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--accent-green) !important; }
.text-danger { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.w-100 { width: 100% !important; }

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  background: linear-gradient(180deg, rgba(12, 13, 18, 0.95) 0%, rgba(12, 13, 18, 0.7) 70%, transparent 100%);
  backdrop-filter: blur(16px);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(12, 13, 18, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 1.5px;
  color: var(--text-main);
  line-height: 1;
}

.logo-highlight {
  color: var(--primary);
  text-shadow: 0 0 16px rgba(229, 9, 20, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-pill);
}

.badge-count {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-box-wrapper {
  position: relative;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  transition: all 0.25s ease;
}

.search-box:focus-within {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.search-icon {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-right: 8px;
}

.search-box input {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  width: 170px;
  transition: width 0.3s ease;
}

.search-box input:focus {
  width: 240px;
}

/* Search History Dropdown */
.search-history-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  display: none;
  flex-direction: column;
  z-index: 120;
}

.search-history-dropdown.show {
  display: flex;
  animation: fadeInDown 0.2s ease;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-clear-history {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.btn-clear-history:hover {
  color: var(--primary);
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s ease;
}

.history-item:hover {
  background: var(--bg-card-hover);
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}

.history-item-left i {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.history-item-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-remove-history {
  color: var(--text-dim);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: all 0.15s ease;
}

.btn-remove-history:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-admin {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-outline-admin:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: var(--primary);
  color: #fff;
}

.btn-outline-admin.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.4);
}

.user-menu-wrapper {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s ease;
}

.user-avatar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.user-avatar-btn img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.sub-badge {
  background: var(--accent-gold);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.caret-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 4px;
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: none;
  flex-direction: column;
  z-index: 101;
}

.user-dropdown.show {
  display: flex;
  animation: fadeInDown 0.2s ease;
}

.dropdown-header {
  padding: 8px;
}

.dropdown-header .user-name {
  font-weight: 700;
  font-size: 0.96rem;
}

.dropdown-header .user-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-all;
}

.sub-status-pill {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.3);
  color: var(--accent-gold);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--bg-card-hover);
}

.dropdown-item i {
  width: 18px;
  color: var(--text-muted);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(8px);
}

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

.btn-outline {
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-play {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius-md);
}

.btn-play:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.03);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.26);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* ================= BADGES ================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-accent {
  background: var(--primary);
  color: #fff;
}

.badge-category {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(6px);
}

.badge-quality {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.badge-free {
  background: var(--accent-green);
  color: #000;
  font-weight: 800;
}

.badge-admin {
  background: #7c3aed;
  color: #fff;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ================= HERO SECTION ================= */
.hero-banner {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: 100px 60px 80px;
  margin-bottom: 20px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  z-index: 1;
  transform: scale(1.02);
  transition: transform 8s ease, filter 0.5s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(0deg, var(--bg-main) 0%, rgba(12, 13, 18, 0.8) 35%, rgba(12, 13, 18, 0.3) 70%, rgba(12, 13, 18, 0.6) 100%),
              linear-gradient(90deg, var(--bg-main) 0%, rgba(12, 13, 18, 0.85) 30%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 0.95;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.rating-pill {
  color: var(--accent-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.age-pill, .lang-pill {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.hero-description {
  font-size: 1.05rem;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

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

/* ================= CATEGORY PILLS BAR ================= */
.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 60px 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pill:hover, .pill.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.4);
}

/* ================= ROW & CAROUSELS ================= */
.movies-row-section {
  padding: 0 60px 40px;
}

.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.row-title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.carousel-container {
  position: relative;
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.continue-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Movie Card */
.movie-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

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

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

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

.card-access-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(12, 13, 18, 0.95) 0%, rgba(12, 13, 18, 0.4) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

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

.card-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-card-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.btn-card-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-info {
  padding: 12px;
}

.card-title {
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

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

/* Continue Watching Card */
.continue-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.continue-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #191b24;
}

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

.continue-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.continue-card:hover .continue-play-overlay {
  opacity: 1;
}

.progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.continue-info {
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.continue-title {
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ================= VIEW SECTIONS ================= */
.main-container {
  padding-top: var(--navbar-height);
  min-height: 100vh;
}

.view-section {
  display: none;
}

/* Security: admin console is never part of the public customer UI. */
#adminView { display: none !important; }
body.admin-authorized #adminView.active { display: block !important; }
#adminSwitchBtn { display: none !important; }

.view-section.active {
  display: block;
}

#searchView, #watchlistView, #moviesView, #adminView {
  padding: 40px 60px;
}

.view-header {
  margin-bottom: 28px;
}

.view-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

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

/* ================= SEARCH VIEW ================= */
.search-filters-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-input-field {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.search-input-field i {
  color: var(--text-muted);
  margin-right: 12px;
}

.search-input-field input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  width: 100%;
}

.filter-dropdowns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-dropdowns select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.88rem;
}

.search-results-info {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.empty-state h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 440px;
  margin: 0 auto 24px;
}

/* ================= ADMIN VIEW ================= */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 6px 0 4px;
}

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

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.icon-users { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-movies { background: rgba(229, 9, 20, 0.15); color: var(--primary); }
.icon-revenue { background: rgba(34, 197, 94, 0.15); color: var(--accent-green); }
.icon-system { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

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

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2px 0;
}

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

.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tab {
  padding: 12px 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-tab:hover, .admin-tab.active {
  color: #fff;
  border-bottom-color: var(--primary);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.table-toolbar input, .table-toolbar select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 10px 16px;
  font-size: 0.88rem;
  outline: none;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  padding: 14px 18px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-poster-thumb {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ================= MODALS & OVERLAYS ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-sm { max-width: 460px; }
.modal-lg { max-width: 800px; }
.modal-auth { max-width: 440px; }

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Movie Details Modal */
.modal-movie-detail {
  max-width: 880px;
  padding: 0;
  overflow: hidden;
}

.detail-header-backdrop {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.backdrop-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-card) 0%, rgba(21, 22, 31, 0.7) 50%, rgba(21, 22, 31, 0.2) 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
}

.detail-hero-content h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 1px;
  margin: 8px 0;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.detail-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  padding: 30px;
}

.detail-synopsis {
  color: #d1d5db;
  line-height: 1.7;
  margin: 10px 0 20px;
}

.detail-meta-list p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-meta-list strong {
  color: #fff;
}

.related-movies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.related-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #191b24;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease;
}

.related-card:hover {
  transform: scale(1.03);
}

.related-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.related-card p {
  padding: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Reviews in Detail Modal */
.reviews-section {
  margin-top: 28px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

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

.review-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.star-rating-picker {
  display: flex;
  gap: 6px;
  color: #4b5563;
  font-size: 1.3rem;
  margin: 10px 0;
  cursor: pointer;
}

.star-rating-picker .star-pick.active {
  color: var(--accent-gold);
}

.review-form textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 10px;
  min-height: 80px;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.review-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.review-stars {
  color: var(--accent-gold);
  font-size: 0.8rem;
}

.review-comment {
  font-size: 0.85rem;
  color: #d1d5db;
}

/* ================= SUBSCRIPTION & PLANS ================= */
.modal-plans {
  max-width: 900px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  cursor: pointer;
}

.plan-card:hover {
  border-color: rgba(229, 9, 20, 0.4);
  transform: translateY(-4px);
}

.plan-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.plan-badge-featured {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 10px 0;
}

.plan-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
  color: #d1d5db;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li i {
  color: var(--accent-green);
}

/* Checkout Box */
.checkout-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}

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

.checkout-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.gateway-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.gateway-option {
  cursor: pointer;
}

.gateway-option input {
  display: none;
}

.gateway-card {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  transition: all 0.2s ease;
}

.gateway-option input:checked + .gateway-card {
  border-color: var(--primary);
  background: rgba(229, 9, 20, 0.1);
}

.payment-channels {
  margin-bottom: 24px;
}

.channel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.channel-tab {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.channel-tab.active {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.channel-content {
  display: none;
}

.channel-content.active {
  display: block;
}

.mock-card-form {
  background: var(--bg-card);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.mock-notice {
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-top: 12px;
}

.bank-details-box, .ussd-box {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.ussd-code {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin: 10px 0;
  letter-spacing: 2px;
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Success Receipt Modal */
.modal-success {
  max-width: 460px;
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-green);
  margin-bottom: 14px;
}

.receipt-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 20px 0;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.receipt-row:last-child {
  border-bottom: none;
}

/* ================= VIDEO STREAMING PLAYER ================= */
.player-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 500;
  display: none;
}

.player-overlay.active {
  display: block;
}

.player-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.player-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  transition: opacity 0.3s ease;
}

.player-title-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-back-btn, .player-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.player-subinfo {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#streamVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.center-play-badge {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.6);
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 5;
}

.center-play-badge:hover {
  transform: scale(1.1);
}

/* Premium Lock Screen in Player */
.premium-lock-screen {
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 18, 0.94);
  backdrop-filter: blur(16px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lock-card {
  max-width: 480px;
  text-align: center;
}

.lock-icon {
  font-size: 4rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.lock-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* Resume Watching Prompt */
.resume-prompt-banner {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(21, 22, 31, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 15;
  box-shadow: var(--shadow-lg);
}

/* Player Controls Bar */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 20px 36px 28px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  transition: opacity 0.3s ease;
}

.progress-bar-container {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  cursor: pointer;
  margin-bottom: 16px;
  transition: height 0.15s ease;
}

.progress-bar-container:hover {
  height: 10px;
}

.progress-buffered {
  position: absolute;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  width: 0%;
}

.progress-elapsed {
  position: absolute;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  width: 0%;
}

.scrub-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  left: 0%;
  display: none;
}

.progress-bar-container:hover .scrub-handle {
  display: block;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.control-btn {
  color: #fff;
  font-size: 1.15rem;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.control-btn:hover {
  opacity: 1;
}

.control-btn span {
  font-size: 0.8rem;
  font-weight: 600;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  width: 70px;
  accent-color: var(--primary);
  cursor: pointer;
}

.time-display {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}

.player-dropdown-wrapper {
  position: relative;
}

.control-popover {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  display: none;
  flex-direction: column;
  min-width: 150px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.player-dropdown-wrapper:hover .control-popover {
  display: flex;
}

.control-popover button {
  padding: 8px 12px;
  text-align: left;
  font-size: 0.82rem;
  color: #fff;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.control-popover button:hover {
  background: var(--bg-card-hover);
}

.popover-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 12px 2px;
  font-weight: 700;
}

/* ================= FORMS & INPUTS ================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #d1d5db;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 0.8rem;
  color: var(--primary);
}

.form-group input, .form-group textarea, .form-group select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

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

.auth-header h2 {
  font-size: 1.5rem;
  margin: 12px 0 6px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* User Profile Modal Tabs */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-subtle);
}

.profile-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.profile-tab {
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.profile-tab.active {
  color: #fff;
  border-bottom-color: var(--primary);
}

.profile-tab-content {
  display: none;
}

.profile-tab-content.active {
  display: block;
}

.billing-summary-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.billing-summary-card p {
  font-size: 0.88rem;
  margin: 6px 0;
}

/* Switch Accounts */
.accounts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.account-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.account-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.account-info strong {
  font-size: 0.92rem;
}

.account-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  font-size: 0.88rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.25s ease;
  min-width: 280px;
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--primary); }
.toast.info { border-left-color: var(--accent-blue); }

/* Mobile Bottom Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateZ(0);
  background: rgba(12, 13, 18, 0.98);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  z-index: 150;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.mobile-nav-item i {
  font-size: 1.15rem;
}

.mobile-nav-item.active {
  color: var(--primary);
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ================= RESPONSIVE QUERIES ================= */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 24px;
  }
  .hero-banner {
    padding: 80px 24px 60px;
    min-height: 70vh;
  }
  .hero-title {
    font-size: 3.4rem;
  }
  .movies-row-section, #searchView, #watchlistView, #moviesView, #adminView {
    padding: 0 24px 40px;
  }
  .category-pills-bar {
    padding: 0 24px 20px;
  }
  .detail-body {
    grid-template-columns: 1fr;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .btn-outline-admin {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
  .main-container {
    padding-bottom: 70px;
  }
  .hero-banner {
    min-height: 60vh;
    padding: 60px 16px 40px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-description {
    font-size: 0.92rem;
  }
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }
  .continue-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .movies-row-section, #searchView, #watchlistView, #moviesView, #adminView {
    padding: 0 16px 30px;
  }
  .category-pills-bar {
    padding: 0 16px 16px;
  }
  .form-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .controls-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .time-display {
    display: none;
  }
}

/* ================= AUTH POLISH ================= */
.auth-header .brand-logo { display:inline-block; animation: authLogoIn .55s ease both; }
.auth-submit-btn { position:relative; overflow:hidden; transition:transform .2s ease, box-shadow .2s ease; }
.auth-submit-btn:hover { transform:translateY(-2px); box-shadow:0 12px 28px rgba(229,9,20,.28); }
.auth-submit-btn::after { content:""; position:absolute; top:0; left:-120%; width:70%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent); transform:skewX(-20deg); animation:authShine 3.5s infinite; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:18px 0; color:var(--text-dim); font-size:.72rem; font-weight:700; letter-spacing:1px; }
.auth-divider::before,.auth-divider::after { content:""; height:1px; background:var(--border-subtle); flex:1; }
.google-auth-wrap { display:flex; justify-content:center; min-height:44px; animation:fadeInUp .45s ease both; }
/* Phone input (intl-tel-input v25) */
.iti { width:100%; display:block; }
.iti input.iti__tel-input, .iti input[type=tel] { width:100%; box-sizing:border-box; }
.iti__dropdown-content { background:#fff; color:#111; z-index:100000; }
.iti__country, .iti__country-name { color:#111 !important; }
.iti__dial-code { color:#666 !important; }
.iti__search-input { color:#111 !important; background:#fff !important; }
.iti__country.iti__highlight { background:#f0f0f0; }
.iti--container { z-index:100000; }
.field-hint { display:block; margin-top:6px; color:var(--text-dim); font-size:.74rem; }
.required-star { color:var(--primary); }
.modal-auth { animation:authModalIn .28s ease both; }
.modal-auth .form-group { animation:fadeInUp .35s ease both; }
@keyframes authModalIn { from { opacity:0; transform:translateY(18px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes authLogoIn { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }
@keyframes authShine { 0%,55% { left:-120%; } 75%,100% { left:150%; } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
