@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
body {
  background-color: #1a1a1a;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  padding: 0;
  overflow: auto;
}

#playlist {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 40vh;
  margin-top: 0;
  padding: 10px;
  list-style: none;
  background: #2a2a2a;
  border-top: 2px solid #6a0dad;
  scrollbar-width: thin;
  scrollbar-color: #6a0dad #2a2a2a;
}

#playlist::-webkit-scrollbar {
  width: 6px;
}
#playlist::-webkit-scrollbar-track {
  background: #2a2a2a;
}
#playlist::-webkit-scrollbar-thumb {
  background: #6a0dad;
  border-radius: 8px;
}

#playlist li {
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  cursor: pointer;
  border-radius: 5px;
  background: #3a3a3a;
  transition: background-color 0.3s;
}

#playlist li:hover {
  background: #4a4a4a;
}

#playlist li.playing {
  background: #6a0dad;
  color: #1a1a1a;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
    margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}

.controls button {
  background: linear-gradient(135deg, #3a008b 0%, #6a0dad 70%);
  color: #fff;
  border: none;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, color 0.2s;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  height: 40px;
  width: 40px;
}

.controls button:hover {
  background: linear-gradient(135deg, #3a008b 0%, #6a0dad 70%);
  color: #000;
}

.player-btn {
  background-color: #6a0dad;
  color: white;
  border: none;
  padding: 12px 20px;
  margin: 0 5px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background-color 0.2s, transform 0.1s;
}

.player-btn:hover {
  background-color: #b266ff;
}

.player-btn:active {
  transform: scale(0.9);
}

.custom-timeline {
  width: 100%;
  height: 8px;
  background-color: #3a3a3a;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  margin: 0.3rem 0;
  flex-shrink: 0;
}


.custom-timeline .thumb {
  width: 12px;
  height: 12px;
  background-color: #6a0dad;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  transition: left 0.1s linear;
}

#current-song {
  text-align: center;
  margin: 4px 0;
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  min-height: 1.2rem;
}

.speaker-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 5px;
  gap: 10px;
}

#current-song.paused .scroll-text{
animation-play-state: paused;
}

#current-song .scroll-text span{
display:inline-block;
animation: wave 1.5s ease-in-out infinite;
}

#current-song .scroll-text span:nth-child(odd){animation-delay:.1s;}
#current-song .scroll-text span:nth-child(even){animation-delay:.3s;}

#time-display {
  text-align: center;
  font-size: 0.9rem;
  color: #fff;
  margin: 0.2rem 0;
}

.icon-btn{
  background:transparent;
  border:0;
  padding:0;
  width:32px; height:32px;
  display:inline-flex;
  align-items:center; justify-content:center;
  cursor:pointer;
}

.volume-control input[type="range"] {
  width: 100px;
  accent-color: #6a0dad;
  margin-top: 13px;
}

.repeat-button {
  background-color: #6a0dad;
  color: #fff;
  border: none;
  border-radius: 4px;
}

.repeat-button.active {
  background-color: #333;
  color: #000;
}

.navbar {
  background-color: #2a2a2a ;
  font-family: 'Orbitron', sans-serif;
  border-bottom: 2px solid #6a0dad;
}

.navbar-brand {
  color: #ffffff ;
  font-weight: bold;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: #fff;
  transition: color 0.3s, background-color 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #1a1a1a;
  background: #6a0dad;
  border-radius: 5px;
}

.navbar-brand:hover {
  color: #1a1a1a ;
  background-color: #6a0dad ;
  border-radius: 5px;
}

.album-cover-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 70px 0;
}

.album-cover {
  width: 300px;
  max-width: 80vw;
  height: auto;
  border-radius: 0;
  display: block;
}

.front {
  display: block;
  margin: 80px auto 0 auto;
  max-width: 30%;
  height: auto;
}

.sliders-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.small-text {
  font-size: 0.7em;
  line-height: 1em;
  display: block;
  opacity: 0.8;
}

.dropdown-header {
  font-size: 0.7em;
  font-weight: normal;
  color: #aaa;
  padding-left: 1rem;
}

.mobile-only { display: none; }

img {
  background: transparent ;
}

.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item:focus {
  background-color: #6a0dad ;
  color: #fff ;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
  75% { transform: translateY(-3px); }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

main.container {
  padding-top: 0px !important;
}

#audio {
  display: none ;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.gallery-img {
  width: 200px;
  height: auto;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(106, 13, 173, 0.6);
}


.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background-color: #6a0dad !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background-color: #8c1de5 !important;
}

[data-bs-theme="dark"] .dropdown-menu {
  min-width: 500px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-x: hidden;
  position: absolute;
  left: 0;
  right: auto;
  z-index: 2000;
}

[data-bs-theme="dark"] .dropdown-menu .dropdown-menu {
  position: static ;
  width: 100% ;
  min-width: 500px;
  max-height: none ;
  overflow-y: visible ;
  overflow-x: hidden ;
}

[data-bs-theme="dark"] .dropdown-menu .dropdown-item {
  min-height: 2.2rem;
  white-space: normal ;
  word-wrap: break-word ;
}

table.file-list {
  width: 100%;
  min-width: 300px;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #2a2a2a;
  border: 2px solid #6a0dad;
  table-layout: fixed;
}

table.file-list th,
table.file-list td {
  padding: 8px 12px;
  border-bottom: 1px solid #444;
  white-space: normal;
  word-break: break-word;
}

table.file-list th:first-child,
table.file-list td:first-child { width: 10%; }
table.file-list th:nth-child(2),
table.file-list td:nth-child(2) { width: 10%; }
table.file-list th:nth-child(3),
table.file-list td:nth-child(3) { width: 10%; }

a { color: #b266ff; text-decoration: none; }
a:hover { color: #fff; }

#results {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
}

#results .list-group-item {
  cursor: pointer;
  transition: background-color 0.2s;
}
#results .list-group-item:hover {
  background-color: #444;
  color: #fff;
}

.indexplayer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 600px;
  margin: 20px auto;
  background: #1a1a1a;
  padding: 10px;
  border-radius: 12px;
}

#search {
  display: block;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 3000;
background: #fff !important;
  color: #000 !important;
}
#search::placeholder {
  text-align: center;
}

#indexplayer span#trackName {
  flex-basis: 100%;
  text-align: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #fff;
}

#searchInput {
  max-width: 159px;
  width: 100%;
  display: block;
  margin: 0 auto;
}

#results li {
  background: #fff !important;
  color: #000 !important;
  border-bottom: 1px solid #6a0dad !important;
}

#results li:hover {
  background: #6a0dad !important;
  color: #000 !important;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #3a3a3a;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

#seekBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 48px;
  height: 48px;
  border: none;
  background: url("/system/skull_seek.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
  margin-top: -9px;
}
#seekBar::-moz-range-thumb {
  width: 48px;
  height: 48px;
  border: none;
  background: url("/system/skull_seek.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
}

#volume::-moz-range-thumb {
  width: 48px;
  height: 48px;
  border: none;
  background: url("/system/skull_volume.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
}

#sendBtn {
  background-color: #6a0dad;
  border: none;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

#sendBtn:hover {
  background-color: #b266ff;
  color: #000;
  transform: scale(1.05);
}

#uploadBtn {
  background-color: #6a0dad;
  border: none;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

#uploadBtn:hover {
  background-color: #b266ff;
  color: #000;
  transform: scale(1.05);
}

.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.spin {
  display: inline-block;
  animation: spin 2s linear infinite;
}

.spin-reverse {
  display: inline-block;
  animation: spin-reverse 2s linear infinite;
}

#current-song .scroll-text{
display:inline-block;
padding-left:100%;
animation: marquee 12s linear infinite;
animation-play-state: running;
}

#album-info {
  text-align: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
}

.accordion-item {
  border: 1px solid #6a0dad !important;
}

.accordion-button {
  border: 1px solid #6a0dad !important;
  background-color: #2a2a2a !important;
  color: #fff !important;
}

.accordion-button:hover {
  background-color: #6a0dad !important;
  color: #fff !important;
}

.accordion-button:not(.collapsed) {
  background-color: #6a0dad !important;
  border: 1px solid #6a0dad !important;
  color: #fff !important;
}

.accordion-button:focus {
  border-color: #6a0dad !important;
  box-shadow: none !important;
}

.navbar-toggler {
  border-color: #6a0dad ;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%236a0dad' stroke-width='4' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
/*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*//*VIDEO*/
.video-player-wrapper {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 80px auto 20px auto; /* var 20px → lägg till extra 20px på toppen */
}

/* wrapper runt video + overlays */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border: 3px solid #6a0dad;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;        /* så inget sticker ut */
  padding-bottom: 0;       /* ta bort det fasta gapet */
}
#video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border: none;
  margin: 0;
  pointer-events: auto;
}

#video-clickOverlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;   /* större om du vill */
  color: white;
  text-shadow: 0 0 10px black;
  pointer-events: none;
}

#video-seekBar {
  position: absolute;
  bottom: 45px;
  left: 0;
  width: 100%;
  z-index: 6; /* högre än .video-controls-bar */
  transition: opacity 0.5s ease;
}

/* Dölj kontroller när klassen hide-controls är aktiv */
.video-player-wrapper.hide-controls .video-controls-bar,
.video-player-wrapper.hide-controls #video-seekBar {
  opacity: 0;
  pointer-events: none; /* så de inte fångar klick */
  transition: opacity 0.5s ease;
}

/* kontrollpanel */
.video-controls-bar {
  position: absolute;
  bottom: 0;      /* exakt på videons nederkant */
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(0,0,0,0.5);
  z-index: 4;
}

.video-controls-left,
.video-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-controls-bar button {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

#video-time-display {
  font-size: 0.8rem;
  color: #fff;
}

/* volymreglage */
#video-volume {
  width: 100px;
}

#video-volume::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  background: url("/system/skull_volume.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
}

#video-seekBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 48px;
  height: 48px;
  border: none;
  background: url("/system/skull_seek.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
  margin-top: -13px;
}


#video-seekBar::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  background: url("/system/skull_seek.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
}

/* === videons spellista === */
#video-playlist {
  width: 100%;
  max-width: 900px;
  margin: 20px auto 0 auto;
  padding: 10px;
  list-style: none;
  background: #2a2a2a;
  border-top: 2px solid #6a0dad;
  border-radius: 8px;
  overflow-y: auto;
  max-height: 500px;   /* <-- DENNA begränsar höjden */
}


#video-playlist li {
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 5px;
  background: #3a3a3a;
  transition: background-color 0.3s;
}

#video-playlist li:hover {
  background: #4a4a4a;
}

#video-playlist li.playing {
  background: #6a0dad;
  color: #1a1a1a;
}
#video-prevBtn,
#video-nextBtn,
#video-fullscreenBtn {
  width: 40px;   /* större knapp */
  height: 40px;
  font-size: 26px; /* om de använder ikoner/font */
}

#video-prevBtn img,
#video-nextBtn img,
#video-fullscreenBtn img {
  width: 32px;   /* själva ikonen större */
  height: 32px;
}

#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 48px;
  height: 48px;
  border: none;
  background: url("/system/skull_volume.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
  margin-top: -7px;
}
#video-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border: none;
  background: url("/system/skull_volume.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
  margin-top: -1px; /* centrerat på spåret */
}

#video-volumeIcon {
  position: relative;
  top: 2px;  /* prova 6–10px för lagom offset */
}

/* Firefox volym */
#video-volume::-moz-range-thumb {
  width: 48px;
  height: 48px;
  border: none;
  background: url("/system/skull_volume.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
}

/* Firefox seek */
#video-seekBar::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border: none;
  background: url("/system/skull_seek.png") no-repeat center;
  background-size: contain;
  cursor: pointer;
}

/*MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL**MOBIL*/
  
@media (max-width: 768px) {
  .volume-control {
    flex-direction: column;
    align-items: center;
    flex-basis: 100%;
    margin-top: 10px;
    margin-bottom: 0.2rem;
  }

  #video-prevBtn,
  #video-nextBtn,
  #video-time-display {
    display: none !important;
  }

  [data-bs-theme="dark"] .dropdown-menu {
    min-width: 100%;
    max-height: calc(100dvh - 90px);
  }

  .extra-controls {
    margin-top: 10px;
  }
}

  
.search-and-cover { text-align:center; }
.mobile-fallback { display:none; margin:20px 0; overflow:hidden; white-space:nowrap; }

@media (max-width:768px) {
  .search-and-cover,
  h1 {
    display:none;
  }
  .mobile-fallback {
    display:block;
    overflow:hidden;
    white-space:nowrap;
    text-align:center;
    margin:20px 0;
  }
}

.mobile-fallback img {
  max-width:70%;
  height:auto;
}

@media (max-width:768px) {
  .player-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px;
  }
}

  #seekBar {
    width: 100%;
    max-width: 500px;
  }

  #volume {
    width: 100%;
    max-width: 300px;
  }

  .player-controls {
    margin-top: 20px;
    margin-bottom: 10px;
  }

