/* CrossWatch neon */

/* Theme */
:root{
  --bg:#0b0c10; --panel:#111523; --border:#1d2235;
  --ink:#e7ebf3; --muted:#9aa4b2;
  --a1:#8a5cff; --a2:#20d0ff; --ok:#16d19a;
  --glow:0 0 24px rgba(138,92,255,.35), 0 0 40px rgba(32,208,255,.2);
}

/* Base */
*{box-sizing:border-box}
html{color-scheme:dark}
html,body{height:100%}
body{
  margin:0; color:var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1a2040 0, transparent 65%),
    radial-gradient(1000px 500px at 110% 10%, #072235 0, transparent 60%),
    var(--bg);
  font:15.5px/1.6 system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
.wrap{width:min(1120px,92vw); margin:0 auto; padding:28px 0}

/* Hero */
.hero{padding:56px 0 20px; text-align:center}
.logo{width:96px;height:auto;filter:drop-shadow(var(--glow));opacity:.96}
.brand{margin:.4rem 0 0; font-size:clamp(28px,4.4vw,42px); letter-spacing:.3px}
.brand span{color:var(--a2)}
.tag{color:var(--muted); margin:.25rem 0 1rem}

/* Buttons */
.cta .btn{margin:.25rem}
.btn{
  display:inline-block; padding:.6rem 1rem; border-radius:999px; font-weight:600;
  background:linear-gradient(90deg,var(--a1),var(--a2)); color:#0b0c10;
  box-shadow:var(--glow);
}
.btn.ghost{background:transparent; color:var(--ink); border:1px solid var(--border); box-shadow:none}

/* Panels */
.panel{
  background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01)), var(--panel);
  border:1px solid var(--border); border-radius:16px; padding:18px 18px 14px; margin:14px 0;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.panel.center{ text-align:center; }
.panel.center h2{ text-align:center; }
.panel.center .grid-2{ justify-items:center; }
.panel.center ul{ display:inline-block; text-align:left; margin:0; }

/* Features — keep one line where possible */
.features .grid-2{ grid-template-columns:repeat(2, minmax(360px, 1fr)); gap:18px; }
.features li{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  font-size:clamp(14px, 1.2vw, 17px);
}

/* Small centered box variant */
.panel.centered{ max-width:980px; margin:14px auto; }
.panel.centered .lead{ text-align:center; font-weight:600; }
.panel.centered .status{ text-align:left; margin:10px auto 0; max-width:70ch; }
.status.compact li{ margin:6px 0; }

h2{margin:.2rem 0 8px; font-size:20px}
h3{margin:14px 0 8px; font-size:16px}
ul{margin:0; padding-left:1.1em}
.grid-2{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px}
.status{list-style:"✔  "; padding-left:1rem}
.muted{ color:var(--muted); }
.hint{color:var(--muted); font-size:13px; margin-top:6px}

/* Integrations badges */
.compact{ max-width:980px; margin-left:auto; margin-right:auto; }
.stack{ display:grid; gap:8px; justify-items:center; }
.row{ display:flex; gap:.35rem; align-items:center; flex-wrap:wrap; }
.badge{
  display:inline-flex; align-items:center; padding:.25rem .5rem; border-radius:8px;
  border:1px solid var(--border); font-weight:600; font-size:13px; margin:.1rem .15rem;
}
.badge.simkl{ background:#0AAEEF; color:#001018; }
.badge.trakt{ background:#ED1C24; color:#fff; }
.badge.plex{ background:#FFA620; color:#111; }
.badge.jellyfin{ background:#946AD9; color:#fff; }

/* Code blocks */
pre{
  background:#0c1222; border:1px solid #1b2238; border-radius:12px; padding:12px;
  overflow:auto; box-shadow:inset 0 0 24px rgba(138,92,255,.06);
}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:13px; color:#dbe6ff}

/* Gallery (thumbs) */
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.gallery a{position:relative;display:block;border-radius:12px;overflow:hidden;border:1px solid var(--border)}
.gallery img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .12s ease, box-shadow .12s ease}
.gallery a:hover img{transform:translateY(-2px);box-shadow:var(--glow)}

/* Lightbox */
.lightbox[hidden]{display:none}
.lightbox{
  position:fixed; inset:0; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px;
  background:radial-gradient(1000px 600px at 10% -10%, rgba(138,92,255,.10), transparent 70%), rgba(5,7,12,.88);
  backdrop-filter:blur(6px); z-index:9999;
}
.lb-stage{margin:0;display:grid;place-items:center}
#viewer-img{
  max-width:calc(100vw - 160px); max-height:calc(100vh - 180px);
  border-radius:14px; border:1px solid var(--border);
  box-shadow:0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(138,92,255,.25);
}
.lb-cap{display:flex;justify-content:space-between;gap:12px;margin-top:10px;font-size:13px;color:var(--muted)}
.lb-btn{
  cursor:pointer; border:none; border-radius:999px; padding:.6rem .9rem;
  font-size:28px; line-height:1; color:#0b0c10;
  background:linear-gradient(90deg,var(--a1),var(--a2)); box-shadow:var(--glow);
  opacity:.95; transition:transform .1s ease;
}
.lb-btn:hover{transform:translateY(-1px)}
.lb-close{position:absolute;top:18px;right:18px;font-size:18px;padding:.45rem .6rem}
.lb-prev{margin-left:14px}
.lb-next{margin-right:14px}

/* Footer */
.foot{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;padding:16px 0 40px}

/* Motion prefs */
@media (prefers-reduced-motion: reduce){
  .gallery a:hover img{transform:none}
}
