.sotd-page {
  background-image: url('backgrounds/static/music.jpg');
  background-size: auto;
  background-repeat: repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

.sotd-page .window-container {
  height: auto; 
}

.sotd-page .main-window {
  min-height: 700px;
  max-width: 900px;
  background-color: #1a1a2e;
  background-image: url('/backgrounds/moving/stars2.gif');
  background-size: auto;
  background-position: center;
  background-repeat: repeat;
  border: solid 2px #330066;
  box-shadow: 1px 1px 0 #5533AA, -1px -1px 0 #000;
}

.sotd-calendar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.sotd-page header::after {
    background: linear-gradient(90deg, #330066, #9933FF, #330066);
}

.sotd-page .site-title h1 {
    color: #9933FF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sotd-page .main-window {
    background-color: #1a1a2e;
    border: solid 2px #330066;
    box-shadow: 1px 1px 0 #5533AA, -1px -1px 0 #000;
}

.sotd-page .main-window .window-header {
    background: linear-gradient(90deg, #1a0033, #660099);
    color: #CC99FF;
}

.sotd-page .main-window .window-body {
    color: #DDDDDD;
}

.sotd-page .main-window h2,
.sotd-page .main-window h3 {
    color: #9933FF;
}

.sotd-page .window-body p {
    color: #DDDDDD;
}

.year-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  margin-top: 12px;
  justify-content: center;
  padding: 20px;
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  border-radius: 8px;
}

.year-btn {
  font-family: 'Courier New', monospace;
  font-size: 1.6em;
  font-weight: bold;
  padding: 18px 48px;
  border: 3px solid #330066;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  color: #FFF;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.year-btn[data-year="2025"] {
  background-image: url('/backgrounds/static/pink-sky.png');
}

.year-btn[data-year="2026"] {
  background-image: url('/backgrounds/static/purple-sky.png');
}

.year-btn:hover {
  transform: scale(1.08);
  border-color: #9933FF;
}

.year-btn.active {
  border-color: #FFD700;
}

.month-container {
  padding: 20px;
  border-radius: 8px;
  background-size: auto; 
  background-position: center;
  background-repeat: repeat;
  background-attachment: scroll;
}

.month-heading {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFF;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.month-songs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.song-day {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid #333;
  border-radius: 4px;
  transition: transform 0.2s ease;
}


.song-day:hover {
  transform: scale(1.05);
  border-color: #9933FF;
}

.song-day img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.song-day::after {
  content: attr(title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #FFF;
  padding: 6px;
  font-size: 0.7em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-weight: bold;
}

.song-day:hover::after {
  max-height: 100%;
}

.window-body p {
  color: #DDD;
  margin-bottom: 15px;
}

.song-day.today {
  border-color: #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.song-day.today:hover {
  border-color: #FFD700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Song Modal Styles */
.song-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.song-modal-overlay.active {
    display: flex;
}

.song-modal {
    position: relative;
    background-size: auto;
    background-position: center;
    background-repeat: repeat;
    border: 3px solid #000;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #000;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 28px;
    color: #FFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-title-section {
    text-align: center;
}

.modal-title-section h2 {
    font-size: 1.8em;
    color: #FFF;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    word-wrap: break-word;
}

.modal-cover {
    display: flex;
    justify-content: center;
}

.modal-cover img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.modal-info {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 15px;
    color: #FFF;
}

.modal-info p {
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.modal-info strong {
    color: #FFD700;
}

#modalNotesSection {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: none;
}

#modalNotesSection.show {
    display: block;
}

#modalNotes {
    font-style: italic;
    color: #DDD;
    margin: 8px 0 0 0 !important;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.modal-nav-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #FFD700;
  border-radius: 6px;
  color: #FFF;
  padding: 8px 16px;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: bold;
}

.modal-nav-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #FFF;
}

.modal-nav-btn:active {
  transform: scale(0.95);
}

footer {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Courier New', monospace;
  font-size: 1.4em;
  font-weight: bold;
  padding: 12px 28px;
  border: 3px solid #330066;
  border-radius: 12px;
  background-color: rgba(51, 0, 102, 0.3);
  color: #FFF;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-button-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.back-button:hover {
  transform: scale(1.08);
  border-color: #9933FF;
}

.back-button:active {
  transform: scale(0.95);
}