:root{
  --bg:#09090d;
  --bg2:#111118;
  --panel:#14141b;
  --panel2:#1b1b23;
  --panel3:#20202a;
  --border:rgba(255,255,255,.10);
  --border-strong:rgba(255,255,255,.16);
  --text:#f5f5f7;
  --muted:#a7a7b3;
  --muted2:#8d8d99;
  --accent:#ff4d6d;
  --accent-soft:rgba(255,77,109,.18);
  --shadow:0 18px 50px rgba(0,0,0,.30);
  --shadow-soft:0 10px 28px rgba(0,0,0,.24);
  --radius:20px;
  --radius-sm:14px;
  --max:1040px;
}

*{
  box-sizing:border-box;
}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top, #231820 0%, #120f18 34%, #09090d 72%, #070709 100%);
  line-height:1.45;
  position:relative;
  min-height:100vh;
  overflow-x:hidden;
}

img{
  max-width:100%;
  display:block;
}

iframe{
  display:block;
}

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

.app-shell{
  position:relative;
  z-index:2;
  max-width:var(--max);
  margin:auto;
  padding:14px;
}

.page-fx{
  position:fixed;
  inset:0;
  z-index:5;
  pointer-events:none;
  overflow:hidden;
  opacity:.55;
}

.fx-smoke,
.fx-embers,
.fx-particles{
  position:absolute;
  inset:-10%;
}

.fx-smoke::before,
.fx-smoke::after{
  content:"";
  position:absolute;
  border-radius:50%;
  transform:translate3d(0,0,0);
}

.fx-smoke::before{
  width:58vw;
  height:58vw;
  min-width:420px;
  min-height:420px;
  left:-16vw;
  top:-4vh;
  filter:blur(62px);
  opacity:.34;
  background:
    radial-gradient(circle,
      rgba(255,255,255,.20) 0%,
      rgba(215,215,235,.14) 20%,
      rgba(150,150,175,.08) 42%,
      rgba(90,90,110,0) 72%);
  animation:smokeDriftOne 20s ease-in-out infinite alternate;
}

.fx-smoke::after{
  width:46vw;
  height:46vw;
  min-width:320px;
  min-height:320px;
  right:-12vw;
  top:12vh;
  filter:blur(56px);
  opacity:.28;
  background:
    radial-gradient(circle,
      rgba(255,255,255,.16) 0%,
      rgba(205,205,225,.11) 24%,
      rgba(135,135,160,.07) 44%,
      rgba(90,90,110,0) 74%);
  animation:smokeDriftTwo 24s ease-in-out infinite alternate;
}

.fx-embers::before,
.fx-embers::after{
  content:"";
  position:absolute;
  border-radius:50%;
  transform:translate3d(0,0,0);
}

.fx-embers::before{
  width:50vw;
  height:26vh;
  min-width:420px;
  min-height:180px;
  left:-4vw;
  bottom:-8vh;
  filter:blur(36px);
  opacity:.48;
  background:
    radial-gradient(ellipse at center,
      rgba(255,120,40,.32) 0%,
      rgba(255,77,109,.24) 24%,
      rgba(255,180,70,.11) 44%,
      rgba(255,120,40,0) 74%);
  animation:emberPulse 7s ease-in-out infinite;
}

.fx-embers::after{
  width:40vw;
  height:22vh;
  min-width:300px;
  min-height:150px;
  right:0;
  bottom:-2vh;
  filter:blur(32px);
  opacity:.34;
  background:
    radial-gradient(ellipse at center,
      rgba(255,130,50,.24) 0%,
      rgba(255,77,109,.18) 26%,
      rgba(255,160,60,.08) 46%,
      rgba(255,130,40,0) 74%);
  animation:emberPulse 9s ease-in-out infinite reverse;
}

.fx-particles::before,
.fx-particles::after{
  content:"";
  position:absolute;
  inset:0;
  background-repeat:repeat;
  pointer-events:none;
}

.fx-particles::before{
  background-image:
    radial-gradient(circle, rgba(255,186,92,.85) 0 1.2px, transparent 1.8px),
    radial-gradient(circle, rgba(255,120,60,.75) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255,220,160,.65) 0 1px, transparent 1.5px);
  background-size:180px 180px, 240px 240px, 320px 320px;
  background-position:20px 100%, 80px 100%, 140px 100%;
  opacity:.28;
  animation:embersRise 18s linear infinite;
}

.fx-particles::after{
  background-image:
    radial-gradient(circle, rgba(255,180,90,.55) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,110,70,.45) 0 .9px, transparent 1.3px);
  background-size:220px 220px, 300px 300px;
  background-position:50px 100%, 120px 100%;
  opacity:.16;
  animation:embersRise 26s linear infinite;
}

@keyframes smokeDriftOne{
  0%{
    transform:translate(0, 0) scale(1);
  }
  50%{
    transform:translate(5vw, -1vh) scale(1.06);
  }
  100%{
    transform:translate(10vw, 3vh) scale(1.12);
  }
}

@keyframes smokeDriftTwo{
  0%{
    transform:translate(0, 0) scale(1);
  }
  50%{
    transform:translate(-4vw, 2vh) scale(1.05);
  }
  100%{
    transform:translate(-8vw, -2vh) scale(1.1);
  }
}

@keyframes emberPulse{
  0%{
    opacity:.22;
    transform:scale(1);
  }
  50%{
    opacity:.48;
    transform:scale(1.06);
  }
  100%{
    opacity:.28;
    transform:scale(1.02);
  }
}

@keyframes embersRise{
  0%{
    transform:translateY(18vh);
    opacity:0;
  }
  10%{
    opacity:.22;
  }
  70%{
    opacity:.22;
  }
  100%{
    transform:translateY(-30vh);
    opacity:0;
  }
}

.hero{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(30,24,34,.92), rgba(17,17,24,.88));
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  padding:22px 22px 20px;
  margin-bottom:16px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
}

.hero::before{
  content:"";
  position:absolute;
  inset:auto -40px -60px auto;
  width:260px;
  height:260px;
  background:radial-gradient(circle, rgba(255,77,109,.16), rgba(255,77,109,0) 68%);
  pointer-events:none;
}

.hero-inner{
  position:relative;
  z-index:2;
  max-width:760px;
}

.hero-kicker{
  color:var(--accent);
  font-size:11px;
  letter-spacing:2.2px;
  text-transform:uppercase;
  margin-bottom:6px;
}

.hero-title{
  margin:0 0 8px;
  font-size:clamp(1.8rem, 4vw, 3rem);
  line-height:1.02;
  letter-spacing:.02em;
}

.hero-subtitle{
  margin:0;
  color:var(--muted);
  font-size:0.98rem;
}

.content{
  display:grid;
  gap:14px;
  padding-bottom:3rem;
}

.showcase-card,
.player-card,
.archive-card,
.station-card{
  position:relative;
  z-index:2;
  background:linear-gradient(180deg, rgba(23,23,31,.86), rgba(15,15,22,.80));
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:15px;
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(12px);
}

.showcase-card:hover,
.player-card:hover,
.archive-card:hover,
.station-card:hover{
  border-color:rgba(255,255,255,.18);
  transition:border-color .18s ease, box-shadow .18s ease;
}

.showcase-grid{
  display:grid;
  gap:14px;
}

.showcase-art{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}

.showcase-art::after{
  content:"";
  position:absolute;
  inset:auto 8% -4px 8%;
  height:24px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(255,77,109,.28), rgba(255,77,109,0) 72%);
  filter:blur(16px);
  pointer-events:none;
}

.showcase-art img{
  width:100%;
  max-width:440px;
  max-height:270px;
  border-radius:18px;
  aspect-ratio:4 / 3;
  object-fit:contain;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.06), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, rgba(27,27,36,.92), rgba(15,15,22,.92));
  border:1px solid rgba(255,255,255,.10);
  padding:10px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.03),
    0 14px 30px rgba(0,0,0,.26);
  transition:transform .2s ease, opacity .2s ease;
}

.showcase-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.live-row{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  padding:7px 10px;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  background:var(--accent-soft);
  border:1px solid rgba(255,77,109,.28);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
}

.live-dot{
  width:9px;
  height:9px;
  background:var(--accent);
  border-radius:50%;
  box-shadow:0 0 12px rgba(255,77,109,.72);
  flex:0 0 auto;
}

.live-text{
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#ffd3dc;
  white-space:nowrap;
}

#showTitle{
  margin:0 0 8px;
  font-size:clamp(1.4rem, 3vw, 2.2rem);
  line-height:1.08;
  text-wrap:balance;
}

#showMeta{
  margin:0 0 10px;
  color:var(--muted);
  font-size:.95rem;
}

#showDesc{
  margin:0;
  color:#d7d7de;
  font-size:.98rem;
  line-height:1.46;
  max-width:60ch;
}

.player-card h3,
.archive-card h3,
.station-card h3{
  margin:0 0 10px;
  font-size:1rem;
  letter-spacing:.01em;
}

.player-frame{
  margin-top:8px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:#0d0d12;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
}

.player-frame iframe{
  width:100%;
  min-height:120px;
}

.archive-help{
  margin:0 0 12px;
  color:var(--muted);
  font-size:.92rem;
  line-height:1.42;
}

.select-wrap{
  position:relative;
}

.select-wrap::after{
  content:"⌄";
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  pointer-events:none;
  color:var(--muted);
  font-size:1rem;
}

.archive-card select{
  width:100%;
  appearance:none;
  -webkit-appearance:none;
  padding:14px 42px 14px 14px;
  border-radius:14px;
  border:1px solid var(--border-strong);
  background:linear-gradient(180deg, rgba(31,31,41,.92), rgba(24,24,34,.88));
  color:var(--text);
  font-size:1rem;
  line-height:1.25;
  cursor:pointer;
}

.archive-card select:focus{
  outline:none;
  border-color:rgba(255,77,109,.58);
  box-shadow:0 0 0 3px rgba(255,77,109,.18);
}

.station-card p{
  margin:0;
  color:#d2d2d9;
  line-height:1.5;
  max-width:74ch;
}

.app-links-card{
  margin-bottom:.5rem;
}

.app-links-intro{
  margin:0 0 1rem 0 !important;
  color:rgba(255,255,255,.82) !important;
  line-height:1.6;
}

.app-links-grid{
  display:flex;
  flex-wrap:wrap;
  gap:.85rem;
  margin-top:.35rem;
}

.store-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  padding:.95rem 1.2rem;
  min-width:220px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.02em;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(34,34,46,.94), rgba(22,22,31,.90));
  color:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}

.store-btn:hover,
.store-btn:focus{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.24);
  box-shadow:0 14px 30px rgba(0,0,0,.28);
  outline:none;
}

.store-btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  flex:0 0 24px;
  font-size:1.15rem;
  line-height:1;
}

.store-btn-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  line-height:1.15;
}

.store-btn-copy small{
  font-size:.72rem;
  opacity:.8;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:.22rem;
}

.store-btn-copy span{
  font-size:1rem;
}

.app-links-note{
  margin:1rem 0 0 0 !important;
  font-size:.95rem;
  color:rgba(255,255,255,.68) !important;
  line-height:1.5;
}

@media (min-width: 760px){
  .app-shell{
    padding:18px;
  }

  .showcase-grid{
    grid-template-columns:minmax(235px, 370px) minmax(0, 1fr);
    gap:14px;
    align-items:center;
  }

  .showcase-card,
  .player-card,
  .archive-card,
  .station-card{
    padding:14px;
  }

  #showTitle{
    font-size:clamp(1.3rem, 2.1vw, 1.95rem);
    margin-bottom:6px;
  }

  #showMeta{
    margin-bottom:8px;
  }

  #showDesc{
    font-size:.95rem;
    line-height:1.42;
    max-width:58ch;
  }
}

@media (min-width: 980px){
  .content{
    grid-template-columns:minmax(0, 1.42fr) minmax(300px, 355px);
    grid-template-rows:auto auto auto;
    gap:14px;
    align-items:start;
  }

  .showcase-card{
    grid-column:1 / 2;
    grid-row:1 / 3;
    min-height:100%;
  }

  .player-card{
    grid-column:2 / 3;
    grid-row:1 / 2;
    position:sticky;
    top:18px;
  }

  .archive-card{
    grid-column:2 / 3;
    grid-row:2 / 3;
    margin-top:0;
  }

  .station-card{
    grid-column:1 / 3;
    grid-row:3 / 4;
  }

  .player-frame iframe{
    min-height:110px;
  }
}

@media (max-width: 759px){
  .page-fx{
    opacity:.42;
  }

  .fx-smoke::before,
  .fx-smoke::after{
    opacity:.20;
  }

  .fx-embers::before{
    opacity:.30;
  }

  .fx-embers::after{
    opacity:.22;
  }

  .fx-particles::before{
    opacity:.18;
  }

  .fx-particles::after{
    opacity:.10;
  }

  .hero{
    padding:16px 15px;
    border-radius:18px;
    margin-bottom:14px;
  }

  .hero-kicker{
    font-size:10px;
    letter-spacing:1.7px;
  }

  .hero-subtitle{
    font-size:.9rem;
  }

  .content{
    gap:12px;
    padding-bottom:2.5rem;
  }

  .showcase-card,
  .player-card,
  .archive-card,
  .station-card{
    padding:13px;
    border-radius:16px;
  }

  .showcase-grid{
    gap:12px;
  }

  .showcase-art img{
    max-width:100%;
    max-height:210px;
    aspect-ratio:4 / 3;
    object-fit:contain;
    border-radius:14px;
    padding:8px;
  }

  .live-row{
    margin-bottom:8px;
    padding:6px 9px;
  }

  .live-text{
    font-size:.7rem;
  }

  #showTitle{
    font-size:1.22rem;
    line-height:1.08;
    margin-bottom:6px;
  }

  #showMeta{
    font-size:.87rem;
    margin-bottom:7px;
  }

  #showDesc{
    font-size:.92rem;
    line-height:1.4;
  }

  .player-card h3,
  .archive-card h3,
  .station-card h3{
    margin-bottom:8px;
  }

  .player-frame iframe{
    min-height:108px;
  }

  .archive-help{
    font-size:.85rem;
    margin-bottom:10px;
  }

  .archive-card select{
    font-size:.95rem;
    padding:12px 40px 12px 12px;
  }

  .showcase-card .player-card{
    margin:0;
    padding:0;
    background:transparent;
    border:none;
    box-shadow:none;
    backdrop-filter:none;
  }

  .showcase-card .player-card h3{
    margin:0 0 8px;
  }

  .app-links-grid{
    flex-direction:column;
    gap:.75rem;
  }

  .store-btn{
    width:100%;
    min-width:0;
  }
}

@media (max-width: 420px){
  .app-shell{
    padding:10px;
  }

  .hero-title{
    font-size:1.42rem;
  }

  .hero-subtitle{
    font-size:.87rem;
  }

  #showTitle{
    font-size:1.12rem;
  }

  #showMeta{
    font-size:.83rem;
  }

  #showDesc{
    font-size:.89rem;
  }

  .showcase-art img{
    max-height:185px;
  }

  .content{
    padding-bottom:2.2rem;
  }
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior:auto;
  }

  .page-fx{
    display:none;
  }

  *,
  *::before,
  *::after{
    transition:none !important;
    animation:none !important;
  }
}

.archive-card select option{
  background:#1b1b23;
  color:#f5f5f7;
}