:root {
  color-scheme: dark;
  --bg: #050507;
  --surface: #0f1118;
  --surface-alt: #151924;
  --text: #f7f9ff;
  --muted: #b5bfd8;
  --line: rgba(185, 194, 255, 0.14);
  --primary: #6723d5;
  --primary-dark: #93a6ff;
  --secondary: #2ccce9;
  --highlight: #befe2e;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(103, 35, 213, 0.22), transparent 24%),
    radial-gradient(circle at 100% 6%, rgba(44, 204, 233, 0.18), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(190, 254, 46, 0.08), transparent 30%),
    linear-gradient(180deg, #07080c 0%, #040506 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 24px 0 8px;
}

.topnav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.nav-link,
.button,
.button-secondary {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(185, 194, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 72%, #7df45f 115%);
  color: #fff;
  border: none;
  box-shadow: 0 14px 28px rgba(103, 35, 213, 0.28);
}

.button:hover {
  filter: brightness(0.98);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.hero {
  padding: 28px 0 20px;
}

.single-column {
  display: block;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.player-panel {
  padding: 36px 24px 30px;
}

.player-panel--hero {
  background:
    linear-gradient(160deg, rgba(103, 35, 213, 0.12) 0%, rgba(15, 17, 24, 0) 24%),
    linear-gradient(180deg, rgba(18, 20, 30, 0.98) 0%, rgba(8, 9, 13, 0.99) 100%);
  position: relative;
  overflow: hidden;
}

.player-panel--hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(103, 35, 213, 0.32), rgba(44, 204, 233, 0));
  border-bottom-right-radius: 100%;
  pointer-events: none;
}

.player-panel--hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 170px;
  height: 170px;
  background: linear-gradient(135deg, rgba(190, 254, 46, 0.18), rgba(44, 204, 233, 0));
  border-top-left-radius: 100%;
  pointer-events: none;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #d7e2ff;
  text-transform: uppercase;
  align-self: center;
  position: relative;
  z-index: 1;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--highlight);
}

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

.headline {
  margin-top: 16px;
  font-size: clamp(28px, 4.3vw, 42px);
  line-height: 1.08;
  text-align: center;
  letter-spacing: 0;
  font-weight: 700;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}

.hero-copy {
  margin-top: 14px;
  max-width: 30ch;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.player-block {
  margin-top: 30px;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.trust-strip {
  margin: 20px auto 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.trust-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(185, 194, 255, 0.12);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.trust-strip--page {
  margin-top: 18px;
  justify-content: flex-start;
}

.play-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.play-button {
  width: 108px;
  height: 108px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 70%, #7df45f 120%);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 20px 36px rgba(103, 35, 213, 0.3);
}

.play-button--hero {
  width: 168px;
  height: 168px;
  font-size: 32px;
}

.panel-soft {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(185, 194, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.status-box {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-width: 240px;
  padding: 16px 18px;
}

.status-label {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.status-value {
  font-size: 26px;
  font-weight: 700;
}

.now-playing {
  font-size: 14px;
  color: var(--muted);
}

.track-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #d7e2ff;
  font-weight: 700;
}

.equalizer {
  display: flex;
  gap: 4px;
  height: 20px;
}

.equalizer span {
  width: 4px;
  height: 8px;
  background: var(--secondary);
  border-radius: 4px;
  animation: bounce 1s infinite ease-in-out;
  opacity: 0.35;
}

.equalizer.is-active span {
  opacity: 1;
}

.equalizer span:nth-child(2) { animation-delay: 0.15s; }
.equalizer span:nth-child(3) { animation-delay: 0.3s; }
.equalizer span:nth-child(4) { animation-delay: 0.45s; }

@keyframes bounce {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.section {
  padding: 22px 0 42px;
}

.section-card {
  padding: 24px;
}

.section-card--secondary {
  box-shadow: var(--shadow-soft);
}

.audio-player {
  width: 100%;
  border-radius: 8px;
}

.helper-spaced {
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .button,
.hero-actions .button-secondary {
  width: 100%;
}

.install-message {
  text-align: center;
  min-height: 20px;
}

.install-help {
  position: fixed;
  inset: 0;
  z-index: 40;
  margin: 0;
  padding: 56px 18px 18px;
  display: grid;
  align-content: center;
  justify-items: stretch;
  background: rgba(5, 5, 7, 0.82);
  backdrop-filter: blur(10px);
  color: var(--muted);
  line-height: 1.6;
}

.install-help strong,
.install-help p {
  width: min(420px, 100%);
  margin-left: auto;
  margin-right: auto;
  background: rgba(15, 17, 24, 0.98);
}

.install-help strong {
  display: block;
  padding: 22px 22px 0;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.install-help p {
  padding: 0 22px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.install-help p + p {
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

.install-help-close {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 0 22px 10px;
  border: none;
  background: transparent;
  color: #d7e2ff;
  font: inherit;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.install-help[hidden] {
  display: none;
}

.banner-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.banner-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.banner-pause-button {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 14px;
}

.banner-list.is-rotating {
  position: relative;
}

.banner-rotation-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.banner-dot.is-active {
  background: var(--highlight);
}

.banner-card {
  padding: 0;
  border: 1px solid rgba(185, 194, 255, 0.14);
  border-radius: 8px;
  background: #050507;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.banner-card--empty {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(103, 35, 213, 0.24), rgba(44, 204, 233, 0.16)),
    rgba(255, 255, 255, 0.04);
}

.banner-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.banner-image,
.banner-preview {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  margin-top: 0;
  border: none;
  background: #050507;
}

.banner-card a {
  display: block;
  width: 100%;
  margin-top: 0;
  font-weight: 700;
}

.banner-zoom-button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.banner-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.banner-modal[hidden] {
  display: none;
}

.banner-modal-panel {
  width: min(1180px, 100%);
  display: grid;
  gap: 12px;
}

.banner-modal-close {
  justify-self: end;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 17, 24, 0.96);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.banner-modal-image {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  background: #050507;
  box-shadow: var(--shadow);
}

.banner-modal-link {
  justify-self: end;
}

.banner-label {
  font-size: 12px;
  font-weight: 700;
  color: #d7e2ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.sponsor-scroll {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 6px;
}

.sponsor-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.sponsor-card strong {
  display: block;
  font-size: 18px;
  color: var(--highlight);
}

.sponsor-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.sponsor-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  margin-top: 16px;
  margin-left: auto;
  font-weight: 700;
  color: var(--highlight);
  border: 1px solid rgba(190, 254, 46, 0.35);
  border-radius: 8px;
  background: rgba(190, 254, 46, 0.08);
  text-decoration: none;
}

.mini-player {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 17, 24, 0.96);
  box-shadow: var(--shadow);
}

.mini-player-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-player-button {
  min-width: 116px;
  min-height: 46px;
}

.mini-player-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mini-player-status {
  font-size: 12px;
  color: #d7e2ff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.mini-player-track {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.page-has-mini-player {
  padding-bottom: 120px;
}

.footer {
  padding: 4px 0 40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.final-cta {
  text-align: center;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(103, 35, 213, 0.28), rgba(44, 204, 233, 0.18));
}

.accent-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.accent-block {
  min-height: 16px;
  border-radius: 999px;
}

.accent-block--purple {
  background: linear-gradient(135deg, rgba(103, 35, 213, 1), rgba(103, 35, 213, 0.36));
}

.accent-block--cyan {
  background: linear-gradient(135deg, rgba(44, 204, 233, 1), rgba(44, 204, 233, 0.36));
}

.accent-block--lime {
  background: linear-gradient(135deg, rgba(190, 254, 46, 1), rgba(190, 254, 46, 0.34));
}

.final-cta p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
}

.final-cta-button {
  margin-top: 18px;
  width: 100%;
}

.form-shell {
  padding: 16px 0 40px;
}

.form-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 30px 28px;
  background:
    linear-gradient(160deg, rgba(103, 35, 213, 0.12) 0%, rgba(15, 17, 24, 0) 22%),
    linear-gradient(180deg, rgba(18, 19, 29, 0.98) 0%, rgba(10, 11, 16, 0.99) 100%);
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.form-grid-spaced {
  margin-top: 20px;
}

.page-title {
  font-size: 42px;
  margin-top: 14px;
  font-weight: 700;
}

.page-intro {
  margin-top: 12px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.option-group {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.option-group legend {
  padding: 0 6px;
  font-weight: 700;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.option-item--card {
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid rgba(185, 194, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.option-item + .option-item {
  margin-top: 10px;
}

.option-item input {
  width: 18px;
  height: 18px;
  margin: 0;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

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

.helper {
  color: var(--muted);
  line-height: 1.5;
}

.message {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  display: none;
}

.message.is-visible {
  display: block;
}

.message.is-success {
  background: rgba(50, 154, 96, 0.18);
  color: #d6ffe7;
  border: 1px solid rgba(112, 232, 161, 0.3);
}

.message.is-error {
  background: rgba(210, 73, 73, 0.16);
  color: #ffd9d9;
  border: 1px solid rgba(255, 137, 137, 0.28);
}

.admin-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

#adminAuthPanel[hidden] {
  display: none;
}

.admin-section + .admin-section {
  margin-top: 28px;
}

.section-heading {
  font-size: 14px;
  font-weight: 700;
  color: #d7e2ff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 22px;
}

.admin-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-copy {
  margin-top: 12px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.banner-upload-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.banner-file-input {
  flex: 1 1 260px;
}

.admin-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 840px) {
  .topbar {
    padding-top: 16px;
  }

  .headline {
    font-size: clamp(24px, 7vw, 32px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .play-button {
    width: 96px;
    height: 96px;
  }

  .play-button--hero {
    width: 148px;
    height: 148px;
    font-size: 28px;
  }

  .status-box {
    width: 100%;
    justify-items: center;
  }

  .mini-player-row {
    flex-direction: column;
    align-items: stretch;
  }

  .mini-player-button {
    width: 100%;
  }
}
