/* ================================================
   StreamMN - Liquid Glass / Netflix Style
   Primary: Red (#e50914) + Black (#0a0a0a)
   Text: White
   ================================================ */

:root {
  --red: #e50914;
  --red-dark: #b8070f;
  --red-glow: rgba(229, 9, 20, 0.3);
  --black: #0a0a0a;
  --black-card: #141414;
  --white: #ffffff;
  --gray: rgba(255,255,255,0.6);
  --gray-dark: rgba(255,255,255,0.15);
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --glass-blur: blur(24px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* ========= RESET ========= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ========= LIQUID GLASS COMPONENTS ========= */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  box-shadow: 
    0 8px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.5),
    0 0 30px var(--red-glow),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ========= NAVBAR ========= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo img { height: 36px; object-fit: contain; }
.nav-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

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

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 7px 14px;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.nav-search:focus-within {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  width: 200px;
}
.nav-search input {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  width: 100px;
  transition: width 0.3s;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.4); }
.nav-search svg { color: rgba(255,255,255,0.5); width: 16px; height: 16px; }

.btn-nav-login {
  padding: 8px 20px;
  background: var(--red);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn-nav-login:hover { background: var(--red-dark); transform: scale(1.02); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff4d4d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.15);
}

/* ========= HERO SECTION ========= */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0000 0%, #0d0d0d 50%, #0a0a0a 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.9) 40%, transparent 100%),
              linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 50%);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5%;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-glow);
  border: 1px solid rgba(229,9,20,0.4);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff6b6b;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero h1 span { color: var(--red); }

.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-meta span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--red);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-play:hover {
  background: var(--red-dark);
  transform: scale(1.03);
  box-shadow: 0 6px 30px rgba(229,9,20,0.5);
}

.btn-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-info:hover { background: rgba(255,255,255,0.18); }

/* ========= SECTION ========= */
.section { padding: 40px 5%; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--red);
  border-radius: 2px;
}
.section-more {
  font-size: 0.85rem;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.section-more:hover { gap: 8px; }

/* ========= VIDEO GRID ========= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.video-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--black-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 2/3;
}
.video-card:hover {
  transform: scale(1.05) translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 20px var(--red-glow);
  z-index: 10;
}

.video-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.video-card:hover img { transform: scale(1.08); }

.video-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.video-card:hover .video-card-overlay { opacity: 1; }

.video-card-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.video-card-meta { font-size: 0.75rem; color: rgba(255,255,255,0.6); display: flex; gap: 8px; }

.video-card-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.badge-ppv {
  background: rgba(229,9,20,0.85);
  border: 1px solid rgba(229,9,20,0.5);
}
.badge-sub {
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}
.badge-free {
  background: rgba(34,197,94,0.8);
}
.badge-hd {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffd700;
}

.play-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  background: rgba(229,9,20,0.85);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translate(-50%, -50%) scale(0.8);
}
.video-card:hover .play-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ========= HORIZONTAL SCROLL ========= */
.video-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(229,9,20,0.5) transparent;
  -webkit-overflow-scrolling: touch;
}
.video-scroll::-webkit-scrollbar { height: 4px; }
.video-scroll::-webkit-scrollbar-track { background: transparent; }
.video-scroll::-webkit-scrollbar-thumb { background: rgba(229,9,20,0.5); border-radius: 2px; }

.video-scroll .video-card {
  min-width: 150px;
  flex-shrink: 0;
}

/* ========= CATEGORIES ========= */
.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cat-tab {
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}
.cat-tab:hover { background: rgba(255,255,255,0.12); color: #fff; }
.cat-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 15px var(--red-glow);
}

/* ========= MODAL (Auth / Payment) ========= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}

.modal {
  background: linear-gradient(145deg, rgba(20,20,20,0.95), rgba(10,10,10,0.98));
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8), 0 0 60px rgba(229,9,20,0.1);
}
.modal-overlay.open .modal { }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title { font-size: 1.3rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.1rem;
}
.modal-close:hover { background: rgba(255,255,255,0.15); }

/* ========= FORMS ========= */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}
.form-input:focus {
  border-color: rgba(229,9,20,0.6);
  background: rgba(229,9,20,0.06);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.1);
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }

.phone-input-wrap {
  display: flex;
  gap: 8px;
}
.phone-prefix {
  padding: 13px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* OTP inputs */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.otp-input {
  width: 52px; height: 58px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.2s;
}
.otp-input:focus {
  border-color: var(--red);
  background: rgba(229,9,20,0.08);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.15);
}

/* ========= BUTTONS ========= */
.btn {
  padding: 13px 24px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-full { width: 100%; }
.btn-red {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 15px var(--red-glow);
}
.btn-red:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(229,9,20,0.5);
}
.btn-glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
.btn-glass:hover { background: rgba(255,255,255,0.14); }

/* ========= PAYMENT PLANS ========= */
.payment-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.plan-card {
  padding: 18px;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: rgba(255,255,255,0.04);
}
.plan-card:hover { border-color: rgba(229,9,20,0.4); }
.plan-card.selected {
  border-color: var(--red);
  background: rgba(229,9,20,0.08);
  box-shadow: 0 0 20px rgba(229,9,20,0.2);
}
.plan-badge {
  font-size: 0.7rem;
  background: var(--red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
  display: inline-block;
}
.plan-name { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.plan-price { font-size: 1.4rem; font-weight: 800; color: #fff; }
.plan-price small { font-size: 0.75rem; font-weight: 400; color: rgba(255,255,255,0.5); }

/* QR Code display */
.qr-container {
  text-align: center;
  padding: 20px;
}
.qr-image {
  width: 200px; height: 200px;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,0.1);
  margin: 0 auto 16px;
  display: block;
  background: #fff;
  padding: 8px;
}
.qr-apps {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.qr-app-btn {
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: background 0.2s;
}
.qr-app-btn:hover { background: rgba(255,255,255,0.14); }
.checking-payment {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
}
.dot-pulse { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* ========= VIDEO PLAYER PAGE ========= */
.player-section {
  padding-top: 68px;
  background: #000;
}
.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  max-height: 70vh;
}
.player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.player-info {
  padding: 24px 5%;
  max-width: 900px;
}
.player-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.player-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.player-desc { color: rgba(255,255,255,0.7); line-height: 1.7; }

/* Episode list */
.episode-list { margin-top: 24px; }
.episode-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.episode-item:hover { background: rgba(255,255,255,0.06); }
.episode-item.active { background: rgba(229,9,20,0.1); border: 1px solid rgba(229,9,20,0.3); }
.episode-thumb { width: 120px; height: 68px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #1a1a1a; }
.episode-info { flex: 1; }
.episode-num { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.episode-title { font-size: 0.9rem; font-weight: 600; }

/* ========= PAYMENT WALL ========= */
.payment-wall {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 400px;
}
.payment-wall-icon { font-size: 3.5rem; margin-bottom: 16px; }
.payment-wall h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.payment-wall p { color: rgba(255,255,255,0.6); margin-bottom: 28px; }
.payment-wall-options { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ========= FOOTER ========= */
footer {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 5% 24px;
  margin-top: 60px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; color: rgba(255,255,255,0.8); }
.footer-col a { display: block; color: rgba(255,255,255,0.45); font-size: 0.85rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

/* ========= TOAST NOTIFICATIONS ========= */
.toast-container {
  position: fixed;
  top: 80px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 12px 18px;
  border-radius: 12px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
  font-weight: 500;
  max-width: 300px;
  animation: slideIn 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast-success { background: rgba(34,197,94,0.2); border-color: rgba(34,197,94,0.3); color: #86efac; }
.toast-error { background: rgba(229,9,20,0.2); border-color: rgba(229,9,20,0.3); color: #fca5a5; }
.toast-info { background: rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.3); color: #93c5fd; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 768px) {
  .navbar { padding: 0 4%; }
  .nav-links { display: none; }
  .hero { height: 70vh; }
  .hero-content { padding: 0 4%; }
  .video-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .video-scroll .video-card { min-width: 120px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 24px; }
  .payment-plans { grid-template-columns: 1fr; }
  .section { padding: 30px 4%; }
  .player-info { padding: 16px 4%; }
  .player-title { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .video-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .footer-content { grid-template-columns: 1fr; }
  .modal { padding: 24px 20px; }
}

/* ========= LOADING SPINNER ========= */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========= ADMIN STYLES ========= */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: rgba(10,10,10,0.95);
  border-right: 1px solid rgba(255,255,255,0.06);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-main {
  flex: 1;
  margin-left: 240px;
  padding: 24px;
  background: #0a0a0a;
}

.sidebar-logo {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-nav { padding: 14px 0; }
.sidebar-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.25);
  padding: 12px 20px 6px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-item:hover { color: #fff; background: rgba(255,255,255,0.04); }
.sidebar-item.active {
  color: #fff;
  background: rgba(229,9,20,0.08);
  border-left-color: var(--red);
}
.sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.admin-header h1 { font-size: 1.4rem; font-weight: 700; }

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  padding: 22px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-trend { font-size: 0.78rem; color: #22c55e; margin-top: 6px; }
.stat-trend.down { color: var(--red); }
.stat-icon { font-size: 1.6rem; margin-bottom: 10px; }

/* Charts */
.chart-container {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.chart-title { font-size: 1rem; font-weight: 600; }
.chart-period {
  display: flex;
  gap: 6px;
}
.period-btn {
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.period-btn.active, .period-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.badge {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-green { background: rgba(34,197,94,0.15); color: #86efac; }
.badge-red { background: rgba(229,9,20,0.15); color: #fca5a5; }
.badge-yellow { background: rgba(234,179,8,0.15); color: #fde047; }
.badge-blue { background: rgba(59,130,246,0.15); color: #93c5fd; }

/* Upload area */
.upload-area {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.upload-area:hover {
  border-color: rgba(229,9,20,0.5);
  background: rgba(229,9,20,0.04);
}
.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-text { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.upload-text strong { color: var(--red); }

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
