/* ==========================================================================
   AKT Liquid-Glass Music Player & Hub
   Ultra-Modern iOS / VisionOS Liquid-Glassmorphism
   Matches Exact Reference Mockup
   ========================================================================== */

:root {
  --akt-lg-cyan: #38bdf8;
  --akt-lg-cyan-glow: rgba(56, 189, 248, 0.6);
  --akt-lg-deep-blue: #0284c7;
  --akt-lg-navy: #0f172a;
  --akt-lg-slate: #64748b;
  --akt-lg-glass-border: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   1. Compact Navbar Pill (#aktPlayerPill)
   ========================================================================== */
.akt-music-player-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

#aktPlayerPill,
.akt-player-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 10;
  height: 44px;
  padding: 4px 12px 4px 6px;
  border-radius: 50px;
  overflow: hidden;
  cursor: pointer;

  /* Liquid Glass Cyan Gradient & Multi-tier Blur */
  background: linear-gradient(
    135deg,
    rgba(32, 138, 224, 0.42) 0%,
    rgba(14, 85, 160, 0.55) 50%,
    rgba(2, 45, 105, 0.68) 100%
  );
  backdrop-filter: blur(24px) saturate(210%);
  -webkit-backdrop-filter: blur(24px) saturate(210%);

  /* Specular Highlight Rim & Caustic Glow */
  border: 1.5px solid var(--akt-lg-glass-border);
  box-shadow:
    0 10px 30px -5px rgba(2, 40, 105, 0.45),
    0 0 20px -2px var(--akt-lg-cyan-glow),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1.5px 3px rgba(2, 35, 80, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Upper Specular Lens Reflection */
#aktPlayerPill::before,
.akt-player-pill::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 10px;
  right: 10px;
  height: 48%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.0) 100%
  );
  border-radius: 50px 50px 22px 22px;
  pointer-events: none;
  z-index: 1;
}

/* Dynamic Liquid Shimmer Wave */
#aktPlayerPill::after,
.akt-player-pill::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -120%;
  width: 65%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 35%,
    rgba(56, 189, 248, 0.35) 50%,
    rgba(255, 255, 255, 0.2) 65%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0.7;
  animation: aktLiquidWave 7s infinite ease-in-out;
  z-index: 2;
}

@keyframes aktLiquidWave {
  0%, 15% { left: -120%; }
  55%, 100% { left: 180%; }
}

#aktPlayerPill > *,
.akt-player-pill > * {
  position: relative;
  z-index: 3;
}

#aktPlayerPill:hover,
.akt-player-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 14px 40px -4px rgba(2, 40, 105, 0.55),
    0 0 28px rgba(56, 189, 248, 0.6),
    inset 0 2px 2.5px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(2, 35, 80, 0.5);
}

.akt-player-pill.is-playing {
  animation: aktLiquidPulse 3.5s ease-in-out infinite alternate;
}

@keyframes aktLiquidPulse {
  0% {
    box-shadow:
      0 10px 30px -5px rgba(2, 40, 105, 0.45),
      0 0 18px rgba(56, 189, 248, 0.45),
      inset 0 1.5px 2px rgba(255, 255, 255, 0.8),
      inset 0 -1.5px 3px rgba(2, 35, 80, 0.4);
  }
  100% {
    box-shadow:
      0 12px 36px -4px rgba(2, 40, 105, 0.6),
      0 0 32px rgba(56, 189, 248, 0.75),
      inset 0 2px 2.5px rgba(255, 255, 255, 0.95),
      inset 0 -2px 4px rgba(2, 35, 80, 0.6);
  }
}

/* Vinyl Disc Thumbnail */
.akt-player-disc-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  cursor: pointer;
  background: #061c14;
  border-radius: 50%;
}

.akt-player-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(222, 176, 75, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: aktDiscSpin 10s linear infinite;
  animation-play-state: paused;
}

.akt-player-pill.is-playing .akt-player-disc,
.akt-liquid-glass-modal.is-playing .akt-lg-disc {
  animation-play-state: running;
}

@keyframes aktDiscSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.akt-player-disc-center {
  display: none; /* Hidden to keep brand favicon bowtie clearly visible */
}

/* Track Info */
.akt-player-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 80px;
  max-width: 130px;
  overflow: hidden;
  line-height: 1.25;
}

.akt-player-title {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.akt-player-time {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-top: 1px;
}

/* Sound Wave Equalizer */
.akt-player-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
  padding: 0 4px;
}

.akt-v-bar {
  width: 2.5px;
  background: linear-gradient(180deg, #ffffff 0%, var(--akt-lg-cyan) 100%);
  border-radius: 2px;
  height: 4px;
  transition: height 0.15s ease;
}

.akt-player-pill.is-playing .akt-v-bar {
  animation: aktSoundWave 0.9s ease-in-out infinite alternate;
}

.akt-player-pill.is-playing .akt-v-bar:nth-child(1) { animation-duration: 0.65s; animation-delay: 0.05s; }
.akt-player-pill.is-playing .akt-v-bar:nth-child(2) { animation-duration: 0.85s; animation-delay: 0.15s; }
.akt-player-pill.is-playing .akt-v-bar:nth-child(3) { animation-duration: 0.55s; animation-delay: 0.25s; }
.akt-player-pill.is-playing .akt-v-bar:nth-child(4) { animation-duration: 0.95s; animation-delay: 0.1s; }
.akt-player-pill.is-playing .akt-v-bar:nth-child(5) { animation-duration: 0.70s; animation-delay: 0.3s; }
.akt-player-pill.is-playing .akt-v-bar:nth-child(6) { animation-duration: 0.80s; animation-delay: 0.2s; }
.akt-player-pill.is-playing .akt-v-bar:nth-child(7) { animation-duration: 0.60s; animation-delay: 0.35s; }
.akt-player-pill.is-playing .akt-v-bar:nth-child(8) { animation-duration: 0.90s; animation-delay: 0.12s; }

@keyframes aktSoundWave {
  0% { height: 3px; }
  50% { height: 16px; }
  100% { height: 5px; }
}

/* Controls */
.akt-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.akt-player-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.akt-player-btn:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.akt-player-btn-play {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  width: 28px;
  height: 28px;
  font-size: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 12px var(--akt-lg-cyan-glow), inset 0 1px 1.5px rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.akt-player-btn-play:hover {
  background: linear-gradient(135deg, #7dd3fc 0%, #0369a1 100%);
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.9), inset 0 1px 2px #ffffff;
}

.akt-player-btn-play i {
  margin-left: 1px;
}

.akt-player-pill.is-playing .akt-player-btn-play i.fa-play,
.akt-liquid-glass-modal.is-playing .akt-lg-ctrl-play i.fa-play {
  display: none;
}
.akt-player-pill:not(.is-playing) .akt-player-btn-play i.fa-pause,
.akt-liquid-glass-modal:not(.is-playing) .akt-lg-ctrl-play i.fa-pause {
  display: none;
}
.akt-player-pill.is-playing .akt-player-btn-play i.fa-pause,
.akt-liquid-glass-modal.is-playing .akt-lg-ctrl-play i.fa-pause {
  display: inline-block;
  margin-left: 0;
}

/* Volume Slider in Navbar */
.akt-player-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 2px 8px 2px 6px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.akt-player-vol-icon {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.akt-player-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 55px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.akt-player-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px var(--akt-lg-cyan), 0 2px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.15s;
}

.akt-player-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.akt-player-playlist-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  transition: all 0.2s;
}

.akt-player-playlist-btn:hover {
  color: #ffffff;
  transform: translateX(2px);
}

/* ==========================================================================
   2. Full Liquid-Glass Player Card Modal (Exact Mockup Match)
   ========================================================================== */
.akt-liquid-glass-modal {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1050;
  display: none;
  animation: aktLgFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.akt-liquid-glass-modal.is-open {
  display: block;
}

@keyframes aktLgFadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.akt-liquid-glass-card {
  width: 390px;
  position: relative;
  border-radius: 36px;
  padding: 22px;
  overflow: hidden;

  /* Liquid Glass Cyan Gradient & Deep Translucent Frost */
  background: linear-gradient(
    145deg,
    rgba(32, 138, 224, 0.42) 0%,
    rgba(14, 85, 160, 0.58) 50%,
    rgba(2, 45, 105, 0.72) 100%
  );
  backdrop-filter: blur(40px) saturate(220%);
  -webkit-backdrop-filter: blur(40px) saturate(220%);

  /* Specular Highlight Rim & Caustic Glow */
  border: 1.5px solid var(--akt-lg-glass-border);
  box-shadow:
    0 35px 85px rgba(2, 40, 105, 0.55),
    0 0 50px rgba(56, 189, 248, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.85),
    inset 0 -2px 6px rgba(0, 30, 80, 0.5);
}

/* Glass Specular Reflection Overlays */
.akt-lg-specular-top {
  position: absolute;
  top: 1px;
  left: 20px;
  right: 20px;
  height: 45%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 36px 36px 20px 20px;
  pointer-events: none;
  z-index: 1;
}

.akt-lg-liquid-sheen {
  position: absolute;
  top: -80%;
  left: -120%;
  width: 70%;
  height: 250%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(56, 189, 248, 0.3) 50%,
    rgba(255, 255, 255, 0.18) 60%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0.6;
  animation: aktLiquidWave 8s infinite ease-in-out;
  z-index: 2;
}

.akt-liquid-glass-card > * {
  position: relative;
  z-index: 3;
}

/* Top Section: Disc + Header Details + Close Button */
.akt-lg-top {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  padding-right: 44px; /* Room for circular close button */
}

/* Large Vinyl Disc */
.akt-lg-disc-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  background: #061c14;
  box-shadow: 0 8px 24px rgba(0, 20, 60, 0.5), 0 0 16px rgba(222, 176, 75, 0.35);
  border: 2px solid rgba(222, 176, 75, 0.75);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.akt-lg-disc {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: aktDiscSpin 10s linear infinite;
  animation-play-state: paused;
}

.akt-lg-disc-hole {
  display: none; /* Hidden to keep brand favicon bowtie clearly visible */
}

/* Title & Time & Waveform */
.akt-lg-header-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.akt-lg-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.akt-lg-time {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 3px 0 6px;
  font-variant-numeric: tabular-nums;
}

/* Sound Wave Equalizer (28 bars matching reference) */
.akt-lg-waveform {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.akt-lg-waveform-bar {
  width: 2.5px;
  background: linear-gradient(180deg, #ffffff 0%, var(--akt-lg-cyan) 100%);
  border-radius: 3px;
  height: 4px;
  transition: height 0.15s ease;
}

.akt-liquid-glass-modal.is-playing .akt-lg-waveform-bar {
  animation: aktSoundWaveLg 0.8s ease-in-out infinite alternate;
  animation-delay: calc(var(--bar-i) * 0.04s);
}

@keyframes aktSoundWaveLg {
  0% { height: 3px; }
  50% { height: 18px; }
  100% { height: 6px; }
}

/* Close Button (Circular Glass) */
.akt-lg-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.akt-lg-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

/* Controls Pill Bar */
.akt-lg-controls-bar {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.akt-lg-ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.akt-lg-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.08);
}

.akt-lg-ctrl-btn.is-active {
  background: rgba(56, 189, 248, 0.45);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 12px var(--akt-lg-cyan-glow);
}

.akt-lg-ctrl-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.8), inset 0 2px 3px rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.akt-lg-ctrl-play:hover {
  background: linear-gradient(135deg, #7dd3fc 0%, #0369a1 100%);
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(56, 189, 248, 1), inset 0 2px 3px #ffffff;
}

/* Song Progress / Timeline Scrubber Row */
.akt-lg-scrubber-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.akt-lg-scrub-time {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}

.akt-lg-scrubber-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s;
}

.akt-lg-scrubber-track:hover {
  height: 8px;
}

.akt-lg-scrubber-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #00f2fe 100%);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  pointer-events: none;
}

.akt-lg-scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #38bdf8, 0 2px 5px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.1s;
}

.akt-lg-scrubber-track:hover .akt-lg-scrubber-thumb {
  transform: translate(-50%, -50%) scale(1.25);
}

.akt-lg-waveform {
  cursor: pointer;
}

/* Volume Slider */
.akt-lg-volume-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
}

.akt-lg-vol-track-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.akt-lg-vol-icon {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.akt-lg-vol-icon:hover {
  color: #ffffff;
}

.akt-lg-vol-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  outline: none;
  cursor: pointer;
  position: relative;
}

.akt-lg-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #38bdf8, 0 2px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.15s;
}

.akt-lg-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Inset Milky-Frosted Glass Playlist Card (Music Lounge) */
.akt-lg-playlist-card {
  margin-top: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(240, 248, 255, 0.65) 100%);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 28px;
  padding: 16px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.95), 0 8px 30px rgba(0, 30, 80, 0.12);
}

.akt-lg-playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
}

.akt-lg-pl-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.akt-lg-pl-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--akt-lg-navy);
}

.akt-lg-pl-badge {
  background: rgba(56, 189, 248, 0.2);
  color: #0284c7;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.akt-lg-pl-more {
  color: var(--akt-lg-slate);
  font-size: 16px;
  cursor: pointer;
}

.akt-lg-playlist-list {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 2px;
}

.akt-lg-playlist-list::-webkit-scrollbar {
  width: 4px;
}

.akt-lg-playlist-list::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.3);
  border-radius: 4px;
}

.akt-lg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 8px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.akt-lg-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.12);
}

.akt-lg-item.is-active {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.2);
}

.akt-lg-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.akt-lg-item-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--akt-lg-slate);
  min-width: 18px;
}

.akt-lg-item.is-active .akt-lg-item-num {
  color: #0284c7;
}

.akt-lg-thumb-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  background: #061c14;
  border: 1.5px solid rgba(222, 176, 75, 0.5);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.akt-lg-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.akt-lg-thumb-hole {
  display: none; /* Hidden to keep brand favicon bowtie clearly visible */
}

.akt-lg-item-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.akt-lg-meta-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--akt-lg-navy);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.akt-lg-meta-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--akt-lg-slate);
}

.akt-lg-tag {
  background: #38bdf8;
  color: #ffffff;
  font-weight: 800;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.akt-lg-item-action {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--akt-lg-slate);
  font-size: 13px;
  min-width: 24px;
}

.akt-lg-mini-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.akt-lg-mini-bar {
  width: 2.5px;
  border-radius: 2px;
  background: #0284c7;
  height: 4px;
}

.akt-player-pill.is-playing .akt-lg-item.is-active .akt-lg-mini-bar,
.akt-liquid-glass-modal.is-playing .akt-lg-item.is-active .akt-lg-mini-bar {
  animation: aktMiniWave 0.8s ease-in-out infinite alternate;
}

.akt-lg-mini-bar:nth-child(1) { animation-delay: 0.1s; }
.akt-lg-mini-bar:nth-child(2) { animation-delay: 0.3s; }
.akt-lg-mini-bar:nth-child(3) { animation-delay: 0.2s; }
.akt-lg-mini-bar:nth-child(4) { animation-delay: 0.4s; }

@keyframes aktMiniWave {
  0% { height: 3px; }
  100% { height: 16px; }
}

/* ==========================================================================
   Mobile & Responsive Adaptations (Fluid iOS & Android System)
   ========================================================================== */

/* Tablet & Medium Screens (<= 991px) */
@media (max-width: 991px) {
  .akt-player-volume-wrap {
    display: none;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  /* Ultra-sleek Compact Navbar Pill */
  .akt-player-visualizer,
  .akt-player-time,
  .akt-player-btn-prev,
  .akt-player-btn-next,
  .akt-player-info {
    display: none !important;
  }

  .akt-player-pill {
    height: 38px;
    padding: 3px 8px 3px 4px;
    gap: 7px;
    flex-shrink: 0;
  }

  .akt-player-disc-wrap {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .akt-player-btn-play {
    width: 26px;
    height: 26px;
    font-size: 10px;
    flex-shrink: 0;
  }

  .akt-player-playlist-btn {
    font-size: 12px;
    padding: 0 3px;
    flex-shrink: 0;
  }

  /* Liquid Glass Modal on Mobile: Fullscreen Backdrop & Centered Floating Card */
  .akt-liquid-glass-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(2, 14, 28, 0.78) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 12px !important;
    z-index: 999999 !important;
    box-sizing: border-box !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
  }

  .akt-liquid-glass-modal.is-open {
    display: flex !important;
    animation: aktMobileSheetIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes aktMobileSheetIn {
    from {
      opacity: 0;
      transform: scale(0.92);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .akt-liquid-glass-card {
    width: 100% !important;
    max-width: 360px !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 18px 14px !important;
    border-radius: 28px !important;
    margin: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(56, 189, 248, 0.4) !important;
  }

  /* Disc & Title on Mobile */
  .akt-lg-top {
    gap: 12px;
    padding-right: 38px;
  }

  .akt-lg-disc-wrap {
    width: 60px;
    height: 60px;
  }

  .akt-lg-title {
    font-size: 16px;
  }

  .akt-lg-time {
    font-size: 11.5px;
  }

  .akt-lg-waveform {
    height: 16px;
    gap: 1.5px;
  }

  .akt-lg-waveform-bar {
    width: 2px;
  }

  .akt-lg-close-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  /* Control buttons on mobile */
  .akt-lg-controls-bar {
    margin-top: 14px;
    padding: 5px 10px;
  }

  .akt-lg-ctrl-btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .akt-lg-ctrl-play {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  /* Scrubber & Volume on mobile */
  .akt-lg-scrubber-row {
    margin-top: 12px;
  }

  .akt-lg-scrub-time {
    font-size: 10.5px;
    min-width: 30px;
  }

  .akt-lg-volume-bar {
    margin-top: 10px;
  }

  /* Playlist items on mobile */
  .akt-lg-playlist-card {
    margin-top: 14px;
    padding: 12px 10px;
    border-radius: 22px;
  }

  .akt-lg-playlist-header {
    padding: 0 2px 10px;
  }

  .akt-lg-pl-title {
    font-size: 14.5px;
  }

  .akt-lg-pl-badge {
    font-size: 10px;
    padding: 2px 8px;
  }

  .akt-lg-playlist-list {
    max-height: 200px;
  }

  .akt-lg-item {
    padding: 7px 10px;
    border-radius: 14px;
    margin-bottom: 6px;
  }

  .akt-lg-item-left {
    gap: 10px;
  }

  .akt-lg-item-num {
    font-size: 12px;
    min-width: 16px;
  }

  .akt-lg-thumb-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .akt-lg-meta-title {
    font-size: 13px;
    max-width: 140px;
  }

  .akt-lg-meta-sub {
    font-size: 10px;
  }
}

/* Small Phones (<= 480px / iPhone 12/13/14, Galaxy) */
@media (max-width: 480px) {
  .tools-navbar {
    padding: 0 10px !important;
  }

  .tools-nav-left {
    gap: 10px !important;
  }

  .tools-nav-right {
    gap: 8px !important;
  }

  .tools-search-input {
    height: 38px !important;
    font-size: 13px !important;
    padding: 0 12px 0 34px !important;
  }

  .tools-search-icon {
    left: 11px !important;
    font-size: 13px !important;
  }

  .akt-player-pill {
    padding: 2px 6px 2px 3px;
    gap: 5px;
  }

  .akt-player-disc-wrap {
    width: 26px;
    height: 26px;
  }

  .akt-player-btn-play {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

  .akt-liquid-glass-card {
    max-width: 335px !important;
    padding: 16px 12px !important;
    border-radius: 24px !important;
  }

  .akt-lg-meta-title {
    max-width: 125px;
  }
}

/* Very Small Phones (<= 380px / iPhone SE / Galaxy Z Flip cover) */
@media (max-width: 380px) {
  .tools-navbar {
    padding: 0 6px !important;
  }

  .tools-nav-left {
    gap: 6px !important;
  }

  .tools-nav-right {
    gap: 5px !important;
  }

  .tools-user-avatar {
    display: none !important; /* Discard duplicate favicon in navbar to let search bar breathe */
  }

  .akt-liquid-glass-card {
    max-width: 305px !important;
    padding: 14px 10px !important;
    border-radius: 22px !important;
  }

  .akt-lg-top {
    gap: 10px !important;
    padding-right: 36px !important;
  }

  .akt-lg-disc-wrap {
    width: 52px !important;
    height: 52px !important;
  }

  .akt-lg-title {
    font-size: 14.5px !important;
  }

  .akt-lg-ctrl-btn {
    width: 30px !important;
    height: 30px !important;
    font-size: 11px !important;
  }

  .akt-lg-ctrl-play {
    width: 42px !important;
    height: 42px !important;
    font-size: 13px !important;
  }

  .akt-lg-meta-title {
    max-width: 105px !important;
  }
}

/* Mobile Landscape (max-height <= 520px) */
@media (max-height: 520px) and (orientation: landscape) {
  .akt-liquid-glass-card {
    max-height: 92vh !important;
    max-height: 92dvh !important;
    padding: 12px 14px !important;
  }

  .akt-lg-playlist-list {
    max-height: 120px !important;
  }
}
