/* ==============================================================================
   AZZOUNI (عزوني) - Tactical Audio Visualizer & Player Stylesheet
   Theme: Cyber-Military Algerian Aesthetic (Embers, Bass Shake, HUD & Glassmorphism)
   ============================================================================== */

:root {
  --bg-dark: #0a0c10;
  --bg-darker: #050608;
  --panel-bg: rgba(18, 22, 29, 0.72);
  --panel-border: rgba(255, 120, 40, 0.18);
  --panel-border-hover: rgba(255, 140, 50, 0.45);
  
  --accent-fire: #ff5722;
  --accent-amber: #ff9100;
  --accent-gold: #ffab00;
  --accent-algeria-green: #00c853;
  --accent-algeria-red: #d50000;
  
  --text-main: #f0f4f8;
  --text-muted: #8b9bb4;
  --text-dim: #505c6e;
  
  --font-main: 'Chakra Petch', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
  
  --card-size: min(420px, 80vw);
  --card-radius: 18px;
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  user-select: none;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ==============================================================================
   Ambient Backgrounds & Overlays
   ============================================================================== */

.ambient-backdrop {
  position: fixed;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center 30%;
  filter: blur(48px) brightness(0.26) saturate(1.4);
  z-index: 0;
  transform: scale(1);
  animation: ambientBreathe 22s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ambientBreathe {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.08) rotate(1deg); }
  100% { transform: scale(1.03) rotate(-1deg); }
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 25%, rgba(5, 6, 8, 0.75) 75%, rgba(3, 4, 6, 0.96) 100%);
  z-index: 1;
  pointer-events: none;
}

.scanlines-overlay {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0.65;
}

/* Canvas Layers */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
}

.visualizer-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 4;
  pointer-events: none;
}

/* ==============================================================================
   Top Navigation
   ============================================================================== */

.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.8) 0%, transparent 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-crest {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.25), rgba(255, 171, 0, 0.15));
  border: 1px solid rgba(255, 140, 50, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.25);
}

.star-crest {
  width: 20px;
  height: 20px;
  fill: var(--accent-amber);
  filter: drop-shadow(0 0 6px rgba(255, 171, 0, 0.7));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ffffff, #ffb300, #ff5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-family: var(--font-arabic);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(18, 22, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.live-status-pill.active {
  border-color: rgba(255, 87, 34, 0.5);
  color: var(--accent-amber);
  box-shadow: 0 0 14px rgba(255, 87, 34, 0.25);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #607d8b;
  transition: var(--transition-smooth);
}

.live-status-pill.active .pill-dot {
  background: var(--accent-fire);
  box-shadow: 0 0 8px var(--accent-fire);
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

.sound-bars-indicator {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-bars-indicator span {
  width: 2px;
  height: 4px;
  background: var(--accent-amber);
  border-radius: 1px;
  transition: height 0.15s ease;
}

.live-status-pill.active .sound-bars-indicator span:nth-child(1) { animation: soundBar 0.8s infinite ease-in-out alternate; }
.live-status-pill.active .sound-bars-indicator span:nth-child(2) { animation: soundBar 0.6s infinite ease-in-out alternate 0.2s; }
.live-status-pill.active .sound-bars-indicator span:nth-child(3) { animation: soundBar 0.9s infinite ease-in-out alternate 0.4s; }
.live-status-pill.active .sound-bars-indicator span:nth-child(4) { animation: soundBar 0.7s infinite ease-in-out alternate 0.1s; }

@keyframes soundBar {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Icon Buttons */
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(25, 30, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  color: var(--text-main);
  background: rgba(35, 42, 56, 0.8);
  border-color: var(--panel-border-hover);
  transform: translateY(-2px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.svg-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ==============================================================================
   Stage & Center Experience
   ============================================================================== */

.stage {
  flex: 1;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 130px;
  perspective: 1200px;
  transition: transform 0.08s ease-out;
}

/* Bass Screen Shake effect */
body.bass-hit .stage {
  transform: scale(1.012) translateY(-2px);
}

.hero-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 600px;
  width: 100%;
}

/* Ambient Bass Aura Glow behind Cover */
.bass-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--card-size) * 1.2);
  height: calc(var(--card-size) * 1.2);
  background: radial-gradient(circle, rgba(255, 87, 34, 0.28) 0%, rgba(255, 145, 0, 0.12) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  transition: transform 0.12s ease-out, opacity 0.15s ease-out;
}

body.is-playing .bass-glow {
  opacity: 0.85;
}

body.bass-hit .bass-glow {
  transform: translate(-50%, -50%) scale(1.35);
  opacity: 1;
  background: radial-gradient(circle, rgba(255, 50, 0, 0.45) 0%, rgba(255, 170, 0, 0.25) 45%, transparent 70%);
}

/* ==============================================================================
   3D Holographic Cover Card & Vinyl Record
   ============================================================================== */

.cover-card-container {
  position: relative;
  width: var(--card-size);
  height: var(--card-size);
  z-index: 5;
  perspective: 1000px;
}

/* Peeking Vinyl Disc */
.vinyl-disc {
  position: absolute;
  top: 5%;
  right: 0%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1a1a 0%, #0d0d0d 30%, #242424 50%, #080808 70%, #151515 100%);
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 12px rgba(0, 0, 0, 0.9);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(0);
}

body.is-playing .vinyl-disc {
  transform: translateX(28%) rotate(360deg);
  animation: spinVinyl 12s linear infinite;
}

@keyframes spinVinyl {
  0% { transform: translateX(28%) rotate(0deg); }
  100% { transform: translateX(28%) rotate(360deg); }
}

.vinyl-center {
  width: 36%;
  height: 36%;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 140, 50, 0.4);
}

.vinyl-art {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.vinyl-art::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #000;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* The Main Card */
.cover-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--card-radius);
  background: #11151c;
  border: 1px solid rgba(255, 140, 50, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 87, 34, 0.22);
  overflow: hidden;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  cursor: pointer;
}

.cover-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 140, 50, 0.4);
  border-color: rgba(255, 160, 60, 0.5);
}

.cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
  filter: contrast(1.05) saturate(1.1);
}

/* Tactical HUD Corner Brackets */
.hud-corner {
  position: absolute;
  padding: 4px 7px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-amber);
  background: rgba(10, 12, 16, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 140, 50, 0.35);
  z-index: 5;
  pointer-events: none;
}

.hud-corner.top-left {
  top: 8px;
  left: 8px;
  border-radius: 4px 0 4px 0;
}

.hud-corner.top-right {
  top: 8px;
  right: 8px;
  border-radius: 0 4px 0 4px;
}

.hud-corner.bottom-left {
  bottom: 8px;
  left: 8px;
  border-radius: 0 4px 0 4px;
}

.hud-corner.bottom-right {
  bottom: 8px;
  right: 8px;
  border-radius: 4px 0 4px 0;
}

/* Fiery Eye Laser Sparks Overlay */
.eye-flame-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

/* Align precisely with Azzouni eyes on cover */
.eye-flare {
  position: absolute;
  top: 41.5%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 16px #ff9100, 0 0 32px #ff3d00, 0 0 48px #ff1744;
  opacity: 0.6;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.eye-flare.left-eye {
  left: 44.5%;
}

.eye-flare.right-eye {
  left: 55.5%;
}

body.is-playing .eye-flare {
  animation: eyeFlicker 2.5s infinite alternate ease-in-out;
}

body.bass-hit .eye-flare {
  opacity: 1;
  transform: translate(-50%, -50%) scale(2.2);
  box-shadow: 0 0 25px #ffffff, 0 0 50px #ff9100, 0 0 80px #ff3d00;
}

@keyframes eyeFlicker {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  25% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.3); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.85); }
  75% { opacity: 1; transform: translate(-50%, -50%) scale(1.45); }
}

/* Card Glare reflection */
.card-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 7;
  transition: opacity 0.25s ease;
}

.cover-card:hover .card-glare {
  opacity: 1;
}

/* Hover Overlay Play Button on Cover */
.card-action-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  z-index: 8;
  transition: opacity 0.25s ease;
}

.cover-card:hover .card-action-overlay {
  opacity: 1;
}

body.is-playing .cover-card:hover .card-action-overlay {
  opacity: 0.85;
}

.action-pulse-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-fire), var(--accent-amber));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 87, 34, 0.8);
  transform: scale(0.9);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cover-card:hover .action-pulse-circle {
  transform: scale(1.08);
}

.play-big-icon {
  width: 28px;
  height: 28px;
  fill: #fff;
  stroke: #fff;
  margin-left: 3px;
}

.action-hint {
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ==============================================================================
   Track Details Section
   ============================================================================== */

.track-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  width: 100%;
}

.track-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 140, 50, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-amber);
}

.badge-flag {
  font-size: 0.95rem;
}

.badge-sep {
  opacity: 0.4;
}

.track-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 0;
  line-height: 1.1;
}

.title-en {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #ffffff 10%, #ffca28 50%, #ff5722 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(255, 87, 34, 0.35));
}

.title-ar {
  font-family: var(--font-arabic);
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  font-weight: 800;
  color: #ffb300;
  text-shadow: 0 0 20px rgba(255, 179, 0, 0.5);
}

.track-artist {
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Ticker Box */
.ticker-box {
  width: 100%;
  max-width: 460px;
  background: rgba(14, 18, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--accent-amber);
  animation: tickerScroll 24s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==============================================================================
   Bottom Glassmorphic Player Dock
   ============================================================================== */

.player-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 12px 24px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 14, 0.88) 35%, rgba(5, 6, 8, 0.98) 100%);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 140, 50, 0.15);
}

.dock-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Progress Scrubber */
.progress-section {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.time-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 42px;
}

.progress-wrapper {
  position: relative;
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: visible;
  transition: height 0.15s ease;
}

.progress-wrapper:hover .progress-track {
  height: 8px;
}

.progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
}

.progress-current {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-fire), var(--accent-gold));
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(255, 140, 50, 0.6);
}

.progress-handle {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent-amber);
  box-shadow: 0 0 8px rgba(255, 171, 0, 0.9);
  transition: transform 0.15s ease;
}

.progress-wrapper:hover .progress-handle {
  transform: translateY(-50%) scale(1);
}

.progress-hover-line {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 2px;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.progress-hover-tooltip {
  position: absolute;
  bottom: 26px;
  transform: translateX(-50%);
  background: #181d26;
  border: 1px solid rgba(255, 140, 50, 0.4);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.progress-wrapper:hover .progress-hover-tooltip,
.progress-wrapper:hover .progress-hover-line {
  opacity: 1;
}

/* Controls Row */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.controls-right {
  justify-content: flex-end;
}

.controls-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Dock Buttons */
.dock-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(25, 30, 40, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dock-btn:hover {
  background: rgba(35, 42, 56, 0.85);
  color: var(--text-main);
  border-color: var(--panel-border-hover);
}

.dock-btn.active {
  background: rgba(255, 87, 34, 0.18);
  color: var(--accent-amber);
  border-color: rgba(255, 140, 50, 0.5);
  box-shadow: 0 0 12px rgba(255, 87, 34, 0.2);
}

.control-btn {
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.control-btn.secondary {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(25, 30, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.control-btn.secondary:hover {
  color: var(--text-main);
  background: rgba(35, 42, 58, 0.9);
  border-color: var(--panel-border-hover);
  transform: translateY(-2px);
}

.control-btn.secondary.active {
  color: var(--accent-amber);
  border-color: var(--accent-amber);
  box-shadow: 0 0 10px rgba(255, 171, 0, 0.3);
}

/* Primary Play Button */
.control-btn.main-play {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-fire), var(--accent-amber));
  color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 87, 34, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: scale(1);
}

.control-btn.main-play:hover {
  transform: scale(1.08);
  box-shadow: 0 0 32px rgba(255, 140, 50, 0.75);
}

.control-btn.main-play:active {
  transform: scale(0.96);
}

.play-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 140, 50, 0.4);
  animation: ringPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.control-btn.main-play .svg-icon {
  width: 24px;
  height: 24px;
  fill: #fff;
  stroke: #fff;
}

.control-btn.main-play .icon-play {
  margin-left: 3px;
}

/* Volume Slider */
.volume-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider-wrapper {
  width: 90px;
  display: flex;
  align-items: center;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-amber);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 171, 0, 0.8);
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-amber);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(255, 171, 0, 0.8);
}

/* ==============================================================================
   Splash Screen / Modal
   ============================================================================== */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 5, 8, 0.92);
  backdrop-filter: blur(28px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(36px) brightness(0.2);
  opacity: 0.6;
}

.splash-card {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
  background: rgba(18, 22, 30, 0.85);
  border: 1px solid rgba(255, 140, 50, 0.35);
  border-radius: 24px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 87, 34, 0.25);
  animation: splashPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes splashPop {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.splash-emblem {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 171, 0, 0.6);
  animation: spinRing 20s linear infinite;
}

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

.splash-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 87, 34, 0.7);
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
}

.splash-titles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.splash-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-amber);
}

.splash-h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #fff, #ffca28, #ff5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-desc {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.5;
}

.splash-enter-btn {
  position: relative;
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #ff5722, #ff9100);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  box-shadow: 0 10px 30px rgba(255, 87, 34, 0.5), 0 0 20px rgba(255, 145, 0, 0.4);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.splash-enter-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px rgba(255, 87, 34, 0.7);
}

.splash-enter-btn:active {
  transform: translateY(1px) scale(0.98);
}

.splash-play-icon {
  width: 20px;
  height: 20px;
  fill: #fff;
  stroke: #fff;
}

.splash-footer-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ==============================================================================
   Toast Notification
   ============================================================================== */

.toast-notification {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  z-index: 120;
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid var(--accent-amber);
  border-radius: 999px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 171, 0, 0.3);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-algeria-green);
  font-weight: 800;
}

/* ==============================================================================
   Responsive Layout (Mobile & Tablet)
   ============================================================================== */

@media (max-width: 768px) {
  :root {
    --card-size: min(310px, 78vw);
  }
  
  .top-nav {
    padding: 14px 16px;
  }
  
  .brand-sub {
    display: none;
  }
  
  .stage {
    padding-bottom: 150px;
  }
  
  .controls-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .controls-left,
  .controls-right {
    flex: initial;
  }
  
  .volume-slider-wrapper {
    width: 60px;
  }
  
  .player-dock {
    padding: 10px 14px 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --card-size: min(270px, 75vw);
  }
  
  .title-en {
    font-size: 1.7rem;
    letter-spacing: 2px;
  }
  
  .title-ar {
    font-size: 1.5rem;
  }
  
  .controls-left .btn-text {
    display: none;
  }
  
  .dock-btn {
    padding: 6px 8px;
  }
}
