/* ═══════════════════════════════════════════════════
   نماواکس — Professional Dark Theme
   Single clean design, no stacking overrides
   ═══════════════════════════════════════════════════ */

/* --- CSS Variables --- */
:root {
  --bg: #0a0b12;
  --bg-alt: #0f1019;
  --panel: #14151f;
  --panel-hover: #1a1b28;
  --text: #eeeef5;
  --text-dim: #8b8ca0;
  --text-muted: #6a6b7e;
  --accent: #e36545;
  --accent-light: #ff8a6a;
  --accent-dark: #c44d30;
  --gold: #ffc957;
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 'Tahoma', 'Arial', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

/* ═══════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════ */
header {
  height: 64px;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 0 max(4vw, 25px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 18, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand span {
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 11px;
}

nav {
  display: flex;
  gap: 6px;
}
nav a {
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
}
nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.top-search {
  margin-right: auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  width: min(340px, 30vw);
  transition: var(--transition);
}
.top-search:focus-within {
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(227, 101, 69, 0.15);
}
.top-search input {
  background: none;
  border: 0;
  outline: 0;
  padding: 9px 14px;
  color: #fff;
  flex: 1;
  font-family: inherit;
  font-size: 13px;
}
.top-search input::placeholder { color: var(--text-muted); }
.top-search button,
.install {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 8px 12px;
  transition: var(--transition);
}
.top-search button:hover { color: #fff; }

.install {
  font: inherit;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
}
.install:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════════ */
main {
  max-width: 1400px;
  margin: auto;
  padding: 0 max(4vw, 25px) 80px;
}

/* ═══════════════════════════════════════════════════
   HERO / CINEMA INTRO (Homepage)
   ═══════════════════════════════════════════════════ */
.cinema-intro {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 60px 1fr 36%;
  gap: 30px;
  align-items: center;
  padding: 60px 6%;
  margin-top: 24px;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(227,101,69,0.12) 0%, transparent 60%),
    linear-gradient(135deg, #12131b 0%, #0d0e17 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.intro-number {
  align-self: start;
  color: var(--text-muted);
  font: 11px monospace;
  letter-spacing: 2px;
  writing-mode: vertical-lr;
}
.kicker,
.block-label {
  font: 11px monospace;
  letter-spacing: 2.5px;
  color: var(--accent);
  text-transform: uppercase;
}
.cinema-intro h1 {
  font-size: clamp(42px, 5.5vw, 78px);
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
  margin: 16px 0;
  color: #fff;
}
.cinema-intro h1 strong {
  color: var(--accent);
  font-weight: 400;
}
.cinema-intro p {
  max-width: 420px;
  color: var(--text-dim);
  line-height: 1.9;
  font-size: 14px;
}
.intro-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}
.intro-art {
  height: 100%;
  min-height: 400px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12% 10%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
  border-radius: 0 16px 16px 0;
}
.intro-art span {
  font: 12px monospace;
  letter-spacing: 3px;
  color: var(--text-muted);
  line-height: 1.8;
}
.intro-art b {
  font-size: 52px;
  font-weight: 300;
  color: var(--accent);
}

/* --- App Download Section --- */
.app-download {
  margin: 28px 0;
  padding: 32px 5%;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(227,101,69,0.08) 0%, rgba(20,21,31,1) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.app-download h2 { margin: 8px 0; font-weight: 500; }
.app-download p { color: var(--text-dim); max-width: 550px; font-size: 14px; }
.app-download-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.update-badge {
  display: inline-block;
  background: rgba(227,101,69,0.15);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(227,101,69,0.3);
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(227,101,69,0.3);
}
.btn.ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  border: 1px solid var(--border-light);
}
.btn.ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.text-link {
  color: var(--text-dim);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: var(--transition);
}
.text-link:hover { color: #fff; }

/* ═══════════════════════════════════════════════════
   CONTENT SECTIONS & RAILS
   ═══════════════════════════════════════════════════ */
.content-block { padding-top: 28px; }
.dark-line {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 32px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}
.section-head a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}
.section-head a:hover { color: var(--accent-light); }

.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════ */
.card {
  flex: 0 0 180px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: var(--transition);
  scroll-snap-align: start;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(227,101,69,0.2);
}
.card-link { display: block; }
.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: var(--bg-alt);
  transition: var(--transition);
}
.card:hover img { filter: brightness(1.05); }
.card-body {
  padding: 10px 12px 12px;
  border-top: 2px solid var(--accent);
}
.card b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}
.card small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  margin-top: 6px;
  font-size: 12px;
}
.card i {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

/* Card share button */
.card-share {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(10, 11, 18, 0.85);
  color: var(--text-dim);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 4px 8px;
  font: 11px Tahoma;
  opacity: 0;
  transition: var(--transition);
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.card:hover .card-share { opacity: 1; }
.card-share:hover { color: #fff; border-color: var(--accent); }

/* Card entry animation */
.rail .card {
  animation: cardIn 0.5s ease both;
}
.rail .card:nth-child(2) { animation-delay: 0.05s; }
.rail .card:nth-child(3) { animation-delay: 0.1s; }
.rail .card:nth-child(4) { animation-delay: 0.15s; }
.rail .card:nth-child(5) { animation-delay: 0.2s; }
.rail .card:nth-child(6) { animation-delay: 0.25s; }

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

/* ═══════════════════════════════════════════════════
   GRID (Catalog Pages)
   ═══════════════════════════════════════════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  width: 100%;
}
.grid .card { min-width: 0; width: 100%; flex: none; }
.grid .card img { height: auto; aspect-ratio: 3/4; }

/* ═══════════════════════════════════════════════════
   CATALOG HEAD & FILTERS
   ═══════════════════════════════════════════════════ */
.catalog-head {
  padding: 32px 0 18px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(10, 11, 18, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.catalog-head span {
  font: 11px monospace;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}
.catalog-head h1 {
  font-size: 32px;
  font-weight: 400;
  margin: 10px 0;
  letter-spacing: -0.5px;
}

.filter-toggle {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 9px 16px;
  font-family: inherit;
  font-size: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.filter-toggle:hover {
  background: var(--accent);
  color: #fff;
}

.filter-panel {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  background: var(--panel);
  padding: 16px;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: reveal 0.3s ease;
}
.filter-panel.open { display: grid; }
.filter-panel select,
.filter-panel input {
  background: var(--bg);
  color: #eee;
  border: 1px solid var(--border-light);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  border-radius: var(--radius-sm);
  min-width: 0;
  transition: var(--transition);
}
.filter-panel select:focus,
.filter-panel input:focus {
  border-color: var(--accent);
  outline: none;
}
.filter-panel button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}
.filter-panel button:hover { background: var(--accent-light); }

@keyframes reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Loading indicator */
.loading {
  text-align: center;
  color: var(--text-dim);
  padding: 30px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════
   DETAIL PAGE
   ═══════════════════════════════════════════════════ */
.detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 30px 0;
}
.poster {
  width: 260px;
  height: 380px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 1px;
}
.detail h1 {
  font-size: 34px;
  font-weight: 400;
  margin: 10px 0;
  letter-spacing: -0.5px;
}
.meta {
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
}
.description {
  line-height: 1.9;
  color: var(--text-dim);
  margin-top: 14px;
  font-size: 14px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════
   DOWNLOADS & EPISODES
   ═══════════════════════════════════════════════════ */
.downloads {
  margin: 20px 0 30px;
  background: var(--panel);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.downloads h2 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

.season-select {
  display: block;
  background: var(--bg-alt);
  padding: 14px 16px;
  border-right: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  margin: 12px 0;
}
.season-select select {
  padding: 8px 12px;
  background: var(--panel);
  color: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-right: 8px;
  font-family: inherit;
  font-size: 13px;
}

.episode-group { margin: 14px 0; }
.episode-group h3 {
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
}

.season-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.season-title h3 { margin: 0; }
.season-m3u {
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.season-m3u:hover {
  background: var(--accent);
  color: #fff;
}

.episode {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  transition: var(--transition);
}
.episode:hover { background: var(--panel-hover); }
.episode small {
  display: block;
  color: var(--text-muted);
  margin-top: 4px;
  font-size: 12px;
}
.episode-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.episode-actions a,
.episode-actions button {
  padding: 7px 12px;
  border: 1px solid var(--border-light);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.episode-actions a:hover,
.episode-actions button:hover {
  border-color: var(--accent);
  background: var(--panel-hover);
}
.episode-actions .watch-small {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.episode-actions .watch-small:hover {
  background: var(--accent-light);
}

.player-help {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════════════
   WATCH MODAL
   ═══════════════════════════════════════════════════ */
.watch-modal {
  display: none;
  position: fixed;
  z-index: 200;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  place-items: center;
  padding: 20px;
}
.watch-modal.show { display: grid; }

.watch-box {
  position: relative;
  width: min(460px, 100%);
  background: var(--panel);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.watch-box small { color: var(--text-dim); font-size: 12px; }
.watch-box h2 { margin: 8px 0 20px; font-weight: 500; }

.modal-close {
  position: absolute;
  top: 10px;
  left: 14px;
  background: none;
  border: 0;
  color: var(--text-dim);
  font-size: 28px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: var(--transition);
}
.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.player-choices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.watch-box .btn { border: 0; cursor: pointer; font-size: 13px; }
.watch-box .ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  border: 1px solid var(--border-light) !important;
}
.watch-box .ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   ADS
   ═══════════════════════════════════════════════════ */
.ad {
  margin: 24px 0;
  display: block;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.ad:hover { border-color: var(--border-light); }
.ad span {
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 10px;
}

.inline-ad-card {
  width: 100%;
  height: auto;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  transition: var(--transition);
}
.inline-ad-card:hover { border-color: var(--border-light); }
.inline-ad-card small {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.inline-ad-card b { font-size: 18px; font-weight: 500; }
.inline-ad-card span { color: var(--text-dim); font-size: 13px; }

/* ═══════════════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════════════ */
.search-page { max-width: 900px; margin: auto; padding-top: 20px; }
.search-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.search-heading .filter-toggle { white-space: nowrap; }

.search-page form {
  display: flex;
  margin: 20px 0 30px;
}
.search-page input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border-light);
  background: var(--panel);
  color: white;
  border-radius: 0 var(--radius) var(--radius) 0;
  font: inherit;
  font-size: 14px;
  transition: var(--transition);
}
.search-page input:focus {
  border-color: var(--accent);
  outline: none;
}
.search-page button {
  border: 0;
  background: var(--accent);
  color: white;
  padding: 0 24px;
  border-radius: var(--radius) 0 0 var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.search-page button:hover { background: var(--accent-light); }

/* ═══════════════════════════════════════════════════
   ADVANCED SEARCH
   ═══════════════════════════════════════════════════ */
.advanced {
  padding: 50px 6%;
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 24px 0 30px;
}
.advanced h1 {
  font-size: 38px;
  font-weight: 300;
  margin: 10px 0;
}
.advanced p { color: var(--text-dim); }
.advanced-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.advanced-form input,
.advanced-form select {
  padding: 12px 14px;
  background: var(--bg);
  color: #fff;
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.advanced-form input:focus,
.advanced-form select:focus {
  border-color: var(--accent);
  outline: none;
}
.advanced-form .btn {
  margin: 0;
  border: 0;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   STATUS NOTE
   ═══════════════════════════════════════════════════ */
.status-note {
  padding: 16px 20px;
  background: rgba(227,101,69,0.08);
  border-right: 3px solid var(--accent);
  color: var(--text-dim);
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════
   ANNOUNCEMENT BAR & MAINTENANCE
   ═══════════════════════════════════════════════════ */
.maintenance-bar {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  border-bottom: 1px solid rgba(239,68,68,0.2);
}
.announcement-bar {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  border-bottom: 1px solid rgba(59,130,246,0.15);
  animation: slideDown 0.3s ease;
}
.announcement-bar a { color: inherit; text-decoration: underline; }
.announcement-bar.notif-warning { background: rgba(245,158,11,0.12); color: #fcd34d; border-color: rgba(245,158,11,0.15); }
.announcement-bar.notif-success { background: rgba(34,197,94,0.12); color: #86efac; border-color: rgba(34,197,94,0.15); }
.announcement-bar.notif-maintenance { background: rgba(239,68,68,0.12); color: #fca5a5; border-color: rgba(239,68,68,0.15); }
.announcement-bar.notif-update { background: rgba(168,85,247,0.12); color: #c4b5fd; border-color: rgba(168,85,247,0.15); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.footer-links { margin-top: 8px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 12px; }
.footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 13px;
}
footer span { padding: 0 10px; }

/* ═══════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════════════ */
.mobile-nav { display: none; }

/* ═══════════════════════════════════════════════════
   PAGINATION & CHIPS
   ═══════════════════════════════════════════════════ */
.pager { text-align: center; margin: 35px 0; }
.pager a {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.pager a:hover { background: rgba(255,255,255,0.1); color: #fff; }

.chip {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-dim);
}
.chip.on {
  background: var(--accent);
  color: #fff;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 24px;
}
.page-title p { color: var(--text-dim); }

/* ═══════════════════════════════════════════════════
   HOMEPAGE — NEW HERO DESIGN
   ═══════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 60px 6%;
  margin-top: 20px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #12131b 0%, #0d0e17 100%);
  border: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(227,101,69,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(227,101,69,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: heroIn 0.7s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
.hero-badge {
  display: inline-block;
  background: rgba(227,101,69,0.12);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(227,101,69,0.2);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 16px 0;
  color: #fff;
}
.hero-accent {
  color: var(--accent);
  font-weight: 400;
}
.hero-desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-btn {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
}
.hero-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227,101,69,0.3);
}
.hero-btn-outline {
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  border: 1px solid var(--border-light);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
}
.hero-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.hero-stats {
  display: flex;
  gap: 32px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat b {
  font-size: 18px;
  color: var(--accent);
}
.hero-stat span {
  font-size: 12px;
  color: var(--text-muted);
}

/* App Promo */
.app-promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 5%;
  margin: 24px 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.app-promo h2 { margin: 6px 0; font-weight: 500; }
.app-promo p { color: var(--text-dim); max-width: 500px; font-size: 14px; }
.app-promo-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Content Sections */
.content-section {
  padding: 28px 0;
}
.content-section.alt-bg {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 32px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-icon {
  font-size: 20px;
}
.section-more {
  font-size: 13px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE ANIMATION (legacy)
   ═══════════════════════════════════════════════════ */
.cinema-intro > div {
  animation: rise 0.6s ease both;
}
.cinema-intro .intro-art {
  animation-delay: 0.15s;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 700px) {
  header { height: 56px; padding: 0 16px; gap: 10px; }
  .brand { font-size: 17px; }
  .brand span { width: 24px; height: 24px; font-size: 10px; }
  header nav, .install { display: none; }
  .top-search { width: auto; }
  .top-search input { width: 110px; padding: 7px; font-size: 13px; }

  main { padding: 0 14px 90px; }

  /* Cinema intro */
  .cinema-intro {
    min-height: 420px;
    grid-template-columns: 1fr;
    padding: 36px 24px;
    margin-top: 12px;
  }
  .intro-number, .intro-art { display: none; }
  .cinema-intro h1 { font-size: 44px; letter-spacing: -1.5px; }

  /* Cards */
  .card { flex-basis: 145px; }
  .card img { width: 100%; height: auto; aspect-ratio: 3/4; }
  .card-body { padding: 8px 10px 10px; }
  .card b { font-size: 12px; }
  .card-share { opacity: 1; font-size: 10px; padding: 3px 6px; }
  .card-body { padding-bottom: 26px; }

  /* Grid */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid .card { width: 100%; }
  .grid .card img { height: auto; aspect-ratio: 3/4; }

  /* Catalog */
  .catalog-head { top: 56px; padding: 20px 0 14px; }
  .catalog-head h1 { font-size: 24px; }
  .filter-panel.open { top: 140px; }

  /* Detail */
  .detail { grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; }
  .poster { width: 120px; height: 170px; border-radius: 10px; }
  .detail h1 { font-size: 22px; margin: 6px 0; }
  .description { grid-column: 1 / -1; font-size: 13px; }

  /* Episodes */
  .episode { flex-direction: column; align-items: flex-start; }
  .episode-actions { width: 100%; }
  .episode-actions > * { flex: 1; text-align: center; }
  .season-title { flex-direction: column; align-items: flex-start; }

  /* Advanced */
  .advanced { padding: 30px 20px; }
  .advanced h1 { font-size: 28px; }
  .advanced-form { grid-template-columns: repeat(2, 1fr); }

  /* Mobile bottom nav */
  .mobile-nav {
    position: fixed;
    z-index: 150;
    display: flex;
    justify-content: space-around;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(14, 15, 22, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 8px 12px env(safe-area-inset-bottom);
  }
  .mobile-nav a {
    font-size: 18px;
    text-align: center;
    color: var(--text-dim);
    padding: 4px 12px;
    border-radius: 8px;
    transition: var(--transition);
  }
  .mobile-nav a:hover,
  .mobile-nav a:active { color: var(--accent); }
  .mobile-nav small {
    font-size: 10px;
    display: block;
    margin-top: 2px;
  }

  /* Hero */
  .hero-section { min-height: 380px; padding: 36px 20px; }
  .hero-title { font-size: 36px; letter-spacing: -1px; }
  .hero-desc { font-size: 14px; }
  .hero-stats { gap: 20px; }
  .hero-stat b { font-size: 15px; }
  .hero-stat span { font-size: 11px; }
  .hero-actions { flex-direction: column; }
  .hero-btn, .hero-btn-outline { width: 100%; text-align: center; }
  .app-promo { flex-direction: column; text-align: center; padding: 20px; }
  .app-promo-actions { justify-content: center; }

  /* Downloads */
  .downloads { padding: 16px; }
  .downloads select { width: 100%; margin: 8px 0; }
}

@media (min-width: 701px) and (pointer: fine) {
  body { font-size: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
