:root {
  --ink: #f7efe2;
  --paper: #0b0b0b;
  --muted: #b8ab98;
  --line: rgba(215, 166, 64, 0.2);
  --gold: #d7a640;
  --orange: #f47b20;
  --red: #a73422;
  --charcoal: #191919;
  --steel: #4d5154;
  --blue: #1e5a7a;
  --green: #2d5f4b;
  --track-green: #63c174;
  --display-red: #d94a32;
  --panel: #151515;
  font-family: "Barlow Condensed", Impact, "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0, rgba(244, 123, 32, 0.16), transparent 34rem),
    radial-gradient(circle at 85% 18rem, rgba(215, 166, 64, 0.12), transparent 28rem),
    linear-gradient(180deg, #050505 0, var(--paper) 360px, #111 100%);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.98), rgba(12, 12, 12, 0.96));
  border-bottom: 1px solid rgba(215, 166, 64, 0.34);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #f6c45e;
  text-decoration: none;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand.logo-only {
  width: 62px;
  height: 62px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #050505;
  border: 1px solid rgba(215, 166, 64, 0.6);
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(244, 123, 32, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #d7d2c8;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 0 rgba(91, 50, 12, 0.85), 0 16px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: clamp(520px, calc(100svh - 70px), 760px);
  display: grid;
  align-items: end;
  background: #050505;
  color: white;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.36)),
    radial-gradient(circle at 50% 14%, rgba(255, 192, 84, 0.12), transparent 44%);
  content: "";
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.hero-inner,
.section,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 34px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.page-title h1,
.playlist-section h2 {
  font-family: "Cinzel", Georgia, serif;
  color: #f0b949;
  text-transform: uppercase;
}

h3,
.result-horse,
.weather-card h3,
.year-card h3,
.stat strong {
  font-family: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1 {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 8px 0 rgba(91, 50, 12, 0.92), 0 18px 28px rgba(0, 0, 0, 0.34);
  transform: translateY(0);
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.button:hover {
  filter: saturate(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(91, 50, 12, 0.92), 0 22px 34px rgba(0, 0, 0, 0.38);
}

.button:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 rgba(91, 50, 12, 0.92), 0 10px 18px rgba(0, 0, 0, 0.28);
}

.button.primary {
  color: #17120b;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.button.secondary {
  color: #f7efe2;
  background: rgba(10, 10, 10, 0.5);
  border-color: rgba(215, 166, 64, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(8px);
}

.section {
  padding: 64px 0;
}

.section + .section {
  padding-top: 32px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  text-shadow: 0 0 22px rgba(244, 123, 32, 0.14);
}

#latest .section-head {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  background:
    linear-gradient(90deg, rgba(215, 166, 64, 0.12), rgba(244, 123, 32, 0.05), rgba(99, 193, 116, 0.07)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0));
  border: 1px solid rgba(215, 166, 64, 0.32);
  border-radius: 8px;
  box-shadow: 0 8px 0 rgba(66, 38, 10, 0.9), 0 24px 48px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  animation: latest-panel-glow 3.8s ease-in-out infinite;
}

#latest .section-head::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 214, 111, 0.18), transparent 58%);
  content: "";
  opacity: 0.65;
  pointer-events: none;
}

#latest .section-head h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  color: transparent;
  background: linear-gradient(180deg, #fff0ac 0%, #f4bf58 34%, #f47b20 72%, #a73422 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 0 #381b08) drop-shadow(0 0 16px rgba(244, 123, 32, 0.4));
  letter-spacing: 0.04em;
  text-align: center;
  animation: latest-title-pulse 2.8s ease-in-out infinite;
}

#latest .section-head h2::before,
#latest .section-head h2::after {
  width: 12px;
  height: 12px;
  display: inline-block;
  background: radial-gradient(circle, #fff4b8 0 24%, #f47b20 25% 55%, rgba(244, 123, 32, 0) 58%);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(244, 123, 32, 0.86), 0 0 2px #fff;
  content: "";
  animation: latest-bulb-pulse 1.8s ease-in-out infinite;
}

.section-head p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.2rem;
}

.section-head.compact {
  margin-bottom: 16px;
}

.section-head.compact h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

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

.video-card,
.feature-panel,
.playlist-player,
.year-card,
.photo-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.feature-panel,
.playlist-player,
.photo-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-panel:hover,
.playlist-player:hover,
.photo-card:hover {
  border-color: rgba(215, 166, 64, 0.55);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.playlist-player {
  max-width: 680px;
}

.playlist-section .playlist-player,
[data-playlist] .playlist-player,
.season-playlist {
  margin-right: auto;
  margin-left: auto;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #171717;
  overflow: hidden;
}

.video-frame img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.youtube-poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: white;
  text-decoration: none;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.28);
}

.youtube-poster img {
  transition: transform 180ms ease;
}

.youtube-poster:hover img {
  transform: scale(1.035);
}

.youtube-poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.08), rgba(20, 20, 20, 0.56));
}

.youtube-play-button {
  position: absolute;
  inset: 0;
  width: 62px;
  height: 44px;
  margin: auto;
  background: #d9251d;
  border-radius: 8px;
  box-shadow: 0 7px 0 #7f140f, 0 18px 30px rgba(0, 0, 0, 0.36);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.youtube-poster:hover .youtube-play-button {
  transform: translateY(-2px);
  box-shadow: 0 9px 0 #7f140f, 0 22px 34px rgba(0, 0, 0, 0.42);
}

.youtube-play-button::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid white;
  content: "";
  transform: translate(-50%, -50%);
}

.youtube-poster-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 11px;
  color: white;
  background: rgba(20, 20, 20, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.playlist-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 28px;
  color: white;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(157, 47, 36, 0.92), rgba(30, 90, 122, 0.88)),
    url("https://static.wixstatic.com/media/7befe5_4d47544141d04259b8b8b3c0a3ce2f94~mv2.jpg/v1/fill/w_1200,h_675,al_c,q_85,enc_avif,quality_auto/7befe5_4d47544141d04259b8b8b3c0a3ce2f94~mv2.jpg") center / cover;
}

.playlist-placeholder strong {
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1;
}

.playlist-placeholder span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.playlist-placeholder code {
  color: white;
}

.card-body {
  padding: 18px;
}

.meta {
  color: var(--display-red);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 8px 0 6px;
  color: #f2c264;
  font-size: 1.2rem;
}

.card-body p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: stretch;
}

.feature-copy {
  padding: 32px;
}

.mended-title {
  position: relative;
  padding-bottom: 36px;
}

.mended-title::after {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 18px;
  width: min(360px, 42vw);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--orange));
  content: "";
  box-shadow: 0 0 18px rgba(244, 123, 32, 0.5);
}

.award-ribbon {
  width: fit-content;
  max-width: 100%;
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding: 14px 18px;
  color: #17120b;
  background:
    linear-gradient(135deg, rgba(255, 240, 172, 0.96), rgba(244, 191, 88, 0.96) 44%, rgba(244, 123, 32, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 8px 0 rgba(91, 50, 12, 0.9), 0 22px 36px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.award-ribbon span {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.award-ribbon strong {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.05;
}

.mended-showcase {
  position: relative;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 0;
  background:
    radial-gradient(circle at 22% 0, rgba(244, 123, 32, 0.18), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(215, 166, 64, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(24, 20, 16, 0.98), rgba(10, 10, 10, 0.98));
  border-color: rgba(215, 166, 64, 0.42);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4), inset 0 1px rgba(255, 255, 255, 0.07);
}

.mended-showcase::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 7px, transparent 7px 15px);
  content: "";
  opacity: 0.42;
  pointer-events: none;
}

.mended-showcase .video-frame {
  aspect-ratio: auto;
  min-height: 100%;
  border-right: 1px solid rgba(215, 166, 64, 0.36);
}

.mended-showcase .video-frame img {
  object-fit: contain;
}

.mended-showcase .video-frame::after {
  content: none;
}

.mended-showcase .feature-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 12px;
  background:
    linear-gradient(135deg, rgba(18, 17, 15, 0.96), rgba(8, 8, 8, 0.98)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 7px, transparent 7px 15px);
  border-left: 1px solid rgba(244, 123, 32, 0.2);
  box-shadow: inset 14px 0 24px rgba(0, 0, 0, 0.18);
}

.mended-showcase .feature-copy h2 {
  color: #f4bf58;
  filter: drop-shadow(0 0 14px rgba(244, 123, 32, 0.28));
}

.mended-showcase .feature-copy p:not(.kicker) {
  color: #e8decb;
  font-size: 1.2rem;
  line-height: 1.55;
}

.achievement-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.achievement-strip span {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(215, 166, 64, 0.2);
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.achievement-strip strong {
  display: block;
  color: var(--orange);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.stat strong {
  display: block;
  color: var(--orange);
  font-size: 1.7rem;
}

.stat span {
  color: var(--muted);
}

.year-grid,
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.photo-archive {
  display: grid;
  gap: 34px;
}

.photo-year-section {
  padding-top: 24px;
  border-top: 1px solid rgba(215, 166, 64, 0.22);
}

.photo-year-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.photo-year-empty {
  min-height: 130px;
  display: grid;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(244, 123, 32, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.035);
  border: 1px dashed rgba(215, 166, 64, 0.32);
  border-radius: 8px;
  text-transform: uppercase;
}

.photo-year-empty span {
  color: var(--orange);
  font-family: "Cinzel", Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
}

.photo-year-empty strong {
  color: #f4bf58;
  letter-spacing: 0.08em;
}

.year-card {
  min-height: 150px;
  padding: 20px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.year-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.year-card h3 {
  margin-bottom: 32px;
  font-size: 2rem;
}

.photo-link {
  display: block;
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease;
}

.photo-card:hover img {
  transform: scale(1.035);
}

.photo-card.image-only {
  background: #080808;
}

.photo-card.image-only .photo-link {
  height: 100%;
}

.photo-card.image-only img {
  display: block;
}

.photo-card h3 {
  color: #ffd66f;
  font-size: 1.18rem;
}

.photo-facts {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.photo-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  color: #e8dfcc;
  background: linear-gradient(145deg, rgba(244, 123, 32, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(215, 166, 64, 0.22);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.weather-card {
  position: relative;
  --weather-speed: 6.2s;
  --weather-glow: 0.22;
  --weather-lift: 14px;
  --weather-accent: #d7a640;
  --weather-accent-rgb: 215, 166, 64;
  --weather-deep: #121212;
  --weather-mid: #25221d;
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 20px;
  color: white;
  background:
    radial-gradient(circle at 86% 18%, rgba(var(--weather-accent-rgb), 0.34), transparent 34%),
    radial-gradient(circle at 18% 82%, rgba(var(--weather-accent-rgb), 0.2), transparent 30%),
    linear-gradient(145deg, var(--weather-deep), var(--weather-mid));
  border: 1px solid rgba(var(--weather-accent-rgb), 0.42);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24), inset 0 0 34px rgba(var(--weather-accent-rgb), 0.08);
  overflow: hidden;
}

.weather-card > * {
  position: relative;
  z-index: 1;
}

.weather-card.weather-hot {
  --weather-accent: #f47b20;
  --weather-accent-rgb: 244, 123, 32;
  --weather-deep: #230d06;
  --weather-mid: #4b2411;
  background:
    radial-gradient(circle at 82% 20%, rgba(244, 123, 32, 0.68), transparent 34%),
    radial-gradient(circle at 18% 86%, rgba(255, 214, 111, 0.22), transparent 32%),
    linear-gradient(145deg, var(--weather-deep), var(--weather-mid));
}

.weather-card.weather-warm {
  --weather-accent: #d7a640;
  --weather-accent-rgb: 215, 166, 64;
  --weather-deep: #16110b;
  --weather-mid: #3b2a16;
  background:
    radial-gradient(circle at 86% 18%, rgba(215, 166, 64, 0.5), transparent 33%),
    radial-gradient(circle at 18% 82%, rgba(244, 123, 32, 0.2), transparent 28%),
    linear-gradient(145deg, var(--weather-deep), var(--weather-mid));
}

.weather-card.weather-mild {
  --weather-accent: #3db07a;
  --weather-accent-rgb: 61, 176, 122;
  --weather-deep: #0f1714;
  --weather-mid: #1f332b;
  background:
    radial-gradient(circle at 84% 18%, rgba(61, 176, 122, 0.38), transparent 32%),
    radial-gradient(circle at 18% 82%, rgba(215, 166, 64, 0.1), transparent 28%),
    linear-gradient(145deg, var(--weather-deep), var(--weather-mid));
}

.weather-card.weather-cool {
  --weather-accent: #63a8ff;
  --weather-accent-rgb: 99, 168, 255;
  --weather-deep: #0c121b;
  --weather-mid: #18293e;
  background:
    radial-gradient(circle at 84% 18%, rgba(99, 168, 255, 0.34), transparent 32%),
    radial-gradient(circle at 18% 82%, rgba(61, 176, 122, 0.12), transparent 28%),
    linear-gradient(145deg, var(--weather-deep), var(--weather-mid));
}

.weather-scene {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 86px;
  height: 64px;
  z-index: 0;
}

.weather-sun,
.weather-moon,
.weather-cloud,
.weather-precip,
.weather-bolt {
  position: absolute;
  display: none;
}

.weather-sun {
  right: 8px;
  top: 4px;
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle, #fff5b7 0 30%, #ffd66f 31% 58%, #f47b20 59% 100%);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(244, 123, 32, 0.72), 0 0 42px rgba(255, 214, 111, 0.28);
  opacity: 0;
  transform-origin: center;
  animation: weather-sun-pulse var(--weather-speed) ease-in-out infinite;
}

.weather-moon {
  right: 12px;
  top: 4px;
  width: 40px;
  height: 40px;
  background: #f7efe2;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(247, 239, 226, 0.42);
  opacity: 0;
  animation: weather-moon-glow 5.6s ease-in-out infinite;
}

.weather-moon::after {
  position: absolute;
  right: -3px;
  top: -2px;
  width: 36px;
  height: 36px;
  background: #16130f;
  border-radius: inherit;
  content: "";
}

.weather-cloud {
  right: 10px;
  bottom: 10px;
  width: 54px;
  height: 20px;
  background: linear-gradient(180deg, #fff8e9, #b9b2a7);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  opacity: 0;
  animation: weather-cloud-drift 5.4s ease-in-out infinite;
}

.weather-cloud::before,
.weather-cloud::after {
  position: absolute;
  background: inherit;
  border-radius: inherit;
  content: "";
}

.weather-cloud::before {
  left: 8px;
  top: -14px;
  width: 28px;
  height: 28px;
}

.weather-cloud::after {
  right: 7px;
  top: -10px;
  width: 24px;
  height: 24px;
}

.cloud-two {
  right: 30px;
  bottom: 22px;
  width: 44px;
  height: 16px;
  opacity: 0;
  transform: scale(0.84);
  animation-duration: 6.8s;
}

.weather-precip {
  width: 5px;
  height: 18px;
  background: linear-gradient(180deg, rgba(95, 190, 255, 0), rgba(95, 190, 255, 0.88));
  border-radius: 999px;
  opacity: 0;
  animation: weather-rain-drop 0.95s linear infinite;
}

.precip-one {
  right: 38px;
  bottom: -2px;
}

.precip-two {
  right: 20px;
  bottom: 2px;
  animation-delay: 0.28s;
}

.weather-bolt {
  right: 32px;
  bottom: 2px;
  width: 16px;
  height: 28px;
  background: linear-gradient(180deg, #ffd66f, #f47b20);
  clip-path: polygon(42% 0, 100% 0, 62% 42%, 100% 42%, 22% 100%, 42% 54%, 0 54%);
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255, 214, 111, 0.72));
  animation: weather-bolt-flash 2.2s steps(1, end) infinite;
}

.weather-scene-sun .weather-sun,
.weather-scene-cloud .weather-sun {
  display: block;
  opacity: 1;
}

.weather-scene-night .weather-moon,
.weather-scene-night-cloud .weather-moon {
  display: block;
  opacity: 1;
}

.weather-scene-cloud .weather-cloud,
.weather-scene-night-cloud .weather-cloud,
.weather-scene-rain .weather-cloud,
.weather-scene-storm .weather-cloud,
.weather-scene-snow .weather-cloud,
.weather-scene-fog .weather-cloud {
  display: block;
  opacity: 0.96;
}

.weather-scene-fog .weather-cloud {
  background: linear-gradient(180deg, #c9c6bd, #817d74);
  animation-name: weather-fog-slide;
}

.weather-scene-rain .weather-precip,
.weather-scene-storm .weather-precip {
  display: block;
  opacity: 1;
}

.weather-scene-snow .weather-precip {
  display: block;
  width: 8px;
  height: 8px;
  background: #f7efe2;
  box-shadow: 14px -4px 0 rgba(247, 239, 226, 0.82), -12px -2px 0 rgba(247, 239, 226, 0.72);
  opacity: 1;
  animation-name: weather-snow-fall;
}

.weather-scene-storm .weather-bolt {
  display: block;
  opacity: 1;
}

.weather-card h3 {
  margin: 8px 0 0;
  color: var(--track-green);
  font-size: 1.25rem;
}

.weather-reading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.weather-reading strong {
  color: var(--weather-accent);
  font-size: 3rem;
  line-height: 0.9;
  text-shadow: 0 0 20px rgba(var(--weather-accent-rgb), 0.38);
}

.weather-reading span {
  color: #f47b20;
  font-weight: 800;
  text-align: right;
}

.weather-detail {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.weather-detail strong {
  color: var(--track-green);
}

.page-title {
  padding: 56px 0 24px;
}

.page-title h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(2.8rem, 7vw, 6.8rem);
}

.archive-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}

.year-nav {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.year-nav a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f2c264;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 5px 0 rgba(71, 42, 12, 0.88), 0 12px 20px rgba(0, 0, 0, 0.22);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.year-nav a:hover {
  color: #17120b;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(71, 42, 12, 0.88), 0 16px 24px rgba(0, 0, 0, 0.3);
}

.playlist-section {
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
}

.playlist-section h2 {
  font-size: 2.4rem;
}

.results-board {
  position: relative;
  margin-bottom: 22px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(215, 166, 64, 0.08) 1px, transparent 1px) 0 0 / 72px 100%,
    linear-gradient(180deg, #17120d, #0c0c0c);
  border: 1px solid rgba(215, 166, 64, 0.34);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.06);
}

.results-board::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 123, 32, 0.18), transparent 18%, transparent 82%, rgba(215, 166, 64, 0.12)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 8px, transparent 8px 16px);
  content: "";
  opacity: 0.72;
}

.results-board-header,
.result-row {
  display: grid;
  grid-template-columns: 62px 128px minmax(180px, 1.2fr) repeat(3, minmax(92px, 0.5fr)) 142px;
  align-items: center;
  gap: 14px;
}

.results-board-header {
  padding: 14px 18px;
  color: #f4bf58;
  background: linear-gradient(90deg, #251a10, #191715);
  border-bottom: 1px solid rgba(215, 166, 64, 0.28);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-row {
  position: relative;
  min-height: 118px;
  margin: 12px;
  padding: 14px;
  color: #d9d0c0;
  text-decoration: none;
  background:
    radial-gradient(circle at 18% 0, rgba(244, 123, 32, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #111;
  border: 1px solid rgba(215, 166, 64, 0.22);
  border-bottom: 1px solid rgba(215, 166, 64, 0.22);
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 10px 0 rgba(54, 31, 9, 0.88), 0 22px 40px rgba(0, 0, 0, 0.28);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.result-row:last-child {
  border-bottom: 1px solid rgba(215, 166, 64, 0.22);
}

.result-row:hover {
  border-color: rgba(244, 123, 32, 0.65);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 12px 0 rgba(54, 31, 9, 0.88), 0 28px 48px rgba(0, 0, 0, 0.36);
  transform: translateY(-2px);
}

.result-position {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #17120b;
  background: linear-gradient(145deg, var(--gold), var(--orange));
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 900;
  font-family: "Cinzel", Georgia, serif;
  box-shadow: 0 0 0 4px rgba(215, 166, 64, 0.12), 0 8px 20px rgba(244, 123, 32, 0.2);
}

.result-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(215, 166, 64, 0.32);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.result-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.result-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.result-label {
  color: var(--track-green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.result-horse {
  color: #f4bf58;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 0.95;
  font-weight: 900;
  filter: drop-shadow(0 1px 0 #381b08) drop-shadow(0 0 10px rgba(244, 123, 32, 0.22));
}

.result-detail {
  display: grid;
  gap: 3px;
  color: #f7efe2;
  font-weight: 900;
}

.result-detail small {
  color: #b8ab98;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.result-replay {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  justify-self: end;
  color: #17120b;
  background: linear-gradient(145deg, #f4bf58, #f47b20);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 6px 0 rgba(91, 50, 12, 0.94), 0 14px 24px rgba(0, 0, 0, 0.28);
}

.season-playlist {
  margin-top: 22px;
}

.site-footer {
  color: white;
  background: #080808;
  border-top: 1px solid rgba(215, 166, 64, 0.22);
}

@keyframes weather-sun-pulse {
  0%, 100% {
    transform: scale(0.94);
    filter: saturate(1);
  }

  50% {
    transform: scale(1.08);
    filter: saturate(1.25);
  }
}

@keyframes weather-moon-glow {
  0%, 100% {
    transform: translateY(2px);
    filter: drop-shadow(0 0 10px rgba(247, 239, 226, 0.28));
  }

  50% {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 18px rgba(247, 239, 226, 0.5));
  }
}

@keyframes weather-cloud-drift {
  0%, 100% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }
}

@keyframes weather-fog-slide {
  0%, 100% {
    transform: translateX(-9px) scaleX(1.08);
    opacity: 0.58;
  }

  50% {
    transform: translateX(9px) scaleX(1.18);
    opacity: 0.98;
  }
}

@keyframes weather-rain-drop {
  0% {
    transform: translateY(-12px) rotate(12deg);
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  100% {
    transform: translateY(16px) rotate(12deg);
    opacity: 0;
  }
}

@keyframes weather-snow-fall {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}

@keyframes weather-bolt-flash {
  0%, 82%, 100% {
    opacity: 0;
  }

  84%, 88%, 92% {
    opacity: 1;
  }

  86%, 90% {
    opacity: 0.18;
  }
}

@keyframes latest-panel-glow {
  0%, 100% {
    border-color: rgba(215, 166, 64, 0.3);
    box-shadow: 0 8px 0 rgba(66, 38, 10, 0.9), 0 24px 48px rgba(0, 0, 0, 0.34), 0 0 0 rgba(244, 123, 32, 0);
  }

  50% {
    border-color: rgba(244, 123, 32, 0.68);
    box-shadow: 0 8px 0 rgba(66, 38, 10, 0.9), 0 28px 56px rgba(0, 0, 0, 0.4), 0 0 30px rgba(244, 123, 32, 0.18);
  }
}

@keyframes latest-title-pulse {
  0%, 100% {
    filter: drop-shadow(0 2px 0 #381b08) drop-shadow(0 0 12px rgba(244, 123, 32, 0.34));
  }

  50% {
    filter: drop-shadow(0 2px 0 #381b08) drop-shadow(0 0 24px rgba(255, 214, 111, 0.62));
  }
}

@keyframes latest-bulb-pulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes latest-sweep {
  0%, 100% {
    transform: translateX(-10%);
  }

  50% {
    transform: translateX(10%);
  }
}

.footer-inner {
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 10px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }

  .nav-links a {
    flex: 1 1 96px;
    min-height: 34px;
    padding: 8px 8px;
    text-align: center;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 0;
    display: block;
    background-color: #050505;
  }

  .hero-image {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .hero-inner {
    padding: 0;
  }

  .section-head,
  .feature-panel,
  .archive-layout,
  .footer-inner {
    display: block;
  }

  .section-head h2 {
    margin-bottom: 10px;
    line-height: 1.08;
  }

  #latest {
    padding-top: 0;
  }

  #latest .section-head {
    padding: 8px 12px;
  }

  .section-head p,
  .hero-copy {
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .mended-title::after {
    right: 16px;
    width: min(240px, 58vw);
  }

  .award-ribbon {
    padding: 12px 14px;
  }

  .mended-showcase .video-frame::after {
    content: none;
  }

  .mended-showcase .video-frame {
    aspect-ratio: 16 / 9;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(215, 166, 64, 0.36);
  }

  .mended-showcase .feature-copy {
    border-left: 0;
    box-shadow: inset 0 12px 24px rgba(0, 0, 0, 0.18);
  }

  .mended-showcase .feature-copy p:not(.kicker) {
    font-size: 1.08rem;
    line-height: 1.45;
  }

  .achievement-strip {
    grid-template-columns: 1fr;
  }

  .achievement-strip span {
    min-height: 0;
    grid-template-columns: 72px 1fr;
    align-items: center;
  }

  .video-grid,
  .year-grid,
  .photo-grid,
  .weather-grid {
    grid-template-columns: 1fr;
  }

  .results-board-header {
    display: none;
  }

  .result-row {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 10px;
    padding: 12px;
    transform: none;
  }

  .result-horse {
    font-size: clamp(1.52rem, 8vw, 2.05rem);
    line-height: 1;
  }

  .result-row:hover {
    transform: none;
  }

  .result-thumb {
    grid-column: 2;
    grid-row: 1;
  }

  .result-main,
  .result-detail,
  .result-replay {
    grid-column: 2;
  }

  .result-detail {
    color: rgba(248, 243, 233, 0.78);
  }

  .result-position {
    grid-row: 1 / span 6;
  }

  .result-replay {
    justify-self: start;
    margin-top: 6px;
  }

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

  .year-nav {
    position: static;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .photo-grid,
  .weather-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .nav {
    width: min(100% - 20px, 1180px);
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 8px 0;
  }

  .brand {
    gap: 9px;
    font-size: 0.95rem;
  }

  .brand.logo-only {
    width: 42px;
    height: 42px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    flex: 1;
    flex-wrap: nowrap;
    gap: 3px;
  }

  .nav-links a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 32px;
    padding: 7px 4px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .hero {
    min-height: 0;
    margin-bottom: 0;
  }

  .kicker {
    font-size: 0.7rem;
  }

  .actions {
    width: 100%;
  }

  .button {
    width: auto;
  }

  .section {
    padding: 34px 0;
  }

  #latest {
    padding-top: 0;
  }

  .section + .section {
    padding-top: 22px;
  }

  .section-head {
    margin-bottom: 16px;
  }

  .section-head h2 {
    font-size: clamp(1.55rem, 8vw, 2.08rem);
  }

  #latest .section-head {
    justify-content: center;
    padding: 8px 9px;
  }

  #latest .section-head h2 {
    gap: 7px;
    font-size: clamp(1.34rem, 7.1vw, 1.78rem);
    line-height: 1.02;
    letter-spacing: 0.015em;
  }

  #latest .section-head h2::before,
  #latest .section-head h2::after {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
  }

  .card-body,
  .feature-copy {
    padding: 16px;
  }

  .playlist-player,
  .feature-panel,
  .photo-card,
  .year-card,
  .results-board {
    border-radius: 7px;
  }

  .page-title {
    padding-top: 24px;
    padding-bottom: 8px;
  }

  .page-title h1 {
    font-size: clamp(1.72rem, 8.8vw, 2.25rem);
    line-height: 1;
  }

  .page-title + .section {
    padding-top: 18px;
  }

  .mended-title {
    padding-bottom: 22px;
  }

  .mended-title::after {
    bottom: 10px;
  }

  .award-ribbon {
    margin-top: 12px;
    box-shadow: 0 5px 0 rgba(91, 50, 12, 0.9), 0 16px 26px rgba(0, 0, 0, 0.28);
  }

  .award-ribbon span {
    font-size: 0.68rem;
  }

  .award-ribbon strong {
    font-size: 0.98rem;
  }

  .achievement-strip {
    gap: 8px;
  }

  .achievement-strip span {
    padding: 10px;
  }

  .results-board {
    margin-bottom: 16px;
  }

  .result-row {
    min-height: 0;
    padding: 10px;
  }

  .result-position {
    width: 42px;
    height: 42px;
    font-size: 0.92rem;
  }

  .result-label {
    font-size: 0.7rem;
  }

  .result-detail {
    grid-template-columns: 52px 1fr;
    align-items: baseline;
  }

  .result-detail small {
    font-size: 0.64rem;
  }

  .result-replay {
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
  }

  .season-playlist {
    margin-top: 16px;
  }

  .year-nav {
    gap: 6px;
  }

  .year-nav a {
    padding: 9px 6px;
    text-align: center;
  }

  .stats {
    gap: 8px;
  }

  .weather-card {
    min-height: 160px;
  }
}
