:root {
  --amber: #f2c16b;
  --amber-light: #ffe4a8;
  --red: #d7261c;
  --green: #58b96c;
  --ink: #101010;
  --panel: #191816;
  --panel-light: #2b2925;
  --cream: #f1d6a5;
  --white: #ffffff;
  --soft-white: rgba(255, 255, 255, 0.84);
  --line: rgba(255, 255, 255, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--white);
  background: #111;
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.background-video,
.background-image,
.page-shade {
  position: fixed;
  inset: 0;
}

.background-video {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-image {
  z-index: -4;
  background-image: url("assets/background.svg");
  background-size: cover;
  background-position: center;
}

.page-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.4) 42%, rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 50% 10%, rgba(242, 193, 107, 0.22), transparent 34rem);
}

.home {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(18px, 3vw, 32px);
  min-height: 100svh;
  padding: clamp(16px, 4vw, 40px);
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  width: clamp(136px, 22vw, 220px);
  height: auto;
}

.install-button {
  min-height: 44px;
  padding: 0 18px;
  color: #17120b;
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--amber-light), var(--amber));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.player-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 620px);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
  width: min(1180px, 100%);
  margin: auto;
}

.station-copy {
  max-width: 520px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.72);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber-light);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.station-copy p:last-child {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--soft-white);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.radio-console {
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--panel-light), var(--panel));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -12px 28px rgba(0, 0, 0, 0.26);
}

.console-head,
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.console-head {
  margin-bottom: 18px;
  color: var(--amber-light);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-head div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.on-air-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(215, 38, 28, 0.95);
}

.frequency {
  color: rgba(255, 255, 255, 0.64);
}

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

.vu-meter {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.55;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.16)),
    #12100d;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.55),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.vu-meter::after {
  position: absolute;
  inset: 8px;
  content: "";
  border-radius: 6px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.24), transparent 34%, rgba(255, 255, 255, 0.08) 64%, transparent);
  pointer-events: none;
}

.vu-meter canvas {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: #e6c787;
}

.vu-meter span {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
}

.player-controls {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.play-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 68px;
  height: 68px;
  color: #1b1205;
  font-size: 1.45rem;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fff4c9, var(--amber) 52%, #ba7f28);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.36),
    inset 0 2px 2px rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.track-info {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: right;
}

.track-info span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.track-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease;
}

.social-links a:hover {
  background: rgba(242, 193, 107, 0.24);
  transform: translateY(-2px);
}

.social-links span {
  font-size: 1.2rem;
  font-weight: 900;
}

.footer {
  justify-content: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

@media (max-width: 880px) {
  .home {
    grid-template-rows: auto auto auto auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-stage {
    grid-template-columns: 1fr;
  }

  .station-copy {
    max-width: none;
    text-align: center;
  }

  .station-copy p:last-child {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .home {
    padding: 14px;
  }
  .brand {
    width: 100%;
  }

  .brand img {
    width: min(92vw, 360px);
    margin: 0 auto;
  }

  .radio-console {
    display: flex;
    flex-direction: column;
  }

  .player-controls {
    order: 1;
    margin-top: 0;
    margin-bottom: 18px;
    padding-top: 0;
    padding-bottom: 18px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .vu-row {
    order: 2;
  }

  .topbar {
    align-items: center;
  }

  .install-button {
    width: 100%;
  }

  .radio-console {
    padding: 14px;
  }

  .vu-row {
    grid-template-columns: 1fr;
  }

  .console-head,
  .player-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .track-info {
    width: 100%;
    text-align: left;
  }
}