@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  /* Color Palette - Diva Luxury Theme */
  --primary: #6a1b9a;
  /* Deep Purple */
  --primary-light: #9c4dcc;
  --primary-dark: #38006b;
  --secondary: #ffd700;
  /* Gold */
  --secondary-glow: rgba(255, 215, 0, 0.4);
  --accent: #ff4081;
  /* Pink accent */

  --dark-bg: #0f0f0f;
  --dark-surface: #1a1a1a;
  --dark-elevated: #252525;

  --text-white: #ffffff;
  --text-gray: #b0b0b0;
  --text-gold: #ffd700;

  --white: #ffffff;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.2);

  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(10px);

  --seeker-track-bg: rgba(255, 255, 255, 0.1);
  --hero-bg: #000;
  --hero-overlay: linear-gradient(to top, var(--hero-bg) 0%, transparent 60%, transparent 100%);

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Themes --- */
body.theme-morning {
  --dark-bg: linear-gradient(135deg, #fff0f5 0%, #ffdde1 100%);
  --dark-surface: rgba(255, 255, 255, 0.55);
  --dark-elevated: rgba(255, 255, 255, 0.8);
  --text-white: #4a0e4e; /* Deep lively purple for text */
  --text-gray: #8e44ad; /* Vibrant violet for secondary text */
  --text-gold: #e67e22; /* Vibrant warm orange */
  --primary: #e056fd; /* Bright Pop Pink/Purple */
  --primary-light: #f368e0;
  --primary-dark: #be2edd;
  --secondary: #ff9f43; /* Bright Amber/Orange */
  --glass: rgba(255, 255, 255, 0.45);
  --glass-opaque: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.7);
  --shadow: 0 10px 40px rgba(224, 86, 253, 0.15);
  --seeker-track-bg: rgba(74, 14, 78, 0.1);
  --hero-bg: linear-gradient(135deg, #fff0f5 0%, #ffdde1 100%);
  --footer-bg: rgba(245, 220, 230, 0.95); /* Grounded soft rose for the footer */
}

body.theme-afternoon {
  --dark-bg: #fffcf5;
  /* Creamy warm */
  --dark-surface: #ffffff;
  --dark-elevated: #fff9e6;
  --text-white: #451a03;
  /* Deep amber-brown */
  --text-gray: #78350f;
  --text-gold: #92400e;
  --primary: #f59e0b;
  /* Amber */
  --primary-light: #fbbf24;
  --primary-dark: #b45309;
  --glass: rgba(245, 158, 11, 0.05);
  --glass-opaque: rgba(255, 252, 245, 0.95);
  --glass-border: rgba(245, 158, 11, 0.1);
  --seeker-track-bg: rgba(0, 0, 0, 0.1);
  --hero-bg: #fffcf5;
}

body.theme-evening {
  /* Inherits from :root */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--dark-bg);
  background-attachment: fixed;
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
  min-height: 100vh;
}

main {
  min-height: 70vh;
  padding-bottom: 15px; /* Reduced as requested (tight but balanced) */
}

h1,
h2,
h3,
h4,
.font-luxury {
  font-family: 'Cairo', serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul,
ol {
  list-style-position: outside;
  padding-inline-start: 1.5rem;
  margin: 1rem 0;
}

li {
  margin-bottom: 0.35rem;
}

.about-list,
.footer-links,
.wiki-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 16px; /* Slightly reduced on mobile */
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  padding: 8px 0;
  background: transparent;
  transition: var(--transition);
}

/* Ensure the header text and icons are white when transparent to stay visible over any slider image */
.header:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  color: #ffffff;
}

.header:not(.scrolled) .nav-links a,
.header:not(.scrolled) .dropdown-title {
  color: #ffffff;
}

.header:not(.scrolled) .nav-links a:hover,
.header:not(.scrolled) .nav-links a.active {
  color: var(--secondary);
}

.header:not(.scrolled) .logo-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.header:not(.scrolled) .hamburger span {
  background-color: #ffffff;
}

.header.scrolled {
  background: var(--dark-surface);
  backdrop-filter: blur(20px);
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  gap: 15px; /* Reduced gap for mobile */
}

@media (min-width: 992px) {
  .header-container {
    padding: 0 24px;
    gap: 30px;
  }
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.search-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(to bottom, #ffd700, #b8860b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: 2px;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-subtitle {
  font-size: 0.6rem; /* Slightly smaller for mobile */
  color: var(--text-gray);
  opacity: 1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-top: 4px;
  }
}

/* --- Language Switcher --- */
.lang-switcher {
  display: flex;
  background: var(--glass);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.lang-dropdown {
  position: relative;
  z-index: 2;
}

.lang-dropdown .dropdown-content {
  z-index: 15;
}

iframe.goog-te-menu-frame {
  z-index: 1 !important;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  color: var(--secondary);
}

.lang-btn.active {
  background: var(--secondary);
  color: var(--dark-bg);
}

/* --- LTR Mode Support --- */
body.ltr-mode {
  direction: ltr;
  font-family: 'Playfair Display', serif; /* Use more Western-friendly font for En/Fr */
}

body.ltr-mode .nav-links a::after {
  left: 0;
  right: auto;
}

body.ltr-mode .dropdown-content {
  left: 0;
  right: auto;
}

body.ltr-mode .lang-switcher {
  margin-right: 15px;
  margin-left: 0;
}

body.ltr-mode .logo-subtitle {
  text-align: left;
}

/* Hide Google's native bar */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon {
  display: none !important;
}
body {
  top: 0 !important;
}
.goog-te-gadget {
  color: transparent !important;
}
.goog-te-gadget .goog-te-combo {
  display: none !important;
}

/* --- Theme Switcher --- */
.theme-switcher {
  display: flex;
  gap: 10px;
  background: var(--glass);
  padding: 5px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  margin-right: 20px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .theme-switcher {
    flex-direction: column;
    position: fixed;
    left: 15px; /* Moved to left as requested */
    right: auto;
    top: 85px; 
    margin-right: 0;
    border-radius: 30px;
    padding: 5px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 42px; /* Height of one button + padding */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
  }

  .theme-switcher.expanded {
    max-height: 200px; /* Large enough for all 3 buttons */
    border-radius: 20px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
  }
  
  .theme-btn {
    width: 40px !important; 
    height: 40px !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.2s ease;
  }

  .theme-btn.active {
    opacity: 1;
    pointer-events: auto;
    order: -1; /* Keep active on top */
  }

  .theme-switcher.expanded .theme-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

.theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  border: none;
  background: transparent;
}

.theme-btn:hover,
.theme-btn.active {
  background: var(--primary);
  color: white;
}

.theme-btn.active {
  box-shadow: 0 0 10px var(--primary);
}

.nav-links {
  display: flex;
  gap: 10px; /* Slim gap to fit all items seamlessly on a single row */
  align-items: center;
  flex: 1;
  justify-content: center; /* Center links in the middle */
  flex-wrap: nowrap;
}

/* Robust spacing for logical layouts (RTL/LTR) */
.nav-links > a, 
.nav-links > .dropdown {
  margin-inline-start: 10px; /* Slim and elegant spacing to keep navbar on one single line */
  flex-shrink: 0;
  white-space: nowrap !important;
}

.nav-links > a:first-child,
.nav-links > .dropdown:first-child {
  margin-inline-start: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* --- Navigation Dropdowns --- */
.dropdown {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}

.dropdown-title {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  transition: var(--transition);
  color: var(--text-white);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.dropdown-title::after {
  content: '\25BE';
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-title {
  color: var(--secondary);
}

.dropdown:hover .dropdown-title::after {
  transform: rotate(180deg);
  color: var(--secondary);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0; /* Align to right for RTL */
  background: var(--dark-surface);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  min-width: 220px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  z-index: 1001;
}

/* Invisible bridge to prevent hover loss between title and content */
@media (min-width: 992px) {
  .dropdown-content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -20px;
    right: -20px;
    height: 40px;
  }
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 20px !important;
  font-size: 0.9rem !important;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-white) !important;
  width: 100%;
}

.dropdown-content a::after {
  display: none !important; /* No underline in dropdown */
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: rgba(255, 215, 0, 0.1);
  color: var(--secondary) !important;
  padding-right: 28px !important;
}

.dropdown-content a i, .dropdown-content a span.icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--text-white);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Keeping above the background but below content */
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 10s linear;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}

body.theme-morning .hero-overlay,
body.theme-afternoon .hero-overlay {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-text {
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2.2rem, 8vw, 4.5rem); /* Increased responsiveness scale */
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-title span {
  color: var(--secondary);
  background: linear-gradient(to bottom, var(--text-gold), #ffa700);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: #eeeeee;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

@media (min-width: 768px) {
  .hero-desc {
    margin-bottom: 40px;
  }
}

.hero-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1s ease-out 0.6s backwards;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px !important;
    font-size: 1rem !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: var(--glass-blur);
}

.btn-outline:hover {
  background: var(--glass);
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-5px);
}

.section {
  padding: 80px 0;
  position: relative;
}

/* --- Section Heads --- */
.section-head {
  text-align: center;
  margin-bottom: 40px; /* Reduced for mobile */
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 60px;
  }
}

.section-tag {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin-bottom: 12px;
}

/* --- Content Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* 1 col on mobile */
  gap: 20px;
}

@media (min-width: 576px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cols on small phablets */
  }
}

@media (min-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cols on small tablets/laptops */
  }
}

@media (min-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(5, 1fr); /* 5 cols on desktop */
  }
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
@media (min-width: 768px) {
  .album-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
  }
}

.card {
  background: var(--dark-surface);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-gold);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.card:hover .card-img {
  transform: scale(1.1);
}

.card-content {
  padding: 24px;
}

.card-category {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-white);
}

.card-excerpt {
  color: var(--text-gray);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

/* --- Videos Section --- */
.video-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 4rem;
  opacity: 0.8;
  transition: var(--transition);
}

.video-card:hover .video-play-btn {
  opacity: 1;
  background: rgba(106, 27, 154, 0.4);
  transform: scale(1.1);
}

.video-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  z-index: 5;
}

.video-card-overlay h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
}

/* --- Video Modal (Theater Mode) --- */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  padding: 40px;
}

.video-modal.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.video-modal-content {
  width: 100%;
  max-width: 1100px;
  position: relative;
}

.video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(106, 27, 154, 0.3);
  border: 1px solid var(--glass-border);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.close-video {
  position: absolute;
  top: -45px;
  right: 0;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.close-video:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.album-img-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
}

.album-year-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--secondary);
  color: var(--dark-bg);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- Music Section --- */
.album-card {
  text-align: center;
  padding: 20px;
  background: var(--dark-surface);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.album-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-gold);
}

.track-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.track-btn:hover {
  background: var(--secondary);
  color: var(--dark-bg);
  border-color: var(--secondary);
  transform: scale(1.1);
}

.track-btn.video {
  color: #ff0000;
}

.track-btn.video:hover {
  color: var(--dark-bg);
}

.album-cover {
  width: 180px;
  height: 180px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  /* Making it circular like a profile pic */
  margin: 0 auto 16px;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 3px solid var(--glass-border);
}

.album-card:hover .album-cover {
  transform: rotate(3deg) scale(1.05);
  box-shadow: 0 15px 40px rgba(106, 27, 154, 0.4);
}

.album-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.album-year {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* --- Album Detail & Music Player --- */
.album-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.album-detail-cover img {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1/1;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  margin-bottom: 30px;
  display: block;
}

.track-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: var(--dark-surface);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .track-item {
    padding: 10px 12px;
  }
}

.track-item:hover,
.track-item.active {
  border-color: var(--secondary);
}

.track-progress-container {
  flex: 3;
  height: auto;
  background: transparent;
  border-radius: 0;
}
.track-item.active .track-progress-container {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 0.3s ease-out;
}

.track-progress-container {
  flex: 4;
  display: none;
  flex-direction: row;
  align-items: center;
  margin: 0 20px;
}

.track-time-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
  direction: ltr; /* Progress labels are LTR as per common standard and user image */
}

.time-start, .time-end {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-gray);
  white-space: nowrap;
}

.track-bar-wrap {
  flex: 1;
  height: 4px; /* Increased thickness for better visibility */
  background: var(--seeker-track-bg);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin: 0 8px;
}

.track-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #9146ff;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(145, 70, 255, 0.7); /* Stronger glow */
}





.track-num {
  width: 40px;
  color: var(--text-gray);
  font-weight: 700;
  font-size: 1.1rem;
}

.track-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-white);
}

.track-credits {
  font-size: 0.8rem;
  color: var(--text-gray);
  opacity: 0.8;
}

.track-duration {
  margin: 0 15px;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 20px; /* Increased gap between internal buttons */
  margin-left: 25px; /* Increased outward spacing to clear the Play icon more prominently */
}

.track-play-icon {
  margin-left: 15px;
  color: var(--secondary);
  font-size: 1.2rem;
  min-width: 30px; /* Increased min-width for better touch target and separation */
  text-align: center;
}

@media (max-width: 576px) {
  .track-actions {
    gap: 10px;
    margin-left: 10px;
  }

/* --- Extra Small Screens --- */
@media (max-width: 480px) {
  .nav-links {
    padding: 60px 20px;
    gap: 8px;
  }
  .nav-links a {
    font-size: 1.1rem;
    padding: 10px 0;
  }
  .dropdown-title {
    font-size: 1rem;
    padding: 8px 0;
  }
  .dropdown-content a {
    font-size: 0.85rem !important;
    padding: 6px 0 !important;
  }
}
  .track-play-icon {
    margin-left: 5px;
    font-size: 1rem;
    min-width: 20px;
  }
  .track-duration {
    display: none;
  }
}

.track-lyrics-btn {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text-gray);
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 10px;
}

.track-lyrics-btn:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

/* --- Lyrics Panel (Sidebar) --- */
.lyrics-panel {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: var(--dark-bg);
  backdrop-filter: blur(30px);
  z-index: 10000;
  transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 40px;
  border-left: 1px solid var(--glass-border);
  overflow-y: auto;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1);
}

.lyrics-panel.active {
  right: 0;
}

.lyrics-header {
  margin-bottom: 30px;
  position: relative;
}

.close-lyrics {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  left: -10px;
  top: -10px;
}

.lyrics-title-area h4 {
  font-size: 1.5rem;
  margin-top: 10px;
}

.lyrics-body {
  font-size: 1.2rem;
  line-height: 2.2;
  color: var(--text-white);
  font-family: 'Cairo', sans-serif;
  text-align: center;
  padding-bottom: 100px;
}

/* Updated Player Layout */
.progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-gray);
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Sticky Global Player */
.music-player {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 20px 0;
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-player.active {
  bottom: 0;
}

.player-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 200px;
}

.player-info img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}

.player-info h5 {
  line-height: 1.2;
}

.player-info p {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.player-controls {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.player-visualizer {
  position: absolute;
  left: 38%; /* Shifted left to avoid overlapping central Play button */
  top: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 65px !important;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.player-visualizer:hover {
  opacity: 1;
}

.player-visualizer::after {
  content: 'Ø§Ù†Ù‚Ø± Ù„ØªØºÙŠÙŠØ± Ø§Ù„Ù†Ù…Ø·';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--secondary);
  opacity: 0;
  transition: 0.3s;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.player-visualizer:hover::after {
  opacity: 1;
  bottom: -25px;
}

#visualizerCanvas {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.play-btn {
  background: var(--secondary);
  color: var(--dark-bg);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  border: none;
}

.track-progress-container {
  flex: 1;
  height: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}

.track-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
}

.track-time-live {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 700;
  min-width: 45px;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.track-item.active .track-time-live {
  opacity: 1;
}

.track-progress-bar {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: var(--secondary);
  width: 0%;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--secondary-glow);
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-volume input {
  width: 80px;
}

@media (max-width: 768px) {
  .album-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .player-volume {
    display: none;
  }

  .player-info {
    min-width: auto;
  }

  .player-info img {
    width: 40px;
    height: 40px;
  }

  .player-visualizer {
    display: none;
  }
}

@media (max-width: 480px) {
  .player-info h5 {
    font-size: 0.9rem;
  }
  
  .player-info p {
    font-size: 0.7rem;
  }

  .player-inner {
    gap: 15px;
  }

  .play-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* --- Footer --- */
.footer {
  background: var(--footer-bg, var(--dark-surface));
  padding: 40px 0 20px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 col on mobile by default now */
  gap: 30px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (min-width: 1200px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 2fr;
  }
}

.footer-brand .logo-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 24px;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
  border-color: var(--secondary);
}

.footer-col h4 {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a:hover {
  color: var(--secondary);
  padding-right: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* --- Enhanced Footer Refined --- */
.footer-brand .logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(to bottom, #ffd700, #b8860b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-col h4 {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 25px;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.footer-link-item {
  margin-bottom: 15px !important;
}

.footer-link-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-gray) !important;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-link-item a:hover {
  color: var(--secondary) !important;
  transform: translateX(-8px);
}

.footer-link-item a .icon {
  font-size: 1.1rem;
  opacity: 0.7;
  transition: var(--transition);
}

.footer-link-item a:hover .icon {
  opacity: 1;
  transform: scale(1.2);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(106, 27, 154, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-5px);
}

/* PWA Promo in Footer */
.footer-pwa-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

.footer-pwa-card:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.2);
}

.pwa-card-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px var(--secondary-glow));
}

.pwa-card-text h5 {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 4px;
}

.pwa-card-text p {
  color: #888;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* --- Search Overlay --- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark-bg);
  z-index: 999999;
  display: none;
  flex-direction: column;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
}

.search-overlay-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.search-overlay.active {
  display: flex;
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-btn-inline {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
}

.search-input {
  width: 100%;
  background: var(--dark-surface);
  border: 2px solid var(--glass-border);
  padding: 15px 25px;
  border-radius: 50px;
  color: var(--text-white);
  font-size: 1.5rem;
  font-family: 'Cairo', sans-serif;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(106, 27, 154, 0.2);
}

.search-close {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.search-results {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 10px;
}

.search-section {
  margin-bottom: 30px;
}

.search-section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 15px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 5px;
  letter-spacing: 1px;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 12px;
  transition: var(--transition);
  margin-bottom: 10px;
}

.search-item:hover {
  background: var(--dark-surface);
}

.search-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--dark-elevated);
}

.search-item-info {
  flex: 1;
}

.search-item-title {
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text-white);
}

.search-item-meta {
  font-size: 0.8rem;
  color: var(--text-gray);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .search-input {
    font-size: 1.1rem;
  }

  .search-item-img {
    width: 50px;
    height: 50px;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Mobile Resp --- */
@media (max-width: 991px) {
  .header {
    z-index: 10;
  }

  .header-controls {
    z-index: 10000;
  }

  .lang-dropdown {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 200000;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .hero-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 9998;
  }

  .nav-backdrop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:  80px 30px;
    gap: 15px;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
    z-index: 9999;
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff !important;
    text-align: center;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i) * 0.1s); /* Staggered effect */
  }

  /* Mobile Dropdowns */
  .dropdown {
    width: 100%;
  }

  .dropdown-title {
    font-size: 1.15rem;
    font-weight: 700;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    color: #fff;
  }

  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: none; /* Toggle via click on mobile if desired, or keep as sub-links */
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    font-size: 0.95rem !important;
    opacity: 0.8;
    padding: 10px 0 !important;
    justify-content: center;
    border-bottom: none;
  }

  .nav-links a::after {
    display: none; /* Disable underline on mobile */
  }

  .nav-links a:last-child {
    border-bottom: none;
  }


  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  ul,
  ol {
    padding-inline-start: 1.1rem;
    margin: 0.75rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* --- Global Search Overlay Mobile --- */
@media (max-width: 768px) {
  .search-overlay {
    padding-top: 60px;
  }
  .search-input {
    font-size: 1.8rem;
    text-align: right; /* Better for AR on mobile */
    padding: 10px 0;
  }
  .search-close {
    top: 20px;
    right: 20px;
    font-size: 2rem;
  }
  .search-results {
    max-height: 70vh;
  }
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.search-close:hover {
  color: var(--secondary);
  transform: rotate(90deg);
}

.search-container {
  width: 90%;
  max-width: 800px;
}

.search-input-wrap {
  position: relative;
  margin-bottom: 50px;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--glass-border);
  padding: 15px 0;
  font-size: clamp(1.5rem, 5vw, 2.5rem); /* Responsive font size */
  color: white;
  font-family: 'Cairo', sans-serif;
  text-align: center;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-bottom-color: var(--secondary);
}

.search-results {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 15px;
}

.search-group {
  margin-bottom: 30px;
}

.search-group-title {
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 12px;
  transition: var(--transition);
  margin-bottom: 5px;
}

.search-item:hover {
  background: var(--glass);
}

.search-item-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.search-item-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.search-item-info p {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* --- Quick Search Button in Header --- */
.search-btn-header {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 8px 15px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  margin-right: 15px;
}

.search-btn-header:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}


/* --- Karaoke Lyrics --- */
.lyrics-body {
  padding-top: 15vh;
  padding-bottom: 35vh;
}

.lyrics-line {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-white);
  opacity: 0.25;
  margin-bottom: 25px;
  line-height: 1.4;
  transition: all 0.4s ease;
  cursor: pointer;
  text-align: right;
}

.lyrics-line.active {
  color: var(--secondary);
  opacity: 1;
  transform: scale(1.1);
  text-shadow: 0 0 20px var(--secondary-glow);
}

.lyrics-line.prev {
  opacity: 0.6;
}

.lyrics-line:hover {
  opacity: 1;
}

.no-lyrics {
  text-align: center;
  color: var(--text-gray);
  margin-top: 100px;
  font-size: 1.2rem;
}

/* --- Diva Radio Bar --- */
.radio-bar-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99999;
    padding: 10px 0;
    transform: translateY(100%); /* Hidden by default so it can be toggled */
    transition: transform 0.4s ease;
    direction: rtl;
}

.radio-bar-fixed.active {
    transform: translateY(0) !important;
}

.radio-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.radio-track-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

#radioArtMini {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.radio-info-mini {
    overflow: hidden;
    max-width: 200px; /* Reduced to give more room to visualizer */
    flex-shrink: 0;
}

.radio-visualizer-mini {
    height: 50px;
    flex: 1; /* Take all available middle space */
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.9;
    margin: 0 20px;
}

#radioVizCanvas {
    width: 100%;
    height: 100%;
}

@media (max-width: 991px) {
    .radio-visualizer-mini { 
        max-width: 150px;
        margin: 0 10px;
        height: 35px;
    } 
}
@media (max-width: 576px) {
    .radio-visualizer-mini { display: none; }


}

.marquee-mini {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    white-space: nowrap;
}

.radio-controls-mini {
    display: flex;
    align-items: center;
    gap: 15px;
}

.radio-volume-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.radio-volume-mini input[type=range] {
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

.radio-volume-mini input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
}

.btn-radio-mini {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-radio-mini:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.btn-radio-mini.play-mini {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    color: var(--dark-bg);
}

.btn-radio-mini.close-mini {
    margin-right: 15px;
    opacity: 0.5;
}

.radio-progress-mini {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
}

.radio-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--secondary);
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    .radio-bar-fixed {
        bottom: 15px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        border-radius: 25px;
        padding: 8px 15px;
    }
    .radio-track-mini { min-width: 120px; flex: 1; }
    #radioArtMini { width: 45px; height: 45px; }
    .radio-bar-content { flex-direction: row; justify-content: space-between; gap: 5px; }
    .radio-volume-mini { display: none; } /* Hide volume on mobile to save space */
    .pop-mini { display: none; }
    .btn-radio-mini.close-mini { margin-right: 0; }
    .radio-controls-mini { gap: 8px; }
}

/* --- Haptic-like Touch Feedback --- */
button:active, .track-item:active, .album-card:active, .social-btn:active, .search-item:active {
    transform: scale(0.96);
    filter: brightness(0.9);
    transition: transform 0.1s ease;
}
/* --- Premium Social Buttons --- */
.social-links-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 20px;
}

.social-btn {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: #fff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.social-btn svg {
  width: 32px;
  height: 32px;
  z-index: 2;
  transition: transform 0.4s ease;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  transition: 0.4s;
  z-index: 1;
}

.social-btn:hover {
  transform: translateY(-10px) scale(1.1);
  border-color: #fff;
  box-shadow: 0 15px 35px var(--glow);
}

.social-btn:hover::before {
  opacity: 1;
}

.social-btn:hover svg {
  transform: scale(1.2);
}

/* Brand Specifics */
.social-btn.fb { --bg: #1877F2; --glow: rgba(24, 119, 242, 0.5); }
.social-btn.ig { --bg: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); --glow: rgba(220, 39, 67, 0.5); }
.social-btn.tk { --bg: #000; --glow: rgba(255, 255, 255, 0.3); }
.social-btn.yt { --bg: #FF0000; --glow: rgba(255, 0, 0, 0.5); }
.social-btn.x { --bg: #000; --glow: rgba(255, 255, 255, 0.2); }
.social-btn.sc { --bg: #FFFC00; --glow: rgba(255, 252, 0, 0.5); }
.social-btn.sc svg { color: #000; }

@media (max-width: 576px) {
  .social-btn {
    width: 55px;
    height: 55px;
  }


  .social-btn svg {
    width: 24px;
    height: 24px;
  }
}


.social-btn.it { --bg: #000; --glow: rgba(162, 170, 179, 0.4); }


/* --- News Search Bar --- */
.news-search-area {
    max-width: 600px;
    margin: 0 auto 50px auto;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.search-input-group:focus-within {
    border-color: var(--secondary);
    box-shadow: 0 0 20px var(--secondary-glow);
    transform: translateY(-2px);
}

.news-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.1rem;
    font-family: inherit;
    padding: 10px 0;
    outline: none;
}

.news-search-input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.news-search-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--dark-bg);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.news-search-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px var(--secondary);
}

.clear-search-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.2rem;
    margin-right: 10px;
    display: none; /* Shown via JS */
    transition: color 0.3s ease;
}

.clear-search-btn:hover {
    color: var(--accent);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1/-1;
    animation: fadeIn 0.5s ease;
}

.no-results h3 {
    margin-bottom: 15px;
    color: var(--text-gray);
}

.btn-reset {
    background: var(--glass);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
}

.btn-reset:hover {
    background: var(--secondary);
    color: var(--dark-bg);
}


/* --- Spotlight Search Overlay --- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.82); /* More transparent and luxurious */
  backdrop-filter: blur(25px) saturate(180%);
  z-index: 999999;
  display: none;
  flex-direction: column;
  padding: 40px 20px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
  display: flex;
  opacity: 1;
}

/* --- Spotlight Search Overlay (Pill Design) --- */
.search-header-pill {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px; /* Perfect pill shape */
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-header-pill:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--secondary);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
  transform: scale(1.02);
}

.search-pill-close {
  background: rgba(255, 255, 255, 0.1);
  color: #eee;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-pill-close:hover {
  background: #ff4444;
  color: #fff;
}

.search-pill-input {
  flex: 1;
  padding: 0 20px;
}

#globalSearchInput {
  width: 100%;
  background: none;
  border: none;
  color: #fff !important;
  font-size: 1.6rem;
  font-family: 'Cairo', sans-serif;
  outline: none;
}

#globalSearchInput::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.search-pill-icon {
  font-size: 1.5rem;
  padding: 0 15px;
  opacity: 0.8;
}

.search-hint {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  margin-top: 25px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.search-content {
  flex: 1;
  max-width: 1100px;
  margin: 30px auto;
  width: 100%;
  overflow-y: auto;
  padding: 0 10px;
}

.search-results-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.search-section {
  margin-bottom: 30px;
}

.search-section-title {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px; opacity: 0.8;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  transition: 0.3s;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.search-item:hover {
  background: rgba(255,215,0,0.05);
  border-color: rgba(255,215,0,0.2);
  transform: translateX(-10px);
}

.search-item-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.search-item-info { flex: 1; }

.search-item-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.search-item-meta {
  font-size: 0.85rem;
  color: var(--text-gray);
}

.search-placeholder {
  text-align: center;
  padding: 100px 20px;
  color: #555;
  font-size: 1.2rem;
}

.search-placeholder p { margin-top: 20px; }

.search-highlight {
  color: var(--secondary);
  background: rgba(255,215,0,0.1);
  padding: 0 2px;
  border-radius: 2px;
}

/* --- Admin Quick Edit Styles --- */
.admin-quick-edit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.9), rgba(156, 77, 204, 0.9));
    color: #ffd700 !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.admin-quick-edit:hover {
    transform: translateY(-2px) scale(1.05);
    background: var(--secondary);
    color: var(--primary-dark) !important;
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.admin-quick-edit.sm {
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
}

.hero-admin-edit {
    position: absolute;
    top: 100px;
    left: 20px;
    z-index: 1000;
}

body:not(.scrolled) .hero-admin-edit {
    top: 120px;
}

/* --- Admin Access in Search --- */
.admin-search-link {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-dash-btn {
    background: rgba(255, 215, 0, 0.1);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.admin-dash-btn:hover {
    background: var(--secondary);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.admin-dash-btn i {
    font-size: 1.1rem;
}





