:root {
  --bg: #0b0b12;
  --surface: #13131d;
  --surface-2: #191927;
  --text: #f7f5fa;
  --muted: #aaa7b8;
  --purple: #a43c91;
  --pink: #ed58bb;
  --line: rgba(255,255,255,.09);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(132,48,108,.22), transparent 34rem),
    radial-gradient(ellipse at 92% 22%, rgba(53,48,112,.16), transparent 30rem),
    var(--bg);
  font-family: "DM Sans", Verdana, Arial, sans-serif;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #ff9cde; }

img { max-width: 100%; height: auto; }

.wrap {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

.header {
  border-bottom: 1px solid var(--line);
  background: rgba(11,11,18,.78);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 100;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand img {
  display: block;
  width: auto;
  max-width: min(400px, 50vw);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #d3d0dc;
  font-size: 13px;
  font-weight: 700;
}

.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--pink); }

.nav-cta {
  padding: 10px 16px;
  border: 2px solid rgba(237,88,187,.45);
  border-radius: 999px;
  color: #ffd8f1;
  white-space: nowrap;
}

#menuBtn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  position: relative;
  z-index: 1101;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.overlay-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -2px 0 20px rgba(0,0,0,0.5);
  z-index: 1100;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.overlay-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  transition: color .2s ease;
}

.overlay-menu a:last-child { border-bottom: none; }
.overlay-menu a:hover { color: var(--pink); }

.overlay-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  margin-bottom: 8px;
}

.hidden { display: none; }

.hero {
  padding: 0 0 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin: 0 0 14px;
  color: #e6a4d4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--purple);
}

h1, h2, p { margin-top: 0; }

.hero h1 {
  margin: 0;
  font-family: Audiowide, "DM Sans", sans-serif;
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.04em;
}

.hero h1 span {
  color: #e96bc0;
  text-shadow: 0 0 35px rgba(237,88,187,.24);
}

.hero-copy {
  max-width: 580px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 15px;
}

.player-card {
  overflow: hidden;
  margin: 20px auto 0;
  padding: 2px;
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: 0 24px 80px rgba(0,0,0,.35), 0 0 55px rgba(132,48,108,.10);
  /* CLS Fix: Reserves space for the player before lunaRadio loads */
  min-height: 444px; 
}

#dfm,
#dfm-mix {
  width: 100%;
  min-height: 440px;
  height: 440px;
  border-radius: 14px;
  overflow: hidden;
}

.now-playing {
  margin: 12px auto 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
}

.now-playing strong {
  color: var(--pink);
  font-weight: 800;
}

.section { padding: 25px 0; }

#streams {
  padding-top: 5px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.section-kicker {
  margin: 0 0 5px;
  color: #e08ac8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

.mix-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.mix-art {
  background: #17131d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mix-art img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 13px;
  /* CLS Fix: Reserves space before image loads */
  aspect-ratio: 1 / 1; 
}

.mix-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 42px);
}

.mix-info h2 {
  margin: 0 0 10px;
  font-family: Audiowide, sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.2;
}

.mix-info p { margin: 0 0 18px; color: var(--muted); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #c050ab; /* Contrast Fix: Was var(--purple), now passes WCAG AA */
  font-size: 13px;
  font-weight: 800;
  transition: color .2s ease;
}

.text-link:hover { color: var(--pink); }

.text-link .arrow { font-size: 16px; }

button.text-link {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #c050ab; /* Contrast Fix */
  cursor: pointer;
  text-align: left;
  transition: color .2s ease;
}

button.text-link:hover { color: var(--pink); }

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

.stream-card {
  min-width: 0;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
}

.stream-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.stream-card p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.quality-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quality-links button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #e6e3ef;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}

.quality-links button:hover {
  background: rgba(164,60,145,.18);
  border-color: rgba(164,60,145,.55);
  color: #ffffff;
  transform: translateY(-1px);
}

.quality-links button:active {
  transform: translateY(0);
}

.quality-links button.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(164,60,145,.35);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.about-image {
  background: #17131d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.about-image img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
  /* CLS Fix */
  aspect-ratio: 1 / 1; 
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 42px);
}

.about-copy h2 {
  margin: 0 0 5px;
  font-family: Audiowide, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
}

.about-copy .tagline {
  margin: 0 0 17px;
  color: #e88acb;
  font-weight: 700;
}

.about-copy p {
  margin-bottom: 12px;
  color: #c2bfcb;
  font-size: 14px;
}

.legacy-menu {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin: 22px auto 0;
  opacity: .75;
}

.legacy-menu img { display: block; height: auto; max-width: 33.333%; }

.footer {
  margin-top: 26px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  color: #858192;
  font-size: 12px;
  text-align: center;
}

.footer a { color: #e88acb; font-weight: 800; }

.mail-icon {
  display: inline-block;
  margin-right: 5px;
  font-size: 13px;
  opacity: 1;
  vertical-align: 0;
  position: relative;
  top: -0.5px;
  color: #ffffff;
}

.noscript-msg {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .header-inner { min-height: 72px; gap: 12px; }
  .nav { display: none; }
  #menuBtn { display: block; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  .hero { padding-top: 10px; }
  
  .mix-card, 
  .about {
    grid-template-columns: 1fr; 
  }

  .mix-art, .about-image {
    padding: 15px;
  }

  .mix-art img, .about-image img {
    height: 220px;
  }
  
  .stream-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .brand img { max-width: 160px; }
  .nav-cta { padding: 7px 11px; font-size: 11px; }
  .hero { padding-top: 8px; }
  .hero-copy { font-size: 13px; }
  
  .player-card { margin-top: 22px; padding: 7px; border-radius: 16px; min-height: 394px; }
  #dfm, #dfm-mix { min-height: 380px; height: 380px; }
  
  .section { padding: 25px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .mix-info, .about-copy { padding: 23px; }
  .legacy-menu { margin-top: 16px; }
}