:root {
  --blue: #0ab1ff;
  --blue-2: #34c4ff;
  --blue-soft: rgba(10, 177, 255, .20);
  --white: #ffffff;
  --muted: #c5cbd2;
  --line: rgba(255, 255, 255, .18);
  --dark: #05090d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #05090d;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background:
    linear-gradient(rgba(2, 7, 12, .38), rgba(2, 5, 8, .58)),
    url('bg-douro-final.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.page-shell {
  position: relative;
  width: min(1500px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(270px, .75fr) minmax(500px, 1.6fr);
  gap: 54px;
  align-items: center;
}

.brand-column {
  text-align: center;
}

.logo {
  width: min(100%, 460px);
  max-height: 340px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(0, 174, 255, .14));
}

.frequency {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 174, 255, .20);
}

.frequency span {
  color: #fff;
  -webkit-text-stroke: 1px #ff3131;
  text-shadow: 0 0 15px rgba(255, 49, 49, .22);
}

.brand-copy {
  margin: 28px 0 18px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f0f3f6;
}

.brand-copy strong {
  color: var(--blue-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 19px;
  border: 1px solid rgba(10, 177, 255, .50);
  border-radius: 999px;
  background: rgba(0, 0, 0, .10);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 0 25px rgba(10, 177, 255, .07);
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

.station-heading {
  margin-bottom: 25px;
}

.station-heading .eyebrow {
  margin: 0 0 8px;
  color: var(--blue-2);
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
}

.station-heading h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 1;
  letter-spacing: -2px;
}

.station-heading > p:last-child {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 2px solid var(--blue);
  width: fit-content;
  color: #e9edf1;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 13px;
}

.player-card {
  position: relative;
  padding: 30px 32px 24px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(12, 19, 25, .68), rgba(2, 6, 9, .52));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 25px 70px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.07),
    0 0 44px rgba(0,174,255,.06);
  overflow: hidden;
}

.player-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(10,177,255,.09), transparent 28%),
    linear-gradient(115deg, rgba(255,255,255,.045), transparent 24%);
}

.player-topline,
.player-content,
.player-controls,
.player-message {
  position: relative;
  z-index: 1;
}

.player-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--blue-2);
  font-weight: 800;
  letter-spacing: 3px;
  font-size: 14px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.player-card.playing .live-dot {
  animation: pulse 1.45s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(10,177,255,.58); }
  70% { box-shadow: 0 0 0 12px rgba(10,177,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(10,177,255,0); }
}

.live-pill {
  padding: 9px 15px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: var(--blue-2);
  font-size: 12px;
  letter-spacing: 2px;
}

.broadcast {
  margin-right: 5px;
}

.player-content {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 24px 0 22px;
}

.play-button {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  color: #fff;
  background: rgba(3, 8, 12, .44);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 0 0 10px rgba(10,177,255,.04),
    0 0 35px rgba(10,177,255,.22),
    inset 0 0 30px rgba(10,177,255,.05);
  transition: transform .22s ease, box-shadow .22s ease;
}

.play-button:hover {
  transform: scale(1.035);
  box-shadow:
    0 0 0 12px rgba(10,177,255,.055),
    0 0 42px rgba(10,177,255,.30),
    inset 0 0 30px rgba(10,177,255,.08);
}

.play-button svg {
  width: 52px;
  height: 52px;
  fill: currentColor;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.65));
}

.small-label {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.now-playing h2 {
  margin: 7px 0 18px;
  color: #cfd5db;
  font-size: 16px;
  font-weight: 400;
}

.waveform {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

.waveform span {
  flex: 1 1 4px;
  min-width: 3px;
  max-width: 5px;
  height: 8px;
  border-radius: 3px;
  background: rgba(10,177,255,.34);
  box-shadow: 0 0 5px rgba(10,177,255,.10);
  transform-origin: center;
}

.player-card.playing .waveform span {
  background: linear-gradient(to top, #087fc6, #38caff);
  box-shadow: 0 0 12px rgba(10,177,255,.28);
  animation: equalizer .78s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -.043s);
}

@keyframes equalizer {
  from {
    height: 8px;
    opacity: .60;
  }
  to {
    height: calc(20px + (var(--i) % 10) * 6px);
    opacity: 1;
  }
}

.player-controls {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.icon-button {
  border: 0;
  background: none;
  color: #fff;
  padding: 0;
  cursor: pointer;
}

.icon-button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
  cursor: pointer;
}

.signal-text {
  color: var(--blue-2);
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 800;
}

.player-message {
  min-height: 17px;
  margin: 13px 0 0;
  color: #ffd0d0;
  font-size: 12px;
  text-align: center;
}

.info-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}

.info-card {
  min-height: 126px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 16px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 18px;
  background: rgba(5, 11, 16, .54);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  transition: transform .2s ease, border-color .2s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10,177,255,.55);
}

.info-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-2);
  font-size: 20px;
  box-shadow: 0 0 18px rgba(10,177,255,.10);
}

.info-card small {
  display: block;
  margin: 3px 0 8px;
  color: var(--blue-2);
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 800;
}

.info-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.footer-bar {
  margin-top: 22px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 17px;
  background: rgba(4, 9, 13, .55);
  color: #dfe5ea;
  letter-spacing: 4px;
  font-size: 11px;
}

.footer-wave,
.footer-bar strong {
  color: var(--blue-2);
}

.divider {
  width: 1px;
  height: 25px;
  background: rgba(255,255,255,.22);
}

.footer-bar a {
  margin-left: auto;
  color: #e7edf2;
  text-decoration: none;
  letter-spacing: 0;
}

.footer-bar a:hover {
  color: var(--blue-2);
}

@media (max-width: 1180px) {
  .info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .brand-column {
    max-width: 560px;
    margin: 0 auto;
  }

  .station-heading {
    text-align: center;
  }

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

@media (max-width: 650px) {
  .page-shell {
    width: min(100% - 22px, 1500px);
    padding-top: 22px;
  }

  .player-card {
    padding: 24px 18px 20px;
  }

  .player-content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .now-playing {
    width: 100%;
  }

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

  .waveform {
    height: 70px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 82px;
  }

  .footer-bar {
    flex-wrap: wrap;
    letter-spacing: 2px;
  }

  .footer-bar a {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }
}
