/* ============================================================
   Stream Buzz 4K – Design System
   Premium OTT Platform CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:           #050505;
  --bg-2:         #0d0d0d;
  --bg-3:         #111111;
  --card:         #181818;
  --card-hover:   #222222;
  --border:       #2a2a2a;
  --border-light: #333333;

  --primary:      #E50914;
  --primary-dark: #b30710;
  --primary-glow: rgba(229,9,20,0.35);
  --secondary:    #FFB703;
  --secondary-glow: rgba(255,183,3,0.3);
  --accent:       #00d4ff;

  --text:         #FFFFFF;
  --text-dim:     #B3B3B3;
  --text-muted:   #737373;
  --text-faint:   #4a4a4a;

  --success:      #46d369;
  --warning:      #FFB703;
  --danger:       #E50914;
  --info:         #00d4ff;

  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
  --shadow:       0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg:    0 16px 64px rgba(0,0,0,0.8);
  --shadow-glow:  0 0 40px var(--primary-glow);

  --transition:   all 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: all 0.15s ease;

  --header-h:     70px;
  --font-main:    'Poppins', sans-serif;
  --font-display: 'Montserrat', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent    { color: var(--accent); }
.text-dim       { color: var(--text-dim); }
.text-muted     { color: var(--text-muted); }
.text-success   { color: var(--success); }
.text-danger    { color: var(--danger); }

/* ── Layout ────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; }
.container-xs { max-width: 560px; }

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.row { display: flex; flex-wrap: wrap; gap: 24px; }

/* ── HEADER ────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: linear-gradient(to bottom, rgba(5,5,5,0.98) 0%, rgba(5,5,5,0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(5,5,5,0.99);
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.header-inner {
  display: flex; align-items: center; height: 100%; gap: 32px;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.4rem; letter-spacing: -0.5px;
  flex-shrink: 0;
}
.site-logo span { color: var(--primary); }
.site-logo img { height: 36px; }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500; color: var(--text-dim);
  transition: var(--transition-fast);
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--primary); border-radius: 2px;
}
.main-nav a:hover { background: rgba(255,255,255,0.06); }

/* Search */
.header-search {
  flex: 1; max-width: 320px;
  position: relative;
}
.header-search input {
  width: 100%; height: 40px;
  background: rgba(255,255,255,0.07);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0 16px 0 42px;
  color: var(--text); font-size: 0.875rem;
  transition: var(--transition);
}
.header-search input:focus {
  outline: none;
  background: rgba(255,255,255,0.1);
  border-color: var(--primary);
}
.header-search input::placeholder { color: var(--text-muted); }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.9rem; pointer-events: none;
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.btn-subscribe {
  background: var(--primary); color: #fff;
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600;
  transition: var(--transition);
}
.btn-subscribe:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-glow); }

.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  transition: var(--transition-fast); cursor: pointer;
}
.user-menu-trigger:hover { background: rgba(255,255,255,0.12); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu-drop {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #1a1a1a; border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 200px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition);
}
.user-menu.open .user-menu-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu-drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 0.875rem; color: var(--text-dim);
  transition: var(--transition-fast);
}
.user-menu-drop a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.user-menu-drop .drop-divider { border-top: 1px solid var(--border); margin: 4px 0; }
.user-menu-drop .drop-danger:hover { color: var(--primary); }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: var(--radius); background: rgba(255,255,255,0.07);
  color: var(--text); font-size: 1.1rem;
}

/* ── HERO SLIDER ───────────────────────────────────────────── */
.hero-slider {
  position: relative; height: 85vh; min-height: 560px;
  margin-top: var(--header-h); overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.4);
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5,5,5,0.92) 0%,
    rgba(5,5,5,0.6) 45%,
    rgba(5,5,5,0.1) 100%
  );
}
.hero-gradient-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero-content {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 0 60px 80px;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #fff;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.05;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  margin-bottom: 12px;
}
.hero-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.875rem; color: var(--text-dim); margin-bottom: 16px;
}
.hero-meta .rating { color: var(--secondary); font-weight: 600; }
.hero-desc {
  font-size: 0.95rem; color: var(--text-dim); line-height: 1.7;
  margin-bottom: 28px; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; align-items: center; gap: 12px; }

.btn-play {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #000;
  padding: 13px 28px; border-radius: var(--radius-full);
  font-size: 1rem; font-weight: 700;
  transition: var(--transition);
}
.btn-play:hover { background: rgba(255,255,255,0.85); transform: scale(1.03); }
.btn-play i { font-size: 1.1rem; }

.btn-info {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(109,109,110,0.7); color: #fff;
  padding: 13px 28px; border-radius: var(--radius-full);
  font-size: 1rem; font-weight: 600; backdrop-filter: blur(4px);
  transition: var(--transition);
}
.btn-info:hover { background: rgba(109,109,110,0.9); }

/* Slider Controls */
.slider-dots {
  position: absolute; bottom: 24px; right: 60px;
  display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.3); cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active { width: 24px; background: var(--primary); }

/* ── CONTENT SECTIONS ──────────────────────────────────────── */
.content-section { padding: 40px 0; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 1.4rem; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; width: 4px; height: 24px;
  background: var(--primary); border-radius: 2px; display: block;
}
.section-link {
  font-size: 0.875rem; color: var(--text-dim);
  display: flex; align-items: center; gap: 4px;
  transition: var(--transition-fast);
}
.section-link:hover { color: var(--primary); }

/* ── CONTENT ROW (Horizontal Scroll) ──────────────────────── */
.content-row {
  display: flex; gap: 12px;
  overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: none;
}
.content-row::-webkit-scrollbar { display: none; }

/* ── CONTENT CARD ──────────────────────────────────────────── */
.content-card {
  flex: 0 0 auto;
  width: 180px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.content-card:hover { transform: scale(1.06); box-shadow: 0 16px 48px rgba(0,0,0,0.7); z-index: 2; }
.content-card-wide { width: 280px; }
.content-card-lg { width: 220px; }

.card-thumb {
  width: 100%; aspect-ratio: 2/3;
  object-fit: cover; display: block;
  background: var(--card);
}
.card-thumb-wide { aspect-ratio: 16/9; }

.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
}
.content-card:hover .card-overlay { opacity: 1; }

.card-play-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; margin: 0 auto 8px; align-self: center;
  transition: transform 0.2s ease;
}
.content-card:hover .card-play-btn { transform: scale(1.1); }

.card-title {
  font-size: 0.8rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { font-size: 0.7rem; color: var(--text-dim); margin-top: 3px; }

/* Static card info (always visible) */
.card-info { padding: 10px 4px 4px; }
.card-info .card-label {
  font-size: 0.8rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--text);
}
.card-info .card-sublabel { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* Badges */
.card-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-new     { background: var(--success); color: #000; }
.badge-hd      { background: rgba(0,0,0,0.7); color: var(--text); border: 1px solid var(--border-light); }
.badge-4k      { background: var(--secondary); color: #000; }
.badge-free    { background: var(--accent); color: #000; }
.badge-live    { background: var(--primary); color: #fff; animation: pulse 2s infinite; }

@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

/* Rating Badge */
.card-rating {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  padding: 3px 7px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700; color: var(--secondary);
  display: flex; align-items: center; gap: 3px;
}

/* ── GRID VIEWS ────────────────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}
.content-grid .content-card { width: auto; }
.content-grid .card-thumb { width: 100%; }

.content-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ── PLAYER PAGE ───────────────────────────────────────────── */
.player-wrapper {
  background: #000; position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
}
.player-wrapper video, .player-wrapper .video-js { width: 100% !important; aspect-ratio: 16/9 !important; }

/* ── FORMS ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--text-dim); margin-bottom: 8px;
}
.form-control {
  width: 100%; height: 48px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font-size: 0.9rem; padding: 0 16px;
  transition: var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-control::placeholder { color: var(--text-faint); }
textarea.form-control { height: auto; padding: 14px 16px; resize: vertical; min-height: 120px; }
select.form-control { appearance: none; }

.form-control.is-invalid { border-color: var(--danger); }
.invalid-feedback { color: var(--danger); font-size: 0.8rem; margin-top: 4px; }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  transition: var(--transition); border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn-rounded { border-radius: var(--radius-full); }

.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-glow); transform: translateY(-1px); }

.btn-secondary {
  background: var(--secondary); color: #000;
}
.btn-secondary:hover { background: #e6a402; transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--text);
  border-color: var(--border-light);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  background: rgba(255,255,255,0.07); color: var(--text-dim);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--text); }

.btn-danger { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #000; }

/* Loading state */
.btn.loading { opacity: 0.7; pointer-events: none; }
.btn.loading::after {
  content: ''; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MODALS ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: #1a1a1a; border: 1px solid var(--border);
  border-radius: var(--radius-xl); max-width: 520px; width: 100%;
  transform: scale(0.9) translateY(20px); transition: var(--transition);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 0;
}
.modal-title { font-size: 1.25rem; font-weight: 700; }
.modal-close {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: rgba(255,255,255,0.07); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast); cursor: pointer;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 0 28px 28px; display: flex; gap: 12px; justify-content: flex-end; }

/* ── ALERTS / TOASTS ───────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 0.875rem; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: rgba(70,211,105,0.12); border: 1px solid rgba(70,211,105,0.3); color: var(--success); }
.alert-danger   { background: rgba(229,9,20,0.12); border: 1px solid rgba(229,9,20,0.3); color: #ff6b6b; }
.alert-warning  { background: rgba(255,183,3,0.12); border: 1px solid rgba(255,183,3,0.3); color: var(--secondary); }
.alert-info     { background: rgba(0,212,255,0.12); border: 1px solid rgba(0,212,255,0.3); color: var(--accent); }

.toast-container {
  position: fixed; top: 90px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; max-width: 360px;
}
.toast {
  background: #1e1e1e; border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease;
}
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.removing { animation: slideOut 0.3s ease forwards; }
@keyframes slideOut { to { transform: translateX(120%); opacity: 0; } }
.toast-icon { font-size: 1.1rem; margin-top: 1px; }
.toast-success .toast-icon { color: var(--success); }
.toast-danger .toast-icon   { color: var(--primary); }
.toast-warning .toast-icon  { color: var(--secondary); }
.toast-info .toast-icon     { color: var(--accent); }
.toast-content { flex: 1; }
.toast-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; }
.toast-msg { font-size: 0.8rem; color: var(--text-dim); }
.toast-close { color: var(--text-muted); cursor: pointer; font-size: 0.8rem; margin-top: 2px; }

/* ── SKELETON LOADING ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-card { width: 180px; flex: 0 0 auto; }
.skel-thumb { aspect-ratio: 2/3; border-radius: var(--radius); }
.skel-line { height: 12px; margin-top: 8px; }
.skel-line-sm { width: 60%; }

/* ── TABS ──────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); border-radius: var(--radius) var(--radius) 0 0;
  position: relative; transition: var(--transition-fast);
}
.tab-btn:hover { color: var(--text-dim); }
.tab-btn.active { color: var(--text); }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── FILTER BAR ────────────────────────────────────────────── */
.filter-bar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 28px;
}
.filter-chip {
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 500; color: var(--text-dim);
  background: var(--card); border: 1px solid var(--border);
  transition: var(--transition-fast); cursor: pointer;
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── PAGINATION ────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 40px;
}
.page-link {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 500; color: var(--text-dim);
  background: var(--card); border: 1px solid var(--border);
  transition: var(--transition-fast);
}
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.disabled { opacity: 0.4; pointer-events: none; }

/* ── PRICING CARDS ─────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px 28px;
  text-align: center; position: relative; overflow: hidden;
  transition: var(--transition);
}
.pricing-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, #1a0a0b 0%, var(--card) 100%);
  box-shadow: 0 0 40px rgba(229,9,20,0.15);
}
.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute; top: 16px; right: -24px;
  background: var(--primary); color: #fff;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 1px;
  padding: 4px 36px; transform: rotate(45deg);
}
.plan-name { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.plan-price {
  font-size: 3rem; font-weight: 900; color: var(--text);
  line-height: 1; margin: 16px 0 4px;
}
.plan-price span { font-size: 1.2rem; font-weight: 500; color: var(--text-dim); }
.plan-original { font-size: 0.875rem; color: var(--text-muted); text-decoration: line-through; margin-bottom: 20px; }
.plan-features { text-align: left; margin: 24px 0; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text-dim); padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border: none; }
.plan-features li i { color: var(--success); font-size: 0.8rem; flex-shrink: 0; }

/* ── DASHBOARD SIDEBAR ─────────────────────────────────────── */
.dash-layout { display: flex; gap: 0; min-height: 100vh; margin-top: var(--header-h); }
.dash-sidebar {
  width: 260px; flex-shrink: 0; background: var(--bg-2);
  border-right: 1px solid var(--border); padding: 24px 0;
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.dash-main { flex: 1; padding: 32px; min-width: 0; }

.sidebar-section { margin-bottom: 8px; }
.sidebar-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-faint); padding: 8px 20px; margin-top: 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; font-size: 0.875rem; color: var(--text-muted);
  transition: var(--transition-fast); position: relative;
}
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-link.active {
  color: var(--text); background: rgba(229,9,20,0.1);
  border-right: 2px solid var(--primary);
}
.sidebar-link i { width: 18px; text-align: center; }
.sidebar-badge {
  margin-left: auto; background: var(--primary); color: #fff;
  font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-full);
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: #080808; border-top: 1px solid var(--border); padding: 60px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo { font-size: 1.5rem; font-weight: 900; margin-bottom: 12px; }
.footer-brand .logo span { color: var(--primary); }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--transition-fast);
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.footer-col h4 { font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-muted); transition: var(--transition-fast); }
.footer-col ul li a:hover { color: var(--text); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ── SEARCH RESULTS ────────────────────────────────────────── */
.search-drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #1a1a1a; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); z-index: 500;
  display: none;
}
.search-drop.open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; transition: var(--transition-fast);
}
.search-result-item:hover { background: rgba(255,255,255,0.06); }
.search-result-img {
  width: 42px; height: 60px; object-fit: cover;
  border-radius: 4px; background: var(--card);
}
.search-result-info .name { font-size: 0.875rem; font-weight: 500; }
.search-result-info .meta { font-size: 0.75rem; color: var(--text-muted); }
.search-no-result { padding: 20px; text-align: center; color: var(--text-muted); font-size: 0.875rem; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .main-nav { display: none; }
  .header-search { display: none; }
  .menu-toggle { display: flex; }
  .hero-content { padding: 0 24px 60px; max-width: 100%; }
  .dash-sidebar { display: none; }
  .content-card { width: 150px; }
  .content-card-wide { width: 240px; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .hero-slider { height: 70vh; }
  .hero-title { font-size: 1.8rem; }
  .hero-desc { display: none; }
  .content-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .dash-main { padding: 20px; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; gap: 8px; }
  .btn-play, .btn-info { width: 100%; justify-content: center; }
  .content-card { width: 130px; }
}

/* ── MOBILE NAV DRAWER ─────────────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.mobile-nav-links { padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  padding: 14px 16px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500; color: var(--text-dim);
  transition: var(--transition-fast); display: flex; align-items: center; gap: 12px;
}
.mobile-nav-links a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.mobile-nav-links a.active { color: var(--primary); background: rgba(229,9,20,0.1); }

/* ── UTILITY ───────────────────────────────────────────────── */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.mt-0   { margin-top: 0; }
.mt-1   { margin-top: 8px; }
.mt-2   { margin-top: 16px; }
.mt-3   { margin-top: 24px; }
.mt-4   { margin-top: 32px; }
.mb-0   { margin-bottom: 0; }
.mb-2   { margin-bottom: 16px; }
.mb-3   { margin-bottom: 24px; }
.mb-4   { margin-bottom: 32px; }
.p-0    { padding: 0; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.fw-600  { font-weight: 600; }
.fw-700  { font-weight: 700; }
.fw-900  { font-weight: 900; }
.fz-sm   { font-size: 0.8rem; }
.fz-xs   { font-size: 0.72rem; }
.w-100   { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }

/* Visibility */
.show { display: block !important; }
.hide { display: none !important; }
