:root {
  --bg: #120806;
  --wood: #24120b;
  --wood-2: #351c10;
  --panel: rgba(28, 14, 9, .86);
  --panel-soft: rgba(18, 8, 5, .68);
  --cream: #fff1d4;
  --muted: #d4b58e;
  --dim: #a47a59;
  --amber: #d89043;
  --line: rgba(255, 218, 158, .16);
  --line-strong: rgba(255, 218, 158, .26);
  --red: #be3328;
  --shadow: 0 20px 55px rgba(0, 0, 0, .42);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 72% 8%, rgba(211, 115, 48, .13), transparent 24rem),
    radial-gradient(circle at 12% 10%, rgba(143, 49, 28, .13), transparent 26rem),
    linear-gradient(90deg, rgba(0,0,0,.26), transparent 24%, transparent 76%, rgba(0,0,0,.34)),
    repeating-linear-gradient(90deg, #140805 0 95px, #1a0b07 95px 190px, #0d0503 190px 197px);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.032), transparent 210px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 8px),
    radial-gradient(circle at center, transparent 46%, rgba(0,0,0,.50));
  opacity: .6;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2 { margin-top: 0; }
p { color: var(--muted); line-height: 1.7; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(var(--max), calc(100% - 28px));
  margin: 14px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 8, 5, .82);
  box-shadow: 0 10px 36px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(14px);
}

.wordmark {
  color: var(--cream);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: .03em;
  opacity: .92;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.site-nav a:hover {
  color: var(--cream);
  background: rgba(255, 224, 173, .08);
}

.nav-toggle { display: none; }

.section {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
}

.intro-row {
  display: grid;
  grid-template-columns: minmax(270px, 390px) minmax(240px, .9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: stretch;
  padding: 36px 0 22px;
}

.logo-panel,
.listen-card,
.format-card,
.dj-card,
.playlist-card,
.donation-card,
.contact-card,
.sponsor-cta,
.sponsor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.05), transparent 38%),
    linear-gradient(180deg, rgba(42, 21, 13, .88), rgba(18, 8, 5, .90));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.07);
}

.logo-panel {
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 26px);
  background:
    radial-gradient(circle at 50% 48%, rgba(205, 70, 31, .15), transparent 62%),
    rgba(12, 5, 3, .50);
  min-height: 360px;
}

.listen-card {
  min-height: 360px;
}

.logo-panel img {
  width: min(100%, 360px);
  border-radius: 18px;
  filter: saturate(.90) brightness(.96) drop-shadow(0 0 16px rgba(223, 98, 34, .24));
}

.listen-card,
.format-card,
.dj-card,
.playlist-card,
.donation-card,
.contact-card {
  padding: clamp(22px, 4vw, 34px);
}

.format-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 24px;
}

.format-card h1 {
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
}

.format-card p {
  font-size: .96rem;
  line-height: 1.55;
}

.format-card p:last-child {
  margin-bottom: 0;
}

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

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  margin-bottom: 12px;
}

.lede {
  max-width: 650px;
  margin-bottom: 22px;
}

.player-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 220, 160, .14);
  border-radius: 18px;
  background: rgba(10, 5, 3, .48);
}

.on-air-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 13px rgba(210, 55, 41, .52);
}

.player-copy {
  display: grid;
  gap: 3px;
  flex: 1;
}

.player-copy span,
.label,
.small-note,
.contact-list span { color: var(--dim); }

.play-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.play-button:hover,
.button:hover { transform: translateY(-2px); }

.play-button,
.primary {
  color: #211006;
  background: linear-gradient(180deg, #ffdca1, #d89043);
  box-shadow: 0 10px 24px rgba(216, 144, 67, .20);
}

.secondary {
  color: var(--cream);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.045);
}

.embed-slot {
  color: var(--dim);
  border: 1px dashed rgba(255, 220, 160, .22);
  border-radius: 16px;
  padding: 18px;
  background: rgba(0,0,0,.17);
}

.station-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.centered { text-align: center; }

.sponsors-section {
  padding: 22px 0;
}

.sponsor-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 5% 50%, rgba(216, 144, 67, .18), transparent 24rem),
    linear-gradient(180deg, rgba(42, 21, 13, .88), rgba(18, 8, 5, .90));
}

.sponsor-cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.sponsor-cta p:last-child {
  margin-bottom: 0;
}

.sponsor-action {
  white-space: nowrap;
}

.sponsor-kicker {
  margin-top: 18px;
}

.section-heading {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-intro {
  max-width: 680px;
  margin: 10px auto 24px;
  text-align: center;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 22px;
}

.sponsor-card h3 {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: 1.14rem;
}

.sponsor-card p {
  font-size: .96rem;
  line-height: 1.55;
}

.sponsor-card a {
  color: var(--cream);
  font-weight: 900;
  margin-top: auto;
  text-decoration: none;
}

.sponsor-card span {
  color: var(--amber);
  font-weight: 900;
  margin-top: 10px;
}

.dj-layout {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 18px;
  align-items: center;
}

.dj-photo {
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  width: 100%;
  object-fit: cover;
  object-position: center;
  background: rgba(0, 0, 0, .18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.dj-card p:last-child { margin-bottom: 0; }

.track {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
  display: grid;
  gap: 4px;
}

.track:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 900;
}

.track strong { font-size: 1.08rem; }
.small-note { margin: 18px 0 0; font-size: .92rem; }
.playlist-error { color: #e7aa80; }

.support-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.contact-card .button { margin-top: 8px; }

.coverage-map-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  margin: 0 0 16px;
  background: transparent;
}

.coverage-map-link img {
  width: 100%;
  aspect-ratio: 1;
  max-height: 360px;
  object-fit: cover;
  background: transparent;
}

.paypal-donation-form {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
}

.paypal-donation-form input[type="image"] {
  display: block;
  max-width: 100%;
}

.paypal-donation-form img {
  width: 1px;
  height: 1px;
}

.donation-note {
  margin: 16px 0 0;
  font-size: .94rem;
}

.donation-note a {
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.contact-list a {
  color: var(--cream);
  text-decoration: none;
}

.site-footer {
  width: min(var(--max), calc(100% - 28px));
  margin: 42px auto 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--dim);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 800; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
    gap: 4px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
    border-radius: 999px;
    padding: 10px;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--cream);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(18, 8, 5, .96);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; }

  .intro-row,
  .station-board,
  .sponsor-cta,
  .sponsor-grid,
  .support-contact-row {
    grid-template-columns: 1fr;
  }

  .logo-panel { min-height: auto; }
  .listen-card,
  .format-card { min-height: auto; }
  .logo-panel img { width: min(100%, 290px); }
}

@media (max-width: 560px) {
  .site-header { border-radius: 24px; }
  .wordmark { font-size: .95rem; }
  .logo-panel,
  .listen-card,
  .format-card,
  .dj-card,
  .playlist-card,
  .donation-card,
  .contact-card,
  .sponsor-cta,
  .sponsor-card { border-radius: 19px; }
  .dj-layout { grid-template-columns: 1fr; }
  .dj-photo { max-width: 220px; }
  .player-box { flex-wrap: wrap; }
  .play-button { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

/* Version four: dancing cow and built-in web player */
.cow-player-stage {
  position: relative;
  margin: 18px 0 14px;
  padding: 18px;
  border: 1px solid rgba(255, 220, 160, .14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 144, 67, .16), transparent 52%),
    rgba(10, 5, 3, .42);
  overflow: hidden;
}

.dancing-cow {
  position: relative;
  width: max-content;
  margin: 0 auto 4px;
  font-size: clamp(3.6rem, 7vw, 5.2rem);
  line-height: 1;
  transform-origin: 50% 100%;
  animation: cowTwoStep 1.15s ease-in-out infinite;
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.32));
}

.cow-hat {
  position: absolute;
  left: 18%;
  top: -28%;
  font-size: .55em;
  transform: rotate(-8deg);
  animation: hatTip 2.3s ease-in-out infinite;
}

.cow-body { display: block; }

.music-notes {
  position: absolute;
  inset: 12px 18px auto 18px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.music-notes span {
  color: rgba(255, 220, 160, .58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  animation: floatNote 2.4s ease-in-out infinite;
}

.music-notes span:nth-child(2) { animation-delay: .35s; }
.music-notes span:nth-child(3) { animation-delay: .7s; }

.cow-caption {
  margin: 0 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

.web-player {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 220, 160, .14);
  border-radius: 18px;
  background: rgba(0,0,0,.22);
}

.web-player audio {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 42px;
  filter: sepia(.22) saturate(.9);
}

@keyframes cowTwoStep {
  0%, 100% { transform: translateX(0) rotate(-2deg); }
  25% { transform: translateX(-7px) rotate(3deg); }
  50% { transform: translateX(0) rotate(0deg) scale(1.03); }
  75% { transform: translateX(7px) rotate(-3deg); }
}

@keyframes hatTip {
  0%, 70%, 100% { transform: rotate(-8deg) translateY(0); }
  80% { transform: rotate(-18deg) translateY(-4px); }
}

@keyframes floatNote {
  0%, 100% { transform: translateY(8px); opacity: .25; }
  50% { transform: translateY(-4px); opacity: .85; }
}

@media (prefers-reduced-motion: reduce) {
  .dancing-cow,
  .cow-hat,
  .music-notes span { animation: none; }
}


/* Version five: smaller Listen Live box */
.compact-listen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 3vw, 26px);
}

.compact-listen h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  text-align: center;
}

.compact-cow-player {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
}

.compact-cow-player .dancing-cow {
  margin-bottom: 10px;
  font-size: clamp(2.9rem, 5.5vw, 4rem);
}

.compact-cow-player audio {
  display: block;
  width: 100%;
  min-height: 40px;
  filter: sepia(.22) saturate(.9);
}

.stream-fallback {
  justify-self: center;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}

.stream-fallback:hover {
  color: var(--cream);
}

.compact-cow-player::before,
.compact-cow-player::after {
  content: none;
}

/* Version ten: clean cow scene with one grass layer */
.compact-listen {
  justify-content: flex-start;
  gap: 10px;
  padding: 18px;
}

.compact-listen h1 {
  margin: 0;
  padding: 0;
}

.compact-cow-player {
  display: grid;
  gap: 10px;
  padding: 10px 14px 14px;
}

.ranch-scene {
  position: relative;
  min-height: 170px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 222, 154, .18), transparent 24%),
    linear-gradient(180deg, rgba(50, 25, 16, .52) 0%, rgba(50, 25, 16, .52) 100%);
  border: 1px solid rgba(255, 220, 160, .12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.barn-shape {
  position: absolute;
  left: 16px;
  bottom: 42px;
  width: 74px;
  height: 56px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(143, 49, 28, .86), rgba(77, 29, 18, .92));
  box-shadow: inset 0 0 0 1px rgba(255, 226, 173, .13), 0 10px 20px rgba(0,0,0,.22);
}

.barn-shape::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -28px;
  width: 86px;
  height: 44px;
  background: linear-gradient(135deg, rgba(117, 43, 27, .94), rgba(177, 72, 38, .78));
  clip-path: polygon(50% 0, 100% 62%, 89% 62%, 89% 100%, 11% 100%, 11% 62%, 0 62%);
}

.barn-shape::after {
  content: "";
  position: absolute;
  left: 29px;
  bottom: 0;
  width: 18px;
  height: 30px;
  background: rgba(24, 10, 6, .64);
  border: 1px solid rgba(255, 226, 173, .12);
}

.tree-left,
.tree-right {
  position: absolute;
  bottom: 44px;
  width: 30px;
  height: 72px;
}

.tree-left { right: 32px; }
.tree-right { right: 76px; transform: scale(.78); opacity: .82; }

.tree-left::before,
.tree-right::before {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 7px;
  height: 38px;
  background: rgba(91, 53, 28, .92);
}

.tree-left::after,
.tree-right::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 54px;
  background: linear-gradient(180deg, rgba(73, 111, 54, .92), rgba(37, 72, 35, .88));
  clip-path: polygon(50% 0, 100% 72%, 68% 72%, 94% 100%, 6% 100%, 32% 72%, 0 72%);
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.22));
}

.fence-rail,
.dirt-road {
  display: none;
}

.grass-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  background: rgba(45, 87, 38, .96);
  box-shadow: none;
}
.grass-line::before,
.grass-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 18px;
  background: repeating-linear-gradient(90deg,
    transparent 0 10px,
    rgba(95, 141, 67, .65) 10px 12px,
    transparent 12px 22px);
  clip-path: polygon(0 100%, 3% 25%, 6% 100%, 10% 40%, 14% 100%, 18% 28%, 22% 100%, 27% 45%, 31% 100%, 36% 30%, 41% 100%, 46% 38%, 51% 100%, 57% 26%, 62% 100%, 68% 42%, 73% 100%, 79% 32%, 84% 100%, 90% 48%, 95% 100%, 100% 30%, 100% 100%);
}

.grass-line::after {
  bottom: 8px;
  opacity: .55;
  transform: scaleX(-1);
}

.grass-tuft {
  position: absolute;
  bottom: 24px;
  width: 42px;
  height: 24px;
  background: linear-gradient(180deg, rgba(121, 169, 78, .9), rgba(53, 104, 45, .86));
  clip-path: polygon(0 100%, 10% 50%, 18% 100%, 30% 35%, 42% 100%, 54% 18%, 66% 100%, 78% 42%, 88% 100%, 100% 55%, 100% 100%);
  opacity: .88;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.16));
}

.tuft-one { left: 105px; transform: scale(.85); }
.tuft-two { left: 42%; bottom: 18px; transform: scale(1.18); }
.tuft-three { right: 28px; transform: scale(.92); }

.ranch-scene .dancing-cow {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform-origin: 50% 100%;
  margin: 0;
  font-size: clamp(3.3rem, 6vw, 4.6rem);
  z-index: 3;
}

@keyframes cowTwoStep {
  0%, 100% { transform: translateX(-50%) rotate(-2deg); }
  25% { transform: translateX(calc(-50% - 7px)) rotate(3deg); }
  50% { transform: translateX(-50%) rotate(0deg) scale(1.03); }
  75% { transform: translateX(calc(-50% + 7px)) rotate(-3deg); }
}

@media (max-width: 560px) {
  .wordmark { font-size: .82rem; }
  .ranch-scene { min-height: 165px; }
  .barn-shape { transform: scale(.82); transform-origin: left bottom; }
  .tree-left { right: 18px; }
  .tree-right { right: 52px; }
}
