/* Font Face Declaration */
@font-face {
    font-family: 'Avenir LT Std';
    src: url('../assets/Avenir LT Std 55 Roman.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Global font application */
body, html {
    font-family: 'Avenir LT Std', Arial, sans-serif;
}

/* Floating Credits label */
.credits-label {
  font-size: clamp(12px, 3vw, 18px);
  margin-right: 4px;
  font-family: 'Avenir LT Std';
  color: #ffffff;
}
.credits-content-value {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(12px, 3vw, 18px);
  color: #AC9D78;
  font-family: 'Avenir LT Std';
  font-weight: bold;
  z-index: 3;
  pointer-events: none;
}

/* Animate credits-tab fade/slide out when open, and delay fade/slide in when closing */
.floating-credits .credits-tab {
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1) 0s, transform 0.35s cubic-bezier(0.4,0,0.2,1) 0s;
  transform: translateX(0);
  opacity: 1;
}
.floating-credits.open .credits-tab {
  opacity: 0;
  transform: translateX(30%);
  pointer-events: none;
  transition-delay: 0s, 0s;
}
.floating-credits:not(.open) .credits-tab {
  transition-delay: 0.1s, 0.1s;
}

.credits-circle-wrapper {
  position: relative;
  display: inline-block;
  width: clamp(24px, 7vw, 36px);
  height: clamp(24px, 7vw, 36px);
  vertical-align: middle;
}
.credits-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(24px, 7vw, 36px);
  height: clamp(24px, 7vw, 36px);
  display: block;
  z-index: 1;
}
.credits-bg {
  opacity: 0.18;
}
.credits-progress {
  transition: stroke-dashoffset 0.5s linear;
  z-index: 2;
}
.credits-tab-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(12px, 4vw, 18px);
  color: #ffffff;
  font-family: 'Avenir LT Std';
  font-weight: bold;
  z-index: 3;
  pointer-events: none;
}
/* Floating Credits: open state for auto-minimize support */
.floating-credits.open .credits-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  margin-right: 6px;

}

.main-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#contentWrapper {
    max-width: 800px;
    margin: auto;
}


.scrollable-songs {
  overflow-y: auto;
  flex-grow: 1;
  padding-bottom: 80px; /* ensure content ends above fixed footer (footer height + extra for touch) */
  margin-top: 10px;
  scrollbar-width: thin;
  scrollbar-color: #AC9D78 #21384A;
  margin-bottom: 150px;
}

.header,
.search-section,
.tab-navigation,
.footer-nav {
  flex-shrink: 0; /* prevent shrinking */
}

.tab-navigation {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding-left: 0;
  margin-left: 0;
  transition: opacity 0.3s ease-in-out;
}

.search-section {
  transition: opacity 0.3s ease-in-out;
}

/* Optional: Smooth scroll */

/* Vertical scrollbar for scrollable-songs */
.scrollable-songs::-webkit-scrollbar {
  width: 6px;
  background: #21384A;
}
.scrollable-songs::-webkit-scrollbar-thumb {
  background: #AC9D78;
  border-radius: 3px;
}
.scrollable-songs::-webkit-scrollbar-track {
  background: #21384A;
}


.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 12px;
}

.hamburger-menu {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

#musicaLogo {
  width: 45vw;
  max-width: 300px;
  max-height: 300px;
}

.top-right-corner {
    position: fixed;
    top: 0;
    right: 0;
    width: 43vw;
    height: auto;
    pointer-events: none;
    z-index: 0;
    max-width: 300px;
    max-height: 300px;
}

.bottom-left-corner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 43vw;
    max-width: 300px;
    max-height: 300px;
    height: auto;
    pointer-events: none;
    z-index: 0;
}

body, html {
    background-image: url('../assets/Background-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    background-attachment: fixed;
    overflow: hidden; /* prevent body from scrolling */
}


/* Search Section */

.search-section {
    padding: 8px 0 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Avenir LT Std';
}


.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    background: #2A4257;
    border-radius: 3vw;
    padding: 0 0.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}



.search-input {
    width: 100%;
    font-size: 16px;
    background: transparent;
    box-sizing: border-box;
    height: 44px;
    border: none;
    outline: none;
    color: #E6E6E6;
    padding: 0 0.5em 0 2.2em;
    border-radius: 3vw;
    font-family: 'Avenir LT Std';
}
.search-input::placeholder {
    color: #8CB0CF;
    opacity: 1;
}

.search-input:focus {
    color: #fff;
}



.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8CB0CF;
    cursor: pointer;
    width: 24px;
    height: 24px;
    z-index: 2;
    background: none;
    border: none;
    outline: none;
}
.search-icon:focus,
.search-icon:hover {
    color: #fff;
}

/* Nav Buttons */

.tab-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-left: 0;
  margin-left: 0;
}

.tab-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Refresh button styles */
.refresh-button {
  width: 40px;
  height: 35px;
  padding: 0;
  font-family: 'Avenir LT Std';
  background: linear-gradient(90deg, #2A4257 0%, #21384A 100%);
  color: #F5F5F5;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(42, 66, 87, 0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.refresh-button:focus,
.refresh-button:hover {
  background: linear-gradient(90deg, #21384A 0%, #2A4257 100%);
  color: #AC9D78;
  box-shadow: 0 4px 16px rgba(42, 66, 87, 0.16);
}

.nav-button.songs-title-button {
    width: 130px;
    font-size: 15px;
    max-width: 200px;
    white-space: nowrap;
    padding: 4px 4px;
    font-family: 'Avenir LT Std';
    background: linear-gradient(90deg, #2A4257 0%, #21384A 100%);
    color: #F5F5F5;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(42, 66, 87, 0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    outline: none;
    letter-spacing: 0.03em;
    margin-right: 10px;
    font-weight: 500;
}

.songs-title-button:focus,
.songs-title-button:hover {
    background: linear-gradient(90deg, #21384A 0%, #2A4257 100%);
    color: #AC9D78;
    box-shadow: 0 4px 16px rgba(42, 66, 87, 0.16);
}

.nav-button.songs-tags-button {
    width: 130px;
    font-size: 15px;
    max-width: 200px;
    white-space: nowrap;
    padding: 4px 4px;
    font-family: 'Avenir LT Std';
    background: linear-gradient(90deg, #2A4257 0%, #21384A 100%);
    color: #F5F5F5;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(42, 66, 87, 0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    outline: none;
    letter-spacing: 0.03em;
}

.songs-tags-button:focus,
.songs-tags-button:hover {
    background: linear-gradient(90deg, #21384A 0%, #2A4257 100%);
    color: #AC9D78;
    box-shadow: 0 4px 16px rgba(42, 66, 87, 0.16);
}


/* Floating Credits (top-right, mostly hidden, reveal on hover) */
/* --- Stack hidden and non-hidden credits on top of each other at the same spot --- */
.floating-credits {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  height: 35px;
  width: auto;
  max-width: calc(100% - 24px);
  z-index: 999;
  pointer-events: auto;
  transition: opacity 0.3s ease-out;
}

/* Both .credits-tab and .credits-content are absolutely stacked */
.floating-credits .credits-tab,
.floating-credits .credits-content {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 18px;
  max-width: calc(100vw - 24px);
}

.floating-credits .credits-tab {
  font-family: 'Avenir LT Std';
  color: #ffffff;
  border-radius: 12px 0 0 12px;
  padding: 0 6px 0 2px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(42,66,87,0.18);
  opacity: 1;
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1), transform 0.35s cubic-bezier(0.4,0,0.2,1);
  transform: translateX(0);
  z-index: 2;
}
  .floating-credits .credits-content {
    font-family: 'Avenir LT Std';
    color: #F5F5F5;
    font-size: clamp(12px, 3vw, 18px);
    border-radius: 12px 0 0 12px; /* Default: rounded when hidden */
    padding: 0 0 0 0; /* Set padding-right to 0 */
    margin: 0;
    position: static;
    box-shadow: 0 2px 8px rgba(42,66,87,0.18);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(30%);
    transition: opacity 0.25s, transform 0.25s;
    height: 35px;
    display: flex;
    align-items: center;
    /* Ensure hidden state is vertically aligned with header */
    /* Auto-minimize after 5 seconds (handled by JS, but allow transition) */
    z-index: 3;
  }

#timeRemaining {
  font-family: 'Avenir LT Std';
  font-size: clamp(12px, 3vw, 18px);
  margin-left: 6px;
  margin-right: 10px;
}



#creditsCount{
  margin-right: 4px;
}

/* Alpha Buttons */
.alpha-btn {
    background: #21384A;
    border: none;
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    outline: none;
    font-family: 'Avenir LT Std';
}

/* Tag Buttons */
.tags-filter-section {
    width: 100%;
    margin: 0;
    padding: 0 0 10px 0;
    background: transparent;
}
.tags-filter-scroll {
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 10px 8px 10px;
    scrollbar-width: thin;
    scrollbar-color: #AC9D78 #21384A;
    -webkit-overflow-scrolling: touch;
}

.tags-filter-scroll::-webkit-scrollbar {
    height: 6px;
}
.tags-filter-scroll::-webkit-scrollbar-thumb {
    background: #AC9D78;
    border-radius: 3px;
}
.tags-filter-scroll::-webkit-scrollbar-track {
    background: #21384A;
}
.tag-btn {
    background: #21384A;
    border: none;
    color: #fff;
    padding: 12px 32px;
    border-radius: 20px;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    outline: none;
    box-shadow: 0px 2px 4px 0px rgba(140, 128, 92, 0.10);
}

.tag-btn:active,
.tag-btn:focus {
    background: #AC9D78;
    color: #21384A;
}

/* Songs by Title */
.underline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px;
    border-bottom: 1px solid #ccc;
    margin-left: 5px;
    margin-right: 10px;

}

  .song-details {
    display: flex;
    align-items: center;
    flex-grow: 1;
  }


  .song-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .song-title {
    font-weight: bold;
    font-size: 5vw;
    color: #fff;
    font-family: 'Avenir LT Std';
    text-transform: uppercase;
    color: #AC9D78;
    font-size: clamp(16px, 5vw, 32px);
  }

  .song-artist {
    font-size: 3vw;
    color: #bbb;
    font-family: 'Avenir LT Std';
    text-transform: uppercase;
    font-size: clamp(16px, 3vw, 26px);
  }


  #Songs {
  border: 1px solid #fff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); 
  margin-bottom: 20vh;
  
}
#Artists {
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 4px 0;
  background: rgba(255, 255, 255, 0.02); 
  margin-bottom: 20vh;
}


/* Footer */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 10px 0;
    z-index: 1000;
    box-shadow: none;
    width: 100vw;
    height: 3vh;
    background: rgba(124, 114, 86, 0.7);
    backdrop-filter: blur(35px);
}


.footer-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #0F1A24;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Avenir LT Std';
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.2s ease;
    gap: 8px;
}

.footer-btn svg {
    display: block;
    color: #0F1A24 !important;
    fill: #0F1A24 !important;
    stroke: #0F1A24 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    flex-shrink: 0;
}
.footer-btn:active,
.footer-btn:focus {
    color: #AC9D78;
    outline: none;
}

.footer-btn:hover {
    color: #AC9D78;
}


/* Search Page */
.search-title{
    font-size: clamp(18px, 5vw, 40px);
    font-family: 'Avenir LT Std';
    color: #AC9D78;
    margin-left: 8px;
}
.artist-only-item {
    font-weight: bold;
    font-size: 5vw;
    font-family: 'Avenir LT Std';
    text-transform: uppercase;
    color: #AC9D78;
    font-size: clamp(16px, 5vw, 32px);
    padding: 4px;
}

.white-outline-box-search {
  border: 2px solid white;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Search-specific sections with reduced spacing */
.white-outline-box-search#Songs {
  margin-bottom: 0.5rem; /* Significantly reduced from 20vh */
}

.white-outline-box-search#Artists {
  margin-bottom: 20vh; /* Keep same for last section */
}

/* Search-specific no results message with reduced padding */
.white-outline-box-search .no-results-message {
  padding: 12px 8px 10px 8px; /* Reduced from 24px 8px 20px 8px */
}


/* Now Playing */
.nowPlaying-title{
    font-size: clamp(18px, 5vw, 40px);
    font-family: 'Avenir LT Std';
    color: #AC9D78;
    margin-left: 1vw;
}
.request-title{
    font-size: clamp(18px, 5vw, 40px);
    font-family: 'Avenir LT Std';
    color: #AC9D78;
    margin-left: 1vw;
}

.now-playing-box{
  background-color: #AC9D78;
  border-radius: 12px;
  padding: 4px 0;
  display: flex;
  align-items: center;
}

.upnext-box {
  border: solid 1px white;
  border-radius: 12px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.song-details {
  display: flex;
  align-items: center;
  width: 100%;
}

.song-artwork {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  margin-right: 12px;
  background-color: #2A4257;
  flex-shrink: 0;
}
.song-artwork-nowplayingUpNext {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  margin-right: 12px;
  background-color: #2A4257;
  flex-shrink: 0;
  margin-left: 10px;
}

.song-info {
  flex-grow: 1;
}

.song-title {
  font-weight: bold;
  font-family: 'Avenir LT Std';
  color: #AC9D78;
}
.song-title-nowplaying {
  font-weight: bold;
  font-family: 'Avenir LT Std';
  color: #ffffff;
  font-weight: bold;
  font-size: 5vw;
  color: #fff;
  font-family: 'Avenir LT Std';
  text-transform: uppercase;
  font-size: clamp(16px, 5vw, 32px);
}

.song-artist {
  color: #ffffff;
  font-size: 0.9em;
  font-family: 'Avenir LT Std';
}

.plus-icon-box {
  position: relative;
  width: 55px;
  height: 55px;
  border: 1px solid white;
  border-radius: 6px;
  display: flex;
  color: white;
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
  font-family: 'Avenir LT Std';
  border: 1px solid white;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.plus-icon-box-nowplaying {
  width: 55px;
  height: 55px;
  font-family: 'Avenir LT Std';
  color: #AC9D78;
  background-color: #F5F5F5;
  font-size: 20px;
  border: 1px solid white;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  margin-right: 10px;
  flex-shrink: 0;
}

.plus-icon-box-upnext {
  width: 55px;
  height: 55px;
  font-family: 'Avenir LT Std';
  color: #ffffff;
  font-size: 20px;
  border: 1px solid white;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  margin-right: 10px;
  flex-shrink: 0;
}

.vote-plus-icon {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 16px;
  height: 16px;
}

/* New vote button variations for browseable songs */
.plus-icon-box.vote-only {
  /* Songs not yet voted for - only show + in center */
  justify-content: center;
}

.plus-icon-box.vote-only .vote-plus-icon {
  /* Hide corner + for songs not in playlist */
  display: none;
}

.plus-icon-box.vote-only .vote-count {
  /* Show large + in center */
  font-size: 24px;
  font-weight: normal;
}

.plus-icon-box.vote-with-count {
  /* Songs in playlist that can still be voted for - show count in center, + in corner */
  justify-content: center;
}

.plus-icon-box.vote-count-only {
  /* Songs already voted for by user - only show count in center, no + in corner */
  justify-content: center;
}

.plus-icon-box.vote-count-only .vote-plus-icon {
  display: none;
}

.vote-count {
  font-size: 16px;
  font-weight: bold;
  z-index: 2;
}

/* Vote box for user-voted songs - same styling but no plus icon */
.vote-box-user-voted {
  position: relative !important;
  width: 55px !important;
  height: 55px !important;
  border: 1px solid white !important;
  border-radius: 6px !important;
  display: flex !important;
  color: white !important;
  font-weight: bold !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
  font-family: 'Avenir LT Std' !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: not-allowed !important;
}

/* Gold styling for user-voted songs */
.vote-box-user-voted.userVoted-gold {
  background-color: #AC9D78 !important;
  border-color: #AC9D78 !important;
  color: #21384A !important;
}

.vote-box-user-voted.userVoted-gold .vote-count {
  color: #21384A !important;
}

/* Also apply gold styling to any element with userVoted and gold classes */
.userVoted.gold {
  background-color: #AC9D78 !important;
  border-color: #AC9D78 !important;
  color: #21384A !important;
}

.vote-box-user-voted .vote-count {
  font-size: 20px !important;
  font-weight: bold !important;
}

.vote-box-user-voted .vote-plus-icon {
  display: none !important;
}

.vote-box-user-voted svg {
  display: none !important;
}

.shoutOutIcon {
  width: 22px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* Old background sprite removed in favour of inline SVG */
  background: none;
}
/* New SVG-based shoutout icon states */
.shoutOutIcon svg { width: 22px; height: 21px; display:block; }

/* Menu Popup */
.menu-popup {
  position: fixed;
  top: 0;
  left: -320px;
  width: 280px;
  height: 100%;
  background: #21384A;
  border-right: 1px solid #AC9D78;
  z-index: 1000;
  transition: left 0.3s ease-in-out;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.menu-popup.open {
  left: 0;
}

.menu-content {
  padding: 80px 20px 20px 20px;
  height: 100%;
  overflow-y: auto;
}

.menu-header {
  font-family: 'Avenir LT Std';
  font-size: 18px;
  color: #AC9D78;
  font-weight: bold;
  margin-bottom: 4px;
  text-align: left;
}

.menu-subheader {
  font-family: 'Avenir LT Std';
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 30px;
  text-align: left;
  opacity: 0.8;
}

.menu-item {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  color: #ffffff;
  font-family: 'Avenir LT Std';
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.menu-item:hover,
.menu-item:focus {
  background: rgba(172, 157, 120, 0.1);
  border-color: #AC9D78;
  transform: translateY(-1px);
}

.menu-item:last-child {
  margin-bottom: 0;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Menu overlay for closing when clicking outside */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Disable credits interaction when menu is open */
body.menu-open .floating-credits {
  pointer-events: none;
}

body.menu-open .floating-credits .credits-tab {
  pointer-events: none;
  cursor: default;
}

/* Shoutout Modal */
.shoutout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shoutout-modal-content {
  background: #21384A;
  color: #fff;
  border-radius: 16px;
  padding: 32px 24px 24px 24px;
  max-width: 90vw;
  width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  position: relative;
  font-family: 'Avenir LT Std', sans-serif;
}

.shoutout-modal h3 {
  color: #AC9D78;
  margin-top: 0;
  font-size: 1.3em;
  margin-bottom: 16px;
  text-align: center;
}

.shoutout-input {
  width: 100%;
  background: #2A4257;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  color: #ffffff;
  font-family: 'Avenir LT Std', sans-serif;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.shoutout-input::placeholder {
  color: #8CB0CF;
}

.shoutout-input:focus {
  outline: none;
  border-color: #AC9D78;
}

.shoutout-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.shoutout-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-family: 'Avenir LT Std', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shoutout-btn.cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.shoutout-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.2);
}

.shoutout-btn.save {
  background: #AC9D78;
  color: #21384A;
}

.shoutout-btn.save:hover {
  background: #C4B78A;
}

.shoutout-btn.remove {
  background: #AC3939;
  color: #FFFFFF;
}

.shoutout-btn.remove:hover {
  background: #C44A4A;
}

.shoutout-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.shoutout-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Help Modal */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    font-family: 'Avenir LT Std', Arial, sans-serif;
}

.help-modal-content {
    background: #21384A;
    padding: 24px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.help-modal h2 {
    color: #AC9D78;
    margin: 0 0 16px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.help-modal p {
    line-height: 1.6;
    margin: 0;
    font-size: 1em;
}

.help-modal strong {
    color: #AC9D78;
    font-weight: 600;
}

.help-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.help-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.userVoted { background: #ac9d78; }
.vote-box-user-voted { background: #ac9d78;}

/* My Details Modal */
.mydetails-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: 'Avenir LT Std', Arial, sans-serif;
}

.mydetails-modal-content {
    background: #21384A;
    padding: 24px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.mydetails-modal h2 {
    color: #AC9D78;
    margin: 0 0 16px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.mydetails-modal p {
    line-height: 1.6;
    margin: 0;
    font-size: 1em;
}

.mydetails-modal strong {
    color: #AC9D78;
    font-weight: 600;
}

.mydetails-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mydetails-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.no-results-message {
  color: #AC9D78;
  background: none;
  font-size: 1.1em;
  font-family: 'Avenir LT Std', Arial, sans-serif;
  text-align: center;
  padding: 24px 8px 20px 8px;
  border-radius: 8px;
  opacity: 0.95;
  letter-spacing: 0.01em;
  font-weight: 500;
}

/* Error message display for server errors (large white text) */
.error-message-display {
  color: #ffffff;
  background: none;
  font-size: clamp(18px, 4vw, 24px);
  font-family: 'Avenir LT Std', Arial, sans-serif;
  text-align: center;
  padding: 32px 16px 24px 16px;
  border-radius: 8px;
  opacity: 1;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.4;
}

/* Shoutout loading placeholder (non-clickable) */
.shoutout-loading {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: inline-block;
  vertical-align: middle;
}
.shoutout-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid rgba(172,157,120,0.8);
  border-top-color: transparent;
  animation: shoutout-spin 0.9s linear infinite;
}
/* Hide underlying SVG icon while loading spinner is active */
.shoutout-loading svg { display: none !important; }
@keyframes shoutout-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hide floating credits when any modal is open */
body:has(.help-modal[style*="display: flex"]) .floating-credits,
body:has(.mydetails-modal[style*="display: flex"]) .floating-credits,
body:has(.shoutout-modal[style*="display: flex"]) .floating-credits,
body:has(.logout-modal[style*="display: flex"]) .floating-credits {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: -1 !important;
    transition: opacity 0.2s ease-out;
}

/* Global loader centered overlay */
#globalLoader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  z-index: 3000;
}
.global-loader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(172,157,120,0.9);
  border-top-color: transparent;
  animation: shoutout-spin 1s linear infinite;
}

/* ============================================================================
   NO IMAGE DISPLAY STYLES
   ============================================================================
   These styles are applied when SHOW_SONG_IMAGES is set to false
   They stretch the song info to fill the space normally occupied by artwork
*/

/* Song info without image - stretch to fill available space */
.song-info-no-image {
  flex-grow: 1;
  margin-left: 0 !important; /* Remove any left margin normally used for image spacing */
  padding-left: 12px; /* Add some padding for visual breathing room */
}

/* Ensure song details container properly handles no-image layout */
.song-details .song-info-no-image {
  width: 100%;
  max-width: none;
}

/* Additional spacing adjustments for no-image layout */
.song-info-no-image .song-title,
.song-info-no-image .song-artist {
  padding-left: 0;
}

/* For now playing/up next items without images, adjust spacing */
.now-playing-box .song-info-no-image,
.upnext-box .song-info-no-image {
  margin-left: 12px; /* Restore some left margin for these specific contexts */
}

/* Feedback Modal */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    font-family: 'Avenir LT Std', Arial, sans-serif;
}

.feedback-modal-content {
    background: #21384A;
    padding: 24px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.feedback-modal h2 {
    color: #AC9D78;
    margin: 0 0 16px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.feedback-modal p {
    line-height: 1.6;
    margin: 0;
    font-size: 1em;
}

.feedback-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.feedback-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Star rating styles */
.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars .star {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    filter: grayscale(100%);
    opacity: 0.5;
}

.rating-stars .star:hover {
    transform: scale(1.1);
}

.rating-stars .star.active {
    filter: none;
    opacity: 1;
}

.hiliteTag{background:#AC9D78 !important}

/* Hide floating credits when feedback modal is open */
body:has(.feedback-modal[style*="display: flex"]) .floating-credits {
    display: none !important;
}