body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", sans-serif;
  background-color: #000;
  color: #fff;
  transition: background-color 0.6s, color 0.6s;
  overflow-x: hidden;
}

body.light {
  background-color: #fafafa;
  color: #000;
}

/* --- SIDEBAR --- */
.side-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 280px;
  height: 100%;
  background-color: #000;
  z-index: 3000;
  transition: left 0.5s cubic-bezier(0.77,0.2,0.05,1.0), background-color 0.6s, border-right 0.6s;
  padding: 80px 30px;
  border-right: 2px solid #fff;
  box-sizing: border-box;
}

body.light .side-menu {
  background-color: #fafafa;
  border-right: 2px solid #000;
}

.side-menu.active { left: 0; }

#menu-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: inherit; font-size: 2.5rem; cursor: pointer;
}

.menu-links { display: flex; flex-direction: column; gap: 25px; }
.menu-links a { text-decoration: none; color: inherit; font-size: 1.2rem; font-weight: 700; transition: opacity 0.3s; }
.menu-links a:hover { opacity: 0.5; }

.corner-icon {
  position: fixed;
  top: 8px;      
  left: 15px;     
  z-index: 2000;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.corner-icon img { width: 50px; height: 50px; }
.corner-icon:hover { 
  transform: scale(1.1) rotate(-3deg); 
}

#theme-toggle {
  position: fixed;
  top: 10px;
  right: 30px;
  background: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000; 
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#theme-toggle:hover { 
  opacity: 0.7; 
  transform: scale(1.1) rotate(15deg); 
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding-top: 57px; 
  padding-bottom: 120px; 
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 0px;
  margin-bottom: 0px; 
}

/* --- LOCKED LINKS CURSOR --- */
.locked-link {
  cursor: default !important;
}

.cover-link:hover .cover { 
  transform: scale(1.02); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}
.cover {
  width: 100%;
  max-width: 430px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Only scale the cover if it is NOT locked */
.cover-link:not(.locked-link):hover .cover { 
  transform: scale(1.02); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

.bible-verse {
  margin-top: 25px;
  font-size: 1.5rem;
  opacity: 0.85;
  font-style: italic;
}

/* --- BUTTONS (SHARP CORNERS) --- */
.main-button, .pdf-button, .footer-button {
  text-decoration: none;
  color: inherit;
  border: 2px solid currentColor;
  border-radius: 0px; /* Sharp corners */
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease; 
  background: transparent;
  font-variant-numeric: tabular-nums; 
}

.pdf-button { padding: 12px 32px; }
.footer-button { padding: 8px 20px; }

/* --- MAIN BUTTON SLIDE ANIMATION (FIXED ALIGNMENT) --- */
.main-button {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  height: 48px; /* Fixed height forces perfect vertical alignment */
  padding: 0;
}

.main-button.locked {
  min-width: 200px;
  cursor: default;
  letter-spacing: -0.5px;
}

.btn-text, .btn-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 32px;
  box-sizing: border-box;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.btn-timer {
  position: absolute;
  top: 100%; /* Start hidden below */
  left: 0;
  color: #E47C31;
  padding-top: 2px; /* Tiny visual nudge downwards to center the numbers */
}

.main-button.locked:hover {
  background-color: transparent; 
  box-shadow: none;
  border-color: #E47C31;
}

.main-button.locked:hover .btn-text {
  transform: translateY(-100%);
}

.main-button.locked:hover .btn-timer {
  transform: translateY(-100%);
}

/* Standard hover for unlocked/other buttons */
.main-button:not(.locked):hover, .pdf-button:hover, .footer-button:hover {
  transform: translateY(-3px); 
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.1);
}
body.light .main-button:not(.locked):hover, body.light .pdf-button:hover, body.light .footer-button:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: rgba(0, 0, 0, 0.05);
}

/* Find .locked-link and change the cursor so it feels clickable again */
.locked-link {
  cursor: pointer !important;
}

.pdf-container {
  margin-top: 60px; 
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.pdf-desc { font-size: 0.85rem; opacity: 0.7; }

.lyrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 80%;
  max-width: 800px;
  margin: 60px auto;
}
.lyrics-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.lyrics-grid img:hover { transform: scale(1.03); opacity: 0.9; }

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  box-sizing: border-box;
  z-index: 1000;
  pointer-events: none; 
}

footer > * { pointer-events: auto; } 

.socials {
  display: flex;
  flex-direction: row; 
  align-items: center;
  gap: 16px;
}

.circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #E47C31;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.socials a:hover .circle {
  transform: translateY(-5px) scale(1.1); 
}

.circle img {
  width: 20px;
  height: 20px;
  filter: invert(0);
  transition: filter 0.6s ease;
}
body.light .circle img { filter: invert(1); }

.copyright {
  font-size: 0.8rem;
  opacity: 0.4;
  margin-top: 40px;
  text-align: center;
}

/* --- UPDATED MODALS --- */
.lyrics-modal {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9); z-index: 5000;
  backdrop-filter: blur(15px); 
  cursor: pointer;
  align-items: center; justify-content: center;
}
.lyrics-modal.visible { display: flex; }

.modal-content {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  width: 100%; height: 100%;
}

.modal-content img {
  max-width: 85vw; max-height: 80vh;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  border-radius: 8px;
  cursor: zoom-in; 
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content img.zoomed {
  transform: scale(1.7);
  cursor: zoom-out;
  z-index: 10002;
}

.m-btn {
  position: absolute;
  background: none; border: none;
  color: white; font-size: 3rem;
  cursor: pointer; z-index: 10005;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.6;
}
.m-btn:hover { opacity: 1; transform: scale(1.1); }
.m-btn.prev { left: 30px; top: 50%; transform: translateY(-50%); }
.m-btn.next { right: 30px; top: 50%; transform: translateY(-50%); }
.m-btn.close { top: 20px; right: 30px; font-size: 3.5rem; line-height: 1; }

@media (max-width: 768px) {
  .m-btn.prev { left: 10px; }
  .m-btn.next { right: 10px; }
  .modal-content img.zoomed { transform: scale(1.3); } 
}

/* --- BACKGROUND BLUR --- */
.background-blur {
  position: fixed; top: -100px; left: -100px; width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(228, 124, 49, 0.2), rgba(0, 0, 0, 0.7));
  filter: blur(120px); z-index: -1;
  animation: blurMotion 20s ease-in-out infinite alternate;
  will-change: transform; 
}
@keyframes blurMotion {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, 80px) scale(1.1); }
}

.fade-in { animation: fadeIn 1.2s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* --- STAGGERED TRACKLIST --- */
.tracklist-container {
  margin: 40px auto;
  max-width: 400px;
  text-align: center;
}

.tracklist-meta {
  font-size: 0.8rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.tracklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.track {
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 5px 0;
  position: relative; 
  opacity: 0;
  transform: translateY(10px);
  animation: fadeTrackIn 0.5s ease forwards;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

@keyframes fadeTrackIn {
  to { opacity: 0.8; transform: translateY(0); }
}

/* Staggering the animation delay for each track */
.track:nth-child(1) { animation-delay: 0.1s; }
.track:nth-child(2) { animation-delay: 0.2s; }
.track:nth-child(3) { animation-delay: 0.3s; }
.track:nth-child(4) { animation-delay: 0.4s; }
.track:nth-child(5) { animation-delay: 0.5s; }
.track:nth-child(6) { animation-delay: 0.6s; }
.track:nth-child(7) { animation-delay: 0.7s; }
.track:nth-child(8) { animation-delay: 0.8s; }

.track:hover {
  opacity: 1 !important; 
  letter-spacing: 1px;
}

.track.playing {
  color: #E47C31;
  opacity: 1 !important;
  font-weight: 700;
}

.track.playing::after {
  content: ' 🎶';
  display: inline-block;
  margin-left: 8px;
  animation: pulseIcon 1s infinite alternate;
}

@keyframes pulseIcon {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

.tracklist-footer {
  font-size: 0.75rem;
  opacity: 0.4;
  margin-top: 10px;
}