/* ==========================================================================
   MovieFlick Modern Dark Theme & Component Library
   Designed for High-Converting TikTok Traffic & Google AdSense Optimization
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-main: #07090e;
  --bg-surface: #0f141f;
  --bg-card: #151c2c;
  --bg-card-hover: #1c253b;
  --bg-input: #1a2236;
  --bg-glass: rgba(15, 20, 31, 0.75);
  
  /* Primary & Accent Gradients */
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-emerald: #10b981;
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;
  
  --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --fire-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #38bdf8;

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(0, 242, 254, 0.4);
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.25);
  --glow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-popup: 0 25px 60px -15px rgba(0, 0, 0, 0.9);

  /* Dimensions & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --header-height: 76px;
  --max-width: 1360px;
}

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

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

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

h1, h2, h3, h4, h5, h6, .brand-logo, .hero-title, .badge {
  font-family: 'Outfit', sans-serif;
}

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

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

/* Ambient Background Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 1400px;
  height: 500px;
  background: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.12) 0%, rgba(79, 172, 254, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Top Sticky Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 20px;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-logo .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
}

.brand-logo .logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #07090e;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
}

.nav-item-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.nav-item-btn.active {
  color: #fff;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--border-accent);
}

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

.btn-nav-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.btn-nav-tiktok {
  background: rgba(255, 0, 80, 0.12);
  color: #ff0050;
  border-color: rgba(255, 0, 80, 0.3);
}

.btn-nav-tiktok:hover {
  background: #ff0050;
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 0, 80, 0.4);
}

.btn-nav-admin {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--border-card);
}

.btn-nav-admin:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Layout Wrapper */
.main-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
  position: relative;
  z-index: 1;
}

/* TikTok Promo Top Notice */
.tiktok-notice-banner {
  background: linear-gradient(90deg, rgba(255, 0, 80, 0.12) 0%, rgba(0, 242, 254, 0.1) 100%);
  border: 1px solid rgba(255, 0, 80, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tiktok-notice-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tiktok-tag {
  background: #ff0050;
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tiktok-notice-text {
  font-size: 0.92rem;
  color: #e2e8f0;
}

.tiktok-notice-text b {
  color: var(--accent-cyan);
}

/* HERO SEARCH SECTION (Centerpiece for TikTok Visitors) */
.hero-search-section {
  text-align: center;
  padding: 42px 16px 28px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-headline {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-subtitle span {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Live Instant Search Bar */
.search-container {
  position: relative;
  margin: 0 auto 20px;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 8px 12px 8px 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan), 0 15px 40px rgba(0, 0, 0, 0.6);
  background: var(--bg-card);
}

.search-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
  margin-right: 14px;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 500;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-clear-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.2s;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.search-action-btn {
  background: var(--primary-gradient);
  border: none;
  color: #07090e;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.search-action-btn:hover {
  transform: scale(1.03);
  box-shadow: var(--glow-cyan);
}

/* Quick Search Tags (TikTok Trending Codes) */
.quick-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-tag-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-tag-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-tag-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
}

/* ADSENSE / AD BANNER CONTAINERS */
.ad-slot-wrapper {
  margin: 24px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

.ad-card-placeholder {
  background: rgba(15, 20, 31, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: all 0.2s ease;
}

.ad-card-placeholder:hover {
  border-color: var(--accent-cyan);
}

.ad-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 4px;
}

.ad-info-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Category Filters Bar */
.filter-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-heading-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.title-counter-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.genre-filter-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.genre-filter-scroll::-webkit-scrollbar {
  display: none;
}

.genre-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.genre-pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.genre-pill-btn.active {
  background: var(--primary-gradient);
  color: #07090e;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

/* MOVIE GRID */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  margin-top: 16px;
}

/* Movie Card */
.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-card), var(--glow-cyan);
}

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

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

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

/* Badges on Poster */
.badge-tiktok-code {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ff0050 0%, #00f2fe 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-quality-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.poster-overlay-btn {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}

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

.play-circle-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

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

.play-circle-icon svg {
  width: 24px;
  height: 24px;
  fill: #07090e;
  margin-left: 2px;
}

/* Card Content Details */
.card-content {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-gold);
  font-weight: 700;
}

.card-rating svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.card-genres {
  font-size: 0.74rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 12px;
}

.card-btn-download {
  margin-top: auto;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-btn-download:hover {
  background: var(--primary-gradient);
  color: #07090e;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.35);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.empty-state svg {
  width: 52px;
  height: 52px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 20px;
}

/* ==========================================================================
   MODAL / POPUP DETAILS & DOWNLOAD VIEWER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-popup);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #ff4d4f;
  border-color: #ff4d4f;
  transform: rotate(90deg);
}

.modal-header-hero {
  position: relative;
  min-height: 240px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 24px 28px;
}

.modal-header-backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-surface) 10%, rgba(15, 20, 31, 0.6) 60%, rgba(7, 9, 14, 0.3) 100%);
}

.modal-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.modal-poster-thumb {
  width: 120px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--border-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

.modal-title-info h2 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.modal-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pill-cyan {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid var(--border-accent);
}

.badge-pill-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-pill-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

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

.modal-overview-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Stream Embed Video Player */
.stream-player-container {
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: #000;
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.stream-player-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Download Section (Highest Revenue Monetization Area) */
.download-section-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
}

.download-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.download-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.download-box-title svg {
  color: var(--accent-emerald);
}

.download-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-download-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-download-link-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.download-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-item-text {
  display: flex;
  flex-direction: column;
}

.download-item-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.download-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.download-item-badge {
  background: var(--primary-gradient);
  color: #07090e;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Download Countdown Timer Modal */
.countdown-box {
  display: none;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin: 16px 0;
}

.countdown-box.active {
  display: block;
}

.countdown-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: var(--glow-cyan);
}

.countdown-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-countdown-ready {
  background: var(--emerald-gradient);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-countdown-ready:hover {
  transform: scale(1.04);
}

/* Series Seasons & Episodes Accordion */
.seasons-wrapper {
  margin-top: 16px;
}

.season-tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.season-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.season-tab-btn.active {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: #fff;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.episode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 24px;
  background: rgba(7, 9, 14, 0.95);
  margin-top: 60px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 650px;
  line-height: 1.5;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.toast-notice.show {
  display: flex;
  animation: toastSlideUp 0.3s ease;
}

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

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
    height: 68px;
  }
  .nav-menu {
    display: none; /* Mobile navigation simplified */
  }
  .hero-headline {
    font-size: 1.85rem;
  }
  .hero-search-section {
    padding: 24px 8px 16px;
  }
  .search-bar {
    padding: 6px 8px 6px 16px;
  }
  .search-action-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .movies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .modal-hero-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-poster-thumb {
    width: 90px;
  }
  .modal-title-info h2 {
    font-size: 1.4rem;
  }
  .modal-body {
    padding: 16px;
  }

  /* Prevent automatic text zoom on iOS Safari */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Smooth iOS scrolling */
  .modal-card, .genre-filter-scroll, .catalog-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  /* Touch optimization for mobile tap targets */
  .btn-download-link-item,
  .btn-countdown-ready,
  .search-action-btn,
  .card-btn-download {
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

/* Stream Section & Cinema Player */
.stream-section-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.stream-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.stream-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.badge-pill-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.tiktok-tip-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #fde68a;
  margin-top: 14px;
}
/* Dual Buttons: Direct Browser vs Telegram App */
.btn-download-browser {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08)) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  transition: all 0.25s ease !important;
}

.btn-download-browser:hover {
  border-color: #10b981 !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.28) !important;
  transform: translateY(-2px);
}

.btn-download-telegram {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.16), rgba(0, 136, 204, 0.06)) !important;
  border: 1px solid rgba(0, 136, 204, 0.45) !important;
  transition: all 0.25s ease !important;
}

.btn-download-telegram:hover {
  border-color: #0088cc !important;
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.32) !important;
  transform: translateY(-2px);
}

.icon-telegram {
  background: #0088cc !important;
  color: #fff !important;
}

.icon-browser {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  color: #fff !important;
}

.badge-telegram {
  background: #0088cc !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.badge-browser {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.tag-no-app {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: inline-block;
}

.tag-telegram {
  background: rgba(0, 136, 204, 0.2);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  border: 1px solid rgba(0, 136, 204, 0.35);
  display: inline-block;
}
/* TeraBox & Cloud Badges */
.btn-download-terabox {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.08)) !important;
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
  transition: all 0.25s ease !important;
}

.btn-download-terabox:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.32) !important;
  transform: translateY(-2px);
}

.icon-terabox {
  background: linear-gradient(135deg, #2563eb, #0284c7) !important;
  color: #fff !important;
}

.badge-terabox {
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.tag-terabox {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  display: inline-block;
}

.tag-drive {
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  border: 1px solid rgba(234, 179, 8, 0.35);
  display: inline-block;
}
/* ==============================================================
   PREMIUM ULTRA-SLEEK DIRECT DOWNLOAD UI & MOBILE POLISH
   ============================================================== */

/* Direct Download Hero Box */
.download-section-box {
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.95), rgba(13, 17, 28, 0.98)) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.1) !important;
  padding: 24px !important;
}

/* Pulsing Emerald Direct Download Button */
.btn-download-browser,
.btn-download-link-item {
  min-height: 64px !important;
  border-radius: var(--radius-md) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.1)) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  padding: 14px 20px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-download-browser:hover,
.btn-download-link-item:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(6, 182, 212, 0.18)) !important;
  border-color: #10b981 !important;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.35) !important;
  transform: translateY(-2px) scale(1.01) !important;
}

.download-icon-circle {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
}

.download-item-label {
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.2px;
}

.download-item-sub {
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
  margin-top: 3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.download-item-badge {
  background: linear-gradient(135deg, #10b981, #047857) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-full) !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

/* Trust Guarantee Bar */
.direct-download-guarantee {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Mobile Responsiveness Refinements */
@media (max-width: 650px) {
  .modal-card {
    border-radius: 16px !important;
    margin: 0 !important;
  }
  .modal-header-hero {
    height: 200px !important;
  }
  .modal-poster-thumb {
    width: 100px !important;
    height: 150px !important;
    border-width: 2px !important;
  }
  .modal-hero-content {
    bottom: -30px !important;
    padding: 0 14px !important;
    gap: 12px !important;
  }
  .modal-title-info h2 {
    font-size: 1.25rem !important;
  }
  .modal-body {
    padding: 42px 14px 20px !important;
  }
  .download-section-box {
    padding: 16px 12px !important;
  }
  .btn-download-link-item {
    padding: 12px 12px !important;
    min-height: 58px !important;
  }
  .download-icon-circle {
    width: 38px !important;
    height: 38px !important;
  }
  .download-item-label {
    font-size: 0.92rem !important;
  }
  .download-item-badge {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
  }
  .direct-download-guarantee {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px !important;
    gap: 8px !important;
  }
}
/* MediaFire Brand Styles */
.btn-download-mediafire {
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.18), rgba(0, 170, 255, 0.08)) !important;
  border: 1.5px solid rgba(0, 119, 255, 0.5) !important;
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.18) !important;
}

.btn-download-mediafire:hover {
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.28), rgba(0, 170, 255, 0.18)) !important;
  border-color: #0077ff !important;
  box-shadow: 0 12px 32px rgba(0, 119, 255, 0.35) !important;
  transform: translateY(-2px) scale(1.01) !important;
}

.icon-mediafire {
  background: linear-gradient(135deg, #0077ff, #0055cc) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.45) !important;
}

.badge-mediafire {
  background: linear-gradient(135deg, #0077ff, #0044aa) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.4) !important;
}

.tag-mediafire {
  background: rgba(0, 119, 255, 0.2) !important;
  color: #38bdf8 !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  margin-left: 6px !important;
  border: 1px solid rgba(0, 119, 255, 0.35) !important;
  display: inline-block !important;
}