:root {
  --bg-color: #121212;
  --card-color: #1e1e1e;
  --accent: #00bcd4;
  --text-color: #f0f0f0;
  --muted-color: #888;
}

body {
    /*font-family: 'Segoe UI', sans-serif;
  padding: 20px;
  background: var(--bg-color);
  color: var(--text-color);*/
}

.audio-player {


  border: 1px solid #2a2a2a;
  
  padding: 16px;

  width: 320px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  
  transform: translateY(100%);
    transition: transform 0.4s ease;
}

.audio-player.visible {
    transform: translateY(0);
    
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.controls button {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  background: var(--accent);
  border: none;
  color: #000;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s;
}

.controls button:hover {
  background: #00acc1;
}

.seekbar-container {
  position: relative;
  height: 8px;
  background: #2e2e2e;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
}

.seekbar-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s linear;
}

.track-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.track-list li {
  padding: 6px 0;
  border-bottom: 1px solid #333;
  color: var(--muted-color);
  cursor: pointer;
  transition: color 0.2s;
}

.track-list li:hover {
  color: var(--text-color);
}

.track-list li.active {
  font-weight: bold;
  color: var(--accent);
}

audio {
  display: none;
}

.player-ui {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  color: #eee;
  font-family: sans-serif;
}

.band-thumbnail {
    /*max-width: 70px;*/
}

.track-title {
    min-width: fit-content;
  font-weight: bold;
  font-size: 1rem;
  white-space: nowrap;        /* Prevent wrapping */
  overflow: hidden;           /* Hide overflow text */
  text-overflow: ellipsis;    /* Add ... if text is too long */
  display: block;             /* Ensures it behaves like a block or inline-block */
  min-width: 0;
  max-width: 100%;            /* Keeps it from overflowing its container */
  color: #fff;
}

.track-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  gap: 1rem;
}

.seek-bar {
  width: 100%;
  accent-color: #ff6600;
}

.play-btn,
.next-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white; /* eller den farve du ønsker */
    width: 40px;
    height: 40px;
}

button svg {
    width: 24px;
    height: 24px;
}

.btn-container {
    /*width: 100%;*/
    justify-content: center;
    display: flex;
}

.play-btn:hover,
.next-btn:hover {
  background: #222;
}


    .time-labels {
      display: inline-flex;       /* keep the text inline but allow flex layout */
      gap: 0.5rem;                /* small gap if you split labels */
      white-space: nowrap;        /* prevent wrapping */
      font-family: monospace;    /* optional, for better time alignment */
      font-size: 0.9rem;
      color: #eee;
    }


.band-name {
    white-space: nowrap;
}


.track-dots {
  display: flex;
  /*justify-content: center;*/
  gap: 8px;
  margin: 0.7rem 0;
  /*margin-left: 19px;*/
}

.track-dots .dot {
  width: 10px;
  height: 10px;
  background-color: #666;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.3s;
}

.track-dots .dot:hover {
  transform: scale(1.2);
  background-color: #888;
}

.track-dots .dot.active {
  background-color: var(--accent);
  transform: scale(1.3);
}

.wrapper-time-and-duration {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 4px;
  padding: 0 8px;
  color: #999;

}

.wrapper-time-and-progress {
    /*width: 70%;
    max-width: 400px;*/
    /*margin-top: 20px;*/
}

.wrapper-name-and-title {
    
    width: 100%;
    margin-left: 20px;
    min-width: 0;
}

.time-label {
  text-align: left;
}

.duration-label {
  text-align: right;
}

.wrapper-thumb-and-text {
    display: flex;
}

.band-thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 5px;
}

.wrapper-dots-and-buttons {
    display: flex;
    gap: 30px;
}


