/* ============================================================
   DÉHIMA MUSIC — Global Player Stylesheet
   ============================================================ */

/* ===== GLOBAL PLAYER BAR ===== */
.global-player {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  height: 88px;
  background: rgba(13,10,14,0.96);
  backdrop-filter: blur(24px) saturate(1.5);
  border-top: 1px solid rgba(201,168,76,0.25);
  display: flex; align-items: center;
  padding: 0 2rem; gap: 1.5rem;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
}

/* Left */
.gp-left {
  display: flex; align-items: center; gap: 14px;
  flex: 0 0 280px; min-width: 0;
}
.gp-thumb {
  width: 56px; height: 56px; border-radius: 10px; overflow: hidden;
  flex-shrink: 0; border: 1px solid rgba(201,168,76,0.3);
}
.gp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gp-info { flex: 1; min-width: 0; }
.gp-title {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.gp-artist {
  font-size: 12px; color: var(--text-m); margin-top: 2px; display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gp-artist:hover { color: var(--gold); }

.gp-like {
  background: none; border: none; font-size: 18px; color: var(--text-s);
  transition: all 0.2s; flex-shrink: 0;
}
.gp-like:hover, .gp-like.liked { color: #E87090; transform: scale(1.2); }

/* Center */
.gp-center {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}

.gp-controls {
  display: flex; align-items: center; gap: 8px;
}
.gpc-btn {
  background: none; border: none; color: var(--text-m);
  font-size: 18px; padding: 6px; border-radius: 50%;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.gpc-btn:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.gpc-btn.active { color: var(--gold); }

.gpc-play {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  color: var(--deep) !important; font-size: 20px;
}
.gpc-play:hover { transform: scale(1.08); box-shadow: 0 0 20px rgba(201,168,76,0.4); background: linear-gradient(135deg, var(--gold-l), var(--gold)) !important; }

.gp-progress-wrap {
  display: flex; align-items: center; gap: 10px; width: 100%;
}
.gp-time { font-size: 11px; color: var(--text-s); min-width: 32px; }
.gp-time:last-child { text-align: right; }

.gp-progress-bar {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.1);
  position: relative; cursor: pointer;
}
.gp-progress-bar:hover { height: 6px; }
.gp-progress-bar:hover .gp-progress-thumb { opacity: 1; }
.gp-progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  transition: width 0.3s linear;
}
.gp-progress-thumb {
  position: absolute; top: 50%; right: 0;
  transform: translate(50%, -50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-l); opacity: 0; transition: opacity 0.2s;
  pointer-events: none;
}

/* Right */
.gp-right {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 200px; justify-content: flex-end;
}
.gp-volume-wrap { display: flex; align-items: center; gap: 8px; }
.gp-volume {
  width: 80px; height: 4px; border-radius: 2px;
  -webkit-appearance: none; background: rgba(255,255,255,0.15);
  outline: none; cursor: pointer;
}
.gp-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); cursor: pointer;
}
.gp-volume::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--gold) var(--vol, 80%), rgba(255,255,255,0.15) var(--vol, 80%));
  height: 4px; border-radius: 2px;
}

/* Queue panel */
.queue-panel {
  position: fixed; right: 0; bottom: 88px; z-index: 790;
  width: 340px; max-height: 480px;
  background: rgba(19,14,21,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  display: none; flex-direction: column;
  box-shadow: -4px -4px 32px rgba(0,0,0,0.5);
}
.queue-panel.open { display: flex; }
.queue-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--border);
}
.queue-header h3 { font-family: 'Cinzel', serif; font-size: 14px; color: var(--gold); }
#closeQueue { background: none; border: none; color: var(--text-m); font-size: 16px; }
.queue-list { flex: 1; overflow-y: auto; padding: 0.5rem; }
.queue-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 10px; cursor: pointer;
  transition: background 0.2s;
}
.queue-item:hover { background: rgba(255,255,255,0.05); }
.queue-item.active { background: rgba(201,168,76,0.1); }
.queue-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.queue-info { flex: 1; min-width: 0; }
.queue-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-artist { font-size: 11px; color: var(--text-m); }
.queue-remove { background: none; border: none; color: var(--text-s); font-size: 16px; padding: 2px 6px; }
.queue-remove:hover { color: #E87090; }

/* Responsive player */
@media (max-width: 780px) {
  .gp-left { flex: 0 0 auto; }
  .gp-right { display: none; }
}
@media (max-width: 560px) {
  .global-player { padding: 0 1rem; gap: 1rem; }
  .gp-left { flex: 0 0 120px; }
  .gp-controls { gap: 4px; }
}
