/* ============================================================
   StreamFlix - Netflix-Style Dark Theme
   ============================================================ */

/* --- CSS Variables & Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600&display=swap');

:root {
  --bg-primary: #0a0d14; /* Midnight slate blue/black (Mubi/Amazon blend) */
  --bg-secondary: #0f131c;
  --bg-tertiary: #161b26;
  --bg-card: #121824;
  --bg-hover: #1b2333;
  --bg-overlay: rgba(10, 13, 20, 0.85);
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --accent: #00d2c4; /* Elegant cyan/teal (Mubi/Amazon accent) */
  --accent-hover: #00f2fe;
  --accent-dark: #008f86;
  --accent-glow: rgba(0, 210, 196, 0.3);
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --trial: #a855f7;
  
  --glass-bg: rgba(15, 19, 28, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --radius-sm: 6px;
  --radius-md: 12px; /* Softer rounded corners (Amazon Prime Video style) */
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.7);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.9);
  --shadow-glow: 0 0 20px var(--accent-glow);
  
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif; /* Sophisticated serif for editorial look (Mubi style) */
  --navbar-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, .navbar-logo {
  font-family: var(--font-heading);
}

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

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

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

img {
  max-width: 100%;
  display: block;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* ============================================================
   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 48px;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
  transition: background var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 13, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar-logo {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.2px;
  font-style: italic;
  text-transform: capitalize;
  transition: opacity var(--transition-fast);
}
.navbar-logo:hover {
  opacity: 0.85;
}

.navbar-links {
  display: flex;
  gap: 24px;
}
.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}
.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
}
.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-nav-login {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.btn-nav-login:hover {
  background: rgba(255,255,255,0.1);
}

.btn-nav-subscribe {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.btn-nav-subscribe:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* Navbar User */
.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.navbar-badge.trial {
  background: rgba(168, 85, 247, 0.2);
  color: var(--trial);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.navbar-badge.premium {
  background: linear-gradient(135deg, rgba(0, 210, 196, 0.2), rgba(255, 165, 0, 0.2));
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.navbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), #ff6b35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast);
}
.navbar-avatar:hover {
  transform: scale(1.05);
}
.navbar-avatar span {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
}

.navbar-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-normal);
  overflow: hidden;
}
.navbar-avatar.open .navbar-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-dropdown-header {
  padding: 16px;
  border-bottom: 1px solid var(--glass-border);
}
.navbar-dropdown-header strong {
  display: block;
  font-size: 0.95rem;
}
.navbar-dropdown-header small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.navbar-dropdown a {
  display: block;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.navbar-dropdown a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.navbar-dropdown .logout-link {
  border-top: 1px solid var(--glass-border);
  color: var(--accent);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  width: 100%;
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 80px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.5) 40%,
    rgba(0,0,0,0.1) 70%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  animation: fadeSlideUp 0.8s ease-out;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-badge-new {
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.hero-badge-res {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-badge-rating {
  background: rgba(255,165,0,0.15);
  color: #ffa500;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255,165,0,0.2);
}
.hero-badge-maturity {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.08);
}

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

.hero-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 500px;
}

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

.btn-hero-play {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: white;
  color: black;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.btn-hero-play:hover {
  background: rgba(255,255,255,0.85);
  transform: scale(1.03);
}

.btn-hero-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(109, 109, 109, 0.4);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}
.btn-hero-info:hover {
  background: rgba(109, 109, 109, 0.6);
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

.hero-bg-media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100%;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   MOVIE ROWS
   ============================================================ */

.content-rows {
  position: relative;
  z-index: 3;
  margin-top: -80px;
  padding-bottom: 60px;
}

.movie-row {
  margin-bottom: 36px;
  padding: 0 48px;
}

.row-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.row-scroll-container {
  position: relative;
}

.row-movies {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.row-movies::-webkit-scrollbar {
  display: none;
}

.row-scroll-btn {
  position: absolute;
  top: 0;
  bottom: 16px;
  width: 48px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 1.2rem;
  z-index: 10;
  opacity: 0;
  transition: opacity var(--transition-normal);
  border: none;
}
.row-scroll-container:hover .row-scroll-btn {
  opacity: 1;
}
.row-scroll-left {
  left: -48px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.row-scroll-right {
  right: -48px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.row-scroll-btn:hover {
  background: rgba(0,0,0,0.85);
}

/* ============================================================
   MOVIE CARD
   ============================================================ */

.movie-card {
  flex: 0 0 calc((100% - 50px) / 6);
  min-width: 180px;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background: var(--bg-card);
}
.movie-card:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

.movie-card-img {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.movie-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 3;
}
.movie-card:hover .movie-card-overlay {
  opacity: 1;
}

.movie-card-play {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.4);
  transition: all var(--transition-fast);
}
.movie-card-play:hover {
  background: rgba(0, 210, 196, 0.6);
  border-color: var(--accent);
  transform: scale(1.15);
}

.movie-card-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
}

.card-badge-res {
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
}

.movie-card-info {
  padding: 10px 12px 12px;
}

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

.movie-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.meta-dot {
  color: var(--text-muted);
}

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

.movie-detail {
  padding-top: var(--navbar-height);
}

.movie-detail-hero {
  width: 100%;
  min-height: 65vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 60px;
}

.movie-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.5) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.movie-detail-content {
  position: relative;
  z-index: 4;
  max-width: 600px;
  animation: fadeSlideUp 0.6s ease-out;
}

.movie-detail-content h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.movie-detail-body {
  padding: 40px 48px;
  position: relative;
  z-index: 2;
}

.movie-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.movie-detail-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.movie-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.detail-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + 40px) 20px 40px;
  background: linear-gradient(135deg, #0a0a0a 0%, var(--bg-primary) 50%, #1a0a0e 100%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: fadeScaleIn 0.4s ease-out;
}

.auth-card h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 210, 196, 0.15);
  background: rgba(255,255,255,0.08);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b3b3b3'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

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

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ff6b6b;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-footer a:hover {
  color: var(--accent);
}

/* ============================================================
   SUBSCRIBE PAGE
   ============================================================ */

.subscribe-page {
  padding-top: calc(var(--navbar-height) + 40px);
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, var(--bg-primary) 50%, #1a0a0e 100%);
}

.subscribe-hero {
  text-align: center;
  padding: 60px 20px 40px;
  animation: fadeSlideUp 0.6s ease-out;
}
.subscribe-hero h1 {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, #ccc 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.subscribe-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.subscribe-plans {
  display: flex;
  justify-content: center;
  padding: 0 20px 40px;
}

.plan-card {
  width: 380px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(20px);
  position: relative;
  animation: fadeScaleIn 0.5s ease-out;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0, 210, 196, 0.15);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.plan-card h2 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 12px 0 20px;
}

.plan-price {
  text-align: center;
  margin-bottom: 28px;
}
.plan-price-trial {
  display: block;
  color: var(--success);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.plan-price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.plan-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.plan-amount {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}
.plan-period {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}
.plan-price-note {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 4px;
}
.plan-features li::first-letter {
  color: var(--success);
}

.subscribe-login-prompt {
  text-align: center;
  padding: 40px 20px 80px;
}
.subscribe-login-prompt p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
}
.subscribe-auth-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.subscribe-card-form {
  display: flex;
  justify-content: center;
  padding: 0 20px 80px;
}

.subscribe-payment-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.payment-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.subscribe-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.subscribe-active {
  text-align: center;
  padding: 20px 0;
}
.subscribe-checkmark {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--success), #2dd469);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  margin: 0 auto 20px;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-card {
  width: 100%;
  max-width: 500px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 0;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeScaleIn 0.4s ease-out;
}

.profile-header {
  text-align: center;
  padding: 40px 30px 30px;
  background: linear-gradient(135deg, rgba(0, 210, 196, 0.1), rgba(255, 165, 0, 0.05));
  border-bottom: 1px solid var(--glass-border);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), #ff6b35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  font-weight: 800;
}

.profile-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
}
.profile-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-section {
  padding: 24px 30px;
  border-bottom: 1px solid var(--glass-border);
}
.profile-section:last-child {
  border-bottom: none;
}
.profile-section h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.profile-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}
.profile-badge.admin {
  background: rgba(0, 128, 255, 0.15);
  color: var(--info);
  border: 1px solid rgba(0, 128, 255, 0.3);
}
.profile-badge.trial {
  background: rgba(168, 85, 247, 0.15);
  color: var(--trial);
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.profile-badge.premium {
  background: linear-gradient(135deg, rgba(0, 210, 196, 0.15), rgba(255, 165, 0, 0.15));
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.3);
}
.profile-badge.inactive {
  background: rgba(109, 109, 109, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(109, 109, 109, 0.3);
}

.profile-sub-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.card-visual {
  background: linear-gradient(135deg, #1e293b, #334155, #1e293b);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}
.card-brand {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.card-number {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  grid-column: 1 / -1;
  color: var(--text-secondary);
}
.card-expiry {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.card-holder {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  text-transform: uppercase;
}

.profile-member-since {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(109, 109, 109, 0.3);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-secondary:hover {
  background: rgba(109, 109, 109, 0.5);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
}

.btn-glow {
  box-shadow: var(--shadow-glow);
}
.btn-glow:hover {
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.btn-icon:hover {
  background: rgba(255,255,255,0.1);
}
.btn-danger-icon:hover {
  background: rgba(239, 68, 68, 0.15);
}
.btn-tiny {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}

/* ============================================================
   PLAYER OVERLAY
   ============================================================ */

.player-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.player-container {
  width: 90vw;
  max-width: 1200px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.player-screen {
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

/* Native video element */
.player-real-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  z-index: 1;
}

/* Iframe embed (YouTube etc.) */
.player-real-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

/* Simulated player background */
.player-simulated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Minimal controls strip for iframe mode */
.player-iframe-controls {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  border-radius: 0 0 var(--radius-lg) 0;
}

/* Fullscreen: expand the container and screen */
.player-container:fullscreen,
.player-container:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
}
.player-container:fullscreen .player-screen,
.player-container:-webkit-full-screen .player-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.player-container:fullscreen .player-controls,
.player-container:-webkit-full-screen .player-controls {
  position: relative;
  flex-shrink: 0;
}
.player-container:fullscreen .player-iframe-controls,
.player-container:-webkit-full-screen .player-iframe-controls {
  position: absolute;
  bottom: 0;
  right: 0;
}

.player-movie-title {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  z-index: 2;
}

.player-center-info {
  position: absolute;
  display: flex;
  gap: 8px;
  z-index: 2;
  opacity: 0.6;
}

.player-genre-badge, .player-res-badge {
  background: rgba(0,0,0,0.5);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.player-watermark {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  z-index: 2;
}

.player-center-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.player-container.is-paused .player-center-controls {
  opacity: 1;
}

.player-big-btn {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition-fast);
  cursor: pointer;
  pointer-events: auto;
}

.player-big-btn.primary {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
}

.player-big-btn:hover {
  background: rgba(0, 210, 196, 0.5);
  border-color: var(--accent);
  transform: scale(1.1);
}

.player-click-area {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
}

.player-controls {
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
  padding: 0 16px 12px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
}

.player-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  position: relative;
  margin-bottom: 8px;
  border-radius: 2px;
  transition: height var(--transition-fast);
}
.player-progress-container:hover {
  height: 8px;
}

.player-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s linear;
  position: relative;
}
.player-progress-bar::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.player-progress-container:hover .player-progress-bar::after {
  opacity: 1;
}

.player-progress-limit {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: rgba(255, 165, 0, 0.7);
  z-index: 2;
}

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

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

.player-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
  color: white;
}
.player-btn:hover {
  background: rgba(255,255,255,0.1);
}

.player-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Hide player controls during Netflix-style intro video */
.intro-playing .player-controls,
.intro-playing .player-iframe-controls {
  display: none !important;
}

.player-time {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}

/* Subscription Modal in Player */
.player-sub-modal {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.player-sub-modal-content {
  text-align: center;
  max-width: 440px;
  padding: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  animation: fadeScaleIn 0.4s ease-out;
}
.player-sub-modal-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 16px 0 8px;
}
.player-sub-modal-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.player-sub-modal-price {
  margin-bottom: 24px;
}
.price-trial {
  display: block;
  color: var(--success);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.price-after {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.player-sub-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */

.admin-page {
  padding: calc(var(--navbar-height) + 24px) 48px 60px;
  min-height: 100vh;
}

.admin-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-denied {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.admin-denied h2 {
  color: var(--accent);
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 4px;
  border: 1px solid var(--glass-border);
}

.admin-tab {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.admin-tab:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}
.admin-tab.active {
  background: var(--accent);
  color: white;
}

.admin-section {
  animation: fadeIn 0.3s ease;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.admin-section-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.admin-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

/* Admin Table */
.admin-table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table thead {
  background: var(--bg-secondary);
}
.admin-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
}
.admin-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.admin-table tr:hover {
  background: rgba(255,255,255,0.02);
}

.admin-movie-thumb {
  width: 80px;
  height: 45px;
  border-radius: var(--radius-sm);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
}
.badge-active {
  background: rgba(70, 211, 105, 0.12);
  color: var(--success);
  border-color: rgba(70, 211, 105, 0.25);
}
.badge-inactive {
  background: rgba(109,109,109,0.12);
  color: var(--text-muted);
}
.badge-trial {
  background: rgba(168, 85, 247, 0.12);
  color: var(--trial);
  border-color: rgba(168, 85, 247, 0.25);
}
.badge-admin {
  background: rgba(0, 128, 255, 0.12);
  color: var(--info);
  border-color: rgba(0, 128, 255, 0.25);
}

/* Admin Modals */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.admin-modal-content {
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  animation: fadeScaleIn 0.3s ease-out;
}
.admin-modal-sm {
  max-width: 500px;
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  z-index: 2;
}
.admin-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.admin-form {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.input-with-prefix {
  display: flex;
  align-items: center;
  gap: 0;
}
.input-prefix {
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
}
.input-with-prefix input {
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
  flex: 1;
}

/* Cover Upload */
.cover-upload-area {
  cursor: pointer;
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.cover-upload-area:hover,
.cover-upload-area.drag-over {
  border-color: var(--accent);
}

.cover-preview {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.88rem;
  position: relative;
}
.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Admin Rows Management */
.admin-rows-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-row-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.02);
}

.admin-row-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-row-order {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 210, 196, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.admin-row-name-input {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.admin-row-name-input:hover,
.admin-row-name-input:focus {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  outline: none;
}

.admin-row-actions {
  display: flex;
  gap: 4px;
}

.admin-row-movies {
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-row-movie-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 6px 10px 6px 6px;
  transition: background var(--transition-fast);
}
.admin-row-movie-card:hover {
  background: rgba(255,255,255,0.08);
}

.admin-row-movie-thumb {
  width: 56px;
  height: 32px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.admin-row-movie-title {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

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

/* Admin Hero Selection */
.admin-hero-current {
  margin-bottom: 28px;
}
.admin-hero-current h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.admin-hero-preview {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.admin-hero-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.admin-hero-preview-overlay h2 {
  font-size: 1.2rem;
}
.admin-hero-preview-overlay p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

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

.admin-hero-option {
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  background: var(--bg-secondary);
}
.admin-hero-option:hover {
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.03);
}
.admin-hero-option.selected {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 210, 196, 0.3);
}

.admin-hero-option-thumb {
  aspect-ratio: 16 / 9;
}

.admin-hero-option span {
  display: block;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Admin Payment Methods */
.admin-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.payment-method-item {
  display: flex;
  gap: 8px;
  align-items: center;
}
.payment-method-item input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}
.payment-method-item input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Movie Picker */
.admin-movie-picker {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}

.admin-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.admin-picker-item:hover {
  background: rgba(255,255,255,0.05);
}

.admin-picker-thumb {
  width: 80px;
  height: 45px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.admin-picker-info {
  flex: 1;
}
.admin-picker-info strong {
  display: block;
  font-size: 0.88rem;
}
.admin-picker-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 48px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--success);
  color: #000;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 99999;
  transition: transform var(--transition-slow);
}
.toast-notification.show {
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

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

@media (max-width: 1200px) {
  .movie-card {
    flex: 0 0 calc((100% - 40px) / 5);
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 0 24px;
  }
  .hero {
    padding: 0 24px 60px;
  }
  .movie-row {
    padding: 0 24px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .movie-card {
    flex: 0 0 calc((100% - 30px) / 4);
    min-width: 160px;
  }
  .movie-detail-body {
    padding: 30px 24px;
  }
  .movie-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .admin-page {
    padding: calc(var(--navbar-height) + 24px) 24px 60px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  .navbar-left {
    gap: 20px;
  }
  .hero {
    min-height: 75vh;
    padding: 0 16px 50px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 0.9rem;
  }
  .movie-row {
    padding: 0 16px;
  }
  .movie-card {
    flex: 0 0 calc((100% - 20px) / 3);
    min-width: 140px;
  }
  .row-scroll-btn {
    display: none;
  }
  .auth-card {
    padding: 28px 20px;
  }
  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .admin-tab {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 8px 14px;
  }
  .admin-page {
    padding: calc(var(--navbar-height) + 16px) 16px 40px;
  }
  .movie-detail-hero {
    min-height: 50vh;
    padding: 0 16px 40px;
  }
  .movie-detail-content h1 {
    font-size: 2rem;
  }
  .site-footer {
    padding: 32px 16px;
  }
  .player-container {
    width: 100vw;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn-hero-play, .btn-hero-info {
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  .movie-card {
    flex: 0 0 calc((100% - 10px) / 2);
    min-width: 120px;
  }
  .subscribe-hero h1 {
    font-size: 1.8rem;
  }
  .plan-card {
    width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   NAVBAR SEARCH & CATEGORIES
   ============================================================ */

.navbar-search {
  display: flex;
  align-items: center;
  position: relative;
}

.search-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.search-toggle:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}
.search-bar.active ~ .search-toggle {
  display: none;
}

.search-bar {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}
.search-bar.active {
  width: 360px;
  opacity: 1;
  pointer-events: all;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 0 14px;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.search-input-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 12px 0;
  outline: none;
  width: 100%;
}
.search-input-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-close {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.search-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  z-index: 101;
  animation: fadeScaleIn 0.2s ease-out;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: background var(--transition-fast);
  text-decoration: none;
  color: inherit;
}
.search-dropdown-item:hover {
  background: var(--bg-hover);
}

.search-dropdown-thumb {
  width: 64px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.search-dropdown-info {
  flex: 1;
  min-width: 0;
}
.search-dropdown-info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-dropdown-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.search-match-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.search-match-tag.title {
  background: rgba(0, 210, 196, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 210, 196, 0.25);
}
.search-match-tag.actor {
  background: rgba(168, 85, 247, 0.15);
  color: var(--trial);
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.search-match-tag.director {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.search-dropdown-more {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  border-top: 1px solid var(--glass-border);
  transition: background var(--transition-fast);
}
.search-dropdown-more:hover {
  background: var(--bg-hover);
}

.search-dropdown-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.navbar-categories {
  position: relative;
  display: inline-flex;
}

.nav-categories-trigger {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
  padding: 0;
  font-family: inherit;
}
.nav-categories-trigger:hover,
.navbar-categories.open .nav-categories-trigger {
  color: var(--text-primary);
}

.categories-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 180px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1001;
  backdrop-filter: blur(20px);
}
.navbar-categories.open .categories-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.categories-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.categories-dropdown a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */

.search-page {
  padding: calc(var(--navbar-height) + 40px) 48px 60px;
  min-height: 80vh;
}

.search-page-header {
  margin-bottom: 40px;
  animation: fadeSlideUp 0.5s ease-out;
}

.search-page-breadcrumb {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.search-page-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-page-header p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.search-results-section {
  margin-bottom: 48px;
  animation: fadeSlideUp 0.6s ease-out;
}

.search-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.search-section-icon {
  font-size: 1.3rem;
}

.search-section-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  padding: 2px 10px;
  border-radius: 12px;
  color: var(--text-muted);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.search-results-grid .movie-card {
  flex: none;
  min-width: 0;
}

.search-empty-state {
  text-align: center;
  padding: 80px 20px;
  animation: fadeScaleIn 0.5s ease-out;
}

.search-empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.search-empty-state h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.search-empty-state p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* ============================================================
   COVER DELETE BUTTON
   ============================================================ */

.cover-delete-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.85);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.cover-delete-btn:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.05);
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
.splash-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.splash-logo {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
}

.splash-media img {
  max-width: 300px;
  max-height: 300px;
  object-fit: contain;
}

img.splash-media-fullscreen {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  object-fit: cover;
  background: #000000;
  z-index: 1;
}

.splash-loader {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.splash-loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  background: var(--accent);
  animation: splashLoad 1.5s infinite ease-in-out;
  border-radius: 2px;
}

@keyframes splashLoad {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* ============================================================
   FOOTER SOCIAL & LINKS
   ============================================================ */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
}

.footer-social a {
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ============================================================
   ADMIN CUSTOMIZER GENRES
   ============================================================ */
.customizer-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.genre-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.genre-tag-delete {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.genre-tag-delete:hover {
  opacity: 1;
}

/* ============================================================
   HERO CAROUSEL & VIDEOS
   ============================================================ */
.carousel-hero {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 80px;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0.8; /* Slight fade behind content */
}

/* Override existing hero child z-indexes to be above the slider backgrounds */
.hero-overlay, .hero-fade-bottom {
  z-index: 3;
  pointer-events: none;
}

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

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 50px;
  height: 80px;
  font-size: 2rem;
  z-index: 5;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
}
.carousel-hero:hover .hero-nav {
  opacity: 1;
}
.hero-nav:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.05);
}
.hero-nav-prev { left: 0; border-radius: 0 8px 8px 0; }
.hero-nav-next { right: 0; border-radius: 8px 0 0 8px; }

.hero-indicators {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero-indicator.active {
  background: var(--accent);
  transform: scale(1.3);
}

.hover-video {
  border-radius: inherit;
}

/* ==================== PROFILE DASHBOARD ==================== */
.profile-dashboard {
  display: flex;
  max-width: 1200px;
  margin: 60px auto;
  gap: 30px;
  padding: 0 20px;
}

.profile-sidebar {
  width: 300px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  height: fit-content;
}

.profile-sidebar-header {
  text-align: center;
  margin-bottom: 30px;
}

.profile-sidebar-header h2 {
  margin: 10px 0 5px;
  font-size: 1.5rem;
}

.profile-sidebar-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff4d4d);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-tab-btn {
  background: transparent;
  color: var(--text);
  border: none;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-tab-btn:hover {
  background: rgba(255,255,255,0.05);
}

.profile-tab-btn.active {
  background: rgba(229, 9, 20, 0.1);
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

.profile-content-area {
  flex: 1;
}

.profile-tab-content {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

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

.profile-tab-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text);
}

.detail-info-item {
  display: flex;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 15px;
}

.detail-label {
  width: 150px;
  color: var(--text-muted);
}

.detail-value {
  font-weight: 500;
}

/* Billing Table */
.billing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.billing-table th, .billing-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.billing-table th {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.badge-success {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Toggles */
.toggle-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  width: 50px;
  height: 26px;
  background-color: rgba(255,255,255,0.2);
  border-radius: 26px;
  position: relative;
  transition: 0.4s;
  margin-right: 15px;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.mt-15 { margin-top: 15px; }

/* Danger Zone */
.danger-zone {
  border: 1px solid rgba(229, 9, 20, 0.3) !important;
  background: rgba(229, 9, 20, 0.02) !important;
}

.danger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

/* ==================== SUPPORT PAGE ==================== */
.support-page {
  padding: 100px 20px 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.support-hero {
  text-align: center;
  margin-bottom: 50px;
}

.support-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.support-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.support-container {
  display: flex;
  gap: 40px;
}

.support-faq, .support-contact {
  flex: 1;
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.support-faq h2, .support-contact h2 {
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 15px;
}

.faq-item {
  margin-bottom: 25px;
}

.faq-item h4 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 768px) {
  .profile-dashboard {
    flex-direction: column;
  }
  .profile-sidebar {
    width: 100%;
  }
  .support-container {
    flex-direction: column;
  }
}


