/*
Theme Name: Wave Radio
Theme URI: https://example.com/wave-radio
Author: Wave Radio
Description: Premium webradio theme for Extacy-style radio — full-bleed hero, live player, Now On Air, Customizer branding.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: wave-radio
Tags: radio, streaming, custom-menu, custom-logo, featured-images, theme-options
*/

:root {
  --wr-bg: #0b0710;
  --wr-bg-2: #160d18;
  --wr-text: #fff7f2;
  --wr-muted: rgba(255, 247, 242, 0.66);
  --wr-primary: #ff8a3d;
  --wr-accent: #ff2d6a;
  --wr-display: "Syne", system-ui, sans-serif;
  --wr-body: "Manrope", system-ui, sans-serif;
  --wr-max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--wr-body);
  color: var(--wr-text);
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(255, 45, 106, 0.22), transparent 55%),
    radial-gradient(800px 480px at -5% 15%, rgba(255, 138, 61, 0.16), transparent 50%),
    linear-gradient(165deg, var(--wr-bg), var(--wr-bg-2) 45%, #08050c);
  min-height: 100vh;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--wr-primary); }

.wr-wrap {
  width: min(100% - 2rem, var(--wr-max));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  background: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-branding .custom-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.site-title {
  margin: 0;
  font-family: var(--wr-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.03em;
}

.site-description {
  display: none;
}

.primary-menu {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.primary-menu a { opacity: 0.78; }
.primary-menu a:hover,
.primary-menu .current-menu-item a {
  opacity: 1;
  color: var(--wr-accent);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  animation: wrDrift 22s ease-in-out infinite alternate;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 7, 16, 0.35) 0%, rgba(11, 7, 16, 0.55) 38%, rgba(11, 7, 16, 0.96) 100%),
    linear-gradient(90deg, rgba(11, 7, 16, 0.7), transparent 58%);
}

@keyframes wrDrift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2%, 1.5%, 0); }
}

.hero__content {
  padding: clamp(6.5rem, 14vh, 8rem) 0 2.25rem;
}

.hero__brand {
  margin: 0 0 0.7rem;
  font-family: var(--wr-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 12vw, 7.2rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  max-width: 10ch;
  text-wrap: balance;
}

.hero__lead {
  margin: 0 0 1.35rem;
  max-width: 34ch;
  color: var(--wr-muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.hero__cta { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--wr-text);
  font-weight: 700;
  cursor: pointer;
}

.btn--primary {
  border: 0;
  background: linear-gradient(135deg, var(--wr-accent), var(--wr-primary));
  color: #16060c;
}

.section {
  padding: clamp(2.75rem, 7vw, 5rem) 0;
}

.section__head { margin-bottom: 1.35rem; }

.section__eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--wr-primary);
}

.section__title {
  margin: 0;
  font-family: var(--wr-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.04em;
}

.section__text {
  margin: 0.55rem 0 0;
  color: var(--wr-muted);
  max-width: 48ch;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.station-card {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.station-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 106, 0.55);
  background: rgba(255, 45, 106, 0.08);
}

.station-card__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
}

.station-card__logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #140a12;
}

.station-card__title {
  margin: 0;
  font-family: var(--wr-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.station-card__meta {
  margin: 0.25rem 0 0;
  color: var(--wr-muted);
  font-size: 0.82rem;
}

.now-block .wr-now-on-air {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.wr-now-on-air__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--wr-accent);
}

.wr-now-on-air__label--next {
  color: var(--wr-primary);
}

.wr-now-on-air__title {
  margin: 0.4rem 0 0;
  font-family: var(--wr-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  letter-spacing: -0.03em;
}

.wr-now-on-air__next-title {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  color: var(--wr-muted);
}

.wr-now-on-air.is-live .wr-now-on-air__title {
  animation: wrIn 0.45s ease;
}

@keyframes wrIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.wr-now-on-air__meta {
  margin: 0.35rem 0 0;
  color: var(--wr-muted);
}

.wr-schedule__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wr-schedule__list li,
.wr-schedule__item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.4rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wr-schedule__time {
  color: var(--wr-primary);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.wr-schedule__desc {
  display: block;
  color: var(--wr-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.wr-schedule__item.is-live {
  border-color: rgba(255, 45, 106, 0.55);
}

.wr-schedule__item.is-live strong {
  color: var(--wr-accent);
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--wr-muted);
  font-size: 0.88rem;
}

body.has-sticky-player .site-footer {
  padding-bottom: 7rem;
}

.page-title {
  font-family: var(--wr-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
}

.page-content,
.entry-content {
  max-width: 68ch;
}

@media (max-width: 720px) {
  .primary-menu { display: none; }
  .wr-schedule__list li,
  .wr-schedule__item { grid-template-columns: 1fr; }
  .now-block .wr-now-on-air {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .station-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .station-card__logo {
    width: 56px;
    height: 56px;
  }
  .hero__content {
    padding-bottom: 1.25rem;
  }
}
