/* ===== MaliceTV site — theme (dark + electric cyan), lively edition ===== */
:root {
  --obsidian: #070a10;
  --obsidian-2: #0b1018;
  --panel: #121a28;
  --panel-2: #172133;
  --border: #223047;
  --cyan: #22d3ee;
  --cyan-2: #38bdf8;
  --violet: #8b6cf0;
  --pink: #f472b6;
  --text: #eef3f8;
  --muted: #91a0b4;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--obsidian);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.mt { margin-top: 26px; }

/* ---- animated aurora backdrop ---- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--obsidian); }
.aurora span {
  position: absolute; display: block; width: 55vw; height: 55vw; border-radius: 50%;
  filter: blur(90px); opacity: .28; mix-blend-mode: screen;
}
.aurora .a1 { background: var(--cyan);   top: -12%; left: -8%;  animation: drift1 18s ease-in-out infinite; }
.aurora .a2 { background: var(--violet); top: 8%;   right: -12%; animation: drift2 22s ease-in-out infinite; }
.aurora .a3 { background: var(--pink);   bottom: -18%; left: 30%; opacity:.18; animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(6vw,4vh)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-5vw,6vh)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(4vw,-5vh)} }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }

/* ---- top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(7, 10, 16, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; color: var(--text); font-size: 18px; }
.brand .dot { width: 13px; height: 13px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 10px var(--cyan)} 50%{box-shadow:0 0 22px var(--cyan)} }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---- logo + mascots ---- */
.brand .logo { height: 26px; width: auto; display: block; }   /* wide 8:1 wordmark */
.hero-logo { width: min(620px, 92vw); height: auto; margin: 0 auto 10px; display: block; filter: drop-shadow(0 8px 26px rgba(34,150,255,.45)); }
.mascot-float {
  position: absolute; width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(34,211,238,.35); box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 0 6px rgba(10,16,24,.4);
  z-index: 1;
}
.mascot-float.l { left: 3%; top: 130px; animation: floaty 7s ease-in-out infinite; }
.mascot-float.r { right: 3%; top: 100px; animation: floaty 8s ease-in-out infinite reverse; }
@media (max-width: 900px) { .mascot-float { display: none; } }
.mascot-round { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(34,211,238,.35); box-shadow: 0 0 40px rgba(34,211,238,.2); }
.feature-media img.full { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.feature-media.photo { padding: 0; }
.foot-mascot { height: 42px; width: 42px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; border: 1px solid var(--border); }

/* ---- badge / pill ---- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--cyan); border: 1px solid rgba(34,211,238,.4); background: rgba(34,211,238,.08);
}
.badge .live { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.8s infinite; }

/* ---- hero ---- */
.hero { position: relative; padding: 90px 0 60px; text-align: center; }
.hero h1 {
  font-size: clamp(38px, 7vw, 68px); margin: 18px 0 16px; letter-spacing: -1px; line-height: 1.03;
  background: linear-gradient(180deg, #ffffff 0%, #c7d6e6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.sub { font-size: clamp(16px, 2.4vw, 21px); color: var(--muted); max-width: 660px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  background: linear-gradient(100deg, var(--cyan), var(--cyan-2));
  color: #041016; font-weight: 800; border-radius: 999px; border: none; cursor: pointer; font-size: 16px;
  box-shadow: 0 8px 28px rgba(34,211,238,.28); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(34,211,238,.42); }
.btn.ghost { background: transparent; color: var(--cyan); border: 1px solid rgba(34,211,238,.5); box-shadow: none; }
.btn.ghost:hover { background: rgba(34,211,238,.08); box-shadow: none; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---- TV mockup ---- */
.tv { max-width: 760px; margin: 54px auto 0; }
.tv-frame {
  position: relative; border-radius: 18px; padding: 14px;
  background: linear-gradient(180deg, #1b2434, #0d131e);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(34,211,238,.06);
}
.tv-screen {
  border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; position: relative;
  background:
    radial-gradient(120% 100% at 50% 0%, #16263e 0%, #0a1017 60%);
  display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 18px;
}
.tv-topbar { display: flex; align-items: center; gap: 10px; }
.tv-topbar .chip { height: 18px; border-radius: 6px; background: #1e2c42; }
.tv-topbar .chip.w1{width:78px} .tv-topbar .chip.w2{width:54px} .tv-topbar .chip.w3{width:54px}
.tv-topbar .chip.cyan{ background: linear-gradient(100deg,var(--cyan),var(--violet)); }
.tv-topbar .spacer { flex: 1; }
.tv-row { display: flex; gap: 12px; overflow: hidden; }
.poster { flex: 0 0 auto; width: 92px; height: 130px; border-radius: 8px; background: linear-gradient(160deg,#233450,#141d2c); border: 1px solid #26364f; }
.poster.focus { border: 2px solid var(--cyan); box-shadow: 0 0 22px rgba(34,211,238,.5); transform: translateY(-4px); }
.tv-stand { width: 120px; height: 12px; margin: 0 auto; border-radius: 0 0 8px 8px; background: #10151f; }
.tv-neck { width: 26px; height: 16px; margin: 0 auto; background: #10151f; }
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@media (prefers-reduced-motion: reduce){ .floaty{ animation:none; } }

/* ---- sections ---- */
section { padding: 46px 0; position: relative; }
h2 { font-size: clamp(26px, 3.8vw, 36px); margin: 0 0 10px; letter-spacing: -.4px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 620px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { color: var(--cyan); font-weight: 800; letter-spacing: 1.6px; font-size: 12.5px; text-transform: uppercase; }

/* ---- feature grid ---- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34,211,238,.5); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.28);
}
.card .ic svg { width: 26px; height: 26px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .tag { display: inline-block; font-size: 12px; color: var(--cyan); border: 1px solid rgba(34,211,238,.4); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.card.soon { opacity: .5; }
.card.soon:hover { transform: none; border-color: var(--border); box-shadow: none; }

/* app cards (home hub) */
.card.app { display: block; }
.card.app .thumb {
  height: 120px; border-radius: 12px; margin-bottom: 16px;
  background: radial-gradient(120% 120% at 30% 20%, #1c3350, #0c1420);
  border: 1px solid #21324b; display: grid; place-items: center;
}
.card.app .thumb .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }

/* ---- steps ---- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px 18px 66px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(100deg, var(--cyan), var(--violet)); color: #041016; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h4 { margin: 3px 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- callout / note ---- */
.note { border-left: 3px solid var(--cyan); background: var(--panel); padding: 14px 18px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.tvbox {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center;
  padding: 22px 26px; border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(34,211,238,.1), rgba(139,108,240,.1));
  border: 1px solid rgba(34,211,238,.3);
}
.tvbox .txt { font-size: 16px; }
.tvbox strong { color: var(--text); }

/* ---- Stremio-style alternating feature rows ---- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center;
  padding: 40px 0;
}
.feature.rev .feature-media { order: 2; }
.feature-copy h3 { font-size: clamp(24px, 3.2vw, 34px); margin: 8px 0 12px; letter-spacing: -.4px; }
.feature-copy p { color: var(--muted); font-size: 16px; margin: 0; max-width: 460px; }
.feature-media {
  min-height: 220px; border-radius: var(--radius); border: 1px solid var(--border);
  background: radial-gradient(130% 120% at 30% 15%, #17263e, #0a1017);
  display: grid; place-items: center; padding: 30px; overflow: hidden;
}
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature.rev .feature-media { order: 0; }
}

/* 4K ULTRA HD badge (CSS recreation) */
.badge4k {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 20px; border-radius: 14px;
  border: 3px solid #e7b53c; background: #0a0d12;
  box-shadow: 0 0 34px rgba(231,181,60,.35);
}
.badge4k .k { font-size: 58px; font-weight: 900; color: #fff; line-height: .9; letter-spacing: -2px; }
.badge4k .uhd { font-size: 15px; font-weight: 800; letter-spacing: 3px; color: #0a0d12; background: #e7b53c; padding: 3px 12px; border-radius: 6px; }

/* poster-wall media */
.posterwall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.posterwall span { aspect-ratio: 2/3; border-radius: 8px; background: linear-gradient(160deg,#233450,#141d2c); border: 1px solid #26364f; }
.posterwall span:nth-child(2){ background: linear-gradient(160deg,#2a2140,#151022);}
.posterwall span:nth-child(5){ border-color: var(--cyan); box-shadow: 0 0 18px rgba(34,211,238,.4);}

/* bolt / speed media */
.boltcard { display:flex; align-items:center; gap:14px; }
.boltcard svg { width: 96px; height: 96px; stroke: var(--cyan); fill: rgba(34,211,238,.12); stroke-width: 1.4; filter: drop-shadow(0 0 16px rgba(34,211,238,.5)); }
.boltcard .bars { display:grid; gap:8px; }
.boltcard .bars i { display:block; height:12px; border-radius:6px; background: linear-gradient(90deg,var(--cyan),var(--violet)); }
.boltcard .bars i:nth-child(1){width:120px} .boltcard .bars i:nth-child(2){width:90px} .boltcard .bars i:nth-child(3){width:150px}

/* source/import media */
.sourcecard { width: 100%; max-width: 300px; background:#0c1220; border:1px solid var(--border); border-radius:12px; padding:16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size:13px; color:#cfe8ee; }
.sourcecard .row { display:flex; gap:8px; align-items:center; margin:6px 0; }
.sourcecard .k2 { color: var(--cyan); }
.sourcecard .pill { margin-top:12px; display:inline-block; background:linear-gradient(100deg,var(--cyan),var(--cyan-2)); color:#041016; font-weight:800; padding:6px 16px; border-radius:999px; font-family:system-ui; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 30px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Bug report form ===== */
.bugform { max-width: 560px; margin: 26px auto 6px; display: grid; gap: 12px; text-align: left; }
.bugform input, .bugform textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; box-sizing: border-box;
  background: rgba(10,16,24,.6); border: 1px solid var(--border);
  color: var(--text); font: inherit;
}
.bugform input::placeholder, .bugform textarea::placeholder { color: #7c8aa0; }
.bugform input:focus, .bugform textarea:focus { outline: none; border-color: var(--cyan); }
.bugform textarea { resize: vertical; }
.bugform .btn { justify-self: center; margin-top: 4px; }
.bugform .hp { position: absolute; left: -9999px; }   /* honeypot: hidden from humans */
.foot-note { color: #7c8aa0; font-size: 13px; margin-top: 8px; }

/* Inline code — used on the setup page for URLs and file paths. */
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: rgba(0,240,255,.08);
  border: 1px solid rgba(0,240,255,.22);
  color: #bff7ff;
  padding: .12em .4em;
  border-radius: 5px;
  word-break: break-all;
}
