/* dopeIPTV — iptv.dope.rs — broadcast-console theme
   Self-hosted, CSP-safe (no external fonts/CDNs). */
:root {
  --ink: #0b0d11; --bg: #0f1218; --surface: #161a22; --surface-2: #1c2029;
  --line: #262c38; --line-2: #313949; --text: #e8ebf1; --muted: #98a1b3;
  --faint: #6b7488; --accent: #f5a524; --accent-ink: #1a1206; --live: #ff4d4d;
  --radius: 14px; --maxw: 1140px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ink: #eef1f6; --bg: #f5f7fb; --surface: #fff; --surface-2: #f0f3f8;
    --line: #e0e5ee; --line-2: #d2d9e6; --text: #171b22; --muted: #5a6474;
    --faint: #8b94a6; --accent: #b9781a; --accent-ink: #fff6e8; color-scheme: light;
  }
}
:root[data-theme="dark"] {
  --ink: #0b0d11; --bg: #0f1218; --surface: #161a22; --surface-2: #1c2029;
  --line: #262c38; --line-2: #313949; --text: #e8ebf1; --muted: #98a1b3;
  --faint: #6b7488; --accent: #f5a524; --accent-ink: #1a1206; color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #eef1f6; --bg: #f5f7fb; --surface: #fff; --surface-2: #f0f3f8;
  --line: #e0e5ee; --line-2: #d2d9e6; --text: #171b22; --muted: #5a6474;
  --faint: #8b94a6; --accent: #b9781a; --accent-ink: #fff6e8; color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1100px 500px at 78% -8%,
    color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--live) 60%,transparent);}
  70%{box-shadow:0 0 0 7px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }
@media (prefers-reduced-motion: reduce){ .dot{ animation: none; } }
header.bar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand .glyph { color: var(--accent); font-size: 18px; }
.brand b { font-family: var(--mono); font-weight: 700; }
nav.links { display: flex; align-items: center; gap: 26px; }
nav.links a { color: var(--muted); font-size: 14px; }
nav.links a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font: inherit;
  font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid transparent; transition: transform .12s ease, background .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.bar .btn { padding: 8px 14px; }
@media (max-width: 720px) { nav.links a.navlink { display: none; } }
.hero { padding: 76px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.025em;
  margin: 18px 0 0; text-wrap: balance; font-weight: 800; }
h1 .hl { color: var(--accent); }
.lede { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.18rem); margin: 18px 0 0; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.platnote { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 14px; }
.platnote b { color: var(--muted); font-weight: 600; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.55); overflow: hidden; }
.mock .titlebar { display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mock .body { display: grid; grid-template-columns: 40% 60%; min-height: 300px; }
.mock .chans { border-right: 1px solid var(--line); padding: 8px; }
.chan { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.chan .n { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.chan.active { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
.chan.active .n { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.chan .live-tag { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  color: var(--live); border: 1px solid color-mix(in srgb, var(--live) 55%, transparent); padding: 1px 5px; border-radius: 5px; }
.mock .stage { display: flex; flex-direction: column; }
.screen { flex: 1; margin: 12px; border-radius: 10px; border: 1px solid var(--line);
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 20%, var(--surface-2)), var(--ink));
  position: relative; overflow: hidden; min-height: 150px; }
.screen::after { content: "\25B6"; position: absolute; inset: 0; display: grid; place-items: center;
  color: color-mix(in srgb, #fff 82%, transparent); font-size: 30px; }
.scan { position:absolute; inset:0; background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.10) 3px 4px); pointer-events:none; }
.timeline { margin: 0 12px 12px; }
.tl-track { height: 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 62%; background: var(--accent); border-radius: 6px 0 0 6px; }
.tl-head { position: absolute; left: 62%; top: -4px; width: 3px; height: 16px; background: var(--text); border-radius: 2px; }
.tl-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 8px; }
.tl-meta .behind { color: var(--accent); }
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 40%, transparent); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 12px 30px; padding: 18px 24px; align-items: center; justify-content: center; }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
section { padding: 72px 0; }
.sec-head { max-width: 60ch; margin-bottom: 40px; }
.sec-head .eyebrow { margin-bottom: 14px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); letter-spacing: -.02em; margin: 0; text-wrap: balance; font-weight: 800; }
.sec-head p { color: var(--muted); margin: 12px 0 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 1.06rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr; } }
.shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.shot img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.shot .ph { aspect-ratio: 16/10; width: 100%; display: grid; place-items: center; color: var(--faint); font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  background: linear-gradient(135deg, var(--surface-2), var(--ink)); }
.shot .cap { padding: 12px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.shot .cap b { color: var(--text); font-weight: 600; }
.dl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.release-tag { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.release-tag b { color: var(--accent); }
.dls { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .dls { grid-template-columns: 1fr; } }
.dl { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; transition: border-color .2s ease; }
.dl:hover { border-color: var(--accent); }
.dl .os { width: 44px; height: 44px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 22px; }
.dl .meta { min-width: 0; display: flex; flex-direction: column; }
.dl .meta .name { font-weight: 600; }
.dl .meta .sub { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.dl .go { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.autonote { margin-top: 18px; font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 9px; }
.autonote code { font-family: var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.autonote a.verify-link { color: var(--accent); font-weight: 600; }
.autonote a.verify-link:hover { text-decoration: underline; }
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; margin-top: 20px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .v { font-family: var(--mono); font-size: 12px; color: var(--faint); }
footer nav { display: flex; gap: 22px; }
footer nav a { color: var(--muted); font-size: 14px; }
footer nav a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Screenshot lightbox (opened from app.js) */
.lb-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center;
  justify-content: center; padding: 24px; background: rgba(0,0,0,.86); cursor: zoom-out;
  opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.lb-overlay.open { opacity: 1; pointer-events: auto; }
.lb-overlay img { max-width: 96vw; max-height: 92vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.lb-close { position: fixed; top: 18px; right: 22px; color: #fff; font-size: 30px;
  line-height: 1; background: none; border: 0; cursor: pointer; opacity: .8; }
.lb-close:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lb-overlay { transition: none; } }
