/* ==========================================================================
   OASIS MOVIES — Ultra-Premium Dark Cinematic Design System
   ========================================================================== */

:root {
  --bg-core: #07090e;
  --bg-surface: #0f121d;
  --bg-card: rgba(21, 25, 38, 0.7);
  --bg-card-hover: rgba(30, 36, 54, 0.85);
  --bg-glass: rgba(15, 18, 29, 0.75);
  
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.35);
  --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #ec4899 100%);
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(139, 92, 246, 0.5);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 30px var(--primary-glow);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-core);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Radial Glow */
.ambient-glow {
  position: fixed;
  top: -150px;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(217, 70, 239, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.logo-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.logo-text .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

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

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 290px;
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: var(--transition-smooth);
}

.search-box input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-active);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
  width: 340px;
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
}

.clear-search-btn:hover {
  color: #fff;
}

.mode-toggle-pill {
  cursor: pointer;
  user-select: none;
  padding: 4px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: var(--transition-fast);
}

.mode-badge.monetized {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

/* Hero Spotlight Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 0 60px 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.65) saturate(1.2);
  transition: background-image 0.8s ease;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 14, 0.1) 0%,
    rgba(7, 9, 14, 0.4) 40%,
    rgba(7, 9, 14, 0.85) 75%,
    var(--bg-core) 100%
  ),
  linear-gradient(90deg, rgba(7, 9, 14, 0.9) 0%, rgba(7, 9, 14, 0.4) 50%, transparent 100%);
  z-index: 1;
}

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

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

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ec4899;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

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

.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
}

.rating-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.quality-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.3);
}

.hero-overview {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217, 70, 239, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--primary);
  color: #fff;
}

.btn-icon.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}

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

/* Main Container */
.main-container {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px 80px;
  z-index: 2;
}

/* Genre Pills Bar */
.genre-pill-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.genre-pill-bar::-webkit-scrollbar {
  display: none;
}

.genre-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.genre-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.genre-pill.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 14px rgba(139, 92, 246, 0.35);
}

/* Section Common */
.section {
  margin-bottom: 48px;
}

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

.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.view-all:hover {
  color: #d946ef;
  transform: translateX(2px);
}

/* Movie Carousel / Horizontal Row */
.movie-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.movie-carousel::-webkit-scrollbar {
  height: 6px;
}

.movie-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

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

/* Movie Card Component */
.movie-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
  display: flex;
  flex-direction: column;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-active);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

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

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

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

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 14, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transform: scale(0.8);
  transition: transform 0.2s ease;
}

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

.card-rating {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(8px);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-backdrop, .player-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 7, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Video Player Modal Container */
.player-modal-container {
  position: relative;
  width: 100%;
  max-width: 1160px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(139, 92, 246, 0.2);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
}

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

.player-media-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  color: #fff;
}

.player-title {
  font-size: 18px;
  font-weight: 700;
}

.player-subinfo {
  font-size: 13px;
  color: var(--text-dim);
}

.player-controls-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.server-dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.server-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.server-select:hover, .server-select:focus {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.15);
}

.server-select option {
  background: #0f121d;
  color: #fff;
}

.btn-close-player, .btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition-fast);
}

.btn-close-player:hover, .btn-close-modal:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Video Frame Wrapper */
.video-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #06080e;
  color: var(--text-muted);
  font-size: 13px;
  z-index: 1;
}

.player-loader.hidden {
  display: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.video-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* TV Controls Drawer */
.tv-controls-drawer {
  background: rgba(0, 0, 0, 0.4);
  padding: 14px 24px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.tv-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.season-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.season-selector-wrapper select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.season-selector-wrapper select option {
  background: #0f121d;
}

.ep-count-text {
  font-size: 12px;
  color: var(--text-dim);
}

.episode-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.ep-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ep-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ep-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Player Footer */
.player-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.player-overview-text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.5;
}

.player-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.server-tip {
  font-size: 11px;
  color: var(--text-dim);
}

/* Detail Card Modal */
.detail-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.detail-banner {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
}

.detail-body {
  padding: 24px;
}

.detail-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-synopsis {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

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

.btn-close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
}

/* App Footer */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.95);
  padding: 40px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-disclaimer {
  max-width: 680px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--accent-emerald);
  font-weight: 600;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .navbar { padding: 0 20px; }
  .hero-section { padding: 0 30px 60px; height: 60vh; }
  .hero-title { font-size: 36px; }
  .main-container { padding: 0 20px 60px; }
}

@media (max-width: 768px) {
  .navbar { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .nav-left { width: 100%; justify-content: space-between; }
  .nav-links { display: none; }
  .search-box { width: 100%; }
  .search-box input:focus { width: 100%; }
  .hero-section { height: auto; min-height: 400px; padding: 40px 16px 40px; }
  .hero-title { font-size: 28px; }
  .player-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .player-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ==========================================================================
   V2 SUB-PAGES & EXPANDED VIEWS
   ========================================================================== */

/* View Panels Animation */
.view-panel {
  animation: fadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Nav Link Special Pills */
.nav-vip-btn {
  color: var(--accent-gold) !important;
  font-weight: 700 !important;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.nav-vip-btn:hover, .nav-vip-btn.active {
  background: rgba(245, 158, 11, 0.2) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.nav-admin-btn {
  color: var(--accent-cyan) !important;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.nav-admin-btn:hover, .nav-admin-btn.active {
  background: rgba(6, 182, 212, 0.2) !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35);
}

/* Breadcrumbs & Navigation Rows */
.browse-nav-row, .watch-navigation-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.browse-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.browse-title {
  font-size: 28px;
  font-weight: 800;
}

/* --- Dedicated Cinema Watch View --- */
.cinema-player-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(139, 92, 246, 0.15);
  margin-bottom: 30px;
}

.cinema-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 18, 29, 0.95);
  backdrop-filter: blur(12px);
}

.cinema-title-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cinema-stream-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.cinema-actions-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.btn-fullscreen:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* 16:9 Cinema Frame Wrapper */
.cinema-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030407;
  overflow: hidden;
}

.cinema-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Cinema Details Card */
.watch-details-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 30px;
  margin-bottom: 40px;
  backdrop-filter: blur(16px);
}

.watch-meta-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.watch-main-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.watch-actions-right {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.watch-synopsis {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 900px;
  margin-bottom: 24px;
}

.server-status-card {
  padding: 14px 18px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-size: 13px;
  color: #c4b5fd;
}

/* --- VIP Pricing & Membership View --- */
.pricing-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.pricing-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.vip-pill {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 12px;
  padding: 4px 12px;
  margin-bottom: 16px;
  display: inline-block;
}

.pricing-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.pricing-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(30, 24, 54, 0.9) 0%, rgba(15, 18, 29, 0.9) 100%);
  border-color: var(--primary);
  box-shadow: 0 0 35px var(--primary-glow);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.tier-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.featured-tag {
  color: var(--primary);
}

.tier-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.tier-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.tier-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

.tier-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 40px;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  flex: 1;
}

.tier-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tier-features li strong {
  color: var(--text-main);
}

.full-width {
  width: 100%;
}

/* Checkout Modal */
.checkout-card {
  max-width: 480px;
  padding: 32px;
}

.checkout-body h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 10px 0 4px;
}

.checkout-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

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

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

.form-group input {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.notice-box {
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #6ee7b7;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* --- Admin Telemetry Portal --- */
.admin-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 0 80px;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 34px;
}

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

.admin-pill {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-size: 11px;
}

.admin-session-text {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.admin-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-sub {
  font-size: 14px;
  color: var(--text-muted);
}

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

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 22px;
  backdrop-filter: blur(12px);
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.kpi-trend {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.kpi-trend.positive {
  color: var(--accent-emerald);
}

.admin-section-box {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  margin-bottom: 30px;
  backdrop-filter: blur(14px);
}

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

.box-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.box-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* Admin Table */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.admin-table th {
  padding: 12px 14px;
  color: var(--text-dim);
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
  padding: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

/* Server Health Grid */
.server-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.server-health-card {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-health-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.server-health-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}

/* Pitch Code Block */
.pitch-code-block {
  padding: 18px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #a5b4fc;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Responsive Media Queries for V2 Views */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 40px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .admin-kpi-grid { grid-template-columns: 1fr; }
  .cinema-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .watch-meta-header { flex-direction: column; }
  .watch-actions-right { width: 100%; justify-content: flex-start; }
}

/* ==========================================================================
   AUTH & ACCOUNT UI
   ========================================================================== */

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

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.user-chip-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip-role {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.3);
}

/* Auth Modal */
.auth-card {
  max-width: 420px;
}

.auth-body {
  padding: 32px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0 20px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.auth-tab.active {
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
  border-color: rgba(139, 92, 246, 0.3);
}

.auth-message {
  padding: 10px 14px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #67e8f9;
  line-height: 1.5;
  margin-bottom: 18px;
}

.auth-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #fca5a5;
  line-height: 1.5;
  margin-bottom: 18px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none !important;
}

/* Checkout inline notice (checkout not live) */
.checkout-notice {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

/* Live account metrics inline error */
.live-metrics-error {
  color: #fca5a5 !important;
  font-size: 13px;
}

