/* ============================================================
   MUSIC PLAYER — kivonva a cv-plain.css-ből
   ============================================================ */

/* --- Container --- */
#music-player {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

/* Music toggle button - the small note */
#music-toggle {
  background: #ffffff;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  -webkit-user-select: none;
  user-select: none;
  z-index: 2;
  line-height: 1;
}

#music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

#music-toggle.active {
  background: #ff7024;
  color: #fff;
  border-color: #ff7024;
}

#music-toggle.playing {
  background: #60f820 !important;
  color: #fff !important;
  border-color: #008f00 !important;
}

/* --- Player box --- */
.music-box-hidden {
  display: none !important;
}

#music-player-box {
  --accent: #ff7024;
  --accent-glow: rgba(255, 112, 36, 0.4);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 16px;
  width: 280px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  animation: music-box-in 0.25s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}

/* Close button inside music box */
.music-box-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #888;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition:
    background 0.15s,
    color 0.15s;
  line-height: 1;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
}

.music-box-close-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #333;
}

/* Hide the small music toggle when the box is open */
#music-player:has(#music-player-box:not(.music-box-hidden)) #music-toggle {
  display: none;
}

@keyframes music-box-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Content layout --- */
.music-player-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Cover image */
.music-cover {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f0f0f0;
}

.music-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.cover-light {
  display: none;
}
[data-theme='light'] .cover-dark {
  display: none;
}
[data-theme='light'] .cover-light {
  display: block;
}

/* Controls wrapper (portrait: normal flow, landscape: flex row) */
.controls-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Track time seek row --- */
.track-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-time-label {
  font-family: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #666;
  min-width: 36px;
  text-align: center;
  letter-spacing: 0.3px;
  user-select: none;
}

.track-seek-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--accent, #ff7024) var(--seek-pct, 0%),
    rgba(0, 0, 0, 0.12) var(--seek-pct, 0%)
  );
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.track-seek-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  border-radius: 3px;
}

.track-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent, #ff7024);
  box-shadow: 0 0 10px var(--accent-glow, rgba(255, 112, 36, 0.4));
  cursor: pointer;
  margin-top: -5.5px;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.track-seek-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px var(--accent-glow, rgba(255, 112, 36, 0.6));
}

.track-seek-slider::-moz-range-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.12);
}

.track-seek-slider::-moz-range-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--accent, #ff7024);
}

.track-seek-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--accent, #ff7024);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--accent-glow, rgba(255, 112, 36, 0.4));
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.track-seek-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px var(--accent-glow, rgba(255, 112, 36, 0.6));
}

/* --- Custom Select inside the box --- */
#music-player-box .custom-select {
  position: relative;
  font-size: 12px;
  color: #333;
  width: 100%;
}

#music-player-box .custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.15s;
}

#music-player-box .custom-select-trigger:hover {
  background: rgba(0, 0, 0, 0.08);
}

#music-player-box .custom-select.open .custom-select-options {
  display: block;
}

#music-player-box .custom-select-options {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  margin-bottom: 4px;
  z-index: 10000;
}

#music-player-box .custom-option {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}

#music-player-box .custom-option:hover {
  background: #f0f0f0;
}

/* --- Transport buttons --- */
.transport-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.transport-btn {
  width: 38px;
  height: 38px;
  font-size: 15px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  -webkit-user-select: none;
  user-select: none;
  color: #444;
  position: relative;
  overflow: hidden;
}

.transport-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 112, 36, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
}

.transport-btn:hover {
  background: rgba(255, 112, 36, 0.12);
  box-shadow: 0 0 12px rgba(255, 112, 36, 0.15);
}

.transport-btn:hover::after {
  opacity: 1;
}

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

#music-playpause {
  width: 44px;
  height: 44px;
  font-size: 18px;
  background: linear-gradient(135deg, #ff7024, #e55a00);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255, 112, 36, 0.35);
}

#music-playpause:hover {
  background: linear-gradient(135deg, #ff8544, #e5621a);
  box-shadow: 0 4px 20px rgba(255, 112, 36, 0.5);
  transform: scale(1.05);
}

#music-playpause:active {
  transform: scale(0.92);
}

#music-repeat {
  font-size: 14px;
}

#music-repeat.active {
  color: #ff7024;
  background: rgba(255, 112, 36, 0.12);
  box-shadow: 0 0 8px rgba(255, 112, 36, 0.2);
}

#music-repeat.repeat-one {
  position: relative;
}

#music-repeat.repeat-one::after {
  content: '1';
  position: absolute;
  top: 2px;
  right: 3px;
  font-size: 8px;
  font-weight: 700;
  color: #ff7024;
  font-family: sans-serif;
}

#music-spotify {
  color: #1DB954;
}

#music-spotify:hover {
  background: rgba(29, 185, 84, 0.15);
  box-shadow: 0 0 12px rgba(29, 185, 84, 0.25);
  color: #1ed760;
}

#music-lyrics.active {
  color: #ff7024;
  background: rgba(255, 112, 36, 0.12);
  box-shadow: 0 0 8px rgba(255, 112, 36, 0.2);
}

/* --- Volume slider row (at bottom) --- */
.volume-bottom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
}

.volume-label {
  font-size: 15px;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
  color: #666;
  transition: color 0.15s;
  width: 20px;
  text-align: center;
}

.volume-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--accent, #ff7024) var(--volume-pct, 50%),
    rgba(0, 0, 0, 0.12) var(--volume-pct, 50%)
  );
  outline: none;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s ease;
}

.volume-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  border-radius: 3px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent, #ff7024);
  box-shadow: 0 0 10px var(--accent-glow, rgba(255, 112, 36, 0.4));
  cursor: pointer;
  margin-top: -5.5px;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px var(--accent-glow, rgba(255, 112, 36, 0.6));
}

.volume-slider::-moz-range-track {
  width: 100%;
  height: 5px;
  cursor: pointer;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.12);
}

.volume-slider::-moz-range-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--accent, #ff7024);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--accent, #ff7024);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--accent-glow, rgba(255, 112, 36, 0.4));
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px var(--accent-glow, rgba(255, 112, 36, 0.6));
}

/* --- Inline Lyrics panel inside the player box --- */
.music-lyrics-hidden {
  display: none !important;
}

#music-lyrics-panel {
  max-height: 180px;
  overflow-y: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  animation: lyrics-slide-in 0.2s ease;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 112, 36, 0.5) transparent;
}

#music-lyrics-panel::-webkit-scrollbar {
  width: 5px;
}

#music-lyrics-panel::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

#music-lyrics-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 112, 36, 0.5);
  border-radius: 3px;
  transition: background 0.2s ease;
}

#music-lyrics-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 112, 36, 0.8);
}

/* Custom scrollbar for the track selector dropdown too */
#music-player-box .custom-select-options {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 112, 36, 0.5) transparent;
}

#music-player-box .custom-select-options::-webkit-scrollbar {
  width: 5px;
}

#music-player-box .custom-select-options::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

#music-player-box .custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 112, 36, 0.5);
  border-radius: 3px;
  transition: background 0.2s ease;
}

#music-player-box .custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 112, 36, 0.8);
}

#music-lyrics-panel pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #555;
}

@keyframes lyrics-slide-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Theme overrides for inline lyrics */
[data-theme='dark'] #music-lyrics-panel,
[data-theme='superdark'] #music-lyrics-panel {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  scrollbar-color: rgba(255, 112, 36, 0.5) transparent;
}

[data-theme='dark'] #music-lyrics-panel::-webkit-scrollbar-thumb,
[data-theme='superdark'] #music-lyrics-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 112, 36, 0.5);
}

[data-theme='dark'] #music-lyrics-panel::-webkit-scrollbar-thumb:hover,
[data-theme='superdark'] #music-lyrics-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 112, 36, 0.8);
}

[data-theme='dark'] #music-player-box .custom-select-options,
[data-theme='superdark'] #music-player-box .custom-select-options {
  scrollbar-color: rgba(255, 112, 36, 0.5) transparent;
}

[data-theme='dark'] #music-player-box .custom-select-options::-webkit-scrollbar-thumb,
[data-theme='superdark'] #music-player-box .custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 112, 36, 0.5);
}

[data-theme='dark'] #music-player-box .custom-select-options::-webkit-scrollbar-thumb:hover,
[data-theme='superdark'] #music-player-box .custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 112, 36, 0.8);
}

[data-theme='dark'] #music-lyrics-panel pre,
[data-theme='superdark'] #music-lyrics-panel pre {
  color: #ccc;
}

[data-theme='nightvision'] #music-lyrics-panel {
  background: rgba(0, 255, 0, 0.04);
  border-color: rgba(0, 255, 0, 0.2);
  scrollbar-color: rgba(0, 255, 0, 0.5) transparent;
}

[data-theme='nightvision'] #music-lyrics-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 0, 0.5);
}

[data-theme='nightvision'] #music-lyrics-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 0, 0.8);
}

[data-theme='nightvision'] #music-player-box .custom-select-options {
  scrollbar-color: rgba(0, 255, 0, 0.5) transparent;
}

[data-theme='nightvision'] #music-player-box .custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 0, 0.5);
}

[data-theme='nightvision'] #music-player-box .custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 0, 0.8);
}

[data-theme='nightvision'] #music-lyrics-panel pre {
  color: #80ff80;
}

[data-theme='predator'] #music-lyrics-panel {
  background: rgba(255, 51, 0, 0.04);
  border-color: rgba(255, 51, 0, 0.15);
}

/* ============================================================
   DARK / SUPERDARK theme overrides
   ============================================================ */

[data-theme='dark'] #music-player-box,
[data-theme='superdark'] #music-player-box {
  background: rgba(30, 30, 46, 0.96);
  border-color: #444;
}

[data-theme='dark'] .music-box-close-btn,
[data-theme='superdark'] .music-box-close-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #aaa;
}

[data-theme='dark'] .music-box-close-btn:hover,
[data-theme='superdark'] .music-box-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

[data-theme='dark'] #music-player-box .custom-select,
[data-theme='superdark'] #music-player-box .custom-select {
  color: #e0e0e0;
}

[data-theme='dark'] #music-player-box .custom-select-trigger,
[data-theme='superdark'] #music-player-box .custom-select-trigger {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] #music-player-box .custom-select-trigger:hover,
[data-theme='superdark'] #music-player-box .custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme='dark'] #music-player-box .custom-select-options,
[data-theme='superdark'] #music-player-box .custom-select-options {
  background: #1e1e2e;
  border-color: #444;
}

[data-theme='dark'] #music-player-box .custom-option:hover,
[data-theme='superdark'] #music-player-box .custom-option:hover {
  background: #2a2a3e;
}

[data-theme='dark'] .track-time-label,
[data-theme='superdark'] .track-time-label {
  color: #aaa;
}

[data-theme='dark'] .track-seek-slider,
[data-theme='superdark'] .track-seek-slider {
  background: linear-gradient(
    to right,
    var(--accent, #ff7024) var(--seek-pct, 0%),
    rgba(255, 255, 255, 0.15) var(--seek-pct, 0%)
  );
}

[data-theme='dark'] .track-seek-slider::-moz-range-track,
[data-theme='superdark'] .track-seek-slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme='dark'] .transport-btn,
[data-theme='superdark'] .transport-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
}

[data-theme='dark'] .transport-btn:hover,
[data-theme='superdark'] .transport-btn:hover {
  background: rgba(255, 112, 36, 0.2);
}

[data-theme='dark'] #music-spotify,
[data-theme='superdark'] #music-spotify {
  color: #1DB954;
}

[data-theme='dark'] #music-spotify:hover,
[data-theme='superdark'] #music-spotify:hover {
  background: rgba(29, 185, 84, 0.2);
  box-shadow: 0 0 12px rgba(29, 185, 84, 0.3);
  color: #1ed760;
}

[data-theme='dark'] #music-lyrics.active,
[data-theme='superdark'] #music-lyrics.active {
  color: #ff7024;
  background: rgba(255, 112, 36, 0.2);
}

[data-theme='dark'] .volume-slider,
[data-theme='superdark'] .volume-slider {
  background: linear-gradient(
    to right,
    var(--accent, #ff7024) var(--volume-pct, 50%),
    rgba(255, 255, 255, 0.15) var(--volume-pct, 50%)
  );
}

[data-theme='dark'] .volume-slider::-moz-range-track,
[data-theme='superdark'] .volume-slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme='dark'] #music-toggle,
[data-theme='superdark'] #music-toggle {
  border-color: #555;
  background: #2a2a3e;
  color: #fff;
}

[data-theme='dark'] #music-toggle.active,
[data-theme='superdark'] #music-toggle.active {
  background: #ff7024;
  border-color: #ff7024;
}

/* ============================================================
   NIGHT VISION theme overrides
   ============================================================ */

[data-theme='nightvision'] #music-player-box {
  background: rgba(5, 16, 5, 0.95);
  border-color: #00ff00;
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.3);
}

[data-theme='nightvision'] .music-box-close-btn {
  background: rgba(0, 255, 0, 0.08);
  color: #80ff80;
}

[data-theme='nightvision'] .music-box-close-btn:hover {
  background: rgba(0, 255, 0, 0.18);
  color: #00ff00;
}

[data-theme='nightvision'] #music-player-box .custom-select {
  color: #80ff80;
}

[data-theme='nightvision'] #music-player-box .custom-select-trigger {
  background: rgba(0, 255, 0, 0.04);
  border-color: rgba(0, 255, 0, 0.2);
}

[data-theme='nightvision'] #music-player-box .custom-select-trigger:hover {
  background: rgba(0, 255, 0, 0.1);
}

[data-theme='nightvision'] #music-player-box .custom-select-options {
  background: #051005;
  border-color: #00ff00;
}

[data-theme='nightvision'] #music-player-box .custom-option:hover {
  background: #0a200a;
}

[data-theme='nightvision'] .track-time-label {
  color: #80ff80;
}

[data-theme='nightvision'] .track-seek-slider {
  background: linear-gradient(
    to right,
    #00ff00 var(--seek-pct, 0%),
    rgba(0, 255, 0, 0.15) var(--seek-pct, 0%)
  );
}

[data-theme='nightvision'] .track-seek-slider::-moz-range-track {
  background: rgba(0, 255, 0, 0.15);
}

[data-theme='nightvision'] .track-seek-slider::-webkit-slider-thumb {
  background: #fff;
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

[data-theme='nightvision'] .track-seek-slider::-moz-range-thumb {
  background: #fff;
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

[data-theme='nightvision'] .track-seek-slider::-moz-range-progress {
  background: #00ff00;
}

[data-theme='nightvision'] .transport-btn {
  background: rgba(0, 255, 0, 0.08);
  color: #80ff80;
}

[data-theme='nightvision'] .transport-btn::after {
  background: radial-gradient(circle at center, rgba(0, 255, 0, 0.15), transparent 70%);
}

[data-theme='nightvision'] .transport-btn:hover {
  background: rgba(0, 255, 0, 0.12);
  box-shadow: 0 0 12px rgba(0, 255, 0, 0.15);
}

[data-theme='nightvision'] #music-playpause {
  background: linear-gradient(135deg, #00aa00, #006600);
  color: #00ff00;
  box-shadow: 0 2px 12px rgba(0, 255, 0, 0.3);
}

[data-theme='nightvision'] #music-playpause:hover {
  background: linear-gradient(135deg, #00cc00, #008800);
  box-shadow: 0 4px 20px rgba(0, 255, 0, 0.5);
}

[data-theme='nightvision'] #music-spotify {
  color: #1DB954;
}

[data-theme='nightvision'] #music-spotify:hover {
  background: rgba(29, 185, 84, 0.2);
  box-shadow: 0 0 12px rgba(29, 185, 84, 0.3);
  color: #1ed760;
}

[data-theme='nightvision'] #music-repeat.active,
[data-theme='nightvision'] #music-lyrics.active {
  color: #00ff00;
  background: rgba(0, 255, 0, 0.15);
}

[data-theme='nightvision'] #music-repeat.repeat-one::after {
  color: #00ff00;
}

[data-theme='nightvision'] .volume-slider {
  background: linear-gradient(
    to right,
    #00ff00 var(--volume-pct, 50%),
    rgba(0, 255, 0, 0.15) var(--volume-pct, 50%)
  );
}

[data-theme='nightvision'] .volume-slider::-moz-range-track {
  background: rgba(0, 255, 0, 0.15);
}

[data-theme='nightvision'] .volume-slider::-webkit-slider-thumb {
  background: #fff;
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

[data-theme='nightvision'] .volume-slider::-moz-range-thumb {
  background: #fff;
  border-color: #00ff00;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

[data-theme='nightvision'] .volume-slider::-moz-range-progress {
  background: #00ff00;
}

[data-theme='nightvision'] #music-toggle {
  background: #051005;
  border-color: #00ff00;
  color: #00ff00;
}

[data-theme='nightvision'] #music-toggle.active {
  background: #008800;
  border-color: #00ff00;
}

/* ============================================================
   PREDATOR theme overrides
   ============================================================ */

[data-theme='predator'] #music-player-box {
  background: rgba(0, 0, 0, 0.92);
  border-color: #333;
}

[data-theme='predator'] .music-box-close-btn {
  background: rgba(255, 51, 0, 0.08);
  color: #ff3300;
}

[data-theme='predator'] .music-box-close-btn:hover {
  background: rgba(255, 51, 0, 0.18);
  color: #ff7733;
}

[data-theme='predator'] #music-player-box .custom-select {
  color: #888;
}

[data-theme='predator'] #music-player-box .custom-select-trigger {
  background: rgba(255, 255, 255, 0.03);
  border-color: #333;
}

[data-theme='predator'] #music-player-box .custom-select-trigger:hover {
  background: rgba(255, 51, 0, 0.1);
}

[data-theme='predator'] #music-player-box .custom-select-options {
  background: #050505;
  border-color: #333;
}

[data-theme='predator'] #music-player-box .custom-option:hover {
  background: #111;
}

[data-theme='predator'] .track-time-label {
  color: #888;
}

[data-theme='predator'] .track-seek-slider {
  background: linear-gradient(
    to right,
    #ff3300 var(--seek-pct, 0%),
    rgba(255, 255, 255, 0.1) var(--seek-pct, 0%)
  );
}

[data-theme='predator'] .track-seek-slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme='predator'] .track-seek-slider::-webkit-slider-thumb {
  background: #fff;
  border-color: #ff3300;
  box-shadow: 0 0 10px rgba(255, 51, 0, 0.4);
}

[data-theme='predator'] .track-seek-slider::-moz-range-thumb {
  background: #fff;
  border-color: #ff3300;
  box-shadow: 0 0 10px rgba(255, 51, 0, 0.4);
}

[data-theme='predator'] .track-seek-slider::-moz-range-progress {
  background: #ff3300;
}

[data-theme='predator'] .transport-btn {
  background: rgba(255, 255, 255, 0.03);
  color: #888;
}

[data-theme='predator'] .transport-btn::after {
  background: radial-gradient(circle at center, rgba(255, 51, 0, 0.15), transparent 70%);
}

[data-theme='predator'] .transport-btn:hover {
  background: rgba(255, 51, 0, 0.1);
  box-shadow: 0 0 12px rgba(255, 51, 0, 0.15);
}

[data-theme='predator'] #music-playpause {
  background: linear-gradient(135deg, rgba(255, 51, 0, 0.15), rgba(255, 51, 0, 0.05));
  border: 1px solid #ff3300;
  color: #ff3300;
  box-shadow: 0 2px 12px rgba(255, 51, 0, 0.2);
}

[data-theme='predator'] #music-playpause:hover {
  background: linear-gradient(135deg, rgba(255, 51, 0, 0.25), rgba(255, 51, 0, 0.1));
  box-shadow: 0 4px 20px rgba(255, 51, 0, 0.4);
}

[data-theme='predator'] #music-spotify {
  color: #1DB954;
}

[data-theme='predator'] #music-spotify:hover {
  background: rgba(29, 185, 84, 0.15);
  color: #1ed760;
}

[data-theme='predator'] #music-repeat.active,
[data-theme='predator'] #music-lyrics.active {
  color: #ff3300;
  background: rgba(255, 51, 0, 0.15);
}

[data-theme='predator'] #music-repeat.repeat-one::after {
  color: #ff3300;
}

[data-theme='predator'] .volume-slider {
  background: linear-gradient(
    to right,
    #ff3300 var(--volume-pct, 50%),
    rgba(255, 255, 255, 0.1) var(--volume-pct, 50%)
  );
}

[data-theme='predator'] .volume-slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme='predator'] .volume-slider::-webkit-slider-thumb {
  background: #fff;
  border-color: #ff3300;
  box-shadow: 0 0 10px rgba(255, 51, 0, 0.4);
}

[data-theme='predator'] .volume-slider::-moz-range-thumb {
  background: #fff;
  border-color: #ff3300;
  box-shadow: 0 0 10px rgba(255, 51, 0, 0.4);
}

[data-theme='predator'] .volume-slider::-moz-range-progress {
  background: #ff3300;
}

[data-theme='predator'] #music-toggle {
  background: #050505;
  border-color: #444;
  color: #888;
}

[data-theme='predator'] #music-toggle.active {
  background: #111;
  border-color: #ff3300;
  color: #ff3300;
}

[data-theme='predator'] #music-lyrics-panel {
  scrollbar-color: rgba(255, 51, 0, 0.5) transparent;
}

[data-theme='predator'] #music-lyrics-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 51, 0, 0.5);
}

[data-theme='predator'] #music-lyrics-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 51, 0, 0.8);
}

[data-theme='predator'] #music-player-box .custom-select-options {
  scrollbar-color: rgba(255, 51, 0, 0.5) transparent;
}

[data-theme='predator'] #music-player-box .custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 51, 0, 0.5);
}

[data-theme='predator'] #music-player-box .custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 51, 0, 0.8);
}

[data-theme='predator'] #music-lyrics-panel pre {
  color: #ff7733;
}

/* ============================================================
   MOBIL NÉZET — LANDSCAPE (fektetett)
   A borítókép balra, a többi vezérlő jobbra oszlopban
   ============================================================ */
@media screen and (max-width: 900px) and (orientation: landscape) {
  #music-player-box {
    width: auto;
    max-width: 90vw;
    max-height: 300px;
    overflow: hidden;
    left: 0;
    padding: 12px;
  }

  .music-player-content {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    height: calc(300px - 24px);
    overflow: hidden;
  }

  .music-cover {
    width: 220px;
    height: 100%;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: unset;
  }

  .music-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .controls-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
  }

  .transport-buttons {
    gap: 4px;
  }

  .transport-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  #music-playpause {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .music-box-close-btn {
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
}
