@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #081a2f;
  --navy-light: #12375a;
  --gold: #f0b44d;
  --cream: #fff8e8;
  --white: #ffffff;
  --muted: #b8c9d8;
  --panel: rgba(7, 23, 42, 0.82);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 24%, rgba(240, 180, 77, 0.18), transparent 28%),
    radial-gradient(circle at 84% 15%, rgba(38, 111, 170, 0.28), transparent 32%),
    linear-gradient(135deg, #071525 0%, #0b2743 50%, #061321 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
}

.broadcast-frame {
  width: 100vw;
  height: 100vh;
  padding: 46px 58px 34px;
  display: grid;
  grid-template-rows: 120px 1fr 150px 74px;
  gap: 24px;
}

.station-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(240, 180, 77, 0.45);
  padding-bottom: 22px;
}

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

.logo-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: linear-gradient(145deg, #ffd88c, var(--gold));
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 0 32px rgba(240, 180, 77, 0.32);
}

.brand h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -1.5px;
}

.brand p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 22px;
  letter-spacing: 2px;
}

.clock-panel {
  text-align: right;
}

#clock {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 2px;
}

#date {
  margin-top: 8px;
  color: var(--muted);
  font-size: 18px;
}

.now-playing {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(420px, 620px) 1fr;
  align-items: center;
  gap: 68px;
}

.artwork-wrap {
  aspect-ratio: 1 / 1;
  width: min(100%, 620px);
  justify-self: center;
  padding: 14px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  box-shadow:
    0 30px 80px rgba(0,0,0,0.45),
    0 0 55px rgba(240, 180, 77, 0.12);
}

#album-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: opacity 0.45s ease, transform 8s ease;
  animation: slowZoom 16s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

.track-details {
  min-width: 0;
  padding-right: 35px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
}

#title {
  margin: 0;
  font-size: clamp(54px, 5vw, 94px);
  line-height: 1.03;
  letter-spacing: -2px;
  text-wrap: balance;
}

#artist {
  margin: 25px 0 0;
  color: var(--cream);
  font-size: clamp(30px, 2.7vw, 50px);
  font-weight: 600;
}

#album {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 24px;
}

.progress-row {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 13px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.14);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #ffe1a0);
  transition: width 1s linear;
}

.station-message {
  margin-top: 34px;
  padding: 20px 24px;
  border-left: 5px solid var(--gold);
  background: rgba(255,255,255,0.06);
  font-size: 22px;
}

.info-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 22px;
}

.info-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px 30px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
  font-size: 22px;
}

.info-card .label {
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2.4px;
}

.verse-card {
  color: var(--cream);
}

.ticker {
  display: grid;
  grid-template-columns: 250px 1fr;
  align-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(0,0,0,0.34);
}

.ticker-label {
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  z-index: 2;
}

.ticker-window {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  width: max-content;
  padding-left: 100%;
  font-size: 22px;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (max-width: 1200px) {
  .broadcast-frame {
    padding: 28px;
    grid-template-rows: 90px 1fr 120px 62px;
    gap: 18px;
  }

  .logo-placeholder {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }

  .brand h1 {
    font-size: 34px;
  }

  .brand p,
  .info-card,
  .ticker-text {
    font-size: 16px;
  }

  #clock {
    font-size: 32px;
  }

  .now-playing {
    grid-template-columns: minmax(330px, 450px) 1fr;
    gap: 40px;
  }

  .progress-row {
    margin-top: 28px;
  }
}


.progress-bar.live {
  animation: liveSweep 2.4s ease-in-out infinite alternate;
  transition: none;
}

@keyframes liveSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(285%); }
}
