/* Emily and the AI — moody, modern, responsive */
:root{
  --bg:#07070b;
  --bg2:#0b0b14;
  --card:#101022cc;
  --line:#ffffff18;
  --text:#e9e9f2;
  --muted:#b6b6c7;
  --accent:#b13cff;   /* neon violet */
  --accent2:#00e5ff;  /* cyan */
  --warn:#ff3b7a;     /* pink/red */
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(177,60,255,.18), transparent 55%),
    radial-gradient(900px 600px at 80% 30%, rgba(0,229,255,.12), transparent 60%),
    radial-gradient(900px 800px at 50% 90%, rgba(255,59,122,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}
img{max-width:100%; display:block}

.container{
  width:min(1100px, 92vw);
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,7,11,.85), rgba(7,7,11,.35));
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
}

.sig{
  width:40px;height:40px;border-radius:14px;
  background:
    radial-gradient(14px 14px at 30% 35%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(135deg, rgba(177,60,255,.9), rgba(0,229,255,.85));
  box-shadow: 0 10px 30px rgba(177,60,255,.25);
}

.brand h1{
  font-size:14px;
  margin:0;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
}

.brand .title{
  display:block;
  font-size:15px;
  color:var(--text);
  letter-spacing:.06em;
  margin-top:2px;
}

.navlinks{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.navlinks a{
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
}

.navlinks a:hover{
  color:var(--text);
  border-color:var(--line);
  background: rgba(255,255,255,.04);
}

.navlinks a.active{
  color:var(--text);
  border-color:rgba(177,60,255,.35);
  background: linear-gradient(90deg, rgba(177,60,255,.16), rgba(0,229,255,.10));
}

/* Hero */
.hero{
  position:relative;
  padding:74px 0 34px;
}

.heroGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:stretch;
}

@media (max-width: 920px){
  .heroGrid{grid-template-columns:1fr; }
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.dot{
  width:8px;height:8px;border-radius:999px;
  background: linear-gradient(135deg, var(--warn), var(--accent));
  box-shadow: 0 0 18px rgba(255,59,122,.35);
}

.glitch{
  margin:16px 0 10px;
  font-size: clamp(38px, 5vw, 62px);
  line-height:1.03;
  letter-spacing:.02em;
  position:relative;
  text-shadow:
    0 0 22px rgba(177,60,255,.18),
    0 0 22px rgba(0,229,255,.10);
}

.glitch small{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size: clamp(14px, 1.6vw, 16px);
  letter-spacing:.08em;
  line-height:1.6;
}

.hero p{
  margin:14px 0 0;
  color:var(--muted);
  line-height:1.7;
  max-width:64ch;
}

.ctaRow{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-size:13px;
  letter-spacing:.10em;
  text-transform:uppercase;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  cursor:pointer;
}

.btn.primary{
  border-color: rgba(177,60,255,.55);
  background: linear-gradient(90deg, rgba(177,60,255,.28), rgba(0,229,255,.16));
}

.btn:hover{transform: translateY(-1px); transition: transform .15s ease}
.btn:active{transform: translateY(0px); transition: transform .05s ease}

.panel{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
  position:relative;
  overflow:hidden;
}

.panel:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 300px at 15% 20%, rgba(177,60,255,.16), transparent 55%),
              radial-gradient(500px 240px at 80% 40%, rgba(0,229,255,.10), transparent 55%);
  pointer-events:none;
  filter: blur(2px);
}

.panel > *{ position:relative; }

.panelHeader{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}

.panelHeader h3{
  margin:0;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}

.liveTag{
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color: var(--text);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,59,122,.35);
  background: rgba(255,59,122,.08);
}

.metricGrid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
  margin-top:14px;
}

.metric{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background: rgba(0,0,0,.18);
}

.metric .label{
  color:var(--muted);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.metric .value{
  margin-top:6px;
  font-size:18px;
}

.divider{
  height:1px;
  background: var(--line);
  margin:24px 0;
}

/* Sections */
.section{
  padding: 22px 0 54px;
}

.sectionTitle{
  margin:0 0 12px;
  font-size: 13px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}

.cards{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}

@media (max-width: 980px){
  .cards{grid-template-columns:repeat(2, 1fr)}
}
@media (max-width: 640px){
  .cards{grid-template-columns:1fr}
}

.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.card h4{
  margin:0 0 10px;
  font-size:16px;
  letter-spacing:.02em;
}

.card p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
  margin-bottom:10px;
}

.badge i{
  width:8px;height:8px;border-radius:999px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display:inline-block;
}

/* Episodes */
.episodeList{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:start;
}

@media (max-width: 980px){
  .episodeList{grid-template-columns:1fr}
}

.episodeCard{
  padding:16px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}

.episodeCard header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.epTitle{
  margin:0;
  font-size:18px;
}

.epMeta{
  margin:6px 0 0;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.08em;
}

.epDesc{
  margin:12px 0 12px;
  color:var(--muted);
  line-height:1.65;
}

.audio{
  width:100%;
  margin-top:8px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}

.embed{
  width:100%;
  border:1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,.18);
  margin-top:10px;
}

.embed .embedHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.embed iframe{
  width:100%;
  height: 230px;
  border:0;
  display:block;
  background: rgba(0,0,0,.25);
}

.sidebarBox{
  position:sticky;
  top:90px;
}

/* Gallery */
.galleryGrid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:10px;
}

@media (max-width: 980px){
  .galleryGrid{grid-template-columns:repeat(3, 1fr)}
}
@media (max-width: 720px){
  .galleryGrid{grid-template-columns:repeat(2, 1fr)}
}

.thumb{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  position:relative;
}

.thumb img{
  aspect-ratio: 1 / 1;
  object-fit:cover;
  transform: scale(1.02);
  transition: transform .2s ease, opacity .2s ease;
  opacity:.95;
}

.thumb:hover img{
  transform: scale(1.06);
  opacity:1;
}

.lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.78);
  z-index:100;
  padding:18px;
}

.lightbox.open{display:flex}

.lightboxInner{
  width:min(980px, 96vw);
  border-radius: 22px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(10,10,18,.9);
  box-shadow: var(--shadow);
}

.lightboxHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  border-bottom:1px solid var(--line);
}

.lightboxHeader .cap{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}

.closeBtn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  border-radius: 12px;
  padding:8px 10px;
  cursor:pointer;
}

.lightboxImg{
  width:100%;
  max-height: 76vh;
  object-fit:contain;
  background: rgba(0,0,0,.25);
}

/* Forms */
form{
  display:grid;
  gap:10px;
}

input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}

textarea{min-height:140px; resize:vertical}

input:focus, textarea:focus{
  border-color: rgba(0,229,255,.45);
  box-shadow: 0 0 0 4px rgba(0,229,255,.10);
}

.helper{
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}

/* Footer */
.footer{
  padding:32px 0 46px;
  border-top: 1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}

.footerRow{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.footer a{
  color:var(--text);
  opacity:.85;
}

.footer a:hover{opacity:1}

/* Small callouts */
code{
  color:#fff;
  background: rgba(255,255,255,.06);
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
}


/* Gallery labels */
.thumb{
  position:relative;
}
.thumbLabel{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:10px 10px 9px;
  font-size:12px;
  letter-spacing:.06em;
  color:var(--text);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.75));
  border-top:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  pointer-events:none;
  opacity:.92;
}

/* Lightbox caption overlay */
.lightboxInner{
  position:relative;
}
.lightboxCaptionOverlay{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:14px 14px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.82));
  color:var(--text);
  font-size:14px;
  letter-spacing:.04em;
  border-top:1px solid rgba(255,255,255,.10);
}

/* Force nav to group right (prevents "spread out" links) */
.topbarInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.topbar .nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  margin-left:auto;
  flex:0 0 auto;
  width:auto;
}

.topbar .nav a{
  flex:0 0 auto;
  white-space:nowrap;
}

