.calendar-page {
  background:
    radial-gradient(circle at 78% 8%, #173858 0%, transparent 27%),
    radial-gradient(circle at 16% 30%, #75501d25 0%, transparent 25%),
    linear-gradient(180deg, #02070d 0%, #081827 48%, #030910 100%);
}

.calendar-page .hm-desktop {
  background-image: url("assets/header-desktop.webp");
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  border-radius: 8px;
  color: #181006;
  background: var(--gold-300);
  font: 800 1rem/1 var(--sans);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.calendar-main {
  width: min(100%, 1600px);
  margin: 0 auto;
  overflow: hidden;
  background: #06111de8;
  box-shadow: 0 0 80px #000d;
}

.calendar-hero {
  position: relative;
  isolation: isolate;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1.5rem 5rem;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(120deg, #02070dda, #0a2033d8 52%, #03080fef),
    repeating-linear-gradient(120deg, transparent 0 180px, #f1c55b12 181px 183px, transparent 184px 360px);
  border-bottom: 1px solid #8b6028;
}

.calendar-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 5px;
  background: var(--gold-line);
  box-shadow: 0 0 20px #efbd4e8f;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: min(820px, 90vw);
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #b77a2435 0%, #173d6242 38%, transparent 72%);
  filter: blur(12px);
}

.calendar-eyebrow,
.section-kicker {
  margin: 0;
  color: var(--gold-300);
  font: 800 .95rem/1.5 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.calendar-eyebrow span {
  letter-spacing: 0;
}

.calendar-hero h1,
.section-heading h2,
.month-title-wrap h3 {
  color: var(--gold-300);
  font-family: var(--display);
  text-shadow: 0 4px 18px #000c, 0 0 22px #c9892d29;
}

.calendar-hero h1 {
  max-width: 900px;
  margin: .75rem 0 .5rem;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: .98;
}

.calendar-hero > p:last-child {
  max-width: 760px;
  margin: 1.6rem auto 0;
  color: #eef1f4;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.65;
}

.title-filigree {
  width: min(470px, 78vw);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold-300);
  font-size: 1.4rem;
}

.title-filigree::before,
.title-filigree::after {
  content: "";
  height: 3px;
  flex: 1;
  background: var(--gold-line);
  box-shadow: 0 0 12px #ebb340a6;
}

.featured-section,
.calendar-section {
  padding: clamp(4.5rem, 7vw, 7rem) clamp(1rem, 6vw, 6rem);
}

.featured-section {
  background:
    radial-gradient(circle at 88% 50%, #234e7140, transparent 36%),
    linear-gradient(145deg, #07121f, #0b2236 52%, #050b13);
}

.centered-heading {
  max-width: 920px;
  margin: 0 auto clamp(2.5rem, 4vw, 4rem);
  text-align: center;
}

.section-heading h2 {
  margin: .55rem 0 .7rem;
  font-size: clamp(2.75rem, 5vw, 4.9rem);
  line-height: 1.02;
}

.selected-date,
.calendar-intro > p:last-child {
  margin: 0;
  color: #dce4eb;
}

.selected-date {
  font-size: 1.1rem;
  line-height: 1.6;
}

.calendar-intro > p:last-child {
  font-size: 1.15rem;
  line-height: 1.65;
}

.featured-card {
  max-width: 1240px;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(330px, .86fr);
  overflow: hidden;
  border: 2px solid var(--gold-500);
  border-radius: 20px;
  background: linear-gradient(140deg, #0d263d, #06111d 68%);
  box-shadow: 0 28px 70px #000b, 0 0 32px #d79d3630;
}

.featured-media {
  position: relative;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  background: #02070d;
}

.featured-media img,
.featured-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.featured-media img {
  object-fit: cover;
  object-position: center 35%;
}

.featured-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 70%, #071522a8 100%);
}

.featured-media.is-playing::after,
.featured-media.is-playing .media-note {
  display: none;
}

.media-note {
  position: absolute;
  z-index: 1;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-300);
  border-radius: 50%;
  color: #171006;
  background: var(--gold-button);
  box-shadow: 0 8px 25px #000b, 0 0 18px #f0bd554d;
  font-size: 1.7rem;
}

.featured-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.featured-overline {
  margin: 0 0 .8rem;
  color: var(--gold-400);
  font: 800 .95rem/1.45 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-transform: uppercase;
}

.featured-copy h3 {
  margin: 0;
  color: var(--gold-300);
  font-family: var(--display);
  font-size: clamp(2.35rem, 4vw, 4.15rem);
  line-height: 1.04;
  text-wrap: balance;
}

.featured-meta {
  margin: 1rem 0 0;
  color: #fff5dc;
  font: 700 1.12rem/1.5 var(--sans);
}

.featured-description {
  margin: 1.5rem 0 0;
  color: #d6dee7;
  font-size: 1.08rem;
  line-height: 1.7;
}

.featured-actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem 1.4rem;
  flex-wrap: wrap;
}

.watch-button {
  min-height: 52px;
  gap: .65rem;
  padding: .85rem 1.25rem;
  border-radius: 11px;
  font-size: 1rem;
}

.watch-button:disabled {
  cursor: not-allowed;
  filter: grayscale(.45) brightness(.75);
  transform: none;
  box-shadow: inset 0 1px 0 #fff6cf, 0 6px 18px #0008;
}

.library-link {
  color: var(--gold-300);
  font: 700 1rem/1.4 var(--sans);
  text-underline-offset: 5px;
}

.library-link:hover,
.library-link:focus-visible {
  color: #fff0b3;
}

.playback-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  color: #cbd4de;
  font: 1rem/1.6 var(--sans);
}

.gold-divider {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-line);
  box-shadow: 0 0 18px #dfa53b63;
}

.gold-divider span {
  padding: .35rem 1.8rem;
  border-inline: 1px solid var(--gold-500);
  color: var(--gold-300);
  background: #061421;
  font-size: 1rem;
}

.calendar-section {
  border-bottom: 1px solid #8b6028;
  background:
    radial-gradient(circle at 12% 18%, #82541d25, transparent 25%),
    linear-gradient(160deg, #040a12, #0c2439 56%, #050b13);
}

.calendar-panel {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.3rem);
  border: 2px solid #c59335;
  border-radius: 20px;
  background: linear-gradient(145deg, #0b1f32f7, #040b13f7);
  box-shadow: 0 28px 70px #000b, 0 0 30px #d69b3126;
}

.month-toolbar {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(135px, 1fr) minmax(260px, 2fr) minmax(135px, 1fr);
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #8b642c;
}

.month-button,
.today-button {
  border: 1px solid #b9862f;
  color: var(--gold-300);
  background: #081725;
  font-family: var(--sans);
  font-weight: 800;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.month-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  font-size: .98rem;
}

#previous-month {
  justify-self: start;
}

#next-month {
  justify-self: end;
}

.month-button:hover,
.month-button:focus-visible,
.today-button:hover,
.today-button:focus-visible {
  color: #171006;
  border-color: var(--gold-200);
  background: var(--gold-button);
  box-shadow: 0 8px 20px #0009, 0 0 16px #e9b44735;
  transform: translateY(-1px);
}

.month-title-wrap {
  text-align: center;
}

.month-title-wrap h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.today-button {
  margin-top: .65rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .83rem;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .55rem;
}

.weekday-row {
  padding: 1.4rem 0 .75rem;
}

.weekday-row span {
  color: var(--gold-300);
  font: 800 .88rem/1.3 var(--sans);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-cell {
  min-width: 0;
}

.day-button {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 84px;
  aspect-ratio: 1.12 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: .7rem;
  overflow: hidden;
  border: 1px solid #46617a;
  border-radius: 11px;
  color: #f8f5ed;
  background: linear-gradient(145deg, #102a42, #07131f);
  box-shadow: inset 0 1px 0 #ffffff0d;
  font-family: var(--sans);
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.day-button:hover,
.day-button:focus-visible {
  z-index: 2;
  border-color: var(--gold-300);
  color: #fff;
  background: linear-gradient(145deg, #173a58, #0a1c2c);
  box-shadow: 0 10px 22px #0009, 0 0 16px #e8b2452e;
  transform: translateY(-2px);
}

.day-number {
  font-size: 1.08rem;
  font-weight: 800;
}

.day-song-mark {
  align-self: flex-end;
  color: var(--gold-400);
  font-size: .9rem;
}

.day-button.outside-month {
  color: #77889a;
  border-color: #263a4d;
  background: #06101a;
}

.day-button.is-today {
  border: 2px solid var(--gold-300);
  box-shadow: inset 0 0 0 2px #07131f, 0 0 16px #f0bd4d4a;
}

.day-button.is-selected {
  color: #171006;
  border-color: #fff0b1;
  background: var(--gold-button);
  box-shadow: inset 0 1px 0 #fffbe2, inset 0 -1px 0 #774b10, 0 9px 22px #000b, 0 0 20px #edbb4d4d;
}

.day-button.is-selected .day-song-mark {
  color: #52320a;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 1rem 1.8rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  color: #cbd4de;
  font: .9rem/1.4 var(--sans);
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.legend-swatch {
  width: 17px;
  height: 17px;
  display: inline-block;
  border-radius: 4px;
}

.today-swatch {
  border: 2px solid var(--gold-300);
  background: #0d2033;
}

.selected-swatch {
  border: 1px solid #fff0b1;
  background: var(--gold-button);
}

.no-script {
  max-width: 1180px;
  margin: 1rem auto 0;
  padding: 1rem;
  border: 1px solid #a5742d;
  border-radius: 8px;
  color: #fff3d0;
  background: #25190d;
  text-align: center;
}

.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;
  white-space: nowrap !important;
  border: 0 !important;
}

.calendar-footer {
  width: min(100%, 1600px);
  margin: 0 auto;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid #b27c2c;
  color: #d5dce4;
  background: #02070c;
  font: .95rem/1.5 var(--sans);
}

.calendar-footer span:first-child,
.calendar-footer a {
  color: var(--gold-300);
  font-weight: 700;
}

.calendar-footer a {
  text-underline-offset: 4px;
}

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

  .featured-media,
  .featured-media img,
  .featured-media iframe {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .featured-media::after {
    background: linear-gradient(180deg, transparent 72%, #071522b5 100%);
  }

  .calendar-footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .calendar-hero {
    min-height: 340px;
    padding: 3.5rem 1rem 3.35rem;
  }

  .calendar-hero h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .featured-section,
  .calendar-section {
    padding: 4.25rem .75rem;
  }

  .featured-copy {
    padding: 2rem 1.25rem 2.25rem;
  }

  .featured-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .watch-button,
  .library-link {
    width: 100%;
    text-align: center;
  }

  .calendar-panel {
    padding: .75rem;
    border-radius: 14px;
  }

  .month-toolbar {
    min-height: 78px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: .45rem;
    padding-bottom: 1rem;
  }

  .month-button {
    width: 46px;
    min-height: 46px;
    padding: 0;
    font-size: 1.1rem;
  }

  .month-nav-text {
    display: none;
  }

  .weekday-row,
  .calendar-grid {
    gap: .28rem;
  }

  .weekday-row {
    padding-top: 1rem;
  }

  .weekday-row span {
    font-size: clamp(.58rem, 2.6vw, .75rem);
    letter-spacing: .02em;
  }

  .day-button {
    min-height: 52px;
    aspect-ratio: auto;
    padding: .42rem;
    border-radius: 7px;
  }

  .day-number {
    font-size: .9rem;
  }

  .day-song-mark {
    font-size: .7rem;
  }
}

@media (max-width: 390px) {
  .calendar-eyebrow,
  .section-kicker {
    font-size: .95rem;
    letter-spacing: .15em;
  }

  .calendar-hero > p:last-child,
  .calendar-intro > p:last-child {
    font-size: 1rem;
  }

  .selected-date {
    font-size: 1.1rem;
  }

  .section-heading h2 {
    font-size: 2.55rem;
  }

  .featured-copy h3 {
    font-size: 2.25rem;
  }

  .month-title-wrap h3 {
    font-size: 1.72rem;
  }

  .today-button {
    font-size: .75rem;
  }

  .day-button {
    min-height: 48px;
  }

  .calendar-legend {
    font-size: .82rem;
  }
}

/* Three-song classic archive preview: all other site styles are unchanged. */
.classic-song-art {
  width: 100%; min-height: 430px; height: 100%; padding: 2rem;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1.6rem; text-align: center;
  background: radial-gradient(circle at 50% 45%, #173b5b 0%, #071a2b 52%, #02070d 100%);
}
.classic-song-art-note { color: #eec46d; font: 5rem/1 Georgia, serif; text-shadow: 0 0 35px #ddb25c65; }
.classic-song-art-title { max-width: 90%; color: #f4d484; font: 700 clamp(2rem, 3.8vw, 3.6rem)/1.15 Georgia, serif; }
.day-button.has-song { border-color: #c79b44; box-shadow: inset 0 0 0 1px #e0b96144; }
.day-button.has-song .day-song-mark { font-size: 1.18rem; }
@media (max-width: 900px) { .classic-song-art { min-height: 0; aspect-ratio: 16/9; } }

/* Readability and song-title refinements. Scoped to the Music Calendar. */
.selected-date {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 750;
  line-height: 1.55;
  color: #fff1cf;
}
.calendar-intro > p:last-child {
  max-width: 780px;
  margin-inline: auto;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.65;
  color: #e9edf2;
}
.featured-description {
  font-size: clamp(1.08rem, 1.35vw, 1.18rem);
  line-height: 1.7;
  color: #e9edf2;
}
.playback-status {
  font-size: 1.02rem;
  line-height: 1.6;
  color: #e0e7ee;
}
.day-button {
  min-height: 132px;
  aspect-ratio: auto;
  justify-content: flex-start;
  gap: .55rem;
  padding: .85rem .7rem;
  text-align: left;
}
.day-number { font-size: 1.13rem; line-height: 1.2; }
.day-song-title {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #ffe4a2;
  font-size: clamp(.74rem, .95vw, .93rem);
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.day-button.is-selected .day-song-title { color: #281807; }
.day-song-mark { margin-top: auto; }
.mobile-song-list { display: none; }
@media (min-width: 681px) and (max-width: 950px) {
  .day-button { min-height: 112px; padding: .6rem .4rem; }
  .day-song-title { font-size: .72rem; }
}
@media (max-width: 680px) {
  .selected-date { font-size: 1.2rem; }
  .calendar-intro > p:last-child { font-size: 1.08rem; }
  .day-button { min-height: 53px; padding: .42rem; gap: .15rem; }
  .day-number { font-size: .9rem; }
  .day-song-title { display: none; }
  .day-song-mark { font-size: .7rem; }
  .mobile-song-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .5rem;
    margin-top: 1.4rem;
    padding-top: 1.25rem;
    border-top: 1px solid #8b642c;
  }
  .mobile-song-list h4 {
    margin: 0 0 .35rem;
    color: var(--gold-300);
    font: 700 1.4rem/1.3 var(--display);
  }
  .mobile-song-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem .85rem;
    border: 1px solid #52647b;
    border-radius: 9px;
    background: #0c2032;
    color: #f3e4c3;
    text-align: left;
    font-family: var(--sans);
    cursor: pointer;
  }
  .mobile-song-item:hover, .mobile-song-item:focus-visible { border-color: var(--gold-300); background: #183249; }
  .mobile-song-item.is-selected { background: #624615; border-color: #ffdf86; }
  .mobile-song-day {
    display: grid;
    place-items: center;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    min-height: 2.25rem;
    border: 1px solid #b99654;
    border-radius: 7px;
    color: #ffe2a0;
    font-weight: 800;
  }
  .mobile-song-title { min-width: 0; font-size: 1rem; font-weight: 650; line-height: 1.4; }
}

/* Month-only calendar: spacing slots keep weekday alignment without adjacent dates. */
.calendar-empty-slot { min-width: 0; pointer-events: none; }

/* Show the selected YouTube recording thumbnail before playback. */
.featured-media img.featured-video-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
  background: #071522;
}
@media (max-width: 900px) {
  .featured-media img.featured-video-thumbnail {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}
