﻿body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #f0f0f0;
}

/* Obal celé sekce */
.prehravac-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Video panel */
.video-panel {
  background-color: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* Tracklist */
.tracklist-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.controls {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.controls button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.controls button:hover {
  background-color: #555;
}

.tracklist-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.track {
  background-color: #1c1c1c;
  padding: 1rem 1.25rem; /* vyšší výška řádku */
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 1rem; /* větší písmo */
}

.track .row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.track .title {
  flex-grow: 1;
  text-align: left;
  font-weight: bold;
}

.track .duration {
  margin-left: auto;
  text-align: right;
  min-width: 3rem;
  font-size: 0.95rem;
  color: #aaa;
}

.track.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.play-icon {
  font-size: 1.5rem; /* větší ikona */
  width: 2.5rem;
  text-align: center;
}

.duration {
  font-size: 1rem;
  color: #aaa;
}

.text-toggle {
  font-size: 1.4rem; /* ikona 📝 větší */
  cursor: pointer;
}

.text-placeholder {
  display: inline-block;
  width: 2em;
  height: 1em;
  opacity: 0.3;
}

.track:hover {
  background-color: #2a2a2a;
}

.track.active {
  border: 2px solid #4caf50;
}

.track .left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.track .right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.play-icon.playing {
  color: #4caf50;
}

.title {
  font-weight: bold;
}

.lyrics {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ccc;
  white-space: pre-wrap;
}

.lyrics.visible {
  display: block;
}

.controls button.active {
  background-color: #4f46e5; /* Indigo */
  color: white;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}