:root {
  color-scheme: dark;
  --patriots-navy: #002244;
  --patriots-red: #c60c30;
  --patriots-silver: #b0b7bc;
  --white: #ffffff;
  --ink: #07111f;
  --panel: rgba(7, 17, 31, 0.42);
  --panel-strong: rgba(7, 17, 31, 0.64);
  --edge: rgba(255, 255, 255, 0.22);
  /* Space reserved for fixed bottom rail (play + credits); popover sits above this. */
  --bottom-rail-total: calc(58px + env(safe-area-inset-bottom, 0px));
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--patriots-navy);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.background-stage,
.background-layer,
.image-shade {
  position: fixed;
  inset: 0;
}

.background-stage {
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(0, 34, 68, 0.9), rgba(198, 12, 48, 0.58)),
    var(--patriots-navy);
}

.background-layer {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.025);
  transition:
    opacity 260ms ease,
    transform 900ms ease;
}

.background-layer.is-visible {
  opacity: 1;
  transform: scale(1);
}

.image-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 15, 35, 0.78) 0%, rgba(0, 15, 35, 0.5) 44%, rgba(0, 15, 35, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.76) 100%);
}

.countdown-shell {
  display: flex;
  min-height: 100svh;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 6vh 0 calc(36px + var(--bottom-rail-total));
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.countdown-loading {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.62);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  backdrop-filter: blur(12px);
}

.countdown-shell.is-countdown-loading .countdown-grid,
.countdown-shell.is-countdown-loading .event-title-row,
.countdown-shell.is-countdown-loading .target-line,
.countdown-shell.is-countdown-loading .hero-actions,
.countdown-shell.is-countdown-loading .hero-countdown-strip {
  opacity: 0.38;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.countdown-shell:not(.is-countdown-loading) .countdown-grid,
.countdown-shell:not(.is-countdown-loading) .event-title-row,
.countdown-shell:not(.is-countdown-loading) .target-line,
.countdown-shell:not(.is-countdown-loading) .hero-actions,
.countdown-shell:not(.is-countdown-loading) .hero-countdown-strip {
  transition: opacity 220ms ease;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-left: 4px solid var(--patriots-red);
  background: rgba(0, 34, 68, 0.56);
  color: var(--patriots-silver);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.top-disclaimer {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.5);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
}

.countdown-switcher {
  position: relative;
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.countdown-breadcrumbs {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.countdown-nav-btn,
.countdown-crumb {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.48);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.countdown-nav-btn {
  width: 36px;
  justify-content: center;
  padding: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.countdown-nav-btn:hover,
.countdown-nav-btn:focus-visible {
  background: var(--patriots-red);
}

.countdown-crumb {
  position: relative;
  isolation: isolate;
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 7px 10px;
  cursor: pointer;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.countdown-crumb[aria-current="true"] {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.countdown-crumb[aria-current="true"]::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  background: var(--patriots-red);
  content: "";
  transform: scaleX(1);
  transform-origin: left center;
}

.countdown-crumb[aria-current="true"]::before {
  animation: countdown-tab-progress var(--hero-rotation-ms, 12000ms) linear forwards;
}

.countdown-switcher.is-pinned .countdown-crumb[aria-current="true"]::before {
  animation: none;
  transform: scaleX(1);
}

@keyframes countdown-tab-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(4.7rem, 8vw, 5.7rem);
  line-height: 0.94;
  font-weight: 950;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.72);
}

.event-title-row {
  display: flex;
  width: min(100%, 1040px);
  align-items: flex-start;
  gap: 14px;
}

.event-title-row h1 {
  min-width: 0;
}

.event-pin-button {
  display: inline-flex;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.5);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.event-pin-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.event-pin-button:hover,
.event-pin-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.event-pin-button.is-pinned {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--patriots-red);
  color: var(--white);
}

.event-pin-button.is-pinned:hover,
.event-pin-button.is-pinned:focus-visible {
  background: #e01842;
}

.countdown-grid {
  display: grid;
  width: min(860px, 100%);
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.countdown-unit {
  min-height: 126px;
  padding: 20px 18px 18px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.26);
}

.countdown-value,
.countdown-label {
  display: block;
}

.countdown-value {
  font-variant-numeric: tabular-nums;
  font-size: 3.95rem;
  line-height: 0.95;
  font-weight: 950;
}

.countdown-label {
  margin-top: 14px;
  color: var(--patriots-silver);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.target-line {
  max-width: 980px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.84);
}

.calendar-button {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: var(--patriots-red);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.calendar-button:hover,
.calendar-button:focus-visible {
  background: #e01842;
}

.hero-actions {
  display: flex;
  width: min(100%, 860px);
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-actions .calendar-button {
  margin-top: 0;
}

.hero-actions .submit-photo-btn {
  width: fit-content;
  min-height: 42px;
  justify-content: center;
  padding: 10px 14px;
  font-size: 0.82rem;
}

.hero-countdown-strip {
  display: flex;
  width: min(100%, 860px);
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hero-countdown-strip[hidden] {
  display: none;
}

.hero-countdown-card {
  display: grid;
  width: min(100%, 280px);
  min-height: 76px;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.54);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(12px);
}

.hero-countdown-card:hover,
.hero-countdown-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(0, 34, 68, 0.78);
}

.hero-card-meta,
.hero-card-date {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-countdown-card strong {
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-mini-count {
  color: var(--white);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.radio-button,
.live-hub-button {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.56);
  color: var(--white);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.radio-button:hover,
.radio-button:focus-visible,
.live-hub-button:hover,
.live-hub-button:focus-visible {
  background: var(--patriots-red);
}

.radio-button,
.live-hub-button {
  background: rgba(0, 34, 68, 0.74);
}

.bottom-rail {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(7, 17, 31, 0.94) 0%, rgba(7, 17, 31, 0.72) 55%, rgba(7, 17, 31, 0) 100%);
  pointer-events: none;
}

.bottom-rail > * {
  pointer-events: auto;
}

.bottom-rail .audio-status-button {
  flex: 0 1 auto;
  min-width: 44px;
}

.bottom-rail .audio-status-button.is-playing {
  box-sizing: border-box;
  width: fit-content;
  max-width: min(220px, calc(100% - 56px));
  justify-content: flex-start;
  gap: 8px;
  padding: 9px 10px;
}

@media (min-width: 821px) {
  .bottom-rail .audio-status-button:not(.is-playing) {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    justify-content: center;
    gap: 0;
    padding: 9px;
  }

  .bottom-rail .audio-status-button:not(.is-playing) .audio-status-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
    clip-path: inset(50%);
  }

  .bottom-rail .audio-status-button.is-playing .audio-status-text {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
  }
}

.bottom-rail .footer-toggle-btn {
  flex: 0 0 auto;
}

.footer-popover {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bottom-rail-total);
  z-index: 11;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.28s ease,
    opacity 0.22s ease;
  pointer-events: none;
}

.footer-popover.is-expanded {
  max-height: min(52vh, 440px);
  opacity: 1;
  pointer-events: auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.footer-popover .footer-details {
  margin: 0;
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px 12px 0 0;
  background: var(--panel-strong);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.77rem;
  font-weight: 720;
  line-height: 1.35;
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 44px rgba(0, 0, 0, 0.4);
}

.footer-details {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
}

@media (min-width: 900px) {
  .footer-details {
    grid-template-columns: minmax(200px, 2fr) auto minmax(160px, 1.2fr) auto auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
}

.footer-popover a {
  color: var(--white);
  text-decoration-color: var(--patriots-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.submit-photo-btn,
.footer-toggle-btn,
.event-pin-button,
.hero-countdown-card,
.audio-status-button,
.radio-play-button,
.radio-episode-card,
.modal-submit-link,
.modal-close-button {
  font: inherit;
}

.footer-toggle-btn {
  display: inline-flex;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.78);
  color: var(--white);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.footer-toggle-btn:hover,
.footer-toggle-btn:focus-visible {
  background: #e01842;
}

.submit-photo-btn {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: var(--patriots-red);
  color: var(--white);
  cursor: pointer;
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.submit-photo-btn:hover,
.submit-photo-btn:focus-visible {
  background: #e01842;
}

.footer-details > :not(.affiliate-notice) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .footer-details > :not(.affiliate-notice) {
    white-space: normal;
  }
}

.audio-status-button {
  position: relative;
  bottom: auto;
  left: auto;
  z-index: auto;
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(320px, calc(100vw - 120px));
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.78);
  color: var(--white);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  transition:
    max-width 0.22s ease,
    padding 0.22s ease,
    background 0.15s ease;
}

.audio-status-button .audio-status-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-status-button:not(.is-playing) {
  max-width: min(220px, calc(100vw - 200px));
}

.audio-status-button[hidden] {
  display: none;
}

.audio-status-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.audio-status-button.is-playing {
  max-width: min(240px, calc(100vw - 220px));
  border-color: rgba(255, 255, 255, 0.38);
  background: var(--patriots-red);
}

.audio-status-button:hover,
.audio-status-button:focus-visible,
.audio-status-button.is-playing:hover,
.audio-status-button.is-playing:focus-visible {
  background: #e01842;
}

.audio-status-button .audio-icon-pause,
.audio-status-button.is-playing .audio-icon-play {
  display: none;
}

.audio-status-button.is-playing .audio-icon-pause {
  display: block;
}

.affiliate-notice {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 10, 24, 0.72);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.modal-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.modal-eyebrow {
  margin: 0 0 10px;
  color: var(--patriots-silver);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

.submit-modal-copy {
  margin: 16px 0 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

.fan-photo-form {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
}

.fan-photo-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.9);
}

.fan-photo-form input,
.fan-photo-form textarea {
  font: inherit;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.fan-photo-form textarea {
  resize: vertical;
  min-height: 52px;
}

.fan-photo-submit-btn {
  margin-top: 4px;
  min-height: 42px;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: var(--patriots-red);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.fan-photo-submit-btn:hover,
.fan-photo-submit-btn:focus-visible {
  background: #e01842;
}

.fan-photo-submit-status {
  margin: 0 0 12px;
  min-height: 1.25em;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 650;
}

.fan-photo-submit-status[hidden] {
  display: none;
}

.submit-modal-tally {
  margin: 16px 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 600;
}

.modal p:last-of-type {
  margin: 16px 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

.modal-submit-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--patriots-red);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.radio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 10, 24, 0.82);
  backdrop-filter: blur(12px);
}

.radio-backdrop[hidden] {
  display: none;
}

.radio-panel {
  position: relative;
  display: grid;
  width: min(760px, 100%);
  max-height: calc(100svh - 48px);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.radio-header,
.radio-feed-header,
.radio-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.radio-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.96;
}

.radio-now-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(0, 34, 68, 0.42);
}

.radio-kicker {
  margin: 0;
  color: var(--patriots-silver);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.radio-now-card h3,
.radio-feed-header h3 {
  margin: 0;
}

.radio-now-card h3 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.radio-now-card audio {
  width: 100%;
  accent-color: var(--patriots-red);
}

.radio-actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.radio-play-button,
.radio-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.radio-play-button:hover,
.radio-play-button:focus-visible,
.radio-actions a:hover,
.radio-actions a:focus-visible {
  background: var(--patriots-red);
}

.radio-feed-header {
  align-items: center;
}

.radio-feed-header h3 {
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.radio-feed-header span,
.radio-disclaimer,
.radio-empty {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 760;
  line-height: 1.35;
}

.radio-feed-header span.is-loading::after {
  display: inline-block;
  width: 1.2em;
  content: "...";
  text-align: left;
  animation: radio-loading-dots 0.9s ease-in-out infinite;
}

@keyframes radio-loading-dots {
  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 1;
  }
}

.radio-feed {
  display: grid;
  min-height: 0;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.radio-episode-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(0, 34, 68, 0.42);
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.radio-episode-card:hover,
.radio-episode-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(0, 34, 68, 0.74);
}

.radio-episode-meta {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.radio-episode-card strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-episode-action {
  color: var(--patriots-silver);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.radio-disclaimer {
  margin: 0;
}

.live-hub-backdrop {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 10, 24, 0.82);
  backdrop-filter: blur(12px);
}

.live-hub-backdrop[hidden] {
  display: none;
}

.live-hub {
  position: relative;
  display: grid;
  width: min(1180px, 100%);
  max-height: calc(100svh - 48px);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.live-hub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.live-hub-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.96;
}

.live-hub-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 16px;
}

.live-hub-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.live-hub-card,
.rail-item {
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(0, 34, 68, 0.42);
}

.live-hub-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.live-hub-card.is-live {
  border-color: rgba(198, 12, 48, 0.72);
  background: rgba(198, 12, 48, 0.28);
}

.hub-card-top {
  display: grid;
  gap: 10px;
}

.hub-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-type,
.hub-status {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hub-status {
  background: var(--patriots-red);
  color: var(--white);
}

.live-hub-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.12;
}

.hub-count {
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.hub-date,
.hub-source {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

.hub-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-card-actions a,
.hub-card-actions button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.hub-card-actions a:hover,
.hub-card-actions a:focus-visible,
.hub-card-actions button:hover,
.hub-card-actions button:focus-visible {
  background: var(--patriots-red);
}

.live-hub-rail {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 12px;
  overflow: auto;
}

.live-hub-rail section {
  display: grid;
  gap: 8px;
}

.live-hub-rail h3 {
  margin: 0;
  color: var(--patriots-silver);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rail-item {
  display: grid;
  gap: 5px;
  padding: 10px;
}

.rail-item strong {
  font-size: 0.86rem;
  line-height: 1.18;
}

.rail-item span,
.rail-empty {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 740;
  line-height: 1.3;
}

@media (max-width: 960px) {
  .live-hub-backdrop {
    align-items: stretch;
  }

  .live-hub {
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow: auto;
  }

  .live-hub-layout {
    display: block;
    min-height: auto;
    overflow: visible;
  }

  .live-hub-grid,
  .live-hub-rail {
    width: 100%;
    min-height: auto;
    overflow: visible;
  }

  .live-hub-grid {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
    padding-right: 0;
  }

  .live-hub-card {
    min-height: auto;
  }

  .live-hub-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body {
    overflow-y: auto;
    padding-bottom: var(--bottom-rail-total);
  }

  :root {
    --bottom-rail-total: calc(54px + env(safe-area-inset-bottom, 0px));
  }

  .countdown-switcher {
    gap: 8px;
  }

  .countdown-breadcrumbs {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .countdown-breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  .countdown-crumb {
    flex: 0 0 auto;
    min-width: max-content;
    max-width: none;
    overflow: visible;
    padding: 8px 12px;
    scroll-snap-align: center;
    text-overflow: clip;
  }

  .bottom-rail {
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .footer-popover.is-expanded {
    max-height: min(48vh, 380px);
  }

  .countdown-shell {
    width: min(100% - 28px, 680px);
    min-height: 100svh;
    padding: 42px 0 calc(88px + var(--bottom-rail-total));
  }

  h1 {
    font-size: 4.1rem;
  }

  .event-pin-button {
    width: 40px;
    height: 40px;
    margin-top: 6px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(132px, 1fr));
    gap: 10px;
    margin-top: 28px;
  }

  .hero-actions {
    align-items: stretch;
    margin-bottom: 58px;
  }

  .hero-actions > * {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero-actions .submit-photo-btn {
    width: auto;
    min-height: 42px;
  }

  .countdown-unit {
    min-height: 118px;
    padding: 17px 15px 16px;
  }

  .countdown-value {
    font-size: 3.3rem;
  }

  .audio-status-button {
    height: 38px;
    min-height: 38px;
    justify-content: center;
    gap: 0;
    padding: 9px;
    max-width: 44px !important;
  }

  .audio-status-button.is-playing {
    justify-content: flex-start;
    gap: 8px;
    padding: 9px 10px;
    max-width: min(calc(100vw - 14px - 44px - 28px), 168px) !important;
  }

  .audio-status-button:not(.is-playing) .audio-status-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .audio-status-button.is-playing .audio-status-text {
    position: static;
    width: auto;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    clip-path: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
  }

  .bottom-rail .footer-toggle-btn {
    flex: 0 0 auto;
    width: 44px !important;
    max-width: 44px !important;
    min-width: 44px;
    height: 38px;
    min-height: 38px;
    padding: 9px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .bottom-rail .footer-toggle-btn::before {
    color: var(--white);
    content: "i";
    font-size: 0.95rem;
    font-weight: 950;
    line-height: 1;
    text-transform: none;
  }

  .bottom-rail .footer-toggle-btn[aria-expanded="true"]::before {
    content: "×";
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
  }

  .footer-details > :not(.affiliate-notice) {
    white-space: normal;
  }

  .radio-backdrop {
    padding: 12px;
  }

  .radio-panel {
    max-height: calc(100svh - 24px);
    padding: 16px;
  }

  .live-hub-backdrop {
    padding: 12px;
  }

  .live-hub {
    max-height: calc(100svh - 24px);
    padding: 16px;
  }

  .live-hub-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}

@media (max-width: 460px) {
  .countdown-shell {
    padding-top: 34px;
    padding-bottom: calc(72px + var(--bottom-rail-total));
  }

  .eyebrow {
    max-width: 100%;
    font-size: 0.74rem;
  }

  .top-disclaimer {
    max-width: 100%;
    font-size: 0.76rem;
  }

  h1 {
    font-size: 3.15rem;
  }

  .event-title-row {
    gap: 9px;
  }

  .event-pin-button {
    width: 36px;
    height: 36px;
    margin-top: 3px;
  }

  .event-pin-button svg {
    width: 17px;
    height: 17px;
  }

  .hero-countdown-strip {
    align-items: stretch;
  }

  .hero-countdown-card {
    width: 100%;
  }

  .hero-actions {
    margin-bottom: 52px;
  }

  .radio-episode-card {
    grid-template-columns: 1fr;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown-unit {
    min-height: 104px;
  }

  .countdown-value {
    font-size: 2.55rem;
  }

  .countdown-label {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background-layer {
    transition: opacity 120ms linear;
    transform: none;
  }

  .background-layer.is-visible {
    transform: none;
  }
}
