:root {
  color-scheme: dark;
  --pink: #ff4fd8;
  --blue: #26c6ff;
  --violet: #8f5cff;
  --green: #50ff9a;
  --panel: rgba(6, 10, 24, 0.72);
  --line: rgba(143, 92, 255, 0.38);
  font-family: Inter, Segoe UI, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  color: #eef2ff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 79, 216, 0.22), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(38, 198, 255, 0.18), transparent 25%),
    linear-gradient(180deg, #050714 0%, #090b1e 46%, #06040d 100%);
}

.city {
  position: fixed;
  inset: 0;
  opacity: 0.55;
  background:
    linear-gradient(transparent 60%, rgba(4, 3, 10, 0.95)),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255,255,255,0.04) 43px 45px);
}

.city::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 12%;
  bottom: 20%;
  height: 32%;
  background:
    linear-gradient(to top, #03040a 0 56%, transparent 56%),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(255, 120, 224, 0.45) 21px 24px, transparent 25px 40px);
  clip-path: polygon(0 100%, 0 45%, 6% 45%, 6% 70%, 10% 70%, 10% 35%, 16% 35%, 16% 60%, 21% 60%, 21% 22%, 29% 22%, 29% 68%, 35% 68%, 35% 10%, 43% 10%, 43% 78%, 49% 78%, 49% 32%, 56% 32%, 56% 66%, 62% 66%, 62% 44%, 70% 44%, 70% 80%, 76% 80%, 76% 54%, 84% 54%, 84% 72%, 92% 72%, 92% 42%, 100% 42%, 100% 100%);
  filter: drop-shadow(0 0 18px rgba(255, 79, 216, 0.55));
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 54px) clamp(24px, 4vw, 54px) 96px;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: center;
}

.stack { display: grid; gap: 22px; }

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 0 32px rgba(86, 46, 190, 0.18), inset 0 0 28px rgba(38, 198, 255, 0.04);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(12px);
}

.brand {
  padding: 30px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.92;
  color: transparent;
  -webkit-text-stroke: 2px #ff83df;
  text-shadow: 0 0 18px rgba(255, 79, 216, 0.8);
}

.radio {
  margin-top: 14px;
  color: var(--blue);
  font-size: clamp(24px, 3vw, 44px);
  letter-spacing: 0.36em;
  text-shadow: 0 0 14px rgba(38, 198, 255, 0.85);
}

.label {
  color: #bdc5ff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
}

.song {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: center;
}

.cover {
  aspect-ratio: 1;
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(255,79,216,.32), transparent 42%),
    radial-gradient(circle at 50% 70%, #ff3b7d 0 20%, transparent 21%),
    linear-gradient(180deg, #101946, #050818 58%, #221036);
  box-shadow: inset 0 0 30px rgba(255,255,255,.04), 0 0 28px rgba(255,79,216,.22);
  display: grid;
  place-items: center;
  color: #ff8de7;
  font-weight: 800;
  text-align: center;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.cover.has-art img { display: block; }
.cover.has-art span { display: none; }

.title {
  margin: 10px 0 6px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
}

.artist { color: #cfd6ff; font-size: 24px; }

.progress {
  margin-top: 22px;
  height: 7px;
  border-radius: 999px;
  background: rgba(143, 92, 255, 0.22);
  overflow: hidden;
}

.time-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  color: #9da6da;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  box-shadow: 0 0 14px var(--pink);
}

.bars {
  height: 340px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  padding-bottom: 38px;
}

.bar {
  width: 12px;
  min-height: 12px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #ff69df, #7a4cff);
  box-shadow: 0 0 14px rgba(255, 79, 216, .5);
  animation: bounce 1.4s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { height: 36px; }
  50% { height: var(--h); }
}

.onair {
  display: inline-flex;
  justify-content: center;
  border: 2px solid #ff634f;
  color: #ff907c;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 34px;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(255, 78, 58, .72), inset 0 0 14px rgba(255, 78, 58, .22);
  text-shadow: 0 0 12px rgba(255, 100, 80, .9);
}

.meta {
  color: #9da6da;
  line-height: 1.55;
  font-size: 18px;
}

.queue { display: grid; gap: 14px; }

.queue-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  color: #dfe4ff;
}

.small { color: #8994ca; font-size: 14px; }
.station-panel { text-align: center; }
.status-wrap { text-align: center; }
.external-link { display: none; }
body.embedded-activity .external-link { display: inline-flex; }

footer {
  position: fixed;
  z-index: 2;
  left: clamp(24px, 4vw, 54px);
  right: clamp(24px, 4vw, 54px);
  bottom: 22px;
  border: 1px solid rgba(38,198,255,.18);
  background: rgba(3, 7, 18, .62);
  border-radius: 14px;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  color: #6ee8db;
  letter-spacing: .12em;
  text-transform: uppercase;
  align-items: center;
  gap: 18px;
}

.view-toggle,
.external-link {
  border: 1px solid rgba(110, 232, 219, .48);
  background: rgba(38, 198, 255, .08);
  color: #bafff7;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.view-toggle:hover,
.external-link:hover {
  border-color: rgba(110, 232, 219, .82);
  box-shadow: 0 0 18px rgba(38, 198, 255, .22);
}

@media (max-width: 1100px), (max-height: 720px) {
  body {
    min-height: 100svh;
  }

  main {
    min-height: auto;
    padding: 18px 18px 86px;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 14px;
    align-items: start;
  }

  main > section:nth-child(2) {
    grid-column: 1 / -1;
    order: 3;
  }

  main > section:nth-child(3) {
    order: 2;
  }

  .stack {
    gap: 14px;
  }

  .panel {
    border-radius: 14px;
    padding: 18px;
  }

  .brand {
    padding: 20px;
  }

  h1 {
    font-size: clamp(42px, 8vw, 66px);
  }

  .radio {
    font-size: clamp(18px, 3.2vw, 28px);
  }

  .song {
    grid-template-columns: 120px 1fr;
    gap: 16px;
  }

  .title {
    font-size: clamp(24px, 4vw, 34px);
  }

  .artist {
    font-size: 20px;
  }

  .meta {
    font-size: 16px;
  }

  .bars {
    height: 150px;
    padding-bottom: 18px;
  }

  .bar {
    width: 8px;
  }

  .onair {
    font-size: 24px;
    padding: 10px 18px;
  }

  footer {
    left: 18px;
    right: 18px;
    bottom: 12px;
    padding: 12px 18px;
    gap: 16px;
    font-size: 14px;
  }

  body.full-dashboard {
    min-width: 0;
    overflow: auto;
  }

  body.full-dashboard main {
    width: 1440px;
    min-height: 900px;
    padding: 54px 54px 118px;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.25fr) minmax(280px, 0.75fr);
    gap: 24px;
    align-items: center;
    transform: scale(var(--full-dashboard-scale, .68));
    transform-origin: top left;
  }

  body.full-dashboard main > section:nth-child(2) {
    grid-column: auto;
    order: initial;
  }

  body.full-dashboard main > section:nth-child(3) {
    order: initial;
  }

  body.full-dashboard .stack {
    gap: 22px;
  }

  body.full-dashboard .panel {
    border-radius: 18px;
    padding: 24px;
  }

  body.full-dashboard .brand {
    padding: 30px;
  }

  body.full-dashboard h1 {
    font-size: 86px;
  }

  body.full-dashboard .radio {
    font-size: 38px;
  }

  body.full-dashboard .song {
    grid-template-columns: 160px 1fr;
    gap: 22px;
  }

  body.full-dashboard .title {
    font-size: 40px;
  }

  body.full-dashboard .artist {
    font-size: 24px;
  }

  body.full-dashboard .meta {
    font-size: 18px;
  }

  body.full-dashboard .bars {
    height: 340px;
    padding-bottom: 38px;
  }

  body.full-dashboard .bar {
    width: 12px;
  }

  body.full-dashboard .onair {
    font-size: 34px;
    padding: 12px 22px;
  }
}

@media (max-width: 760px) {
  main {
    grid-template-columns: 1fr;
  }

  main > section:nth-child(2),
  main > section:nth-child(3) {
    order: initial;
  }

  .song {
    grid-template-columns: 92px 1fr;
  }

  footer {
    position: static;
    margin: 0 18px 18px;
  }
}
