/* ==============================================================================
   SaharaZik 2.0 — Desert Luxury & Cultural Aesthetics Design System
   Palette: Desert Gold (#d4af37), Tuareg Indigo (#1e3a8a), Midnight Sand (#0a0f1d)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Amiri:ital,wght@0,400;0,700;1,400&family=Outfit:wght@400;500;700;800&display=swap');

:root {
  --bg-primary: #070a12;
  --bg-surface: #0e1526;
  --bg-surface-elevated: #151f38;
  --bg-glass: rgba(14, 21, 38, 0.75);
  
  --gold-primary: #d4af37;
  --gold-hover: #e5c358;
  --gold-light: #fef3c7;
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --tuareg-blue: #2563eb;
  --tuareg-cyan: #06b6d4;
  --desert-orange: #ea580c;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --border-color: rgba(212, 175, 55, 0.18);
  --border-glass: rgba(255, 255, 255, 0.08);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.2);
  
  --font-arabic: 'Cairo', system-ui, sans-serif;
  --font-heading: 'Amiri', serif;
  --font-latin: 'Outfit', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  direction: rtl; /* Default Arabic */
  background: 
    linear-gradient(180deg, rgba(8, 12, 22, 0.40) 0%, rgba(12, 18, 32, 0.60) 45%, rgba(7, 10, 18, 0.82) 100%),
    url('../images/sahara_bg_luxury.jpg') no-repeat center top fixed;
  background-size: cover;
  background-attachment: fixed;
}

body[dir="ltr"] {
  direction: ltr;
  font-family: var(--font-latin);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* Top Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 27, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-primary), var(--desert-orange));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070a12;
  font-size: 1.5rem;
  box-shadow: var(--shadow-gold);
}

.brand-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: block;
}

/* Nav Links Tabs: Unified Geometry (Spotify / Apple Music Chips) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

/* ALL BUTTONS IN NAVBAR SHARE THE EXACT SAME SHAPE, HEIGHT, & BORDER-RADIUS */
.nav-chip,
.nav-tab,
.nav-action-chip,
.btn-secondary {
  height: 34px !important;
  border-radius: 6px !important;
  padding: 0 0.8rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1 !important;
  transition: all 0.18s ease !important;
  cursor: pointer !important;
}

.nav-chip:hover,
.nav-tab:hover,
.nav-action-chip:hover,
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.nav-chip.active,
.nav-tab.active {
  background: var(--gold-primary) !important;
  color: #070a12 !important;
  border-color: var(--gold-primary) !important;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
}

.live-badge {
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 800;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.75; }
  100% { transform: scale(1); opacity: 1; }
}

/* Top Right Actions Group */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.nav-action-chip.vip-gold {
  background: rgba(212, 175, 55, 0.12) !important;
  border-color: var(--gold-primary) !important;
  color: #fef08a !important;
}

.nav-action-chip.vip-gold:hover {
  background: var(--gold-primary) !important;
  color: #070a12 !important;
}

.nav-action-chip.member-badge {
  border-color: rgba(34, 197, 94, 0.4) !important;
  color: #86efac !important;
  background: rgba(34, 197, 94, 0.08) !important;
}

.nav-action-chip.data-saver {
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #bae6fd !important;
}

.quick-radio-btn {
  background: linear-gradient(135deg, var(--tuareg-blue), #1d4ed8);
  color: white;
  padding: 0 1rem;
  height: 34px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.quick-radio-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.45);
}

.lang-switch {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.2rem;
}

.lang-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.lang-btn.active {
  background: var(--gold-primary);
  color: #070a12;
}

/* Main Container */
.main-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 2rem 140px 2rem; /* Bottom padding for persistent player */
}

/* Hero Section */
.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 3.5rem 3rem;
  margin-bottom: 2.5rem;
  background: 
    linear-gradient(135deg, rgba(7, 10, 18, 0.9) 0%, rgba(21, 31, 56, 0.82) 100%),
    radial-gradient(circle at right center, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 650px;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-title span {
  color: var(--gold-primary);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), #b89224);
  color: #070a12;
  font-weight: 800;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  border: 1px solid var(--border-glass);
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Category Filter Pills */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::before {
  content: '';
  width: 5px;
  height: 24px;
  background: var(--gold-primary);
  border-radius: 4px;
  display: inline-block;
}

.category-pills {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 0.6rem 1.3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--gold-primary);
  color: #070a12;
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

/* Artists & Albums Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.artist-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.artist-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-gold);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  background: #111827;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.artist-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.artist-card:hover .card-play-overlay {
  opacity: 1;
}

.play-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--gold-primary);
  color: #070a12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transform: scale(0.85);
  transition: var(--transition-fast);
}

.artist-card:hover .play-circle-btn {
  transform: scale(1);
}

.card-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-region-tag {
  color: var(--gold-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Track list table */
.track-list {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 3rem;
}

.track-row {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-fast);
  cursor: pointer;
}

.track-row:last-child {
  border-bottom: none;
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.track-row.playing {
  background: rgba(212, 175, 55, 0.1);
  border-inline-start: 4px solid var(--gold-primary);
}

.track-num {
  width: 36px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.track-details {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.track-info-titles {
  display: flex;
  flex-direction: column;
}

.track-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.track-artist {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.track-badge {
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.track-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.track-actions {
  display: flex;
  gap: 0.6rem;
  margin-inline-start: 1rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.btn-icon:hover {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

/* Sections Containers (Tabs) */
.tab-content {
  display: none;
  animation: fadeIn 0.35s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-banner {
    flex-direction: column;
    padding: 2rem;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .nav-links {
    display: none; /* Mobile menu can replace */
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0.6rem 1rem;
  }
  .brand-title {
    font-size: 1.25rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .main-wrapper {
    padding: 1rem 1rem 160px 1rem;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
}

/* ==============================================================================
   SaharaZik 2.0 — Extended Modules Styling (Map, Room, Scheduler, Gallery)
   ============================================================================== */

/* SVG Cultural Map Styles */
.map-view-box {
  width: 100%;
  aspect-ratio: 1000 / 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sahara-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}

.map-node {
  cursor: pointer;
  transition: transform 0.25s ease;
}

.map-node:hover {
  transform: scale(1.15);
}

.node-ring {
  fill: rgba(212, 175, 55, 0.15);
  stroke: var(--gold-primary);
  stroke-width: 1.5;
  animation: ringPulse 2s infinite ease-out;
}

.node-center {
  fill: var(--gold-primary);
  transition: fill 0.2s ease;
}

.map-node.active .node-center {
  fill: #ef4444;
}

.map-node.active .node-ring {
  stroke: #ef4444;
  fill: rgba(239, 68, 68, 0.2);
}

.node-label {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  font-family: var(--font-arabic);
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.9));
}

@keyframes ringPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.artist-pill {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Room & Live Lounge Styles */
.chat-message-bubble {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.chat-message-bubble:hover {
  background: rgba(255, 255, 255, 0.06);
}

.chat-avatar {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.chat-content {
  flex: 1;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.chat-sender {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold-primary);
}

.chat-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chat-text {
  font-size: 0.9rem;
  color: #f1f5f9;
  line-height: 1.4;
}

.floating-emoji {
  position: fixed;
  bottom: 120px;
  font-size: 2.2rem;
  pointer-events: none;
  animation: floatUp 2.2s ease-out forwards;
  z-index: 10001;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.7); opacity: 1; }
  100% { transform: translateY(-300px) scale(1.4); opacity: 0; }
}

/* Radionomy Style Scheduler Grid */
.scheduler-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.scheduler-header-row {
  display: grid;
  grid-template-columns: 140px repeat(7, 1fr);
  background: rgba(21, 31, 56, 0.9);
  border-bottom: 1px solid var(--border-color);
  font-weight: 800;
  text-align: center;
  font-size: 0.85rem;
}

.sched-time-col, .sched-day-col {
  padding: 0.85rem 0.5rem;
  color: var(--gold-primary);
}

.scheduler-slot-row {
  display: grid;
  grid-template-columns: 140px repeat(7, 1fr);
  border-bottom: 1px solid var(--border-glass);
}

.sched-time-badge {
  padding: 1rem 0.5rem;
  background: rgba(14, 21, 38, 0.7);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-inline-end: 1px solid var(--border-glass);
}

.sched-cell {
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-inline-end: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  transition: var(--transition-fast);
}

.sched-cell:hover {
  background: rgba(212, 175, 55, 0.08);
}

.slot-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: white;
}

.slot-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
}

.live-pill {
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: 0.2rem;
}

/* Photo Gallery & Video Vault */
.photo-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.photo-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color);
  box-shadow: var(--shadow-gold);
}

.photo-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.photo-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-card:hover .photo-img-wrapper img {
  transform: scale(1.08);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-zoom-icon {
  font-size: 1.8rem;
}

.photo-info {
  padding: 0.9rem;
}

.photo-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.2rem;
}

.photo-credit {
  font-size: 0.75rem;
  color: var(--gold-primary);
}

.video-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--tuareg-blue);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25);
}

.video-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.video-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  font-size: 1.8rem;
  color: white;
  transition: var(--transition-fast);
}

.video-card:hover .video-play-badge {
  background: rgba(37, 99, 235, 0.7);
  transform: scale(1.08);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.85);
  color: white;
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.video-info {
  padding: 0.9rem;
}

.video-category {
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: white;
  margin-top: 0.2rem;
}

#lightboxModal.open {
  display: flex !important;
}

/* ==============================================================================
   SaharaZik 2.0 — Agraw-Style Cultural Header & Featured Slider Carousel
   ============================================================================== */

/* Top Utility Bar */
.top-utility-bar {
  background: #050811;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 1.5rem;
  height: 36px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.country-marquee {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  white-space: nowrap;
}

.country-pill {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.country-pill:hover {
  color: var(--gold-primary);
}

.utility-actions-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.social-links-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.social-link-pill {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.social-link-pill:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Modern Segmented Control for Themes */
.theme-switcher-box {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.theme-switch-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.theme-switch-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.theme-switch-btn.active {
  background: var(--gold-primary);
  color: #070a12;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.theme-classic-2014 .theme-switch-btn.active {
  background: #f97c00 !important;
  color: #ffffff !important;
}

body.theme-classic-agraw .theme-switch-btn.active {
  background: #e6a73c !important;
  color: #181109 !important;
}

/* Segmented Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 4px;
  transition: all 0.18s ease;
  cursor: pointer;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Compressed Modern Brand Header (No bulky 728x90 taking up screen space) */
.header-main-box {
  background: rgba(8, 13, 24, 0.95);
  padding: 0.65rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 62px;
  box-sizing: border-box;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-heritage-logo {
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

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

.brand-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 40%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.74rem;
  color: var(--gold-light);
  font-weight: 500;
  margin-top: 2px;
}

.header-quick-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-station-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-station-status:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseBeacon 1.5s infinite;
}

.station-live-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #a7f3d0;
}

.quick-listen-chip {
  height: 34px;
  padding: 0 1rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--tuareg-blue), #1d4ed8);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.quick-listen-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.5);
}

.header-vip-chip {
  height: 34px;
  padding: 0 0.9rem;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-primary);
  color: #fef08a;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-vip-chip:hover {
  background: var(--gold-primary);
  color: #070a12;
}

/* Non-Sticky Integrated Sponsor Banner Slot */
.site-sponsor-banner-wrap {
  max-width: 1200px;
  margin: 0.85rem auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
}

.header-ad-728x90 {
  max-width: 728px;
  width: 100%;
  min-height: 80px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.header-ad-728x90:empty::before {
  content: "مساحة إعلانية مميزة 728x90 (Google AdSense / رعاية المهرجانات التراثية)";
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* Agraw-Style Featured Carousel */
.featured-carousel-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
}

.carousel-main-stage {
  position: relative;
  min-height: 380px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease;
}

.carousel-stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.2) 0%, rgba(7, 10, 18, 0.95) 90%);
}

.carousel-stage-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.carousel-side-tabs {
  background: rgba(7, 10, 18, 0.6);
  border-inline-start: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
}

.side-tab-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.side-tab-item:last-child {
  border-bottom: none;
}

.side-tab-item:hover,
.side-tab-item.active {
  background: rgba(212, 175, 55, 0.12);
  border-inline-start: 4px solid var(--gold-primary);
}

.side-tab-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.side-tab-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: white;
}

.side-tab-cat {
  font-size: 0.75rem;
  color: var(--gold-primary);
}

@media (max-width: 1024px) {
  .header-main-box {
    flex-direction: column;
  }
  .header-ad-728x90 {
    width: 100%;
    max-width: 728px;
  }
  .featured-carousel-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   LIVE CATALOG & ARTIST MODAL EXTENSIONS (SAHARAZIK 2.0)
   ========================================================================== */

.catalog-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(212, 175, 55, 0.15));
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.catalog-live-badge strong {
  color: #fff;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 1.8s infinite;
}

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

.alphabet-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  background: rgba(14, 21, 38, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.alpha-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.alpha-btn:hover,
.alpha-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #070a12;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* ARTIST DETAIL MODAL */
.artist-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.artist-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.artist-modal-content {
  background: #0b1122;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  width: 100%;
  max-width: 850px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
}

.artist-modal-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-fast);
}

.artist-modal-close:hover {
  background: var(--gold-primary);
  color: #000;
}

.artist-modal-hero {
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.2) 0%, rgba(11, 17, 34, 0.95) 100%);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.artist-modal-cover {
  width: 130px;
  height: 130px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.artist-modal-titles h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.25rem;
}

.artist-modal-titles .subtitle {
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.artist-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.artist-badge {
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.artist-badge.gold {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.artist-badge.blue {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
  color: #60a5fa;
}

/* TRILINGUAL TABS */
.trilingual-header {
  padding: 1.25rem 2rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.bio-lang-tabs {
  display: flex;
  gap: 0.5rem;
}

.bio-lang-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.bio-lang-btn.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #070a12;
}

.artist-bio-text {
  padding: 1rem 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e2e8f0;
  min-height: 80px;
}

.instruments-section {
  padding: 0.5rem 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.instruments-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.instrument-tag {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #93c5fd;
}

/* TRACKLIST INSIDE MODAL */
.modal-tracklist-section {
  padding: 1.5rem 2rem;
  background: rgba(7, 10, 18, 0.5);
  border-top: 1px solid var(--border-glass);
}

.modal-tracklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-fast);
}

.modal-track-row:hover {
  background: rgba(212, 175, 55, 0.08);
}

.track-left-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.track-btn-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.track-btn-play:hover {
  background: var(--gold-primary);
  color: #000;
  border-color: var(--gold-primary);
}

.track-btn-download {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #60a5fa;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.track-btn-download:hover {
  background: #2563eb;
  color: white;
}

@media (max-width: 640px) {
  .artist-modal-hero {
    flex-direction: column;
    text-align: center;
  }
  .artist-modal-cover {
    margin: 0 auto;
  }
  .artist-meta-badges {
    justify-content: center;
  }
}

/* ==========================================================================
   AL-GASRA LIVE VOICE & AUDIO STAGE (SAHARAZIK 2.0)
   ========================================================================== */

.gasra-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
}

.gasra-main-stage {
  background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.15) 0%, rgba(7, 10, 18, 0.95) 75%);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.stage-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.stage-now-playing {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stage-track-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--gold-primary);
}

.stage-seats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.speaker-seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.speaker-seat:hover {
  transform: translateY(-4px);
}

.avatar-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-primary), var(--indigo-vibrant));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #151f38;
}

.speaker-aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  opacity: 0;
  animation: acousticPulse 1.8s infinite;
}

.speaker-seat.active-speaker .speaker-aura {
  opacity: 1;
}

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

.mic-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #10b981;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border: 2px solid #070a12;
}

.mic-badge.muted {
  background: #ef4444;
}

.speaker-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
}

.speaker-role {
  font-size: 0.72rem;
  color: var(--gold-light);
}

/* SOUNDBOARD SECTION */
.soundboard-panel {
  background: rgba(14, 21, 38, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.sound-trigger-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: #fff;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sound-trigger-btn:hover {
  background: var(--gold-primary);
  color: #070a12;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.sound-trigger-btn:active {
  transform: scale(0.96);
}

/* FLOATING STREAM REACTIONS */
.floating-stream-reaction {
  position: absolute;
  bottom: 30px;
  right: 40px;
  font-size: 2rem;
  pointer-events: none;
  animation: floatUpStream 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 100;
}

@keyframes floatUpStream {
  0% { transform: translateY(0) scale(0.8); opacity: 1; }
  50% { transform: translateY(-120px) scale(1.2) rotate(15deg); opacity: 0.9; }
  100% { transform: translateY(-260px) scale(1) rotate(-15deg); opacity: 0; }
}

@media (max-width: 900px) {
  .gasra-wrapper {
    grid-template-columns: 1fr;
  }
  .stage-seats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==============================================================================
   AL-GASRA MULTI-ROOM SWITCHER & ADMIN TOOLBAR
   ============================================================================== */
.room-switcher-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(14, 21, 38, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.25rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.room-tabs-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.2rem 0;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.room-selector-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.room-selector-tab:hover, .room-selector-tab.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.room-tab-badge {
  font-size: 0.72rem;
  color: #ef4444;
  font-weight: 800;
  background: rgba(239, 68, 68, 0.15);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.room-actions-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ADMIN PANEL FOR AL-GASRA */
.gasra-admin-panel {
  background: rgba(10, 15, 29, 0.95);
  border: 1px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 25px rgba(239, 68, 68, 0.2);
}

.admin-toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admin-toolbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.6rem;
}

.admin-tg-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.tg-indicator {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.tg-indicator.connected {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.tg-indicator.active-sim {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
}

.admin-quick-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-admin-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-admin-action:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.admin-seat-controls {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.btn-admin-mini {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-admin-mini.danger {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

/* CHAT MODERATION NOTIFICATIONS & TOASTS */
.chat-message-bubble.moderated-bubble {
  border-right: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.moderation-incident-toast {
  position: fixed;
  top: 25px;
  left: 25px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid #ef4444;
  box-shadow: 0 10px 40px rgba(239, 68, 68, 0.35);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  z-index: 100000;
  max-width: 420px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.moderation-incident-toast.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.room-notification-pill {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(14, 21, 38, 0.95);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
}

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

/* ==============================================================================
   HERITAGE PHOTO GALLERY & LIGHTBOX
   ============================================================================== */
.filter-pills-container {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-secondary);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active, .filter-pill:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.photo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.photo-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}

.photo-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-card:hover .photo-img-wrapper img {
  transform: scale(1.05);
}

.photo-tag-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.photo-card:hover .photo-overlay {
  opacity: 1;
}

.photo-zoom-icon {
  background: var(--gold-primary);
  color: #070a12;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.photo-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.photo-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}

.photo-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.photo-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 0.2rem;
}

/* VIDEO CARDS */
.video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.video-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.9);
  color: #070a12;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.video-card:hover .video-play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: #fef3c7;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.video-info {
  padding: 1rem;
}

.video-category {
  font-size: 0.75rem;
  color: var(--gold-primary);
  font-weight: 700;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* LIGHTBOX MODAL */
.heritage-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-content-box {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 950px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.lightbox-close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.lightbox-close-btn:hover {
  background: #ef4444;
  transform: rotate(90deg);
}

.lightbox-img-container {
  position: relative;
  width: 100%;
  max-height: 65vh;
  background: #05070e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(14, 21, 38, 0.8);
  border: 1px solid var(--border-color);
  color: var(--gold-light);
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 5;
}

.lightbox-nav-btn:hover {
  background: var(--gold-primary);
  color: #070a12;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev-btn { right: 15px; }
.lightbox-nav-btn.next-btn { left: 15px; }

.lightbox-caption-bar {
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==============================================================================
   STANDARDIZED RESPONSIVE ENGINE — PHONES, TABLETS, IPAD & SAFARI (PWA GRADE)
   Defined standards:
   - Viewport Bounds: 100vw bounded, zero horizontal overflow
   - Safe Area Inset Support: env(safe-area-inset-bottom/top)
   - Mobile Phones (<= 480px): iPhone SE/12/13/14/15/16, Galaxy S/A (2-col grid)
   - Tablets Portrait (481px - 820px): iPad Mini/Air/10th gen (3-col grid)
   - Tablets Landscape & Laptops (821px - 1024px): iPad Pro 11/12.9 (4-col grid)
   - Desktops (> 1024px): Full responsive portal
   ============================================================================== */

/* Global Mobile Viewport & Safari Fixes */
html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* 1. Large Desktops & HD (1440px+) */
@media (min-width: 1440px) {
  .main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* 2. Laptops & iPad Pro Landscape (821px - 1024px) */
@media (min-width: 821px) and (max-width: 1024px) {
  .header-main-box {
    padding: 1rem 1.5rem;
  }
  .navbar {
    padding: 0.5rem 1.25rem;
  }
  .cards-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
  }
  .heritage-categories-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
  }
  .featured-carousel-wrapper {
    grid-template-columns: 1fr 280px;
  }
  .radio-channels-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* 3. Universal Tablets Portrait & Mobile Phone Engine (<= 820px) */
@media (max-width: 820px) {
  body {
    background-attachment: scroll !important;
    padding-bottom: calc(125px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Top Utility Bar on Mobile/Tablet */
  .top-utility-bar {
    padding: 0.35rem 0.75rem !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    align-items: stretch !important;
  }

  .top-utility-bar .social-links-group {
    display: none !important; /* Hide external social links from top header on mobile */
  }

  .top-utility-bar .utility-actions-group {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .theme-switcher-box {
    gap: 0.25rem !important;
  }

  .theme-switch-btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
  }

  .lang-switch {
    gap: 0.2rem !important;
  }

  .lang-btn {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.72rem !important;
  }

  .country-marquee {
    font-size: 0.75rem !important;
  }

  /* Live Dedication Bar */
  .live-dedication-bar {
    padding: 0.35rem 0.75rem !important;
    gap: 0.5rem !important;
  }

  .dedication-badge {
    font-size: 0.75rem !important;
  }

  .btn-send-dedication {
    padding: 0.25rem 0.6rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* Modern Compressed Mobile Header */
  .header-main-box {
    padding: 0.5rem 0.85rem !important;
    min-height: 52px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: right !important;
    gap: 0.5rem !important;
  }

  .brand-logo {
    justify-content: flex-start !important;
    gap: 0.5rem !important;
  }

  .brand-heritage-logo {
    height: 36px !important;
    width: auto !important;
  }

  .brand-title {
    font-size: 1.35rem !important;
  }

  .brand-subtitle {
    display: none !important; /* Kept hidden on mobile to prevent vertical clogging */
  }

  .header-quick-bar {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  .header-station-status {
    display: none !important; /* Saved space for quick action buttons */
  }

  .quick-listen-chip {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.76rem !important;
    height: 32px !important;
  }

  .header-vip-chip {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.76rem !important;
    height: 32px !important;
  }

  /* Sponsor Banner Wrap (Outside sticky header, natural flow) */
  .site-sponsor-banner-wrap {
    padding: 0.4rem 0.75rem !important;
  }

  .header-ad-728x90 {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 0.35rem !important;
  }

  .ad-placeholder-graphic {
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 0.4rem !important;
    font-size: 0.72rem !important;
  }

  /* Hide Cluttered Desktop Navbar on Mobile - Handled cleanly by Floating Bottom Dock */
  .navbar {
    display: none !important;
  }

  /* Theme Indicator Bar (Segmented 3-Way Switcher on Mobile) */
  .classic-mode-indicator-bar {
    padding: 0.5rem 0.75rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }

  .classic-mode-indicator-bar > div:first-child {
    font-size: 0.82rem !important;
    text-align: center !important;
    justify-content: center !important;
  }

  #themeBannerDesc {
    display: none !important; /* Hide long description on mobile */
  }

  .classic-mode-indicator-bar > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }

  .classic-mode-indicator-bar button {
    width: 100% !important;
    padding: 0.45rem 0.2rem !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Search & Filter Toolbar */
  .search-filter-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
    margin-bottom: 1.25rem !important;
  }

  .search-filter-toolbar > div {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .search-filter-toolbar button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Alphabet Filter Bar */
  .alphabet-filter-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0.45rem 0.6rem !important;
    gap: 0.3rem !important;
    margin-bottom: 1.25rem !important;
  }

  .alphabet-filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .alpha-btn {
    flex-shrink: 0 !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 0.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
  }

  /* Hero Featured Carousel */
  .featured-carousel-wrapper {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-bottom: 1.5rem !important;
  }

  .carousel-side-tabs {
    display: none !important;
  }

  .carousel-main-stage {
    min-height: 260px !important;
    padding: 1.5rem 1rem !important;
  }

  .carousel-stage-title {
    font-size: 1.4rem !important;
  }

  .carousel-stage-desc {
    font-size: 0.82rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* Classic Theme Portal Sidebars Collapse */
  body.theme-classic-agraw .classic-portal-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }

  body.theme-classic-agraw .classic-portal-main {
    order: 1 !important;
    width: 100% !important;
  }

  body.theme-classic-agraw .classic-sidebar-right {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.theme-classic-agraw .classic-sidebar-left {
    order: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .classic-block-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Modals Optimization */
  .artist-modal-backdrop,
  #vipMembershipModal,
  #radarSearchModal,
  #joinTeamModal,
  #dedicationModal,
  #offlineVaultModal,
  #discordModal {
    padding: 0.5rem !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .artist-modal-content,
  .glass-panel {
    max-width: 95vw !important;
    width: 100% !important;
    max-height: 88dvh !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .artist-modal-hero {
    padding: 1.5rem 1rem 1rem !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.75rem !important;
  }

  .artist-modal-cover {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
  }

  .artist-modal-titles h2 {
    font-size: 1.25rem !important;
  }

  .artist-meta-badges {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }

  .modal-tracklist-section {
    padding: 1rem 0.75rem !important;
  }

  .modal-track-row {
    padding: 0.6rem 0.5rem !important;
    gap: 0.5rem !important;
  }

  .modal-track-row .track-title {
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 140px !important;
  }

  /* Live Rooms & Gasra */
  .gasra-wrapper {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .gasra-main-stage {
    padding: 1rem !important;
    border-radius: 14px !important;
  }

  .stage-seats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }

  .room-switcher-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.6rem !important;
  }
}

/* 4. Tablet Portrait Specifics (481px - 820px: iPad Mini, iPad Air) */
@media (min-width: 481px) and (max-width: 820px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
  }
  .heritage-categories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.85rem !important;
  }
  .category-card {
    height: 140px !important;
  }
  .radio-channels-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}

/* 5. Mobile Phone Specifics (<= 480px: iPhone 14/15/16, Android, Compact Screens) */
@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin-bottom: 2rem !important;
  }

  .artist-card {
    padding: 0.55rem !important;
    border-radius: 10px !important;
  }

  .card-title {
    font-size: 0.82rem !important;
    margin: 0.35rem 0 0.15rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .card-subtitle {
    font-size: 0.7rem !important;
  }

  /* 2014 CD Jewel Case Mobile Adaptation */
  .cd-jewel-case {
    padding: 4px !important;
    max-width: 100% !important;
  }

  .cd-jewel-case > div:first-child,
  .cd-case-wrap {
    width: 110px !important;
    height: 105px !important;
    padding: 10px 0 0 6px !important;
  }

  .cd-jewel-art {
    width: 78px !important;
    height: 75px !important;
  }

  .cd-jewel-lbl-latin,
  .cd-jewel-lbl-ar {
    font-size: 0.68rem !important;
    padding: 1px 4px !important;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cd-jewel-views {
    font-size: 0.6rem !important;
  }

  /* Visual Heritage Categories Grid */
  .heritage-categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
    margin: 1rem 0 1.5rem 0 !important;
  }

  .category-card {
    height: 115px !important;
    border-radius: 8px !important;
  }

  .category-card-title {
    font-size: 0.78rem !important;
  }

  .category-card-subtitle {
    display: none !important;
  }

  .category-card-badge {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.4rem !important;
  }

  /* Radio Stations Grid */
  .radio-channels-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .radio-channel-card {
    padding: 1rem !important;
    border-radius: 12px !important;
  }

  /* Photos & Videos Gallery Grids */
  .cards-grid#photosGalleryGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem !important;
  }

  .cards-grid#videosVaultGrid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* 6. Ultra-Compact Mobile Phones (<= 375px: iPhone SE, Galaxy Mini) */
@media (max-width: 375px) {
  .brand-title {
    font-size: 1.5rem !important;
  }

  .brand-subtitle {
    font-size: 0.7rem !important;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .nav-tab {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.78rem !important;
  }

  .alpha-btn {
    min-width: 30px !important;
    height: 30px !important;
    font-size: 0.75rem !important;
  }
}

/* =========================================================================
   SAHARAZIK HERITAGE PODCAST & BROADCAST SECTION (قسم البرودكاست والبودكاست)
   ========================================================================= */
.podcast-featured-card {
  display: flex;
  background: linear-gradient(135deg, rgba(14, 21, 38, 0.95) 0%, rgba(7, 10, 18, 0.92) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  gap: 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(212, 175, 55, 0.2);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.podcast-featured-cover-wrapper {
  flex-shrink: 0;
  width: 320px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-glass);
}

.podcast-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  display: block;
  transition: transform 0.5s ease;
}

.podcast-featured-card:hover .podcast-featured-img {
  transform: scale(1.03);
}

.podcast-duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.podcast-episode-num-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold-primary);
  color: #070a12;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.podcast-featured-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.podcast-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.podcast-series-badge {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.podcast-date-badge, .podcast-listens-badge {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.podcast-featured-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.podcast-featured-host {
  font-size: 0.9rem;
  color: var(--gold-primary);
  margin-bottom: 0.8rem;
}

.podcast-featured-synopsis {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.podcast-player-controls-panel {
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.podcast-player-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.podcast-main-play-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  gap: 0.5rem;
}

.btn-skip {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--gold-light);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-skip:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.15);
  transform: scale(1.05);
}

.podcast-progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
  transition: height 0.2s;
}

.podcast-progress-container:hover {
  height: 11px;
}

.podcast-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.podcast-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Episodes Grid Cards */
.podcast-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.podcast-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.podcast-card.active-playing {
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.podcast-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
}

.podcast-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.podcast-card:hover .podcast-card-img-wrapper img {
  transform: scale(1.06);
}

.podcast-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.podcast-card-series-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(14, 21, 38, 0.9);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.podcast-card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.podcast-card:hover .podcast-card-play-overlay {
  opacity: 1;
}

.play-icon-large {
  width: 48px;
  height: 48px;
  background: var(--gold-primary);
  color: #070a12;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

.podcast-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.podcast-card-meta {
  font-size: 0.75rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.podcast-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.podcast-card-title:hover {
  color: var(--gold-primary);
}

.podcast-card-synopsis {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.podcast-card-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.podcast-tag {
  font-size: 0.7rem;
  color: #94a3b8;
  background: rgba(255,255,255,0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.podcast-card-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 0.75rem;
  margin-top: auto;
}

/* Subscription Platforms Banner */
.podcast-platforms-banner {
  background: rgba(14, 21, 38, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.podcast-platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-spotify {
  background: #1db954;
  color: #000;
}
.btn-spotify:hover {
  background: #1ed760;
  transform: translateY(-2px);
}

.btn-apple {
  background: #9933ff;
  color: #fff;
}
.btn-apple:hover {
  background: #ab47bc;
  transform: translateY(-2px);
}

.btn-yt-podcast {
  background: #ff0000;
  color: #fff;
}
.btn-yt-podcast:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.btn-rss-feed {
  background: #ff9900;
  color: #000;
}
.btn-rss-feed:hover {
  background: #ffaa22;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .podcast-featured-card {
    flex-direction: column;
    padding: 1.2rem;
  }
  .podcast-featured-cover-wrapper {
    width: 100%;
  }
}

/* ==============================================================================
   DUAL THEME SYSTEM: CLASSIC AGRAW HERITAGE vs MODERN LUXURY 2026
   ============================================================================== */

.theme-switcher-box {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.15rem;
  align-items: center;
  gap: 0.2rem;
}

.theme-switch-btn {
  padding: 0.22rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.theme-switch-btn:hover {
  color: var(--text-primary);
}

.theme-switch-btn.active {
  background: linear-gradient(135deg, var(--gold-primary), #b89224);
  color: #070a12;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Body: Classic Agraw Theme Mode */
body.theme-classic-agraw {
  --bg-primary: #181109;
  --bg-surface: #271c11;
  --bg-surface-elevated: #362617;
  --bg-glass: rgba(39, 28, 17, 0.94);
  --gold-primary: #e6a73c;
  --gold-hover: #f5bc5a;
  --gold-light: #fef1db;
  --gold-glow: rgba(230, 167, 60, 0.35);
  --tuareg-blue: #a35d1f;
  --border-color: #8c602a;
  --border-glass: rgba(230, 167, 60, 0.22);
  --text-primary: #fff8eb;
  --text-secondary: #dbc4a4;
  --text-muted: #ab9273;
  background: 
    linear-gradient(180deg, rgba(24, 17, 9, 0.95) 0%, rgba(32, 23, 13, 0.96) 50%, rgba(20, 14, 7, 0.98) 100%),
    url('../images/sahara_bg_luxury.jpg') no-repeat center top fixed;
  background-size: cover;
}

body.theme-classic-agraw .navbar {
  background: rgba(24, 17, 9, 0.96);
  border-bottom: 2px solid #8c602a;
}

body.theme-classic-agraw .nav-tab.active {
  background: linear-gradient(180deg, #f5bc5a 0%, #c4831a 100%);
  color: #1e1307;
  border: 1px solid #ffe2a3;
  box-shadow: 0 3px 10px rgba(196, 131, 26, 0.4);
}

body.theme-classic-agraw .card,
body.theme-classic-agraw .artist-card,
body.theme-classic-agraw .photo-card,
body.theme-classic-agraw .video-card,
body.theme-classic-agraw .podcast-card {
  border: 1px solid #7d5222;
  background: #251a0f;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

body.theme-classic-agraw .card:hover,
body.theme-classic-agraw .artist-card:hover,
body.theme-classic-agraw .photo-card:hover,
body.theme-classic-agraw .video-card:hover {
  border-color: #e6a73c;
  box-shadow: 0 6px 20px rgba(230, 167, 60, 0.25);
}

body.theme-classic-agraw .header-main-box {
  background: #1f150b;
  border-bottom: 2px solid #8c602a;
  background-image: radial-gradient(circle at 10% 50%, rgba(230, 167, 60, 0.12) 0%, transparent 60%);
}

body.theme-classic-agraw .header-ad-728x90 {
  border-color: #8c602a;
  background: rgba(39, 28, 17, 0.7);
}

/* ==============================================================================
   WATERMARK CONTROLLER & FLOATING OVERLAY STYLING
   ============================================================================== */

.watermark-controller-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.watermark-control-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.watermark-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.watermark-positions-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.wm-pos-btn {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  transition: var(--transition-fast);
  cursor: pointer;
}

.wm-pos-btn:hover {
  color: var(--text-primary);
  border-color: var(--gold-primary);
}

.wm-pos-btn.active {
  background: var(--gold-primary);
  color: #070a12;
  border-color: var(--gold-primary);
}

.wm-pos-mini-btn {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition-fast);
}

.wm-pos-mini-btn:hover, .wm-pos-mini-btn.active {
  background: var(--gold-primary);
  color: #070a12;
}

.watermark-sliders-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Floating Watermark Badge on Video & Photo */
.sahara-watermark-overlay-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.sahara-watermark-badge {
  position: absolute;
  pointer-events: none;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 25;
}

.sahara-watermark-badge.watermark-top-right {
  top: 18px;
  right: 18px;
}

.sahara-watermark-badge.watermark-top-left {
  top: 18px;
  left: 18px;
}

.sahara-watermark-badge.watermark-bottom-right {
  bottom: 18px;
  right: 18px;
}

.sahara-watermark-badge.watermark-bottom-left {
  bottom: 18px;
  left: 18px;
}

.sahara-watermark-badge.watermark-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Photo FX Bar & Buttons */
.photo-fx-btn {
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.photo-fx-btn:hover {
  color: var(--gold-light);
  border-color: var(--gold-primary);
}

.photo-fx-btn.active {
  background: var(--gold-primary);
  color: #070a12;
  border-color: var(--gold-primary);
}

/* Video Badges & Custom Controls */
.platform-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
}

.dm-badge {
  background: #0066dc;
  color: #fff;
}

.direct-badge {
  background: #10b981;
  color: #fff;
}

.custom-badge-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.btn-delete-video {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-delete-video:hover {
  background: #ef4444;
  color: #fff;
}

.input-sahara {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.input-sahara:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ==============================================================================
   NATIVE MOBILE BOTTOM APP BAR (SPOTIFY / ANGHAMI STYLE)
   ============================================================================== */

.mobile-bottom-app-bar {
  display: none;
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 14px;
  right: 14px;
  margin: 0 auto;
  max-width: 480px;
  height: 56px;
  background: rgba(10, 16, 28, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  z-index: 10000;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.15) inset;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

@media (max-width: 820px) {
  .mobile-bottom-app-bar {
    display: flex !important;
  }
}

.mobile-bar-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  gap: 0.15rem;
  position: relative;
  border-radius: 12px;
  padding: 0.2rem 0;
}

.mobile-bar-tab .bar-icon {
  font-size: 1.25rem;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bar-tab .bar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mobile-bar-tab:active {
  transform: scale(0.92);
}

.mobile-bar-tab.active {
  color: var(--gold-primary);
}

.mobile-bar-tab.active .bar-icon {
  transform: translateY(-2px) scale(1.15);
  filter: drop-shadow(0 2px 8px var(--gold-glow));
}

/* Theme Adaptation for Floating Dock */
body.theme-classic-2014 .mobile-bottom-app-bar {
  background: rgba(18, 14, 10, 0.94);
  border-color: rgba(249, 124, 0, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(249, 124, 0, 0.2);
}
body.theme-classic-2014 .mobile-bar-tab.active {
  color: #f97c00 !important;
}

body.theme-classic-agraw .mobile-bottom-app-bar {
  background: rgba(19, 14, 10, 0.94);
  border-color: rgba(230, 167, 60, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(230, 167, 60, 0.2);
}
body.theme-classic-agraw .mobile-bar-tab.active {
  color: #e6a73c !important;
}

body.theme-modern .mobile-bottom-app-bar {
  background: rgba(10, 16, 28, 0.94);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 18px rgba(212, 175, 55, 0.25);
}
body.theme-modern .mobile-bar-tab.active {
  color: #d4af37 !important;
}

/* ==============================================================================
   PWA APP INSTALLATION CONTROLS
   ============================================================================== */

.btn-pwa-install {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-pwa-install:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.pwa-mobile-toast {
  position: fixed;
  bottom: 70px;
  left: 15px;
  right: 15px;
  background: linear-gradient(135deg, #0e1526, #151f38);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  z-index: 99998;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  animation: slideUpToast 0.4s ease-out;
}

@keyframes slideUpToast {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==============================================================================
   LIVE DEDICATIONS TICKER & MODAL
   ============================================================================== */

.live-dedication-bar {
  background: rgba(14, 21, 38, 0.95);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  font-size: 0.82rem;
}

.dedication-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-primary);
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.dedication-marquee-wrapper {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.dedication-marquee-text {
  display: inline-block;
  animation: marqueeDedications 32s linear infinite;
  color: #f1f5f9;
}

.dedication-marquee-text:hover {
  animation-play-state: paused;
}

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

.btn-send-dedication {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.btn-send-dedication:hover {
  background: var(--gold-primary);
  color: #070a12;
}

/* ==============================================================================
   DISCORD COMMUNITY HUB & FLOATING WIDGET
   ============================================================================== */

.floating-discord-badge {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9990;
  background: #5865F2; /* Discord Blurple */
  color: white;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-discord-badge:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.7);
  background: #4752c4;
}

@media (max-width: 768px) {
  .floating-discord-badge {
    bottom: 125px;
    left: 15px;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }
}

.discord-hub-container {
  background: #2b2d31;
  border-radius: var(--radius-md);
  border: 1px solid #3f4147;
  overflow: hidden;
  color: #dbdee1;
  margin-top: 1rem;
}

.discord-hub-header {
  background: #1e1f22;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #35363c;
  flex-wrap: wrap;
  gap: 1rem;
}

.discord-channels-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  padding: 1.25rem;
}

.discord-channel-card {
  background: #313338;
  border: 1px solid #383a40;
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.discord-channel-card:hover {
  background: #383a40;
  border-color: #5865F2;
  transform: translateY(-2px);
}

.discord-channel-card .channel-hash {
  color: #5865F2;
  font-weight: 800;
  font-size: 1.2rem;
}

/* ==============================================================================
   DESERT DRIVE MODE (CAR MODE)
   ============================================================================== */

.drive-mode-overlay {
  position: fixed;
  inset: 0;
  background: #04060b;
  z-index: 100000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  color: #fff;
  user-select: none;
}

.drive-giant-play-btn {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), #b89224);
  color: #070a12;
  font-size: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

.drive-giant-play-btn:active {
  transform: scale(0.92);
}

/* ==============================================================================
   VISUAL CATEGORY SHOWCASE CARDS (HERITAGE STYLES & TRADITIONAL GENRES)
   Inspired by classic SaharaZik portal visual taxonomy
   ============================================================================== */
.heritage-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem 0;
}

.category-card {
  position: relative;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  background: #0a0e1a;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.25);
  border-color: var(--gold-primary);
}

.category-card.active {
  border-color: var(--gold-primary);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .category-card-img {
  transform: scale(1.08);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0.15) 0%, rgba(7, 10, 18, 0.5) 50%, rgba(7, 10, 18, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.15rem;
  z-index: 2;
}

.category-card-badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  background: rgba(14, 21, 38, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  z-index: 3;
}

.category-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.category-card-subtitle {
  font-size: 0.75rem;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==============================================================================
   INTERACTIVE HERO SLIDER CONTROLS
   ============================================================================== */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(7, 10, 18, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  user-select: none;
}

.slider-arrow-btn:hover {
  background: var(--gold-primary);
  color: #070a12;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow-btn.prev {
  inset-inline-start: 1rem;
}

.slider-arrow-btn.next {
  inset-inline-end: 1rem;
}

.slider-dots-container {
  position: absolute;
  bottom: 1rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dot.active {
  width: 26px;
  border-radius: 9999px;
  background: var(--gold-primary);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* ==============================================================================
   ADVERTISING & GOOGLE ADSENSE SPACES
   ============================================================================== */
.ad-slot-box {
  margin: 1.8rem auto;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-slot-badge {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
  display: inline-block;
}

.ad-slot-inner {
  background: rgba(14, 21, 38, 0.4);
  border: 1px dashed rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.ad-slot-inner:hover {
  border-color: rgba(212, 175, 55, 0.5);
}

.ad-leaderboard {
  width: 728px;
  min-height: 90px;
  max-width: 100%;
}

.ad-billboard {
  width: 970px;
  min-height: 90px;
  max-width: 100%;
}

.ad-rectangle {
  width: 300px;
  min-height: 250px;
  max-width: 100%;
}

.ad-placeholder-graphic {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(37, 99, 235, 0.05));
  color: var(--gold-light);
  text-decoration: none;
}

.ad-placeholder-graphic span {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==============================================================================
   DESERT AUDIO SPACES & LIVE STAGE (X Spaces / Clubhouse Model)
   ============================================================================== */
.audio-spaces-container {
  background: linear-gradient(135deg, rgba(14, 21, 38, 0.9), rgba(7, 10, 18, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.spaces-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.spaces-speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  text-align: center;
}

.space-speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.space-speaker-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 0.5rem;
}

.space-speaker-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
}

.speaker-live-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: pulseRing 1.8s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

.speaker-mic-badge {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  border: 2px solid #070a12;
}

.speaker-mic-badge.muted {
  background: #ef4444;
}

.space-speaker-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.space-speaker-role {
  font-size: 0.72rem;
  color: var(--gold-primary);
}

/* Media Sub Switcher (Top of Photos & Videos) */
.media-sub-switcher {
  display: inline-flex;
  background: rgba(14, 21, 38, 0.7);
  padding: 0.3rem;
  border-radius: 9999px;
  border: 1px solid var(--border-glass);
  margin-bottom: 1.5rem;
}

.media-sub-tab {
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.media-sub-tab.active, .media-sub-tab:hover {
  background: linear-gradient(135deg, var(--gold-primary), #b89224);
  color: #070a12;
}

/* =========================================================================
   GASRA LIVE TEST SESSION & VOICE WAVE STYLES (اختبار الكَصْرَة المباشر)
   ========================================================================= */
.gasra-test-ribbon {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(37, 99, 235, 0.2));
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 25px rgba(212, 175, 55, 0.25);
  animation: fadeInDown 0.3s ease;
}

.test-ribbon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.6rem;
}

.live-pulse-badge {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.test-quick-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-test-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
}

.btn-test-action:hover {
  background: var(--gold-primary);
  color: #070a12;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-test-action.primary-test {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  color: white;
}

.speaker-voice-waves {
  position: absolute;
  top: -12px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
  z-index: 5;
}

.speaker-voice-waves span {
  width: 3px;
  height: 4px;
  background: var(--gold-primary);
  border-radius: 2px;
  animation: voiceBarAnim 0.7s infinite alternate ease-in-out;
}

.speaker-voice-waves span:nth-child(2) { animation-delay: 0.15s; height: 12px; }
.speaker-voice-waves span:nth-child(3) { animation-delay: 0.3s; height: 8px; }
.speaker-voice-waves span:nth-child(4) { animation-delay: 0.45s; height: 14px; }

@keyframes voiceBarAnim {
  0% { height: 4px; }
  100% { height: 14px; background: #10b981; }
}

.speaker-seat.user-seat .avatar-wrapper {
  background: linear-gradient(135deg, #10b981, var(--gold-primary));
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.avatar-emoji-display {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: #151f38;
}

/* ==============================================================================
   LEGACY-STYLE SEARCH & GENRE SELECTOR TOOLBAR
   ============================================================================== */
.search-filter-toolbar input:focus {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3) !important;
}

#genreSearchSelect {
  transition: all 0.2s ease;
}

#genreSearchSelect:hover,
#genreSearchSelect:focus {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  border-color: var(--gold-primary);
}

#genreSearchSelect option {
  background: #0d1527;
  color: white;
  padding: 0.5rem;
}

/* ==============================================================================
   ARTIST VISITOR COMMENTS & DEDICATIONS
   ============================================================================== */
.artist-comment-item {
  background: rgba(14, 21, 38, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.artist-comment-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.artist-comment-item.user-posted {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.35);
}

.comment-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.comment-author-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.comment-meta-date {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.comment-text-content {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.comment-badge-origin {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

/* ==============================================================================
   DESERT GIFTS & TEA DEDICATIONS
   ============================================================================== */
.btn-desert-gift {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-desert-gift:hover {
  background: var(--gold-primary);
  color: #070a12;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ==============================================================================
   VINTAGE CASSETTE DECK & TAPES RACK (INSPIRATION FROM BEDER)
   ============================================================================== */
.cassette-tape-item {
  background: #090e1b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cassette-tape-item:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.3);
}

.cassette-body {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #334155;
  border-radius: 8px;
  padding: 0.6rem;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}

.cassette-body.gold {
  background: linear-gradient(135deg, #2a2010, #141008);
  border-color: #634d1b;
}

.cassette-label-strip {
  background: #f8fafc;
  color: #0f172a;
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cassette-body.gold .cassette-label-strip {
  background: #fef08a;
  color: #422006;
}

.tape-tag {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #dc2626;
  display: block;
}

.tape-title {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
}

.tape-sub {
  font-size: 0.7rem;
  opacity: 0.85;
}

.cassette-wheels {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #020617;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.cassette-wheels .wheel {
  font-size: 0.9rem;
}

.cassette-wheels .tape-window {
  font-size: 0.6rem;
  color: #64748b;
  letter-spacing: -1px;
}

.btn-insert-tape {
  margin-top: 0.6rem;
  width: 100%;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.cassette-tape-item:hover .btn-insert-tape {
  background: var(--gold-primary);
  color: #070a12;
  border-color: var(--gold-primary);
}

.cassette-spool.spinning {
  display: inline-block;
  animation: spinSpool 2.5s infinite linear;
}

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

/* =========================================================================
   HERITAGE AUDIO & TAPE RADAR (مستوحى من Beder / Shazam التراثي)
   ========================================================================= */
.radar-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(4, 7, 15, 0.88);
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.radar-modal-content {
  background: linear-gradient(145deg, #0d1527, #070a12);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.15);
  position: relative;
}

.radar-pulse-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.05) 70%, transparent 100%);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  position: relative;
  cursor: pointer;
}

.radar-pulse-ring::before,
.radar-pulse-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-primary);
  opacity: 0.6;
  animation: radarWave 2s infinite ease-out;
}

.radar-pulse-ring::after {
  inset: -18px;
  animation-delay: 0.6s;
}

@keyframes radarWave {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.radar-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  margin: 1rem 0;
}

.radar-wave-bar {
  width: 4px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 4px;
  transition: height 0.2s ease;
}

.radar-wave-bar.active {
  animation: wavePulse 1s infinite alternate ease-in-out;
}

@keyframes wavePulse {
  0% { height: 6px; opacity: 0.5; }
  50% { height: 32px; opacity: 1; }
  100% { height: 12px; opacity: 0.7; }
}

.radar-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.radar-chip {
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.radar-chip:hover,
.radar-chip.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.radar-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.radar-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(14, 21, 38, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  transition: all 0.2s;
}

.radar-result-item:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  transform: translateX(-4px);
}

/* ==============================================================================
   SAHARAZIK 2006 CLASSIC 3-COLUMN PORTAL LAYOUT & BLOCKS
   ============================================================================== */

.classic-portal-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* On Modern Theme, hide the extra classic sidebars */
body:not(.theme-classic-agraw) .classic-sidebar-right,
body:not(.theme-classic-agraw) .classic-sidebar-left {
  display: none !important;
}

/* When Classic Theme is Active */
body.theme-classic-agraw .classic-portal-container {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 1.5rem;
  align-items: start;
}

body.theme-classic-agraw .classic-sidebar-right,
body.theme-classic-agraw .classic-sidebar-left {
  display: flex !important;
  flex-direction: column;
  gap: 1.25rem;
}

.classic-block-card {
  background: #251a0f;
  border: 1px solid #7d5222;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.classic-block-header {
  background: linear-gradient(180deg, #422d19 0%, #2b1d10 100%);
  border-bottom: 2px solid #8c602a;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.classic-block-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f5bc5a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: 'Tajawal', sans-serif;
}

.classic-block-body {
  padding: 0.85rem;
}

/* Classic Heritage Category List */
.classic-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.classic-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(140, 96, 42, 0.25);
  color: #dbc4a4;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.classic-cat-item:hover,
.classic-cat-item.active {
  background: rgba(230, 167, 60, 0.18);
  border-color: #e6a73c;
  color: #fff8eb;
  transform: translateX(-3px);
}

.classic-cat-badge {
  background: rgba(140, 96, 42, 0.4);
  color: #f5bc5a;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.72rem;
}

/* Classic Radio Player Box */
.classic-radio-box {
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #7d5222;
  border-radius: 6px;
  padding: 0.85rem;
}

.classic-radio-gif {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.6rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

/* Classic Top Downloads List */
.classic-top-hits-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.classic-top-hit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border: 1px solid rgba(140, 96, 42, 0.2);
  font-size: 0.8rem;
}

.classic-top-hit-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.classic-hit-num {
  font-weight: 800;
  color: #e6a73c;
  font-size: 0.85rem;
}

.classic-hit-title {
  color: #fff8eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

/* ==============================================================================
   PHPMELODY VIDEO PRE-ROLL ADS & COMPANION BANNERS
   ============================================================================== */

.video-modal-flank-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

.video-companion-ad {
  width: 160px;
  min-width: 160px;
  height: 520px;
  background: rgba(14, 21, 38, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.video-companion-ad-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
}

.video-companion-tag {
  font-size: 0.65rem;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-primary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-gold);
}

/* Video Pre-roll Overlay */
.video-preroll-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border-radius: 12px;
}

.video-preroll-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.video-preroll-tag {
  background: #eab308;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.video-preroll-skip-box {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: white;
}

.btn-skip-video-ad {
  background: #eab308;
  color: #000;
  font-weight: 800;
  border: none;
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-skip-video-ad:hover {
  background: #facc15;
  transform: scale(1.05);
}

.video-preroll-content {
  margin: auto;
  text-align: center;
  max-width: 580px;
  z-index: 2;
}

/* Responsive Rules for Mobile / Tablet */
@media (max-width: 1080px) {
  .video-companion-ad {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  body.theme-classic-agraw .classic-portal-container {
    grid-template-columns: 1fr !important;
  }
  body.theme-classic-agraw .classic-sidebar-right {
    order: 2;
  }
  body.theme-classic-agraw .classic-portal-main {
    order: 1;
  }
  body.theme-classic-agraw .classic-sidebar-left {
    order: 3;
  }
}

/* ==============================================================================
   STUDIO ARTISTS & HERITAGE CATALOG MANAGER STYLES
   ============================================================================== */
.artists-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.artist-stat-card {
  background: rgba(18, 26, 44, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.artist-stat-icon {
  font-size: 2rem;
  background: rgba(212, 175, 55, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.artist-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.artist-admin-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.artist-admin-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.artist-admin-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.artist-admin-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
  background: #0f172a;
}

.artist-admin-meta {
  flex: 1;
  min-width: 0;
}

.artist-admin-name-ar {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-admin-name-fr {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-admin-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.tag-badge-genre {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.tag-badge-tracks {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tag-badge-views {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.artist-admin-bio-snip {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
}

.artist-admin-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.6rem;
}

.ai-generator-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff;
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.ai-generator-btn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
}

.live-ad-preview-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--border-gold);
  border-radius: 8px;
  padding: 0.8rem;
  margin-top: 0.8rem;
  text-align: center;
}

/* ==============================================================================
   SAHARAZIK 2014 CLASSIC SHOWCASE THEME (ستايل صحرازيك 2014 الأصلي)
   Faithfully inspired by the 2011-2014 portal archive: deep navy, CD cases,
   vibrant orange #F97C00 accents, and original navigation.
   ============================================================================== */

body.theme-classic-2014 {
  --bg-primary: #0a111a;
  --bg-surface: #101c2b;
  --bg-surface-elevated: #18283d;
  --bg-glass: rgba(16, 28, 43, 0.95);
  --gold-primary: #f97c00; /* Signature SaharaZik 2014 Orange */
  --gold-hover: #ff9d3b;
  --gold-light: #ffebd6;
  --gold-glow: rgba(249, 124, 0, 0.35);
  --tuareg-blue: #1f5082;
  --border-color: #264366;
  --border-glass: rgba(38, 67, 102, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #8aa2be;
  background: 
    linear-gradient(180deg, #091018 0%, #0e1926 40%, #070d14 100%),
    url('../images/heritage/bg.jpg') repeat center top;
  color: #ffffff;
}

body.theme-classic-2014 .navbar {
  background: #0c1724;
  border-bottom: 2px solid #f97c00;
  box-shadow: 0 4px 15px rgba(0,0,0,0.7);
}

body.theme-classic-2014 .nav-tab {
  color: #cbd5e1;
  border-radius: 4px;
}

body.theme-classic-2014 .nav-tab:hover {
  background: #f97c00;
  color: #ffffff !important;
}

body.theme-classic-2014 .nav-tab.active {
  background: linear-gradient(180deg, #f97c00 0%, #d86400 100%);
  color: #ffffff;
  border: 1px solid #ffaa4d;
  box-shadow: 0 3px 10px rgba(249, 124, 0, 0.4);
}

body.theme-classic-2014 .card,
body.theme-classic-2014 .artist-card,
body.theme-classic-2014 .photo-card,
body.theme-classic-2014 .video-card,
body.theme-classic-2014 .podcast-card {
  border: 1px solid #233d5c;
  background: #111d2c;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

body.theme-classic-2014 .card:hover,
body.theme-classic-2014 .artist-card:hover,
body.theme-classic-2014 .photo-card:hover,
body.theme-classic-2014 .video-card:hover {
  border-color: #f97c00;
  box-shadow: 0 6px 20px rgba(249, 124, 0, 0.3);
}

body.theme-classic-2014 .header-main-box {
  background: #09131e;
  border-bottom: 2px solid #264366;
}

/* 2014 CD Jewel Case Styling */
.cd-jewel-case {
  display: inline-block;
  padding: 6px;
  background: #0f1c2a;
  border: 1px dotted #2b496e;
  border-radius: 6px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}

.cd-jewel-case:hover {
  border-color: #f97c00;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(249, 124, 0, 0.3);
}

.cd-jewel-table {
  border-collapse: collapse;
  margin: 0 auto;
}

.cd-jewel-art {
  width: 98px;
  height: 95px;
  object-fit: cover;
  display: block;
}

.cd-jewel-lbl-latin {
  background-color: #1e3650;
  border: 1px dotted #416999;
  padding: 2px 6px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.76rem;
  text-shadow: 1px 2px 1px rgba(0, 0, 0, 0.6);
  display: block;
  margin-top: 4px;
  text-decoration: underline;
}

.cd-jewel-case:hover .cd-jewel-lbl-latin {
  color: #ffcc66;
  background-color: #f97c00;
  border-color: #ffffff;
}

.cd-jewel-lbl-ar {
  background-color: #172a3e;
  border: 1px dotted #315177;
  padding: 2px 6px;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.74rem;
  display: block;
  margin-top: 2px;
}

.cd-jewel-views {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 3px;
  display: block;
}

/* 2014 Section Title Bar (titleo) */
.titleo-bar {
  background: linear-gradient(180deg, #1b3552 0%, #122438 100%), url('../images/heritage/titleo.jpg') repeat-x;
  color: #ffffff;
  border: 1px dotted #426993;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 2014 Featured Showcase Slider */
.featured-showcase-2014 {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
  background: #0a1420;
  border: 1px solid #233d5c;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.featured-slide-main {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #000;
}

.featured-slide-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  padding: 1.25rem 1.5rem;
  color: white;
}

.featured-slide-nav {
  display: flex;
  flex-direction: column;
  background: #0e1b29;
  border-right: 1px solid #1f3650;
  overflow-y: auto;
  max-height: 270px;
}

.featured-nav-item {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #1a2f47;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.featured-nav-item:hover, .featured-nav-item.active {
  background: #f97c00;
  color: #ffffff;
}

/* 2014 Footer (footerzWrap) */
.footer-2014-wrap {
  background: #070e17 url('../images/heritage/bg-footerr.png') repeat-x top;
  border-top: 3px solid #f97c00;
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 3.5rem;
  color: #cbd5e1;
}

.footer-2014-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-2014-col h4 {
  color: #f97c00;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
  border-bottom: 1px dotted #2d486b;
  padding-bottom: 0.4rem;
}

.footer-2014-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-2014-col ul li a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-2014-col ul li a:hover {
  color: #f97c00;
  text-decoration: underline;
}

/* News Cards Responsive Grid */
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .featured-showcase-2014 {
    grid-template-columns: 1fr;
  }
  .featured-slide-nav {
    max-height: 160px;
  }
}

/* ==============================================================================
   DATA SAVER & 3G ULTRA-FAST LOW BANDWIDTH MODE
   (وضع توفير البيانات والسرعة الفائقة لشبكات 3G وصبيب 128 kbps)
   ============================================================================== */
body.data-saver-active {
  background-image: none !important;
  background-color: #080d1a !important;
}

body.data-saver-active * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: none !important;
  animation: none !important;
}

body.data-saver-active .canvas-visualizer,
body.data-saver-active #desertSandCanvas,
body.data-saver-active .hero-particles,
body.data-saver-active .vinyl-spin {
  display: none !important;
}

body.data-saver-active .glass-panel,
body.data-saver-active .card-vintage {
  background: #0f172a !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* ==============================================================================
   TABLET & TOUCH OPTIMIZATION (768px - 1024px)
   (تحسين تجربة الآيباد والطابليت والشاشات اللمسية)
   ============================================================================== */
@media (min-width: 821px) and (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.25rem !important;
  }
  .visual-categories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
  }
  .player-buttons button {
    min-width: 44px;
    min-height: 44px;
  }
  .nav-tab, .studio-nav-tab {
    padding: 0.6rem 1rem !important;
    font-size: 0.88rem !important;
  }
  .classic-portal-container {
    grid-template-columns: 1fr !important;
  }
  .classic-sidebar-right, .classic-sidebar-left {
    width: 100% !important;
  }
  .modal-dialog {
    max-width: 90% !important;
    margin: 1.5rem auto !important;
  }
}

/* ==============================================================================
   RADIO CHANNELS GRID & LHAOUL STATIONS (محطات أثير الصحراء الكبرى)
   ============================================================================== */
.radio-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem 0;
}

.radio-channel-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(7, 10, 18, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.radio-channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.98));
}

.radio-channel-card.active {
  border-color: #f59e0b;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.radio-channel-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b);
}

.channel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.channel-freq-pill {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.channel-badge-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.channel-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0.2rem 0 0.5rem 0;
  line-height: 1.4;
}

.channel-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.channel-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.channel-listeners-info {
  color: var(--text-muted);
}

.channel-status-indicator {
  font-weight: 800;
  color: var(--gold-primary);
}

.channel-status-indicator.active {
  color: #ef4444;
  animation: pulse 1.5s infinite;
}

/* ==============================================================================
   LIVE TAKEOVER BANNER (بث الأخ خالد الحي والمباشر)
   ============================================================================== */
.live-takeover-banner {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.95), rgba(127, 29, 29, 0.98));
  border: 2px solid #ef4444;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35);
  animation: borderGlow 2s infinite alternate;
}

@keyframes borderGlow {
  0% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }
  100% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.6); }
}

.live-takeover-beacon {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #ff4d4d;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(255, 77, 77, 0.7);
  animation: pulseBeacon 1.2s infinite;
  margin-inline-end: 8px;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.live-takeover-active {
  background: #dc2626 !important;
  color: #fff !important;
  animation: pulse 1.2s infinite !important;
}

/* ==============================================================================
   JOIN THE TEAM MODAL & RECRUITMENT HUB (بوابة انضم لفريق العمل)
   ============================================================================== */
.join-team-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 7, 17, 0.85);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.join-team-content {
  background: linear-gradient(145deg, #0f172a, #070a12);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.role-checkbox-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.role-checkbox-card:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
}

.role-checkbox-card input[type="radio"]:checked + span,
.role-checkbox-card.selected {
  color: var(--gold-light);
  font-weight: 800;
}

/* Standardized 16:9 Video Aspect Ratio */
.aspect-16-9, .video-thumb-wrapper, .tv-player-container {
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
}

/* ==============================================================================
   RESPONSIVE THEME SWITCHER & MOBILE LABELS (قوالب صحرازيك التاريخية المتجاوبة)
   ============================================================================== */
.theme-short-name {
  display: none;
}
.theme-full-name {
  display: inline;
}

@media (max-width: 768px) {
  .theme-short-name {
    display: inline !important;
  }
  .theme-full-name {
    display: none !important;
  }
  #themeIndicatorBar {
    padding: 0.5rem 0.75rem !important;
    gap: 0.5rem !important;
  }
  #themeIndicatorBar > div:first-child {
    font-size: 0.8rem !important;
  }
  #themeBannerDesc {
    font-size: 0.7rem !important;
  }
  #themeIndicatorBar button {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
  }
}

/* ==============================================================================
   LIVE DEDICATION TICKER MOBILE REFINEMENT (شريط إهداءات رشيق للجوال)
   ============================================================================== */
@media (max-width: 768px) {
  .live-dedication-bar {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.74rem !important;
    gap: 0.4rem !important;
    min-height: 34px !important;
  }
  .dedication-badge {
    padding: 0.2rem 0.45rem !important;
    font-size: 0.7rem !important;
    gap: 0.25rem !important;
  }
  .dedication-badge-icon {
    font-size: 0.85rem !important;
  }
  .btn-send-dedication {
    padding: 0.2rem 0.55rem !important;
    font-size: 0.7rem !important;
  }
}

/* ==============================================================================
   SAHARAZIK DIGITAL MEMBERSHIP & VIRTUAL PASS (نظام عضوية صحرازيك وبطاقة العضو)
   ============================================================================== */
.member-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.member-header-badge:hover {
  background: var(--gold-primary);
  color: #070a12;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.member-header-badge.is-registered {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

/* Virtual Pass Card Layout */
.virtual-member-card {
  background: linear-gradient(135deg, #1e1b18 0%, #0d0f17 50%, #1a1500 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), inset 0 0 25px rgba(212, 175, 55, 0.15);
  color: #fff;
  margin: 1rem 0;
  aspect-ratio: 1.586 / 1;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.virtual-member-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.card-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  font-size: 8rem;
  opacity: 0.05;
  color: var(--gold-primary);
  pointer-events: none;
  user-select: none;
}

.card-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37, #f3e5ab, #996515);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.4);
  position: relative;
}

.card-chip::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  right: 6px;
  bottom: 4px;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 3px;
}

.card-number-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: #fef08a;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-weight: 900;
}

.vip-badge-ribbon {
  background: linear-gradient(90deg, #d4af37, #f59e0b);
  color: #070a12;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.whatsapp-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25d366;
  color: #25d366;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 700;
}

/* ==============================================================================
   POCKET BROADCASTER STUDIO & LIVE COCKPIT (استوديو الجيب والبث المباشر)
   ============================================================================== */
.pocket-studio-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 7, 17, 0.88);
  backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pocket-studio-content {
  background: linear-gradient(160deg, #0f172a 0%, #060911 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.12);
  position: relative;
  color: #f1f5f9;
}

.pocket-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pocket-status-pill.standby {
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid #64748b;
  color: #94a3b8;
}

.pocket-status-pill.on-air {
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid #ef4444;
  color: #fca5a5;
  animation: pulseLiveBadge 1.2s infinite ease-in-out;
}

@keyframes pulseLiveBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.pocket-vu-meter-wrap {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#pocketVuMeterCanvas {
  width: 100%;
  height: 38px;
  border-radius: 4px;
  background: #040711;
  display: block;
}

.btn-pocket-broadcast {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 1px solid #f87171;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
}

.btn-pocket-broadcast:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.6);
}

.btn-pocket-broadcast.is-live {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
  border-color: #4ade80 !important;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4) !important;
}

/* Pocket Soundboard Grid */
.pocket-sfx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.sfx-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.4rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.sfx-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  color: #fef08a;
}

.sfx-btn:active {
  transform: scale(0.95);
  background: var(--gold-primary);
  color: #070a12;
}

.sfx-btn span.sfx-icon {
  font-size: 1.4rem;
}

/* Pocket Programs Grid */
.pocket-programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.program-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
  color: #cbd5e1;
  font-size: 0.75rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.program-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
}

/* ==============================================================================
   HISTORIC THEMES CROSS-DEVICE PROPORTIONS (2026, 2014, 2006)
   ============================================================================== */

/* 2014 CD Jewel Case Grid Tablet & Phone */
@media (max-width: 1024px) {
  .cd-jewel-grid,
  .showcase-slider-track {
    gap: 0.75rem !important;
  }
}

@media (max-width: 768px) {
  /* 2014 Showcase Container */
  .featured-showcase-2014 {
    padding: 0.75rem !important;
    border-radius: 8px !important;
    margin-bottom: 1.25rem !important;
  }
  .titleo {
    font-size: 0.88rem !important;
    padding: 0.4rem 0.75rem !important;
  }
  
  /* 2006 Agraw Theme Sidebars */
  body.theme-classic-agraw .classic-block-header {
    padding: 0.5rem 0.75rem !important;
  }
  body.theme-classic-agraw .classic-block-title {
    font-size: 0.85rem !important;
  }
  body.theme-classic-agraw .classic-nav-list li a {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.8rem !important;
  }
  
  /* 2026 Modern Luxury Cards */
  .music-grid, .artist-grid, .video-grid {
    gap: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  /* Extra compact for narrow mobile screens (320px - 480px) */
  .cd-jewel-case {
    max-width: 140px !important;
  }
  .virtual-member-card {
    padding: 1rem !important;
    font-size: 0.8rem !important;
  }
  .card-number-display {
    font-size: 1rem !important;
    letter-spacing: 1px !important;
  }
  .pocket-studio-content {
    padding: 1rem !important;
  }
  .pocket-sfx-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

