/* ==== FONTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Roboto&display=swap');

/* --------------------------------------------------
   🎨 GENERAL LAYOUT
-------------------------------------------------- */
body {
  background-color: black;
  color: #888;
  font-family: 'Roboto', sans-serif;
  padding: 1rem;
  margin: 0;
  overflow-x: hidden;
}

canvas#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------
   🔐 AUTHENTICATION FORM
-------------------------------------------------- */
.auth-container {
  background: transparent;
  border: 1px solid #0097FF;
  border-radius: 12px;
  max-width: 320px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.auth-container h2 {
  color: #0097FF;
  font-family: 'Audiowide', cursive;
  margin-bottom: 1rem;
}

.auth-container input {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: #000;
  color: #fff;
  border: 1px solid #0097FF;
  border-radius: 8px;
  text-align: center;
}

.auth-container button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: black;
  border: 2px solid #0097FF;
  color: #0097FF;
  border-radius: 8px;
  cursor: pointer;
}

.auth-container button:hover {
  background: #0097FF;
  color: black;
}

.auth-container a {
  color: #0097FF;
  text-decoration: underline;
  font-size: 0.8rem;
}

.auth-container a:hover {
  color: #E21AFF;
}

#error-msg {
  margin-top: 1rem;
  color: #E21AFF;
  font-size: 0.85rem;
}

/* --------------------------------------------------
   🎧 PACK PAGE & SONG DISPLAY
-------------------------------------------------- */

/* Pack title header */
#packTitle {
  font-family: 'Audiowide', cursive;
  font-size: 2rem;
  color: #0097FF;
  text-align: center;
  text-shadow: 0 0 4px #0097FF;
  margin: 2rem 0 1.5rem;
}

/* Track container wrapper */
.track-list {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Individual song section */
.song-block {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid #001aff5d;
  box-shadow: 0 0 6px #0099ff6c;
  border-radius: 10px;
  margin: 0.3rem auto;
  padding: 0.4rem;
  max-width: 300px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.song-block:hover {
  border-color: #0097FF;
  box-shadow: 0 0 10px #0097ff44;
}

.song-block:hover .file-link {
  background: rgba(255, 255, 255, 0.05);
}

/* Song & artist text */
.song-title {
  font-size: 1rem;
  font-weight: bold;
  color: #66ccff;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 0 6px #0097ff44;
  transition: color 0.2s ease;
}

.song-title:hover {
  color: #E21AFF;
}

.track-name {
  font-size: 1.05rem;
  font-weight: bold;
  color: #E21AFF;
  text-align: center;
  text-shadow: 0 0 5px #E21AFF;
}

.artist-name {
  font-size: 0.7rem;
  font-style: italic;
  color: #bbb;
  text-align: center;
  margin-top: 0.2rem;
}

/* Per-version row layout */
.version-block {
  position: relative; /* Enables absolute centering inside */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem; /* Add spacing between each block */
}



/* Frequency label inside a version block */
.version-block .freq-label {
  font-size: 0.9rem;
  color: white;
  min-width: 70px;
  padding-right: 2.5rem;
}



/* Play button in a version block */
.version-block .play-button {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.2rem 1.2rem;
  background-color: black;
  color: rgb(255, 0, 221);
  border: 1px solid #0097FF;
  border-radius: 20px;
  box-shadow: 0 0 6px #0097FF;
  font-weight: bold;
  transition: transform 0.1s ease;
}


.version-block .play-button::before {
  content: "▶";
  font-size: 1rem;
}

/* Download link */
.version-block .download-link {
  font-size: 0.7rem;
  color: red;
  text-decoration: underline;
  padding-left: 2.5rem;
}


.file-link {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: #b4b4b4;
    text-decoration: none;
    margin: 0.6rem auto;
    padding: 0.4rem;
    border-radius: 24px;
    background: transparent;
    border: 2px solid #0097FF;
    max-width: 200px;
    text-align: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.download-link:hover,
.file-link:hover {
  color: #ffffff;
  border-color: #0097FF;
  box-shadow: 0 0 16px #0097FF;
}



/* Collapsible behavior */
.collapsible-header {
  cursor: pointer;
  transition: color 0.2s ease;
}

.collapsible-header:hover {
  color: #fff;
  text-shadow: 0 0 8px #66ccff;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}

.collapsible-content.open {
  max-height: 500px;
  margin-top: 0.5rem;
}

/* --------------------------------------------------
   🔉 AUDIO PLAYER
-------------------------------------------------- */
#audio-player {
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid #0097FF;
  color: red;
  width: 90%;
  margin: 2rem auto;
  display: block;
  border-radius: 8px;
  padding: 6px;
}

#audio-player::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
}

#audio-player::-webkit-media-controls-current-time-display,
#audio-player::-webkit-media-controls-time-remaining-display {
  color: white;
}

#audio-player::-webkit-media-controls-play-button,
#audio-player::-webkit-media-controls-mute-button,
#audio-player::-webkit-media-controls-volume-slider-container {
  filter: invert(1);
}

/* --------------------------------------------------
   🧭 NAVIGATION BUTTON
-------------------------------------------------- */
.home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: #888888;
  border: 1px solid #0099ffc4;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 10px #0097ff44;
}

.home-button:hover {
  background: rgba(0, 151, 255, 0.1);
  color: #E21AFF;
  border-color: #E21AFF;
  text-shadow: 0 0 8px #E21AFF;
}

/* --------------------------------------------------
   📄 FOOTER / DISCLAIMER
-------------------------------------------------- */
.disclaimer {
  font-size: 0.8rem;
  text-align: center;
  color: #888;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------
   🧮 ADMIN TABLE
-------------------------------------------------- */
.admin-table {
  margin: 2rem auto;
  border-collapse: collapse;
  width: 95%;
  max-width: 700px;
  font-family: 'Roboto', sans-serif;
  border: 1px solid #444;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #333;
  text-align: left;
}

.admin-table th {
  background-color: #111;
  color: #0097FF;
  font-family: 'Audiowide', sans-serif;
  text-align: center;
}

.admin-table td {
  color: #ccc;
}

.admin-table tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* --------------------------------------------------
   📱 MOBILE RESPONSIVENESS
-------------------------------------------------- */
@media (max-width: 500px) {
  .song-block {
    padding: 0.5rem 0.6rem;
    margin: 0.4rem auto;
    max-width: 95%;
  }

  .song-title {
    font-size: 0.95rem;
  }

  .file-link {
    font-size: 0.85rem;
    padding: 0.3rem;
    max-width: 100%;
  }
}

/* --------------------------------------------------
   🎬 LOGO FADE-IN
-------------------------------------------------- */
.fade-in-logo {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.footer-logo {
  text-align: center;
  margin-top: 4rem;
  padding-bottom: 3rem;
  z-index: 2;
  position: relative;
}

.footer-logo img {
  max-width: 80px;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}
.premium-pack {
  border: 2px solid #E21AFF;
}
.premium-pack:hover {
  border-color: #E21AFF;
  box-shadow: 0 0 14px #ff00ee;
}
#subscribeBtn {
  display: inline-block;
  margin-left: 1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #e01aff77;
  box-shadow: 0 0 10px #ff00f2fa;
  color: #6b6b6b;
  background: transparent(0, 0, 0, 0.6);
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Audiowide', cursive;
  text-align: center;
  transition: all 0.3s ease;
}

#premiumBtn .subtext {
  font-size: 0.8rem;
  font-family: 'Roboto', sans-serif;
  display: block;
  margin-top: 2px;
}

#premiumBtn:hover {
  color: white;
  background-color: #1a001f;
  border-color: #E21AFF;
}
/* Centered message for errors or empty state */
.center-message {
  text-align: center;
  color: #ccc;
  padding: 1rem;
}

/* Premium title color */
#packTitle.premium-title {
  color: #ff00f2cc;
  text-shadow: 0 0 10px #E21AFF;
}

/* Premium border and hover glow */
.song-block.premium {
  border: 1px solid rgba(255, 0, 242, 0.281);
  box-shadow: 0 0 6px rgba(255, 0, 191, 0.432);
  transition: all 0.3s ease;
}

.song-block.premium:hover {
  border-color: #fa00e9b4;
  box-shadow: 0 0 14px #ff00eec5;
}
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #16191c;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto;
  min-width: 700px;
  font-family: 'Roboto', sans-serif;
}
.admin-table th,
.admin-table td {
  padding: 0.5rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid #252525;
}
.admin-table th {
  color: #0097FF;
  background: #14161a;
  font-family: 'Audiowide', cursive;
  letter-spacing: 1px;
  font-size: 1rem;
  border-bottom: 2px solid #0097FF;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table td {
  color: #eee;
  font-size: 0.97rem;
  vertical-align: middle;
}
.admin-table tr.premium-row {
  background: rgba(226,26,255,0.14);
}
.toggle-premium-btn,
.toggle-admin-btn,
.delete-user-btn {
  font-family: 'Roboto', sans-serif;
  font-size: 0.92rem;
  padding: 0.3rem 0.8rem;
  margin: 0.15rem 0;
  border-radius: 8px;
  background: #181c23;
  outline: none;
  border: 1.5px solid #0097FF;
  color: #0097FF;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s;
  min-width: 120px;
}
.toggle-premium-btn:hover,
.toggle-admin-btn:hover {
  background: #0097FF;
  color: #16191c;
  border-color: #00e6ff;
}
.delete-user-btn {
  border-color: #ff4444;
  color: #ff4444;
}
.delete-user-btn:hover {
  background: #ff4444;
  color: #fff;
}
@media (max-width: 850px) {
  .admin-table, .admin-table thead, .admin-table tbody, .admin-table th, .admin-table td, .admin-table tr {
    display: block;
  }
  .admin-table thead {
    display: none;
  }
  .admin-table tr {
    margin-bottom: 1.5rem;
    border-radius: 1.2rem;
    background: #181c23;
    box-shadow: 0 1px 6px 0 #0009;
  }
  .admin-table td {
    padding: 0.6rem 1rem;
    border: none;
    text-align: left;
    position: relative;
  }
  .admin-table td:before {
    content: attr(data-label);
    font-family: 'Audiowide', cursive;
    color: #0097FF;
    font-size: 0.96rem;
    font-weight: bold;
    position: absolute;
    left: 0.3rem;
    top: 0.6rem;
  }
}
.premium-badge {
  background: linear-gradient(90deg,#E21AFF 40%,#0097FF 100%);
  color: #fff;
  font-family: 'Audiowide', cursive;
  border-radius: 14px;
  padding: 0.25em 1.2em;
  margin-left: 0.7em;
  font-size: 1.01em;
  letter-spacing: 1px;
  display: inline-block;
  box-shadow: 0 1px 5px 0 #0003;
}
.regular-badge {
  background: #232323;
  color: #ccc;
  font-family: 'Audiowide', cursive;
  border-radius: 14px;
  padding: 0.25em 1.2em;
  margin-left: 0.7em;
  font-size: 1.01em;
  display: inline-block;
}
.top-btn {
  position: absolute;
  top: 1.25rem;
  z-index: 10;
  padding: 0.5rem 1.3rem;
  border: 2px solid #0097FF;
  background: black;
  color: #fff;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s;
}
.top-btn.logout { right: 1.25rem; border-color: #0097FF;}
.top-btn.packs { left: 1.25rem; border-color: #0097FF;}
#cancelPremiumBtn {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  border: 2px solid #E21AFF;
  background: #15001b;
  color: #E21AFF;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  margin-top: 0.7rem;
  margin-bottom: 0.3rem;
  transition: background 0.2s, color 0.2s;
}
#cancelPremiumBtn:hover {
  background: #2c0038;
  color: #fff;
}
@media (max-width: 700px) {
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table th,
  .admin-table td,
  .admin-table tr {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .admin-table thead {
    display: none !important;
  }

  .admin-table tr {
    margin-bottom: 1.5rem;
    background: #181c23;
    border-radius: 1.2rem;
    box-shadow: 0 1px 6px 0 #0009;
    padding: 1rem 0.5rem;
  }

  .admin-table td {
    border: none;
    position: relative;
    padding-left: 2.2em !important;
    text-align: left !important;
    min-height: 32px;
    font-size: 1.06rem;
    background: transparent;
  }

  .admin-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0.7em;
    top: 0.7em;
    font-family: 'Audiowide', cursive;
    font-size: 0.97em;
    color: #0097FF;
    font-weight: bold;
    display: block;
    width: 90px;
    letter-spacing: 0.01em;
  }

  .toggle-premium-btn, .toggle-admin-btn, .delete-user-btn {
    width: 90%;
    min-width: 120px;
    margin: 0.4rem auto 0.6rem auto;
    display: block;
    font-size: 1.03rem;
    padding: 0.7rem 0.5rem;
  }
}
