/* ============================================================
   alostora-tv.com — Shared Stylesheet
   Font: Cairo (Arabic), Direction: RTL
   Theme: Red #E50914 + Black #0d0d0d + White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --red:       #E50914;
  --red-dark:  #b8070f;
  --red-glow:  rgba(229,9,20,0.25);
  --bg:        #0d0d0d;
  --bg2:       #141414;
  --bg3:       #1c1c1c;
  --card:      #181818;
  --border:    rgba(255,255,255,0.08);
  --text:      #f0f0f0;
  --muted:     #999;
  --white:     #ffffff;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --shadow-red:0 4px 30px rgba(229,9,20,0.35);
  --transition:all 0.3s cubic-bezier(0.4,0,0.2,1);
  --header-h:  70px;
  --max-w:     1200px;
}

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

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

body {
  font-family: 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: 0.2px;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--white); }
ul { list-style: none; }
button { cursor: pointer; font-family: 'Noto Sans Arabic', sans-serif; border: none; outline: none; }

/* ── Typography ──────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; line-height: 1.3; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.4; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { color: #c8c8c8; font-size: 1rem; }

/* ── Layout Helpers ──────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-red { color: var(--red); }

.section-title {
  text-align: center;
  margin-bottom: 14px;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Noto Sans Arabic', sans-serif;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}
.btn-lg::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-lg:hover::before {
  opacity: 1;
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.btn-sm:hover {
  transform: translateY(-1px);
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(13,13,13,0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--red); }

/* ── Desktop Nav ─────────────────────────────────────────── */
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.desktop-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  transition: var(--transition);
}
.nav-dropdown-trigger:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-dropdown-trigger svg { width:14px; height:14px; transition: transform 0.3s; }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.dropdown-menu a .dm-icon { font-size: 1.1rem; }

.header-cta { display: flex; align-items: center; gap: 12px; }

/* ── Hamburger ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(255,255,255,0.12); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ─────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 360px;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 999;
  padding: 28px 24px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  flex-direction: column;
  gap: 6px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 998;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-overlay.show { opacity: 1; }

.mobile-menu-section { margin-bottom: 24px; }
.mobile-menu-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: rgba(229,9,20,0.1);
  color: var(--red);
}
.mobile-menu a .m-icon { font-size: 1.2rem; width: 24px; text-align: center; }
.mobile-cta { margin-top: 10px; }
.mobile-cta .btn { width: 100%; justify-content: center; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(229,9,20,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(229,9,20,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { max-width: 580px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,9,20,0.12);
  border: 1px solid rgba(229,9,20,0.3);
  color: var(--red);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-title {
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title em {
  font-style: normal;
  -webkit-text-fill-color: var(--red);
}
.hero-desc {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 34px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 1.6rem; font-weight: 900; color: var(--white); }
.stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.device-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  width: 220px;
  height: 440px;
  background: linear-gradient(145deg, #1e1e1e, #0d0d0d);
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(229,9,20,0.1) 0%, transparent 100%);
}
.phone-app-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--red), #ff4444);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(229,9,20,0.4);
  position: relative;
  z-index: 1;
}
.phone-app-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.phone-app-sub {
  font-size: 0.75rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.floating-badge {
  position: absolute;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
  white-space: nowrap;
}
.floating-badge:nth-child(2) { top: 60px; left: -80px; animation-delay: 0s; }
.floating-badge:nth-child(3) { bottom: 100px; right: -90px; animation-delay: 1.5s; }
.floating-badge .fb-icon { font-size: 1.3rem; }
.floating-badge .fb-text { font-size: 0.78rem; font-weight: 700; color: var(--white); }
.floating-badge .fb-sub { font-size: 0.7rem; color: var(--muted); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(229,9,20,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ── Device Grid ─────────────────────────────────────────── */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.device-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.device-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(229,9,20,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.device-card:hover {
  border-color: rgba(229,9,20,0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.device-icon {
  width: 56px;
  height: 56px;
  background: rgba(229,9,20,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 1px solid rgba(229,9,20,0.2);
}
.device-name { font-size: 1.15rem; font-weight: 800; color: var(--white); }
.device-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.device-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.device-actions .btn { flex: 1; justify-content: center; font-size: 0.88rem; padding: 10px 14px; }

/* ── Features Grid ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.feature-card:hover { border-color: rgba(229,9,20,0.3); background: rgba(229,9,20,0.04); }
.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.feature-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── Steps ───────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  counter-increment: step;
  transition: var(--transition);
}
.step-card:hover { border-color: rgba(229,9,20,0.3); }
.step-num {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
  margin-bottom: 14px;
}
.step-title { font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-desc { font-size: 0.88rem; color: var(--muted); }

/* ── Code Block ──────────────────────────────────────────── */
.code-block {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: monospace;
  font-size: 1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.code-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 4px;
}
.copy-btn {
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.3);
  color: var(--red);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Noto Sans Arabic', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.copy-btn:hover { background: var(--red); color: white; }

/* ── Downloader Code Highlight ───────────────────────────── */
.downloader-box {
  background: linear-gradient(135deg, rgba(229,9,20,0.1), rgba(229,9,20,0.04));
  border: 2px solid rgba(229,9,20,0.4);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}
.downloader-label { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.downloader-code {
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: 8px;
  margin-bottom: 12px;
  font-family: monospace;
}
.downloader-hint { font-size: 0.88rem; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Noto Sans Arabic', sans-serif;
  cursor: pointer;
  text-align: right;
  transition: var(--transition);
  gap: 12px;
}
.faq-question:hover { color: var(--red); }
.faq-icon {
  width: 28px;
  height: 28px;
  background: rgba(229,9,20,0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1.1rem;
}
.faq-item.open .faq-icon { background: var(--red); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ── TV Install Section ──────────────────────────────────── */
.tv-section {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tv-section::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(229,9,20,0.12) 0%, transparent 70%);
}

/* ── URL Player Section ──────────────────────────────────── */
.url-player-banner {
  background: linear-gradient(135deg, rgba(229,9,20,0.08), rgba(229,9,20,0.02));
  border: 1px solid rgba(229,9,20,0.25);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 30px;
}
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: rgba(255,255,255,0.2); }
.breadcrumb .current { color: var(--white); font-weight: 700; }

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(180deg, rgba(229,9,20,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.25);
  color: var(--red);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ── Notice / Warning ────────────────────────────────────── */
.notice {
  display: flex;
  gap: 14px;
  background: rgba(255,165,0,0.07);
  border: 1px solid rgba(255,165,0,0.2);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.notice-icon { font-size: 1.3rem; flex-shrink: 0; }
.notice-text { font-size: 0.9rem; color: #ccc; line-height: 1.7; }
.notice-text strong { color: #ffa500; }

.notice-info {
  background: rgba(59,130,246,0.07);
  border-color: rgba(59,130,246,0.2);
}
.notice-info .notice-text strong { color: #60a5fa; }

.notice-success {
  background: rgba(34,197,94,0.07);
  border-color: rgba(34,197,94,0.2);
}
.notice-success .notice-text strong { color: #4ade80; }

/* ── Numbered Steps (install guide) ─────────────────────── */
.install-steps { display: flex; flex-direction: column; gap: 0; }
.install-step {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.install-step:last-child { border-bottom: none; }
.install-step-num {
  width: 42px;
  height: 42px;
  background: var(--red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}
.install-step-content { flex: 1; }
.install-step-title { font-weight: 800; color: var(--white); margin-bottom: 8px; font-size: 1.05rem; }
.install-step-desc { font-size: 0.92rem; color: #aaa; line-height: 1.8; }

/* ── Table of Contents ───────────────────────────────────── */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}
.toc-title { font-weight: 800; color: var(--white); margin-bottom: 14px; }
.toc-list { display: flex; flex-direction: column; gap: 8px; }
.toc-list a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 0;
  display: block;
}
.toc-list a:hover { color: var(--red); }

/* ── Troubleshooting ─────────────────────────────────────── */
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.trouble-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.trouble-problem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.trouble-problem-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.trouble-problem-text { font-weight: 800; color: var(--white); font-size: 1rem; }
.trouble-solution { font-size: 0.88rem; color: #aaa; line-height: 1.7; }
.trouble-solution ul { padding-right: 18px; list-style: disc; display: flex; flex-direction: column; gap: 4px; }

/* ── Legal Pages ─────────────────────────────────────────── */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 44px;
  margin-bottom: 14px;
  color: var(--white);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 14px; font-size: 0.95rem; line-height: 1.8; color: #bbb; }
.legal-content ul { padding-right: 20px; list-style: disc; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.legal-content ul li { font-size: 0.93rem; color: #bbb; line-height: 1.7; }
.legal-date { font-size: 0.85rem; color: var(--muted); margin-bottom: 30px; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-label { font-weight: 800; color: var(--white); margin-bottom: 4px; }
.contact-val { font-size: 0.9rem; color: var(--muted); }
.contact-val a { color: var(--red); }

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(229,9,20,0.1) 0%, rgba(229,9,20,0.03) 100%);
  border: 1px solid rgba(229,9,20,0.2);
  border-radius: var(--radius-lg);
  padding: 70px 40px;
  text-align: center;
}
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand { max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-icon { width: 36px; height: 36px; font-size: 1.1rem; }
.footer-logo .logo-text { font-size: 1.1rem; }
.footer-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.footer-col-title { font-size: 0.9rem; font-weight: 800; color: var(--white); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--muted); font-weight: 600; transition: var(--transition); }
.footer-links a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 0.82rem; color: var(--muted); }
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--red); }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.footer-legal a:hover { color: var(--red); }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}

/* ── Tag ─────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.2);
  color: var(--red);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ── Fade-in Animation ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }

/* ── Enhanced Download Buttons ───────────────────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red) 0%, #ff4444 100%);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

/* ── Responsive Download Section ─────────────────────────── */
@media (max-width: 768px) {
  .btn-lg {
    padding: 16px 24px;
    font-size: 1.05rem;
    width: 100%;
  }
  .btn-sm {
    width: 100%;
    justify-content: center;
  }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-image { display: block !important; }
  .url-player-banner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

.hero-image {
  display: none;
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .header-cta .btn-primary { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  :root { --header-h: 62px; }
  .section { padding: 60px 0; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .devices-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .tv-section { padding: 40px 24px; }
  .cta-section { padding: 50px 24px; }
  .downloader-code { font-size: 2.4rem; letter-spacing: 4px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { max-width: 100%; }
  .hero-stats { gap: 20px; }
  .downloader-box { padding: 28px 20px; }
  .code-block { flex-direction: column; text-align: center; }
}
