/* ==========================================================================
   DRAMAFLIX - PREMIUM NETFLIX STREAMING EXPERIENCE
   Ultra-Smooth, Sleek Dark Palette, True Cinema Aesthetics
   ========================================================================== */

:root {
  --bg-dark: #141414;
  --bg-surface: #181818;
  --bg-card: #202020;
  --bg-glass: rgba(20, 20, 20, 0.82);
  --netflix-red: #E50914;
  --netflix-red-hover: #b80710;
  --netflix-red-glow: rgba(229, 9, 20, 0.4);
  --gold: #FFD700;
  --gold-glow: rgba(255, 215, 0, 0.35);
  --green: #46D369;
  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  --text-muted: #757575;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(229, 9, 20, 0.6);
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
input { font-family: inherit; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #121212; }
::-webkit-scrollbar-thumb { background: #333333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a4a; }

/* Utilities */
.text-red { color: var(--netflix-red); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--netflix-red);
  color: #fff;
  box-shadow: 0 4px 14px var(--netflix-red-glow);
}
.btn-primary:hover {
  background: var(--netflix-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-secondary-sm {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.btn-secondary-sm:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-gold-sm {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 2px 10px var(--gold-glow);
  transition: var(--transition-smooth);
}
.btn-gold-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.5);
}

.btn-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  box-shadow: 0 4px 14px var(--gold-glow);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-play {
  background: #ffffff;
  color: #000000;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}
.btn-play:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.04);
}

.btn-details {
  background: rgba(109, 109, 110, 0.7);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.05rem;
  backdrop-filter: blur(12px);
}
.btn-details:hover {
  background: rgba(109, 109, 110, 0.45);
  transform: scale(1.04);
}

.btn-round {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(20, 20, 20, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}
.btn-round:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.btn-telegram {
  background: #229ED9;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.btn-telegram:hover {
  background: #1b85b8;
  transform: translateY(-2px);
}

.btn-block { width: 100%; }
.btn-link { color: var(--text-secondary); font-size: 0.85rem; padding: 4px; }
.btn-link:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #990000 0%, #E50914 50%, #990000 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1010;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.announcement-content {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}
.announcement-close {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease;
}

.navbar.scrolled {
  background-color: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.logo-badge {
  background: var(--netflix-red);
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 1.35rem;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.5);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  font-weight: 700;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 14px;
  transition: var(--transition-smooth);
}
.search-box:focus-within {
  background: rgba(20, 20, 20, 0.9);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}
.search-icon { color: var(--text-secondary); margin-right: 8px; }
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  width: 170px;
  transition: width 0.3s ease;
}
.search-box:focus-within input { width: 220px; }
.search-clear {
  color: var(--text-secondary);
  font-size: 1.1rem;
  display: none;
}

.auth-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px 5px 6px;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.user-profile-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--netflix-red);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-avatar.avatar-vip {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  box-shadow: 0 0 10px var(--gold-glow);
}
.user-info-text {
  font-size: 0.82rem;
  font-weight: 600;
}
.user-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}
.user-tag.tag-vip {
  background: var(--gold);
  color: #000;
}

.admin-icon-btn {
  font-size: 1.25rem;
  padding: 6px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.admin-icon-btn:hover { color: #fff; }

/* ==========================================================================
   HERO BILLBOARD
   ========================================================================== */
.hero-billboard {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 90px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  filter: brightness(0.92);
  transition: background-image 0.6s ease-in-out;
  transform: scale(1.02);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #141414 0%, rgba(20, 20, 20, 0.75) 30%, rgba(20, 20, 20, 0.2) 65%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.hero-overlay-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 65%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 10;
  padding: 0 4%;
  width: 100%;
}

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

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

.badge-trending {
  background: var(--netflix-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge-quality {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.badge-score {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.badge-episodes {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-genres {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

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

/* ==========================================================================
   CONTENT ROWS & CARDS
   ========================================================================== */
.content-container {
  padding: 0 4% 60px;
  margin-top: -30px;
  position: relative;
  z-index: 20;
}

.drama-row {
  margin-bottom: 46px;
}

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

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

.row-indicator {
  width: 4px;
  height: 22px;
  background: var(--netflix-red);
  border-radius: 2px;
}
.indicator-pink { background: #FF2E93; }
.indicator-orange { background: #FF7A00; }
.indicator-purple { background: #8E2DE2; }

.row-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.row-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.carousel-wrapper {
  position: relative;
}

.row-cards-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 2px 20px 2px;
  scrollbar-width: none;
}
.row-cards-track::-webkit-scrollbar { display: none; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 80px;
  background: rgba(10, 10, 10, 0.7);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.25s, background 0.25s;
  backdrop-filter: blur(8px);
}
.carousel-wrapper:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: rgba(229, 9, 20, 0.85); }
.slider-prev { left: -10px; }
.slider-next { right: -10px; }

/* DRAMA CARD (Aspect Ratio 2:3 - Cinema Quality) */
.drama-card {
  flex: 0 0 178px;
  position: relative;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s;
  background: var(--bg-card);
  user-select: none;
}

.drama-card:hover {
  transform: scale(1.06) translateY(-6px);
  z-index: 25;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(229, 9, 20, 0.35);
}

.card-poster-wrap {
  position: relative;
  width: 100%;
  padding-top: 145%; /* Aspect Ratio ~ 2:3 */
  border-radius: 10px;
  overflow: hidden;
  background: #1c1c1c;
}

.card-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.drama-card:hover .card-poster-img {
  transform: scale(1.05);
}

.card-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
}

.card-hover-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.25s ease;
}
.drama-card:hover .card-hover-overlay { opacity: 1; }

.card-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--netflix-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.7);
  transform: scale(0.85);
  transition: transform 0.25s ease;
}
.drama-card:hover .card-play-icon { transform: scale(1); }

.card-top-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.badge-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.badge-free {
  background: rgba(46, 213, 115, 0.9);
  color: #000;
}
.badge-vip {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  box-shadow: 0 2px 8px var(--gold-glow);
}
.badge-ep-count {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-info {
  padding: 10px 4px 4px 4px;
}

.card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  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.72rem;
  color: var(--text-muted);
}
.card-category { color: var(--text-secondary); }

/* ==========================================================================
   EXPLORE GRID & FILTERS
   ========================================================================== */
.explore-section {
  margin-top: 20px;
}

.explore-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.explore-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.explore-subtitle { color: var(--text-muted); font-size: 0.88rem; }

.genre-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.chip:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.chip.active {
  background: var(--netflix-red);
  color: #fff;
  box-shadow: 0 2px 10px var(--netflix-red-glow);
}

.all-drama-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.page-indicator { font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); }

/* ==========================================================================
   MODAL COMPONENT BASE
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #181818;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  animation: slideUp 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

@keyframes slideUp {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: var(--transition-smooth);
}
.modal-close-btn:hover {
  background: #fff;
  color: #000;
  transform: rotate(90deg);
}

/* ==========================================================================
   AUTH MODAL & EMAIL OTP
   ========================================================================== */
.auth-modal-card {
  max-width: 460px;
  width: 100%;
  padding: 30px 28px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: var(--transition-smooth);
}
.auth-tab.active {
  background: var(--netflix-red);
  color: #fff;
}

.auth-header {
  text-align: center;
  margin-bottom: 22px;
}
.auth-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.auth-logo span { color: var(--netflix-red); }
.auth-logo-tg { font-size: 2.5rem; margin-bottom: 6px; }
.auth-icon-envelope { font-size: 2.8rem; margin-bottom: 6px; }
.auth-header h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.auth-header p { font-size: 0.85rem; color: var(--text-secondary); }

.auth-form .form-group {
  margin-bottom: 16px;
}
.auth-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  background: #242424;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.auth-form input:focus {
  border-color: var(--netflix-red);
  background: #2a2a2a;
}

.auth-sender-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}
.auth-sender-note b { color: var(--text-secondary); }

/* OTP 6-Digit Inputs Grid */
.otp-inputs-wrapper {
  margin: 20px 0 24px 0;
}
.otp-inputs-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.otp-digit {
  width: 48px;
  height: 58px;
  background: #252525;
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: var(--transition-smooth);
}
.otp-digit:focus {
  border-color: var(--netflix-red);
  box-shadow: 0 0 14px var(--netflix-red-glow);
  background: #2d2d2d;
  transform: translateY(-2px);
}

.otp-resend-row {
  display: flex;
  justify-content: center;
  margin: 14px 0 8px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}
.auth-divider span { padding: 0 10px; font-size: 0.75rem; color: var(--text-muted); }

/* ==========================================================================
   DETAIL MODAL
   ========================================================================== */
.detail-modal-card {
  max-width: 820px;
  width: 100%;
  overflow-y: auto;
}

.modal-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.modal-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #181818 0%, rgba(24, 24, 24, 0.4) 60%, rgba(0, 0, 0, 0.7) 100%);
}
.modal-hero-content {
  position: absolute;
  bottom: 24px;
  left: 28px;
  right: 28px;
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.modal-hero-buttons {
  display: flex;
  gap: 12px;
}

.modal-body {
  padding: 24px 28px 36px;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.modal-tags {
  display: flex;
  align-items: center;
  gap: 10px;
}
.match-score { color: var(--green); font-weight: 800; font-size: 0.88rem; }
.quality-badge { border: 1px solid rgba(255, 255, 255, 0.4); padding: 2px 6px; border-radius: 3px; font-size: 0.75rem; }
.modal-episodes { color: var(--text-secondary); font-size: 0.85rem; }
.view-count { color: var(--text-muted); font-size: 0.85rem; }

.modal-categories {
  display: flex;
  gap: 6px;
}
.cat-pill {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  color: var(--text-secondary);
}

.modal-synopsis {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.modal-episodes-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}
.episodes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.episodes-header h3 { font-size: 1.15rem; font-weight: 700; }
.episodes-note { font-size: 0.8rem; color: var(--gold); }

.modal-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}

.ep-btn {
  background: #222;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: var(--transition-smooth);
}
.ep-btn:hover {
  background: #333;
  border-color: #fff;
  transform: translateY(-2px);
}
.ep-btn.active {
  background: var(--netflix-red);
  border-color: var(--netflix-red);
}
.ep-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
}
.ep-tag.free { background: rgba(70, 211, 105, 0.2); color: var(--green); }
.ep-tag.vip { background: var(--gold); color: #000; }
.ep-tag.vip-locked { background: rgba(255, 215, 0, 0.15); color: var(--gold); }

/* ==========================================================================
   CINEMA VIDEO PLAYER
   ========================================================================== */
.player-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 3000;
  display: flex;
  flex-direction: column;
}

.player-topbar {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.player-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
}
.player-back-btn:hover { background: rgba(255, 255, 255, 0.2); }

.player-header-title { text-align: center; }
.player-header-title h4 { font-size: 1.1rem; font-weight: 700; color: #fff; }
.player-ep-label { font-size: 0.8rem; color: var(--text-secondary); }

.player-drawer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.player-drawer-toggle:hover { background: rgba(255, 255, 255, 0.25); }

.player-video-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.player-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-loader {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--netflix-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.player-error {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.player-error .error-icon { font-size: 3.5rem; margin-bottom: 12px; }
.player-error h4 { font-size: 1.5rem; margin-bottom: 10px; }
.player-error p { color: var(--text-secondary); max-width: 440px; margin-bottom: 22px; line-height: 1.5; font-size: 0.95rem; }
.player-error-actions { display: flex; gap: 12px; }

.player-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -340px;
  width: 320px;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-subtle);
  z-index: 60;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  padding: 20px;
}
.player-drawer.open { right: 0; }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-episodes-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  overflow-y: auto;
}

/* ==========================================================================
   VIP MODAL
   ========================================================================== */
.vip-modal-card {
  max-width: 620px;
  width: 100%;
  padding: 34px 28px;
  text-align: center;
}
.vip-big-crown { font-size: 3.5rem; margin-bottom: 8px; }
.vip-modal-header h2 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.vip-modal-header p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 24px; }

.vip-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.vip-feat-box {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  text-align: center;
}
.feat-icon { font-size: 1.6rem; margin-bottom: 8px; display: block; }
.vip-feat-box h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; color: #fff; }
.vip-feat-box p { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.4; }

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.vip-instant-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; }

/* ==========================================================================
   ADMIN PANEL MODAL
   ========================================================================== */
.admin-modal-card {
  max-width: 800px;
  width: 100%;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
}
.admin-header { text-align: center; margin-bottom: 20px; }
.admin-icon { font-size: 2.8rem; margin-bottom: 6px; }
.admin-login-form { max-width: 380px; margin: 0 auto; }
.admin-login-form input { margin-bottom: 12px; }

.admin-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.server-badge {
  font-size: 0.78rem;
  background: rgba(70, 211, 105, 0.2);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 12px;
}

.role-simulator-bar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.sim-label { font-size: 0.85rem; font-weight: 700; color: var(--gold); }
.sim-buttons { display: flex; gap: 8px; }
.btn-xs { font-size: 0.75rem; padding: 5px 10px; border-radius: 4px; font-weight: 600; }
.btn-outline { border: 1px solid var(--border-subtle); color: var(--text-secondary); background: rgba(255, 255, 255, 0.05); }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.stat-card {
  background: #202020;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.stat-num { font-size: 1.8rem; font-weight: 800; display: block; }
.stat-title { font-size: 0.78rem; color: var(--text-secondary); }

.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  padding-bottom: 10px;
}
.admin-tab {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 6px;
}
.admin-tab.active { background: var(--netflix-red); color: #fff; }

.add-vip-row { display: flex; gap: 10px; margin-bottom: 16px; }
.add-vip-row input {
  flex: 1;
  background: #252525;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.vip-table-container {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}
.vip-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; text-align: left; }
.vip-table th, .vip-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); }
.vip-table th { background: #222; color: var(--text-secondary); }

.btn-status-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.btn-status-badge.active { background: rgba(70, 211, 105, 0.2); color: var(--green); }
.btn-status-badge.inactive { background: rgba(255, 255, 255, 0.1); color: #888; }
.btn-danger-sm { background: rgba(229, 9, 20, 0.2); color: var(--netflix-red); border: 1px solid rgba(229, 9, 20, 0.5); padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; }

.config-form .form-group { margin-bottom: 16px; }
.config-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.config-form input {
  width: 100%;
  background: #252525;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
}
.smtp-action-row { display: flex; gap: 10px; margin-top: 14px; }

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */
.search-overlay {
  position: fixed;
  top: 68px;
  inset-inline: 0;
  bottom: 0;
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(20px);
  z-index: 950;
  padding: 24px 4%;
  overflow-y: auto;
}
.search-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #0d0d0d;
  padding: 50px 4% 80px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.footer-logo { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; }
.footer-tagline { color: var(--text-muted); font-size: 0.88rem; max-width: 500px; margin: 0 auto 16px; }
.footer-copyright { font-size: 0.78rem; color: #555; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.4rem; }
  .drama-card { flex: 0 0 145px; }
  .all-drama-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .search-box input { width: 110px; }
  .search-box:focus-within input { width: 160px; }
  .vip-features-grid { grid-template-columns: 1fr; }
  .admin-stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .navbar { height: 58px; padding: 0 16px; }
  .hero-billboard { min-height: 72vh; padding-bottom: 60px; }
  .hero-title { font-size: 1.8rem; }
  .hero-desc { font-size: 0.9rem; -webkit-line-clamp: 2; margin-bottom: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-play, .btn-details { width: 100%; justify-content: center; font-size: 0.95rem; padding: 10px 16px; }
  .btn-round { display: none; }
  .drama-card { flex: 0 0 130px; }
  .otp-digit { width: 40px; height: 50px; font-size: 1.3rem; }
}
