﻿/* ==========================================================================
   FULLSCREEN EMERALD BIO-NEURAL LUXURY PLAYER OVERLAY
   Phong cách Cực Quang Huyền Ảo - Bố Cục 2 Cột Desktop & 3 Tab Mobi Siêu Sang Trọng
   ========================================================================== */

:root {
  --ai-emerald: #00ff88;
  --ai-emerald-glow: rgba(0, 255, 136, 0.6);
  --ai-emerald-deep: #059669;
  --ai-mint: #34d399;
  --ai-cyan: #06b6d4;
  --ai-cyan-glow: rgba(6, 182, 212, 0.4);
  --ai-bg-base: #020604;
  --ai-glass-border: rgba(0, 255, 136, 0.22);
  --ai-glass-border-light: rgba(255, 255, 255, 0.1);
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-lyrics: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* OVERLAY TRÌNH PHÁT FULLSCREEN (CHUẨN 100% THEO DEMO_LAYOUT.HTML - SIÊU MƯỢT 60FPS) */
.fullscreen-player-overlay,
.ai-fullscreen-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background-color: var(--ai-bg-base) !important;
  color: #ffffff !important;
  user-select: none !important;
  -webkit-font-smoothing: antialiased !important;
  will-change: transform, opacity !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  /* Trạng thái mở mặc định: Bung to hoàn toàn, hiển thị êm ái */
  opacity: 1 !important;
  transform: scale(1) translateY(0) translateZ(0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s !important;
}

/* Trạng thái THU NHỎ (Collapsed) chuẩn Demo:
   - Thu nhỏ nhẹ 0.96 và trôi xuống 30px, fade out cực êm
   - pointer-events: none NGAY LẬP TỨC để chạm/cuộn web mobi bên dưới hoàn toàn tự do
   - visibility: hidden chỉ được kích hoạt SAU 0.4s (visibility 0s linear 0.4s) khi animation đã kết thúc 100%
   => Triệt tiêu hoàn toàn lỗi 'tắt cái rụp', giữ trọn cảm giác nhẹ nhàng bay bổng như file demo */
.fullscreen-player-overlay.collapsed,
.ai-fullscreen-overlay.collapsed {
  opacity: 0 !important;
  transform: scale(0.96) translateY(30px) translateZ(0) !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s !important;
}

/* Trạng thái BUNG MỞ (Active) chuẩn Demo:
   - Bung mở ngay lập tức visibility: visible (0s delay)
   - Tăng tốc GPU mượt mà 60fps từ scale(0.96) translateY(30px) -> scale(1) translateY(0) */
.fullscreen-player-overlay.active,
.ai-fullscreen-overlay.active {
  opacity: 1 !important;
  transform: scale(1) translateY(0) translateZ(0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s !important;
}

.fullscreen-player-overlay *,
.fullscreen-player-overlay *::before,
.fullscreen-player-overlay *::after {
  box-sizing: border-box;
}

/* SCENIC BACKGROUND & EMERALD FLUID MESH (TỐI ƯU 0% GPU / KHÔNG BLUR NẶNG) */
.fullscreen-player-overlay .ai-backdrop-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, #082118 0%, #030b08 60%, #010403 100%);
  contain: strict;
}

.fullscreen-player-overlay .ai-scenic-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  opacity: 0.35;
  transform: translateZ(0);
}

.fullscreen-player-overlay .ai-ambient-glow-layer {
  display: none !important;
}

.fullscreen-player-overlay #aiNeuralCanvas {
  display: none !important;
}

.fullscreen-player-overlay .ai-aurora-glow-sweep {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 255, 136, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.10) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(5, 150, 105, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.fullscreen-player-overlay .ai-vignette-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(1, 4, 3, 0.72) 75%, rgba(1, 3, 2, 0.98) 100%);
  pointer-events: none;
}

/* MAIN CONTAINER WRAPPER */
.fullscreen-player-overlay .ai-player-inner-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* HÀNG 1: TOP BAR */
.fullscreen-player-overlay .ai-top-bar-row1 {
  position: relative;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px clamp(16px, 3.5vw, 40px) 10px;
  flex-shrink: 0;
}

.fullscreen-player-overlay .ai-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fullscreen-player-overlay .ai-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fullscreen-player-overlay .ai-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ai-emerald), var(--ai-cyan));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #000000;
  box-shadow: 0 0 16px var(--ai-emerald-glow);
}

.fullscreen-player-overlay .ai-hifi-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--ai-emerald);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.15);
}

.fullscreen-player-overlay .ai-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ai-emerald);
  box-shadow: 0 0 8px var(--ai-emerald);
  animation: emeraldPulse 1.8s infinite;
}

@keyframes emeraldPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--ai-emerald); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.fullscreen-player-overlay .ai-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fullscreen-player-overlay .ai-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ai-glass-border-light);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-player-overlay .ai-top-btn:hover {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--ai-emerald);
  color: var(--ai-emerald);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--ai-emerald-glow);
}

.fullscreen-player-overlay .ai-top-btn.liked {
  color: #ff3366 !important;
  border-color: rgba(255, 51, 102, 0.4);
  box-shadow: 0 0 15px rgba(255, 51, 102, 0.4);
}

.fullscreen-player-overlay .ai-btn-collapse {
  width: auto;
  padding: 0 16px;
  border-radius: 999px;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  border-color: var(--ai-glass-border);
  background: rgba(0, 255, 136, 0.08);
  color: #ffffff;
}

/* HÀNG 2: THANH CHUYỂN TAB TRÊN MOBI */
.fullscreen-player-overlay .ai-tab-row2-center {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 4px 16px 8px;
  z-index: 14;
  flex-shrink: 0;
}

.fullscreen-player-overlay .ai-segmented-tab-capsule {
  display: inline-flex;
  align-items: center;
  background: #06150f;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid var(--ai-glass-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(0, 255, 136, 0.15);
}

.fullscreen-player-overlay .ai-segment-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-player-overlay .ai-segment-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.fullscreen-player-overlay .ai-segment-btn.active {
  color: #000000;
  background: var(--ai-emerald);
  font-weight: 700;
  box-shadow: 0 0 18px var(--ai-emerald-glow);
}

/* KHUNG TAB NẰM TRÊN THẺ NỘI DUNG (TRÊN PC) */
.fullscreen-player-overlay .ai-desktop-tab-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  background: #06150f;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 4px 5px;
  border-radius: 999px;
  border: 1px solid var(--ai-glass-border);
  width: fit-content;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(0, 255, 136, 0.15);
}

.fullscreen-player-overlay .ai-desktop-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-player-overlay .ai-desktop-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.fullscreen-player-overlay .ai-desktop-tab-btn.active {
  color: #000000;
  background: var(--ai-emerald);
  font-weight: 700;
  box-shadow: 0 0 18px var(--ai-emerald-glow);
}

/* KHÔNG GIAN NỘI DUNG CHÍNH (STAGE BODY: 2 CỘT DESKTOP 1360PX) */
.fullscreen-player-overlay .ai-stage-body {
  position: relative;
  z-index: 10;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 50px);
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 40px);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* CỘT TRÁI: ĐĨA THAN SIÊU THỰC & SÓNG NƯỚC */
.fullscreen-player-overlay .ai-col-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.fullscreen-player-overlay .ai-vinyl-stage-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(340px, 38vh);
  height: min(340px, 38vh);
  margin-bottom: 14px;
}

/* Hào quang dưới chân đĩa (Bỏ animation vô tận 3 vòng để giải phóng 100% GPU) */
.fullscreen-player-overlay .ai-ripple-water-glow {
  position: absolute;
  inset: -15px;
  pointer-events: none;
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.18);
}

.fullscreen-player-overlay .ai-ripple-ring,
.fullscreen-player-overlay .ai-ripple-water-glow.is-playing .ring-1,
.fullscreen-player-overlay .ai-ripple-water-glow.is-playing .ring-2,
.fullscreen-player-overlay .ai-ripple-water-glow.is-playing .ring-3 {
  animation: none !important;
  display: none !important;
}

/* Visualizer sóng âm 2 cánh */
.fullscreen-player-overlay .ai-audio-wave-flank {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  pointer-events: none;
}

.fullscreen-player-overlay .ai-audio-wave-flank.wave-left {
  right: calc(100% + 12px);
  flex-direction: row-reverse;
}

.fullscreen-player-overlay .ai-audio-wave-flank.wave-right {
  left: calc(100% + 12px);
}

.fullscreen-player-overlay .ai-wave-bar {
  width: 3px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ai-emerald), var(--ai-cyan));
  box-shadow: 0 0 8px var(--ai-emerald-glow);
  transform: scaleY(0.18) translateZ(0);
  transform-origin: center;
  will-change: transform;
}

.fullscreen-player-overlay .ai-audio-wave-flank.is-playing .ai-wave-bar {
  animation: waveBarBounce 1.2s ease-in-out infinite alternate;
}
.fullscreen-player-overlay .ai-wave-bar.b1 { animation-delay: 0.1s !important; }
.fullscreen-player-overlay .ai-wave-bar.b2 { animation-delay: 0.35s !important; }
.fullscreen-player-overlay .ai-wave-bar.b3 { animation-delay: 0.2s !important; }
.fullscreen-player-overlay .ai-wave-bar.b4 { animation-delay: 0.5s !important; }
.fullscreen-player-overlay .ai-wave-bar.b5 { animation-delay: 0.15s !important; }
.fullscreen-player-overlay .ai-wave-bar.b6 { animation-delay: 0.4s !important; }
.fullscreen-player-overlay .ai-wave-bar.b7 { animation-delay: 0.25s !important; }
.fullscreen-player-overlay .ai-wave-bar.b8 { animation-delay: 0.45s !important; }

/* GPU composite-only scaleY animation (triệt tiêu reflow layout) */
@keyframes waveBarBounce {
  0% { transform: scaleY(0.18) translateZ(0); }
  50% { transform: scaleY(0.92) translateZ(0); }
  100% { transform: scaleY(0.35) translateZ(0); }
}

/* Đĩa Than Cơ Học Sang Trọng */
.fullscreen-player-overlay .ai-luxury-vinyl {
  position: relative;
  width: min(310px, 34vh);
  height: min(310px, 34vh);
  border-radius: 50%;
  background: #080c09;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 35px rgba(0, 255, 136, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fullscreen-player-overlay .ai-luxury-vinyl.is-playing {
  animation: vinyl33RpmSmooth 18s linear infinite;
}

@keyframes vinyl33RpmSmooth {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fullscreen-player-overlay .ai-vinyl-grooves {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    rgba(20, 30, 24, 0.9) 0px,
    rgba(12, 18, 14, 0.95) 2px,
    rgba(8, 12, 10, 0.98) 4px
  );
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.fullscreen-player-overlay .ai-vinyl-grooves::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.08) 60deg,
    transparent 120deg,
    rgba(0, 255, 136, 0.09) 180deg,
    transparent 240deg,
    rgba(255, 255, 255, 0.08) 300deg,
    transparent 360deg
  );
  mix-blend-mode: overlay;
}

.fullscreen-player-overlay .ai-vinyl-center-artwork {
  position: relative;
  z-index: 5;
  width: min(115px, 13vh);
  height: min(115px, 13vh);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #0a140f;
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-player-overlay .ai-vinyl-center-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullscreen-player-overlay .ai-vinyl-center-hole {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #030704;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 4px #000;
  z-index: 6;
}

.fullscreen-player-overlay .ai-track-info-hero {
  margin-top: 4px;
  max-width: 480px;
  width: 100%;
}

.fullscreen-player-overlay .ai-track-title {
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, sans-serif !important;
  font-size: clamp(21px, 2.5vw, 29px) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  min-height: 42px !important;
  padding: 4px 6px !important;
  color: #ffffff !important;
  margin-bottom: 6px !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -0.015em !important;
}

.fullscreen-player-overlay .ai-track-artist-row {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.fullscreen-player-overlay .ai-model-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ai-emerald);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
}

.fullscreen-player-overlay .ai-meta-divider {
  color: rgba(255, 255, 255, 0.3);
}

.fullscreen-player-overlay .ai-dots-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.fullscreen-player-overlay .ai-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.fullscreen-player-overlay .ai-dot.active {
  width: 16px;
  border-radius: 999px;
  background: var(--ai-emerald);
  box-shadow: 0 0 8px var(--ai-emerald);
}

/* CỘT PHẢI: KHUNG NỘI DUNG TƯƠNG TÁC (GLASS CARD) */
.fullscreen-player-overlay .ai-col-interactive {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: min(470px, 58vh);
  min-height: 0;
  min-width: 0;
}

.fullscreen-player-overlay .ai-glass-content-card {
  flex: 1;
  background: rgba(6, 18, 14, 0.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--ai-glass-border);
  border-radius: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

/* TAB 1: LỜI BÀI HÁT */
.fullscreen-player-overlay .ai-lyrics-pane {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 36px;
  display: none;
  flex-direction: column;
  gap: 20px;
  text-align: left;
  scroll-behavior: smooth;
  font-family: var(--font-lyrics);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.fullscreen-player-overlay .ai-lyrics-pane.active {
  display: flex;
}

.fullscreen-player-overlay .ai-lyrics-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.4);
}

.fullscreen-player-overlay .ai-lyric-row,
.fullscreen-player-overlay .fs-lrc-row {
  font-size: 19px;
  line-height: 1.6;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 4px 0;
  border-radius: 8px;
}

.fullscreen-player-overlay .ai-lyric-row:hover,
.fullscreen-player-overlay .fs-lrc-row:hover {
  color: rgba(255, 255, 255, 0.75);
  transform: translateX(4px);
}

.fullscreen-player-overlay .ai-lyric-row.active,
.fullscreen-player-overlay .fs-lrc-row.active {
  font-size: 25px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 20px var(--ai-emerald-glow), 0 0 40px rgba(0, 255, 136, 0.3);
  transform: scale(1.03) translateX(8px);
}

/* TAB 2: HÀNG ĐỢI PHÁT NHẠC */
.fullscreen-player-overlay .ai-queue-pane {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 24px;
  display: none;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.fullscreen-player-overlay .ai-queue-pane.active {
  display: flex;
}

.fullscreen-player-overlay .ai-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.fullscreen-player-overlay .ai-queue-header-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.fullscreen-player-overlay .ai-queue-badge-total {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ai-emerald);
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.fullscreen-player-overlay .ai-queue-items-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fullscreen-player-overlay .ai-queue-card,
.fullscreen-player-overlay .fs-queue-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fullscreen-player-overlay .ai-queue-card:hover,
.fullscreen-player-overlay .fs-queue-item:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.25);
  transform: translateX(4px);
}

.fullscreen-player-overlay .ai-queue-card.active,
.fullscreen-player-overlay .fs-queue-item.active {
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.fullscreen-player-overlay .ai-queue-thumb,
.fullscreen-player-overlay .fs-queue-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fullscreen-player-overlay .ai-queue-info {
  flex: 1;
  min-width: 0;
}

.fullscreen-player-overlay .ai-queue-name,
.fullscreen-player-overlay .fs-queue-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.fullscreen-player-overlay .ai-queue-sub,
.fullscreen-player-overlay .fs-queue-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fullscreen-player-overlay .ai-queue-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ai-emerald);
  background: rgba(0, 255, 136, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

.fullscreen-player-overlay .ai-queue-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* BẢNG ĐIỀU KHIỂN DƯỚI FULL-WIDTH SANG TRỌNG (LUMINOUS EMERALD DOCK - TỐI ƯU 0% GPU DROPS) */
.fullscreen-player-overlay .ai-fullwidth-console {
  position: relative;
  z-index: 20;
  width: 100%;
  background: linear-gradient(180deg, #091a13 0%, #030a07 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: 1px solid rgba(0, 255, 136, 0.35) !important;
  box-shadow: 
    0 -12px 30px rgba(0, 0, 0, 0.85),
    0 -1px 15px rgba(0, 255, 136, 0.2) !important;
  flex-shrink: 0;
  overflow: hidden;
}

/* Bố cục 3 cụm nội dung của bảng Console (Cân đối 3 cột hoàn hảo - 1360px - Chống lệch tuyệt đối) */
.fullscreen-player-overlay .ai-console-content-row {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 580px) 1fr;
  align-items: center;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 14px clamp(16px, 3.5vw, 40px);
  box-sizing: border-box;
}

/* Bên trái: Mini track info + FLAC badge */
.fullscreen-player-overlay .ai-console-left-meta {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 320px;
  width: auto;
  min-width: 0;
}

.fullscreen-player-overlay .ai-console-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--ai-glass-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.fullscreen-player-overlay .ai-console-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullscreen-player-overlay .ai-console-info {
  min-width: 0;
}

.fullscreen-player-overlay .ai-console-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.fullscreen-player-overlay .ai-console-artist {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fullscreen-player-overlay .ai-console-flac-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ai-emerald);
  background: rgba(0, 255, 136, 0.12);
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Ở giữa: 5 nút điều khiển phát nhạc & Thanh Timeline cân đối tuyệt đối */
.fullscreen-player-overlay .ai-console-center-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
}

.fullscreen-player-overlay .ai-playback-btn-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.fullscreen-player-overlay .ai-ctl-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.fullscreen-player-overlay .ai-ctl-btn:hover {
  color: var(--ai-emerald);
  background: rgba(0, 255, 136, 0.1);
  transform: scale(1.1);
}

.fullscreen-player-overlay .ai-ctl-btn.active {
  color: var(--ai-emerald);
  text-shadow: 0 0 12px var(--ai-emerald);
}

/* Master Play Orb 56px */
.fullscreen-player-overlay .ai-master-play-orb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ai-emerald), #059669);
  border: none;
  color: #000000;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px var(--ai-emerald-glow), 0 0 50px rgba(0, 255, 136, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-player-overlay .ai-master-play-orb:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px var(--ai-emerald-glow), 0 0 70px rgba(0, 255, 136, 0.5);
}

.fullscreen-player-overlay .ai-master-play-orb:active {
  transform: scale(0.96);
}

/* THANH TIMELINE ĐỒNG BỘ HIỆN ĐẠI (CANH GIỮA HOÀN HẢO - CHỐNG LỆCH & CHỐNG TRÀN VIỀN) */
.fullscreen-player-overlay .ai-timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  margin: 2px auto 0;
}

.fullscreen-player-overlay .ai-time-text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  min-width: 42px;
  user-select: none;
  letter-spacing: 0.02em;
}

.fullscreen-player-overlay .ai-time-text#fsCurrentTime {
  color: var(--ai-emerald);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
  text-align: left;
}

.fullscreen-player-overlay .ai-time-text.right,
.fullscreen-player-overlay .ai-time-text#fsTotalDuration {
  text-align: right;
}

.fullscreen-player-overlay .ai-seek-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: height 0.18s ease, background 0.18s ease;
}

.fullscreen-player-overlay .ai-seek-track:hover {
  height: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.fullscreen-player-overlay .ai-seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--ai-cyan) 0%, var(--ai-emerald) 100%);
  border-radius: 9999px;
  box-shadow: 0 0 12px var(--ai-emerald-glow);
  pointer-events: none;
}

.fullscreen-player-overlay .ai-seek-thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 20px var(--ai-emerald);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.fullscreen-player-overlay .ai-seek-track:hover .ai-seek-thumb {
  transform: translateY(-50%) scale(1.25);
}

/* Bên phải: Âm lượng (thẳng hàng chuẩn 1360px, không tràn) */
.fullscreen-player-overlay .ai-console-right-cluster {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: auto;
  min-width: 0;
}

.fullscreen-player-overlay .ai-vol-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: clamp(110px, 12vw, 150px);
  max-width: 100%;
  min-width: 0;
}

.fullscreen-player-overlay .ai-vol-icon {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.fullscreen-player-overlay .ai-vol-icon:hover {
  color: var(--ai-emerald);
  transform: scale(1.1);
}

.fullscreen-player-overlay .ai-vol-range {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  height: 5px;
  background: linear-gradient(to right, var(--ai-cyan) 0%, var(--ai-emerald) var(--vol-percent, 80%), rgba(255, 255, 255, 0.16) var(--vol-percent, 80%), rgba(255, 255, 255, 0.16) 100%);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: height 0.15s ease;
}

.fullscreen-player-overlay .ai-vol-range:hover {
  height: 6px;
}

.fullscreen-player-overlay .ai-vol-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff, 0 0 16px var(--ai-emerald);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fullscreen-player-overlay .ai-vol-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 12px #ffffff, 0 0 25px var(--ai-emerald);
}

.fullscreen-player-overlay .ai-vol-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff, 0 0 16px var(--ai-emerald);
  cursor: pointer;
}

.fullscreen-player-overlay .ai-vol-range::-moz-range-track {
  height: 5px;
  background: transparent;
  border-radius: 999px;
  border: none;
}

.fullscreen-player-overlay .ai-vol-range::-moz-range-progress {
  background: linear-gradient(to right, var(--ai-cyan), var(--ai-emerald));
  height: 5px;
  border-radius: 999px;
}

/* =========================================================================
   MODAL & POPUP DIALOGS Z-INDEX (LUÔN NỔI TRÊN CÙNG Z-INDEX CAO NHẤT)
   ========================================================================= */
.modal {
  z-index: 1000010 !important;
}

.modal-backdrop {
  z-index: 1000008 !important;
}

.modal-backdrop.show {
  opacity: 0.72 !important;
}

#authModal,
.auth-modal {
  z-index: 1000015 !important;
}

#customDialogModal {
  z-index: 1000020 !important;
}

.toast-container,
#toastContainer,
#globalToastContainer,
.global-toast-container {
  z-index: 9999999 !important;
}

/* ==========================================================================
   RESPONSIVE MOBILE CHO FULLSCREEN PLAYER (< 992px)
   ========================================================================== */
@media (max-width: 991.98px) {
  .fullscreen-player-overlay .ai-top-bar-row1 {
    padding: 12px 16px 4px 16px;
  }

  .fullscreen-player-overlay .ai-topbar-left .ai-hifi-chip {
    display: none;
  }

  /* Kích hoạt hàng 2 với 3 Tab trên Mobile */
  .fullscreen-player-overlay .ai-tab-row2-center {
    display: flex !important;
    padding: 4px 10px 8px 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Ẩn thanh tab desktop */
  .fullscreen-player-overlay .ai-desktop-tab-header {
    display: none !important;
  }

  .fullscreen-player-overlay .ai-segmented-tab-capsule {
    max-width: 100%;
    padding: 3px 4px;
    gap: 3px;
  }

  .fullscreen-player-overlay .ai-segment-btn {
    padding: 5px 11px;
    font-size: 11.5px;
    gap: 4px;
  }

  .fullscreen-player-overlay .ai-stage-body {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 12px !important;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
  }

  /* 3 Tab trên Mobile */
  .fullscreen-player-overlay .ai-col-core {
    display: none !important;
    height: 100%;
    max-height: 100%;
    justify-content: center;
    padding-bottom: 6px;
    min-height: 0;
    min-width: 0;
  }

  .fullscreen-player-overlay .ai-col-interactive {
    display: none !important;
    height: 100%;
    max-height: 100%;
    padding-bottom: 6px;
    min-height: 0;
    min-width: 0;
  }

  /* Kích hoạt tab tương ứng trên mobile */
  .fullscreen-player-overlay.view-core .ai-col-core {
    display: flex !important;
  }

  .fullscreen-player-overlay.view-lyrics .ai-col-interactive {
    display: flex !important;
  }
  .fullscreen-player-overlay.view-lyrics .ai-lyrics-pane {
    display: flex !important;
  }
  .fullscreen-player-overlay.view-lyrics .ai-queue-pane {
    display: none !important;
  }

  .fullscreen-player-overlay.view-queue .ai-col-interactive {
    display: flex !important;
  }
  .fullscreen-player-overlay.view-queue .ai-lyrics-pane {
    display: none !important;
  }
  .fullscreen-player-overlay.view-queue .ai-queue-pane {
    display: flex !important;
  }

  /* Co giãn đĩa than trên mobile vừa vặn khung nhìn */
  .fullscreen-player-overlay .ai-vinyl-stage-wrapper {
    width: min(230px, 32vh) !important;
    height: min(230px, 32vh) !important;
    margin-bottom: 10px !important;
  }

  .fullscreen-player-overlay .ai-luxury-vinyl {
    width: min(200px, 28vh) !important;
    height: min(200px, 28vh) !important;
  }

  .fullscreen-player-overlay .ai-vinyl-center-artwork {
    width: min(85px, 12vh) !important;
    height: min(85px, 12vh) !important;
  }

  .fullscreen-player-overlay .ai-track-title {
    font-size: 19px !important;
    margin-bottom: 3px !important;
  }

  .fullscreen-player-overlay .ai-track-artist-row {
    font-size: 13.5px !important;
    margin-bottom: 6px !important;
  }

  .fullscreen-player-overlay .ai-lyrics-pane {
    padding: 16px 18px !important;
    gap: 14px !important;
  }

  .fullscreen-player-overlay .ai-lyric-row,
  .fullscreen-player-overlay .fs-lrc-row {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
  .fullscreen-player-overlay .ai-lyric-row.active,
  .fullscreen-player-overlay .fs-lrc-row.active {
    font-size: 19px !important;
    transform: scale(1.02) translateX(4px) !important;
    max-width: calc(100% - 6px);
  }

  .fullscreen-player-overlay .ai-queue-pane {
    padding: 14px !important;
    gap: 8px !important;
  }

  /* Bỏ thời gian xuất bản trên giao diện mobi để tên tác giả được hiển thị đầy đủ */
  .fullscreen-player-overlay .ai-queue-time-text,
  .fullscreen-player-overlay .ai-queue-time-sep,
  .flyout-drawer .ai-queue-time-text,
  .flyout-drawer .ai-queue-time-sep {
    display: none !important;
  }

  .fullscreen-player-overlay .ai-queue-artist-text,
  .flyout-drawer .ai-queue-artist-text {
    max-width: none !important;
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .fullscreen-player-overlay .ai-queue-views-text,
  .flyout-drawer .ai-queue-views-text {
    flex-shrink: 0 !important;
  }

  /* Thanh điều khiển dưới chân trên mobile không bị tràn, chống giựt và giữ cạnh viền sắc nét */
  .fullscreen-player-overlay .ai-fullwidth-console {
    background: #030a07 !important;
    border-top: 1px solid rgba(0, 255, 136, 0.35) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .fullscreen-player-overlay .ai-console-content-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 8px 16px 10px 16px !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .fullscreen-player-overlay .ai-console-left-meta,
  .fullscreen-player-overlay .ai-console-right-cluster {
    display: none !important;
  }

  .fullscreen-player-overlay .ai-console-center-controls {
    width: 100% !important;
  }

  .fullscreen-player-overlay .ai-timeline-row {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 4px !important;
    gap: 10px !important;
  }

  .fullscreen-player-overlay .ai-time-text {
    font-size: 11px !important;
    min-width: 34px !important;
  }

  .fullscreen-player-overlay .ai-seek-track {
    height: 5px !important;
  }

  .fullscreen-player-overlay .ai-playback-btn-group {
    gap: 16px !important;
  }

  .fullscreen-player-overlay .ai-master-play-orb {
    width: 48px !important;
    height: 48px !important;
    font-size: 18px !important;
  }
}

/* =========================================================================
   DOCK PLAYER & FLYOUT DRAWERS - UNIFIED DARK EMERALD THEME (LIGHT & DARK DÙNG CHUNG)
   Đảm bảo cả Theme Sáng và Tối đều hiển thị chuẩn phong cách Dark Emerald cao cấp
   ========================================================================= */
.fixed-music-dock,
html[data-theme="light"] .fixed-music-dock,
html[data-theme="dark"] .fixed-music-dock,
[data-theme="light"] .fixed-music-dock,
[data-theme="dark"] .fixed-music-dock {
  background: linear-gradient(180deg, #091a13 0%, #030a07 100%) !important;
  border-top: 1px solid rgba(0, 255, 136, 0.35) !important;
  box-shadow: 
    0 -10px 30px rgba(0, 0, 0, 0.8),
    0 -1px 15px rgba(0, 255, 136, 0.2) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #ffffff !important;
  z-index: 999990 !important;
}

/* Track Title & Artist in Fixed Dock Player (Căn Giữa Chuẩn Chiều Dọc) */
.fixed-music-dock .dock-left-pane,
html[data-theme="light"] .fixed-music-dock .dock-left-pane,
html[data-theme="dark"] .fixed-music-dock .dock-left-pane {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.fixed-music-dock .dock-track-info,
html[data-theme="light"] .fixed-music-dock .dock-track-info,
html[data-theme="dark"] .fixed-music-dock .dock-track-info {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  line-height: 1 !important;
}

.fixed-music-dock .dock-track-info h4,
html[data-theme="light"] .fixed-music-dock .dock-track-info h4,
html[data-theme="dark"] .fixed-music-dock .dock-track-info h4 {
  color: #ffffff !important;
  font-family: var(--font-body, 'Outfit', sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
  margin: 0 0 3px 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fixed-music-dock .dock-track-info p,
html[data-theme="light"] .fixed-music-dock .dock-track-info p,
html[data-theme="dark"] .fixed-music-dock .dock-track-info p {
  color: rgba(255, 255, 255, 0.65) !important;
  font-family: var(--font-body, 'Outfit', sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fixed-music-dock .badge-dock-ai,
html[data-theme="light"] .fixed-music-dock .badge-dock-ai,
html[data-theme="dark"] .fixed-music-dock .badge-dock-ai {
  font-family: var(--font-mono, 'Space Grotesk', monospace) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--ai-emerald, #00ff88) !important;
  background: rgba(0, 255, 136, 0.12) !important;
  border: 1px solid rgba(0, 255, 136, 0.35) !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
}

/* Dock Action Buttons */
.fixed-music-dock .dock-icon-action,
html[data-theme="light"] .fixed-music-dock .dock-icon-action,
html[data-theme="dark"] .fixed-music-dock .dock-icon-action {
  color: rgba(255, 255, 255, 0.72) !important;
  background: transparent !important;
  border: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fixed-music-dock .dock-icon-action:hover,
html[data-theme="light"] .fixed-music-dock .dock-icon-action:hover,
html[data-theme="dark"] .fixed-music-dock .dock-icon-action:hover {
  color: var(--ai-emerald, #00ff88) !important;
  background: rgba(0, 255, 136, 0.14) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.35) !important;
}

.fixed-music-dock .dock-icon-action.active,
html[data-theme="light"] .fixed-music-dock .dock-icon-action.active,
html[data-theme="dark"] .fixed-music-dock .dock-icon-action.active {
  color: var(--ai-emerald, #00ff88) !important;
  background: rgba(0, 255, 136, 0.22) !important;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.5) !important;
}

/* Master Play Button Orb */
.fixed-music-dock .dock-play-circle-btn,
html[data-theme="light"] .fixed-music-dock .dock-play-circle-btn,
html[data-theme="dark"] .fixed-music-dock .dock-play-circle-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--ai-emerald, #00ff88), var(--ai-emerald-deep, #059669)) !important;
  color: #000000 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  box-shadow: 0 0 22px var(--ai-emerald-glow, rgba(0, 255, 136, 0.6)) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fixed-music-dock .dock-play-circle-btn:hover,
html[data-theme="light"] .fixed-music-dock .dock-play-circle-btn:hover,
html[data-theme="dark"] .fixed-music-dock .dock-play-circle-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 0 32px var(--ai-emerald-glow, rgba(0, 255, 136, 0.8)) !important;
}

/* Dock Progress Row & Seekbar */
.fixed-music-dock .dock-time-text,
html[data-theme="light"] .fixed-music-dock .dock-time-text,
html[data-theme="dark"] .fixed-music-dock .dock-time-text {
  font-family: var(--font-mono, 'Space Grotesk', monospace) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  letter-spacing: 0.02em !important;
}

.fixed-music-dock .dock-time-text#dockCurrentTime,
html[data-theme="light"] .fixed-music-dock .dock-time-text#dockCurrentTime,
html[data-theme="dark"] .fixed-music-dock .dock-time-text#dockCurrentTime {
  color: var(--ai-emerald, #00ff88) !important;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4) !important;
}

.fixed-music-dock .dock-seek-bar-track,
html[data-theme="light"] .fixed-music-dock .dock-seek-bar-track,
html[data-theme="dark"] .fixed-music-dock .dock-seek-bar-track {
  height: 5px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  position: relative !important;
  cursor: pointer !important;
  transition: height 0.18s ease, background 0.18s ease !important;
}

.fixed-music-dock .dock-seek-bar-track:hover,
html[data-theme="light"] .fixed-music-dock .dock-seek-bar-track:hover,
html[data-theme="dark"] .fixed-music-dock .dock-seek-bar-track:hover {
  height: 7px !important;
  background: rgba(255, 255, 255, 0.24) !important;
}

.fixed-music-dock .dock-seek-fill,
html[data-theme="light"] .fixed-music-dock .dock-seek-fill,
html[data-theme="dark"] .fixed-music-dock .dock-seek-fill {
  background: linear-gradient(90deg, var(--ai-cyan, #06b6d4) 0%, var(--ai-emerald, #00ff88) 100%) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 10px var(--ai-emerald-glow, rgba(0, 255, 136, 0.5)) !important;
}

/* Dock Volume */
.fixed-music-dock .dock-volume-wrap #volumeIcon,
html[data-theme="light"] .fixed-music-dock .dock-volume-wrap #volumeIcon,
html[data-theme="dark"] .fixed-music-dock .dock-volume-wrap #volumeIcon {
  color: rgba(255, 255, 255, 0.72) !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.fixed-music-dock .dock-volume-wrap #volumeIcon:hover,
html[data-theme="light"] .fixed-music-dock .dock-volume-wrap #volumeIcon:hover,
html[data-theme="dark"] .fixed-music-dock .dock-volume-wrap #volumeIcon:hover {
  color: var(--ai-emerald, #00ff88) !important;
  transform: scale(1.1) !important;
}

.fixed-music-dock .dock-volume-wrap #volumeSlider,
html[data-theme="light"] .fixed-music-dock .dock-volume-wrap #volumeSlider,
html[data-theme="dark"] .fixed-music-dock .dock-volume-wrap #volumeSlider {
  accent-color: var(--ai-emerald, #00ff88) !important;
}

/* Flyout Drawers (Lyrics & Queue) - Dark Emerald Glass */
.flyout-drawer,
html[data-theme="light"] .flyout-drawer,
html[data-theme="dark"] .flyout-drawer,
[data-theme="light"] .flyout-drawer,
[data-theme="dark"] .flyout-drawer {
  background: rgba(8, 20, 15, 0.98) !important;
  border: 1px solid rgba(0, 255, 136, 0.28) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 999988 !important;
}

.flyout-drawer .drawer-header,
html[data-theme="light"] .flyout-drawer .drawer-header,
html[data-theme="dark"] .flyout-drawer .drawer-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--ai-emerald, #00ff88) !important;
  font-family: var(--font-body, 'Outfit', sans-serif) !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
}

.flyout-drawer .lrc-line,
html[data-theme="light"] .flyout-drawer .lrc-line,
html[data-theme="dark"] .flyout-drawer .lrc-line {
  color: rgba(255, 255, 255, 0.45) !important;
  font-family: var(--font-lyrics) !important;
  font-size: 14.5px !important;
  transition: all 0.2s ease !important;
}

.flyout-drawer .lrc-line:hover,
html[data-theme="light"] .flyout-drawer .lrc-line:hover,
html[data-theme="dark"] .flyout-drawer .lrc-line:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

.flyout-drawer .lrc-line.active,
html[data-theme="light"] .flyout-drawer .lrc-line.active,
html[data-theme="dark"] .flyout-drawer .lrc-line.active {
  color: var(--ai-emerald, #00ff88) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-shadow: 0 0 12px var(--ai-emerald-glow) !important;
}

.flyout-drawer .dock-queue-item,
html[data-theme="light"] .flyout-drawer .dock-queue-item,
html[data-theme="dark"] .flyout-drawer .dock-queue-item {
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
}

.flyout-drawer .dock-queue-item:hover,
html[data-theme="light"] .flyout-drawer .dock-queue-item:hover,
html[data-theme="dark"] .flyout-drawer .dock-queue-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.flyout-drawer .dock-queue-item.active,
html[data-theme="light"] .flyout-drawer .dock-queue-item.active,
html[data-theme="dark"] .flyout-drawer .dock-queue-item.active {
  background: rgba(0, 255, 136, 0.12) !important;
  border-color: rgba(0, 255, 136, 0.25) !important;
}

/* =========================================================================
   LIGHT THEME IMMUNITY: DARK EMERALD THEME PRESERVED ON ALL THEMES
   (ĐỒNG BỘ 100% GIAO DIỆN PHÓNG TO & FOOTER DOCK GIỮA THEME SÁNG VÀ TỐI)
   ========================================================================= */
.fullscreen-player-overlay,
html[data-theme="light"] .fullscreen-player-overlay,
html[data-theme="dark"] .fullscreen-player-overlay,
[data-theme="light"] .fullscreen-player-overlay,
[data-theme="dark"] .fullscreen-player-overlay {
  color-scheme: dark !important;
  color: #ffffff !important;
}

/* 1. Lời bài hát Karaoke (.ai-lyric-row, .fs-lrc-row) */
.fullscreen-player-overlay .ai-lyric-row,
.fullscreen-player-overlay .fs-lrc-row,
html[data-theme="light"] .fullscreen-player-overlay .ai-lyric-row,
html[data-theme="light"] .fullscreen-player-overlay .fs-lrc-row,
html[data-theme="dark"] .fullscreen-player-overlay .ai-lyric-row,
html[data-theme="dark"] .fullscreen-player-overlay .fs-lrc-row {
  color: rgba(255, 255, 255, 0.38) !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.fullscreen-player-overlay .ai-lyric-row:hover,
.fullscreen-player-overlay .fs-lrc-row:hover,
html[data-theme="light"] .fullscreen-player-overlay .ai-lyric-row:hover,
html[data-theme="light"] .fullscreen-player-overlay .fs-lrc-row:hover,
html[data-theme="dark"] .fullscreen-player-overlay .ai-lyric-row:hover,
html[data-theme="dark"] .fullscreen-player-overlay .fs-lrc-row:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  background: transparent !important;
}

.fullscreen-player-overlay .ai-lyric-row.active,
.fullscreen-player-overlay .fs-lrc-row.active,
html[data-theme="light"] .fullscreen-player-overlay .ai-lyric-row.active,
html[data-theme="light"] .fullscreen-player-overlay .fs-lrc-row.active,
html[data-theme="dark"] .fullscreen-player-overlay .ai-lyric-row.active,
html[data-theme="dark"] .fullscreen-player-overlay .fs-lrc-row.active {
  color: #ffffff !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  text-shadow: 0 0 20px var(--ai-emerald-glow, rgba(0, 255, 136, 0.8)), 0 0 40px rgba(0, 255, 136, 0.35) !important;
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
}

/* 2. Hàng đợi phát nhạc (.ai-queue-card, .fs-queue-item) */
.fullscreen-player-overlay .ai-queue-card,
.fullscreen-player-overlay .fs-queue-item,
html[data-theme="light"] .fullscreen-player-overlay .ai-queue-card,
html[data-theme="light"] .fullscreen-player-overlay .fs-queue-item,
html[data-theme="dark"] .fullscreen-player-overlay .ai-queue-card,
html[data-theme="dark"] .fullscreen-player-overlay .fs-queue-item {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.fullscreen-player-overlay .ai-queue-card:hover,
.fullscreen-player-overlay .fs-queue-item:hover,
html[data-theme="light"] .fullscreen-player-overlay .ai-queue-card:hover,
html[data-theme="light"] .fullscreen-player-overlay .fs-queue-item:hover,
html[data-theme="dark"] .fullscreen-player-overlay .ai-queue-card:hover,
html[data-theme="dark"] .fullscreen-player-overlay .fs-queue-item:hover {
  background: rgba(0, 255, 136, 0.08) !important;
  border-color: rgba(0, 255, 136, 0.28) !important;
}

.fullscreen-player-overlay .ai-queue-card.active,
.fullscreen-player-overlay .fs-queue-item.active,
html[data-theme="light"] .fullscreen-player-overlay .ai-queue-card.active,
html[data-theme="light"] .fullscreen-player-overlay .fs-queue-item.active,
html[data-theme="dark"] .fullscreen-player-overlay .ai-queue-card.active,
html[data-theme="dark"] .fullscreen-player-overlay .fs-queue-item.active {
  background: rgba(0, 255, 136, 0.12) !important;
  border-color: rgba(0, 255, 136, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.fullscreen-player-overlay .ai-queue-name,
.fullscreen-player-overlay .fs-queue-title,
html[data-theme="light"] .fullscreen-player-overlay .ai-queue-name,
html[data-theme="light"] .fullscreen-player-overlay .fs-queue-title,
html[data-theme="dark"] .fullscreen-player-overlay .ai-queue-name,
html[data-theme="dark"] .fullscreen-player-overlay .fs-queue-title {
  color: #ffffff !important;
}

.fullscreen-player-overlay .ai-queue-sub,
.fullscreen-player-overlay .fs-queue-artist,
html[data-theme="light"] .fullscreen-player-overlay .ai-queue-sub,
html[data-theme="light"] .fullscreen-player-overlay .fs-queue-artist,
html[data-theme="dark"] .fullscreen-player-overlay .ai-queue-sub,
html[data-theme="dark"] .fullscreen-player-overlay .fs-queue-artist {
  color: rgba(255, 255, 255, 0.6) !important;
}

.fullscreen-player-overlay .ai-queue-header-title,
.fullscreen-player-overlay .fs-queue-header h3,
html[data-theme="light"] .fullscreen-player-overlay .ai-queue-header-title,
html[data-theme="light"] .fullscreen-player-overlay .fs-queue-header h3,
html[data-theme="dark"] .fullscreen-player-overlay .ai-queue-header-title,
html[data-theme="dark"] .fullscreen-player-overlay .fs-queue-header h3 {
  color: #ffffff !important;
}

/* 3. Tab chuyển đổi Lời / Hàng đợi */
.fullscreen-player-overlay .ai-tab-pill,
html[data-theme="light"] .fullscreen-player-overlay .ai-tab-pill,
html[data-theme="dark"] .fullscreen-player-overlay .ai-tab-pill {
  color: rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
}

.fullscreen-player-overlay .ai-tab-pill.active,
html[data-theme="light"] .fullscreen-player-overlay .ai-tab-pill.active,
html[data-theme="dark"] .fullscreen-player-overlay .ai-tab-pill.active {
  color: var(--ai-emerald, #00ff88) !important;
  background: rgba(0, 255, 136, 0.15) !important;
}

/* 4. Trạng thái Nút Lặp lại & Ngẫu nhiên (Repeat & Shuffle Active States) */
.fullscreen-player-overlay .ai-ctl-btn,
html[data-theme="light"] .fullscreen-player-overlay .ai-ctl-btn,
html[data-theme="dark"] .fullscreen-player-overlay .ai-ctl-btn {
  color: rgba(255, 255, 255, 0.72) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  position: relative !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fullscreen-player-overlay .ai-ctl-btn:hover,
html[data-theme="light"] .fullscreen-player-overlay .ai-ctl-btn:hover,
html[data-theme="dark"] .fullscreen-player-overlay .ai-ctl-btn:hover {
  color: var(--ai-emerald, #00ff88) !important;
  background: rgba(0, 255, 136, 0.12) !important;
  transform: scale(1.08) !important;
}

.fullscreen-player-overlay .ai-ctl-btn.active,
.fullscreen-player-overlay .ai-ctl-btn.text-emerald,
#fsBtnShuffle.active,
#fsBtnRepeat.active,
html[data-theme="light"] #fsBtnShuffle.active,
html[data-theme="light"] #fsBtnRepeat.active,
html[data-theme="dark"] #fsBtnShuffle.active,
html[data-theme="dark"] #fsBtnRepeat.active {
  color: var(--ai-emerald, #00ff88) !important;
  background: rgba(0, 255, 136, 0.22) !important;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.5) !important;
  text-shadow: 0 0 12px var(--ai-emerald, #00ff88) !important;
  position: relative !important;
}

/* Chấm sáng quang học thông minh dưới nút khi BẬT (Active Dot Indicator) */
.fullscreen-player-overlay .ai-ctl-btn.active::after,
#fsBtnShuffle.active::after,
#fsBtnRepeat.active::after,
.fixed-music-dock .dock-icon-action.active::after,
#btnShuffle.active::after,
#btnRepeat.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: 3px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: var(--ai-emerald, #00ff88) !important;
  box-shadow: 0 0 6px var(--ai-emerald, #00ff88) !important;
  display: block !important;
}

.fullscreen-player-overlay .ai-ctl-btn:not(.active)::after,
.fixed-music-dock .dock-icon-action:not(.active)::after {
  display: none !important;
}

/* =========================================================================
   LOGO SITUNEE BRANDING TRÊN TRÌNH PHÓNG TO
   ========================================================================= */
.fullscreen-player-overlay .fs-brand-logo-img {
  height: clamp(28px, 3.2vh, 34px) !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 10px rgba(0, 255, 136, 0.3)) !important;
  transition: transform 0.2s ease !important;
}

.fullscreen-player-overlay .fs-brand-logo-img:hover {
  transform: scale(1.05) !important;
}

/* =========================================================================
   DANH SÁCH HÀNG ĐỢI (QUEUE ITEM BỐ CỤC CHUẨN 2 DÒNG + DẤU 3 CHẤM CANH PHẢI)
   Áp dụng đồng bộ cho cả Trình phóng to & Flyout Drawer Hàng đợi của Footer Dock
   ========================================================================= */
.flyout-drawer {
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.flyout-drawer .drawer-header {
  flex-shrink: 0 !important;
}

.flyout-drawer .drawer-body {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important; /* TRIET TIEU THANH CUON NGOAI: Drawer body khong bao gio cuon */
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

#queueDrawer,
.flyout-drawer#queueDrawer,
#lyricsDrawer,
.flyout-drawer#lyricsDrawer {
  width: min(420px, calc(100vw - 32px)) !important;
  max-height: min(520px, calc(100vh - var(--dock-height, 80px) - 24px)) !important;
}

@media (min-width: 769px) {
  #queueDrawer,
  .flyout-drawer#queueDrawer,
  #lyricsDrawer,
  .flyout-drawer#lyricsDrawer {
    height: 480px !important;
  }
}

@media (max-width: 768px) {
  #queueDrawer,
  .flyout-drawer#queueDrawer,
  #lyricsDrawer,
  .flyout-drawer#lyricsDrawer {
    height: 65vh !important;
    max-height: 72vh !important;
  }
}

#queueDrawer #dockQueueList {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important; /* DUY NHAT 1 THANH CUON DOC TAI DAY */
  overflow-x: hidden !important; /* TRIET TIEU HOAN TOAN THANH CUON NGANG */
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

#lyricsDrawer #dockLyricsStream {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important; /* DUY NHAT 1 THANH CUON DOC TAI DAY */
  overflow-x: hidden !important; /* TRIET TIEU HOAN TOAN THANH CUON NGANG */
  padding: 12px 14px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.fullscreen-player-overlay .ai-queue-card,
.flyout-drawer .dock-queue-item,
.flyout-drawer .ai-queue-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  position: relative !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

.fullscreen-player-overlay .ai-queue-card:hover,
.flyout-drawer .dock-queue-item:hover,
.flyout-drawer .ai-queue-card:hover {
  background: rgba(0, 255, 136, 0.08) !important;
  border-color: rgba(0, 255, 136, 0.3) !important;
  transform: translateX(3px) !important;
}

.fullscreen-player-overlay .ai-queue-card.active,
.flyout-drawer .dock-queue-item.active,
.flyout-drawer .ai-queue-card.active {
  background: rgba(0, 255, 136, 0.12) !important;
  border-color: var(--ai-emerald, #00ff88) !important;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2) !important;
}

.fullscreen-player-overlay .ai-queue-index,
.flyout-drawer .ai-queue-index {
  font-size: 13px !important;
  font-weight: 700 !important;
  width: 22px !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-family: var(--font-mono) !important;
  flex-shrink: 0 !important;
}

.fullscreen-player-overlay .ai-queue-card.active .ai-queue-index,
.flyout-drawer .dock-queue-item.active .ai-queue-index,
.flyout-drawer .ai-queue-card.active .ai-queue-index {
  color: var(--ai-emerald, #00ff88) !important;
}

.fullscreen-player-overlay .ai-queue-thumb-box,
.flyout-drawer .ai-queue-thumb-box {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.fullscreen-player-overlay .ai-queue-card.active .ai-queue-thumb-box,
.flyout-drawer .dock-queue-item.active .ai-queue-thumb-box,
.flyout-drawer .ai-queue-card.active .ai-queue-thumb-box {
  border-color: rgba(0, 255, 136, 0.6) !important;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.35) !important;
}

.fullscreen-player-overlay .ai-queue-thumb,
.flyout-drawer .ai-queue-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* =========================================================================
   SÓNG NHẠC TRÊN AVATAR KHI BÀI HÁT ĐANG PLAY (ANIMATED AUDIO WAVEFORM)
   Song song với hiệu ứng active (viền sáng + tên bài đổi màu emerald)
   ========================================================================= */
.ai-queue-live-waves {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2.5px !important;
  z-index: 3 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
}

/* Hiển thị sóng nhạc trên avatar bài hát đang active */
.ai-queue-card.active .ai-queue-live-waves,
.dock-queue-item.active .ai-queue-live-waves {
  display: flex !important;
}

/* Khi bài hát đang play (is-playing) -> Sóng nhạc nhảy múa sống động */
.ai-queue-card.active.is-playing .ai-wave-bar,
.dock-queue-item.active.is-playing .ai-wave-bar {
  animation: aiAvatarWave 0.85s ease-in-out infinite alternate !important;
}

/* Khi tạm dừng (paused) -> Sóng nhạc đứng yên */
.ai-queue-card.active:not(.is-playing) .ai-wave-bar,
.dock-queue-item.active:not(.is-playing) .ai-wave-bar {
  animation-play-state: paused !important;
  opacity: 0.75 !important;
}

.ai-wave-bar {
  display: block !important;
  width: 3px !important;
  background: var(--ai-emerald, #00ff88) !important;
  border-radius: 99px !important;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.7) !important;
  height: 16px !important;
  animation: aiAvatarWave 0.85s ease-in-out infinite alternate !important;
  will-change: height, transform !important;
}

.ai-wave-bar:nth-child(1) {
  height: 6px !important;
  animation-delay: 0.1s !important;
  animation-duration: 0.75s !important;
}
.ai-wave-bar:nth-child(2) {
  height: 18px !important;
  animation-delay: 0.3s !important;
  animation-duration: 0.95s !important;
}
.ai-wave-bar:nth-child(3) {
  height: 11px !important;
  animation-delay: 0.18s !important;
  animation-duration: 0.65s !important;
}
.ai-wave-bar:nth-child(4) {
  height: 15px !important;
  animation-delay: 0.4s !important;
  animation-duration: 0.85s !important;
}

@keyframes aiAvatarWave {
  0% {
    height: 4px !important;
    opacity: 0.55;
    transform: scaleY(0.4);
  }
  100% {
    height: 20px !important;
    opacity: 1;
    transform: scaleY(1);
  }
}

.fullscreen-player-overlay .ai-queue-info,
.flyout-drawer .ai-queue-info {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.fullscreen-player-overlay .ai-queue-name,
.flyout-drawer .ai-queue-name {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fullscreen-player-overlay .ai-queue-card.active .ai-queue-name,
.flyout-drawer .dock-queue-item.active .ai-queue-name,
.flyout-drawer .ai-queue-card.active .ai-queue-name {
  color: var(--ai-emerald, #00ff88) !important;
}

.fullscreen-player-overlay .ai-queue-meta-row,
.flyout-drawer .ai-queue-meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 11.5px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fullscreen-player-overlay .ai-queue-artist-text,
.flyout-drawer .ai-queue-artist-text {
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fullscreen-player-overlay .ai-queue-meta-sep,
.flyout-drawer .ai-queue-meta-sep {
  color: rgba(0, 255, 136, 0.6) !important;
  font-size: 8px !important;
  flex-shrink: 0 !important;
}

.fullscreen-player-overlay .ai-queue-views-text,
.flyout-drawer .ai-queue-views-text {
  color: rgba(255, 255, 255, 0.55) !important;
  font-family: var(--font-body) !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.fullscreen-player-overlay .ai-queue-time-text,
.flyout-drawer .ai-queue-time-text {
  color: rgba(255, 255, 255, 0.55) !important;
  font-family: var(--font-body) !important;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.fullscreen-player-overlay .ai-queue-more-btn,
.flyout-drawer .ai-queue-more-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.5) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  margin-left: 6px !important;
}

.fullscreen-player-overlay .ai-queue-more-btn:hover,
.flyout-drawer .ai-queue-more-btn:hover {
  color: var(--ai-emerald, #00ff88) !important;
  background: rgba(0, 255, 136, 0.15) !important;
  transform: scale(1.1) !important;
}

/* =========================================================================
   ĐỒNG BỘ NÚT BÀI TIẾP THEO (#btnNext) FOOTER DOCK THEME SÁNG & TỐI
   ========================================================================= */
#btnNext,
.fixed-music-dock #btnNext,
html[data-theme="light"] .fixed-music-dock #btnNext,
html[data-theme="dark"] .fixed-music-dock #btnNext,
[data-theme="light"] #btnNext,
[data-theme="dark"] #btnNext {
  color: rgba(255, 255, 255, 0.75) !important;
  background: transparent !important;
}

#btnNext:hover,
.fixed-music-dock #btnNext:hover,
html[data-theme="light"] .fixed-music-dock #btnNext:hover,
html[data-theme="dark"] .fixed-music-dock #btnNext:hover,
[data-theme="light"] #btnNext:hover,
[data-theme="dark"] #btnNext:hover {
  color: var(--ai-emerald, #00ff88) !important;
  background: rgba(0, 255, 136, 0.14) !important;
}

/* =========================================================================
   RESPONSIVE MOBILE: ẨN THỜI GIAN XUẤT BẢN - DÀNH TRỌN DIỆN TÍCH CHO TÊN TÁC GIẢ
   ========================================================================= */
@media (max-width: 992px) {
  .fullscreen-player-overlay .ai-queue-time-text,
  .fullscreen-player-overlay .ai-queue-time-sep,
  .flyout-drawer .ai-queue-time-text,
  .flyout-drawer .ai-queue-time-sep,
  .ai-queue-time-text,
  .ai-queue-time-sep {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .fullscreen-player-overlay .ai-queue-artist-text,
  .flyout-drawer .ai-queue-artist-text,
  .ai-queue-artist-text {
    max-width: none !important;
    width: auto !important;
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .fullscreen-player-overlay .ai-queue-views-text,
  .flyout-drawer .ai-queue-views-text,
  .ai-queue-views-text {
    flex-shrink: 0 !important;
  }
}




