/* =========================================================
   SONOFPOLLUX — styles.css (Clean Portal Rebuild v2)
   - Mobile-first + “Apple/Samsung clean” spacing + glass
   - Works with your existing HTML classes/IDs
   - Fixes mobile menu (overlay + guaranteed show/hide)
   ========================================================= */

/* -------------------------
   Design tokens
-------------------------- */
:root{
  --bg0:#070712;
  --bg1:#0b0a13;

  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.04);

  --text: rgba(246,246,255,.94);
  --muted: rgba(246,246,255,.72);

  --line: rgba(255,255,255,.12);
  --line2: rgba(255,255,255,.08);

  --accent:#7c5cff;
  --accent2:#2ee6d6;
  --gold:#ffd88f;

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow2: 0 12px 28px rgba(0,0,0,.35);

  --r: 18px;
  --r2: 26px;

  --wrap: 1120px;
  --headerH: 74px;

  --focus: 0 0 0 3px rgba(124,92,255,.28), 0 0 0 6px rgba(46,230,214,.16);
}

/* -------------------------
   Base / reset
-------------------------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(124,92,255,.16), transparent 52%),
    radial-gradient(circle at 82% 70%, rgba(46,230,214,.12), transparent 52%),
    radial-gradient(circle at 70% 10%, rgba(255,102,217,.06), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); }

img{ max-width:100%; height:auto; }
button, input, textarea{ font: inherit; color: inherit; }

[hidden]{ display:none!important; }

.wrap{
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}
@media (max-width:520px){
  .wrap{ width: min(var(--wrap), calc(100% - 26px)); }
}

/* Skip link */
.skip{
  position:absolute;
  left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 12px;
  background: rgba(10,10,20,.90);
  border:1px solid var(--line);
  border-radius:12px;
  z-index:99999;
}

/* Anchor jumps under sticky header */
.section, .hero, #player, #vote, #chat { scroll-margin-top: 96px; }

/* Screen-reader helper */
.srOnly{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* -------------------------
   Background layers
-------------------------- */
.bg{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
}
.stars{
  position:absolute; inset:-35vh -35vw;
  background:
    radial-gradient(1px 1px at 18% 22%, rgba(255,255,255,.70), transparent 60%),
    radial-gradient(2px 2px at 42% 68%, rgba(255,255,255,.40), transparent 60%),
    radial-gradient(1px 1px at 72% 44%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(2px 2px at 86% 78%, rgba(255,255,255,.50), transparent 60%);
  opacity:.24;
  filter: blur(.2px);
}
.glow{
  position:absolute; inset:-30vh -30vw;
  background:
    radial-gradient(circle at 30% 20%, rgba(124,92,255,.20), transparent 45%),
    radial-gradient(circle at 75% 65%, rgba(46,230,214,.14), transparent 44%),
    radial-gradient(circle at 55% 90%, rgba(255,124,219,.10), transparent 48%);
  filter: blur(10px);
  opacity:.9;
}
.scanlines{
  position:absolute; inset:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.04) 0px,
    rgba(255,255,255,.04) 1px,
    transparent 3px,
    transparent 6px
  );
  opacity:.06;
  mix-blend-mode: overlay;
}

/* -------------------------
   Header / Topbar
-------------------------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11,10,19,.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar.is-scrolled{
  background: rgba(11,10,19,.78);
  border-bottom-color: rgba(255,255,255,.10);
}

.topbar__inner{
  min-height: var(--headerH);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  letter-spacing:.10em;
  font-weight:900;
  white-space: nowrap;
}
.brand__mark{
  width:30px; height:30px;
  border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(46,230,214,.14));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.brand__text{ font-size:14px; opacity:.96; }
.brand__sub{
  font-size:11px;
  font-weight:900;
  letter-spacing:.22em;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  opacity:.9;
}

.nav{
  display:flex;
  align-items:center;
  gap: 6px;
    flex-wrap: wrap;
padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.nav__link{
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
  opacity: .88;
}
.nav__link:hover{
  background: rgba(255,255,255,.06);
  text-decoration: none;
  opacity: 1;
}
.nav__link--hot{
  opacity:1;
  background: linear-gradient(135deg, rgba(124,92,255,.62), rgba(46,230,214,.26));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 12px 32px rgba(0,0,0,.32);
}

.topbar__actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.topbar__cta{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-weight: 900;
}
.topbar__cta:hover{
  background: rgba(255,255,255,.06);
  text-decoration:none;
}
.topbar__ctaDot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent2);
  box-shadow: 0 0 18px rgba(46,230,214,.50);
  animation: liveblink 1.2s ease-in-out infinite;
}
@keyframes liveblink{
  0%,100%{ transform: scale(1); opacity: .9; }
  50%{ transform: scale(1.22); opacity: 1; }
}

/* Menu button (mobile) */
.menuBtn{
  display:none;
  align-items:center;
  gap:10px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
}
.menuBtn:hover{ background: rgba(255,255,255,.08); }
.menuBtn:focus{ outline:none; box-shadow: var(--focus); }
.menuBtn__icon{
  width: 18px;
  height: 12px;
  display:inline-block;
  background:
    linear-gradient(to bottom,
      rgba(233,231,255,.92) 0 2px,
      transparent 2px 5px,
      rgba(233,231,255,.92) 5px 7px,
      transparent 7px 10px,
      rgba(233,231,255,.92) 10px 12px
    );
  opacity: .9;
}

/* -------------------------
   Mobile Nav (FULL overlay, guaranteed to work)
-------------------------- */
#mobileNav[hidden]{ display:none!important; }
#mobileNav:not([hidden]){ display:block!important; }

#mobileNav{
  position: fixed; /* overlay */
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: calc(var(--headerH) + 10px) 0 18px;
}

.mobileNav__panel{
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  border-radius: var(--r2);
  background: rgba(12,10,20,.88);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  padding: 12px;
}
.mobileNav__grid{
  display:grid;
  gap: 10px;
}
.mobileNav__grid a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  font-weight: 900;
}
.mobileNav__grid a:hover{
  background: rgba(255,255,255,.06);
  text-decoration:none;
}
.mobileNav__ctaRow{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Responsive header behavior */
@media (max-width: 900px){
  .nav{ display:none; }
  .menuBtn{ display:inline-flex; }
  .topbar__cta{ display:inline-flex; } /* keep Live pill visible on mobile */
}
@media (min-width: 901px){
  #mobileNav{ display:none!important; } /* never show overlay on desktop */
}

/* -------------------------
   Buttons / pills
-------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  font-weight: 900;
  cursor:pointer;
  text-decoration:none !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.07); }
.btn:focus, .btn:focus-visible{ outline:none; box-shadow: var(--focus); }
.btn[disabled]{ opacity:.6; cursor:not-allowed; transform:none; }

.btn--primary{
  background: linear-gradient(135deg, rgba(124,92,255,.82), rgba(46,230,214,.42));
  border-color: rgba(255,255,255,.16);
  box-shadow: var(--shadow2);
}
.btn--ghost{
  background: rgba(0,0,0,.22);
}

.pillRow{ display:flex; gap:10px; flex-wrap:wrap; }
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  font-size:13px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

/* -------------------------
   Hero
-------------------------- */
.hero{
  padding: 46px 0 26px;
  position: relative;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero{ padding-top: 30px; }
  .hero__grid{ grid-template-columns: 1fr; }
}

.kicker{
  margin:0 0 10px;
  letter-spacing:.22em;
  text-transform: uppercase;
  font-weight: 900;
  font-size:12px;
  color: rgba(246,246,255,.82);
}

h1{
  margin:0 0 12px;
  font-size: clamp(32px, 4vw, 56px);
  line-height:1.05;
  letter-spacing: -0.02em;
}
.h1Accent{
  display:block;
  margin-top:6px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.lead{
  margin:0 0 18px;
  color: rgba(246,246,255,.82);
  font-size: 18px;
  line-height: 1.55;
  max-width: 60ch;
}

/* Hero card */
.hero__card{
  border-radius: var(--r2);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow2);
  overflow:hidden;
  position:relative;
}
.cardInner{ padding:18px; }
.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.14em;
  text-transform: uppercase;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
}
.bigTitle{ margin:14px 0 8px; font-size:22px; font-weight: 950; letter-spacing:.04em; }
.small{ margin:0 0 12px; color: rgba(246,246,255,.82); line-height:1.5; }
.mini{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  color: rgba(246,246,255,.70);
  font-weight:800;
  font-size:13px;
}
.dot{ width:10px; height:10px; border-radius:999px; background: var(--accent2); box-shadow: 0 0 20px rgba(46,230,214,.45); }
.sep{ opacity:.5; }

.embedHint{
  margin-top:14px;
  padding:12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.22);
  background: rgba(0,0,0,.18);
  color: rgba(246,246,255,.78);
  font-size:14px;
}
.embedHint .btn{ width:100%; }
@media (min-width: 901px){
  .embedHint .btn{ width:auto; }
}

/* Now-playing label styling */
#homeRadioNow{
  display:block;
  margin-top:6px;
  font-weight:900;
  letter-spacing:.02em;
  color: rgba(246,246,255,.92);
}

/* -------------------------
   Sections / grids / panels
-------------------------- */
.section{ padding: 36px 0; }
.sectionHead h2{
  margin:0;
  font-size: 26px;
  letter-spacing: -.01em;
}
.sectionHead p{
  margin: 10px 0 18px;
  color: rgba(246,246,255,.76);
  line-height: 1.55;
}

.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
.grid2{ display:grid; grid-template-columns: repeat(2, 1fr); gap:14px; }
@media (max-width: 900px){
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
}

.panel{
  border-radius: var(--r2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  padding: 16px;
}
.panel h3{ margin:0 0 8px; letter-spacing:-.01em; }
.panel p{ margin:0 0 12px; color: rgba(246,246,255,.76); line-height:1.55; }

.textBtn{
  display:inline-block;
  margin-top:4px;
  font-weight: 900;
  text-decoration:none;
}
.textBtn:hover{ text-decoration: underline; }

/* Lists / chips */
.cleanList{ margin:0; padding-left:18px; color: rgba(246,246,255,.84); }
.cleanList li{ margin: 6px 0; }

.chips{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chips li{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform: uppercase;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(246,246,255,.86);
}

/* Code slot */
.codeSlot{
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.22);
  background: rgba(0,0,0,.18);
  padding:14px;
  color: rgba(246,246,255,.74);
  min-height:110px;
  overflow-wrap:anywhere;
}

/* -------------------------
   Forms (Lyrics Lab + Submit)
-------------------------- */
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  outline:none;
}
input::placeholder, textarea::placeholder{ color: rgba(246,246,255,.55); }
input:focus, textarea:focus{ box-shadow: var(--focus); border-color: rgba(255,255,255,.20); }

.lab{ display:grid; gap:12px; }
.labForm{ display:flex; gap:10px; flex-wrap:wrap; }
.labForm input{ flex:1; min-width: 240px; }
.output{
  margin:0;
  padding:12px;
  border-radius:14px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.12);
  color: rgba(246,246,255,.86);
  white-space:pre-wrap;
  min-height:84px;
}

.submitForm .formGrid{ display:grid; gap:12px; }
.formRow{ display:grid; gap:6px; }
.formRow label{ font-size: .92rem; color: rgba(246,246,255,.86); }
input[type="file"]{ padding:10px 12px; }

.checkRow{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.checkRow input{ flex:0 0 auto; width:auto; }

.formActions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.noticeBox{
  border-radius:14px;
  padding:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
}
.noticeBox[data-kind="ok"]{
  border-color: rgba(46,230,214,.35);
  box-shadow: 0 0 18px rgba(46,230,214,.10);
}
.noticeBox[data-kind="error"]{
  border-color: rgba(255,102,217,.25);
  box-shadow: 0 0 18px rgba(255,102,217,.08);
}

/* -------------------------
   Trailer dialog
-------------------------- */
dialog.modal{
  border: 0;
  padding: 0;
  width: min(980px, 92vw);
  background: transparent;
  color: var(--text);
}
dialog.modal::backdrop{
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}
.modal__frame{
  border-radius: 18px;
  overflow: hidden;
  background: rgba(12,10,20,.92);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 30px 120px rgba(0,0,0,.65);
}
.modal__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 12px;
  background: linear-gradient(to right, rgba(255,255,255,.08), rgba(255,255,255,0));
}
.modal__title{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .9;
}
.modal__close{
  border: 0;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.modal__close:hover{ background: rgba(255,255,255,.14); }
.modal__video{ width: 100%; height: auto; display: block; }

/* -------------------------
   Instagram wall
-------------------------- */
.igGrid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.igGrid > *{
  grid-column: span 12;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
@media (min-width: 780px){
  .igGrid > *{ grid-column: span 6; }
}
@media (min-width: 1100px){
  .igGrid > *{ grid-column: span 4; }
}
.igCta{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.instagram-media{
  margin: 0 !important;
  width: 100% !important;
}

/* -------------------------
   Footer
-------------------------- */
.footer{ padding: 26px 0 42px; }
.footer__row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:14px;
}
.muted{ color: rgba(246,246,255,.70); }
.small{ font-size: 12px; }

/* -------------------------
   Motion accessibility
-------------------------- */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .topbar__ctaDot{ animation:none !important; }
  .btn{ transition:none; }
  .btn:hover{ transform:none; }
}


/* =====================
   Accordion (Lore/Roadmap + directory panels)
   ===================== */
details.accordion{
  border:1px solid var(--stroke);
  background: var(--panel);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow);
}
details.accordion summary{
  cursor:pointer;
  list-style:none;
  padding: 14px 16px;
  font-weight: 700;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
details.accordion summary::-webkit-details-marker{ display:none; }
details.accordion summary::after{
  content:"＋";
  font-weight: 800;
  opacity:.75;
  transform: translateY(-1px);
  transition: transform .18s ease, opacity .18s ease;
}
details.accordion[open] summary::after{
  content:"—";
  opacity:.9;
}
details.accordion[open] summary{
  border-bottom:1px solid var(--stroke);
}
details.accordion .accordion__body{
  padding: 14px 16px 16px;
}
details.accordion .accordion__body .btn{
  margin-top: 12px;
}

