/* SkyTuneAtlas Website
   Static multi-page website.
   Update station stream URLs and legal details before going live.
*/

:root {
  --bg: #050718;
  --bg-2: #0a1028;
  --card: rgba(10, 18, 46, 0.78);
  --card-strong: rgba(16, 25, 62, 0.92);
  --text: #f7fbff;
  --muted: #b8c4dd;
  --line: rgba(255,255,255,0.14);
  --cyan: #37e4ff;
  --purple: #bd5cff;
  --blue: #508cff;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(189, 92, 255, 0.20), transparent 34rem),
    radial-gradient(circle at top right, rgba(55, 228, 255, 0.17), transparent 32rem),
    linear-gradient(180deg, #030512 0%, var(--bg) 48%, #07091d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.no-scroll { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

p { color: var(--muted); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 1000;
  border-radius: 8px;
}

.skip-link:focus { left: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(5, 7, 24, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(55, 228, 255, .28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--muted);
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 14px;
  transition: .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,.09);
}

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

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 11px;
  cursor: pointer;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  color: #071024;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(55,228,255,.18);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 48px rgba(55,228,255,.26); }

.btn.secondary {
  color: var(--text);
  background: rgba(255,255,255,.08);
  border-color: var(--line);
  box-shadow: none;
}

.btn.ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.hero {
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(5,7,24,.78) 0%, rgba(5,7,24,.38) 45%, rgba(5,7,24,.72) 100%),
    url("../images/skytuneatlas-banner.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content {
  width: min(var(--max), calc(100% - 32px));
  position: relative;
  z-index: 2;
  padding: 88px 0;
}

.hero-card {
  max-width: 700px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 7, 24, 0.50);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.kicker {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-size: 12px;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 99px;
}

h1, h2, h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 8vw, 86px);
  letter-spacing: -.05em;
  margin-top: 16px;
}

h2 {
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -.04em;
}

h3 {
  font-size: 23px;
}

.hero-text {
  max-width: 620px;
  font-size: clamp(17px, 2vw, 21px);
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.section.narrow { max-width: 900px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-header p {
  max-width: 650px;
  margin: 12px 0 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(55,228,255,.15), transparent 18rem);
  pointer-events: none;
}

.card > * { position: relative; }

.station-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.station-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.station-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(189,92,255,.24), rgba(55,228,255,.20));
  border: 1px solid rgba(255,255,255,.16);
  font-size: 26px;
}

.badge {
  color: var(--cyan);
  border: 1px solid rgba(55,228,255,.28);
  background: rgba(55,228,255,.08);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  color: var(--muted);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

.station-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.mini-player {
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 28px));
  border: 1px solid var(--line);
  background: rgba(5, 7, 24, .90);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
  border-radius: 24px;
  padding: 14px;
  display: none;
  align-items: center;
  gap: 14px;
}

.mini-player.visible { display: flex; }

.mini-player img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-info strong,
.player-info span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-info span {
  color: var(--muted);
  font-size: 13px;
}

.audio-el {
  width: 260px;
  max-width: 40%;
}

.page-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 42px;
}

.page-hero .kicker { margin-bottom: 16px; }
.page-hero p { max-width: 760px; font-size: 19px; }

.legal-box {
  border: 1px solid var(--line);
  background: var(--card-strong);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 42px);
}

.legal-box h2 {
  font-size: 30px;
  margin-top: 38px;
  margin-bottom: 12px;
}

.legal-box h2:first-child { margin-top: 0; }

.legal-box h3 {
  margin-top: 24px;
  margin-bottom: 6px;
}

.legal-box p,
.legal-box li {
  color: var(--muted);
}

.legal-box a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.notice {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--text);
}

.notice strong { color: var(--cyan); }

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th { color: var(--text); }
td { color: var(--muted); }

.cookie-panel {
  display: grid;
  gap: 18px;
}

.cookie-row {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  padding: 18px;
}

.cookie-row header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cookie-row p { margin-bottom: 0; }

.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  flex: 0 0 auto;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,.20);
  transition: .2s;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.slider:before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background: white;
  transition: .2s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.switch input:checked + .slider:before {
  transform: translateX(24px);
}

.switch input:disabled + .slider {
  opacity: .65;
  cursor: not-allowed;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cookie-banner {
  position: fixed;
  inset: auto 18px 18px auto;
  z-index: 999;
  width: min(470px, calc(100% - 36px));
  border: 1px solid var(--line);
  background: rgba(7, 10, 28, .96);
  backdrop-filter: blur(22px);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: none;
}

.cookie-banner.visible { display: block; }

.cookie-banner h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.cookie-banner p {
  margin: 0 0 18px;
  font-size: 14px;
}

.cookie-banner .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  padding: 38px 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 999px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover { color: var(--text); }

.ad-label {
  display: inline-flex;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  margin-right: 6px;
}

.fade-in {
  animation: fadeIn .7s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .grid.cols-3,
  .grid.cols-2 { grid-template-columns: 1fr; }

  .section-header {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 74px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(5, 7, 24, .97);
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 13px 14px;
  }

  .menu-toggle { display: inline-flex; }

  .nav-actions .btn { display: none; }

  .hero-card { padding: 24px; }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .mini-player {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .audio-el {
    width: 100%;
    max-width: none;
  }
}
