﻿/* ========================================
   MTA Músicas
   ======================================== */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ========================================
   CSS Variables - Design Tokens
   ======================================== */
:root {
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Colors - Primary Palette */
  --color-primary-50: #fdf4ff;
  --color-primary-100: #fae8ff;
  --color-primary-200: #f5d0fe;
  --color-primary-300: #f0abfc;
  --color-primary-400: #e879f9;
  --color-primary-500: #d946ef;
  --color-primary-600: #c026d3;
  --color-primary-700: #a21caf;
  --color-primary-800: #86198f;
  --color-primary-900: #701a75;

  /* Colors - Secondary (Purple) */
  --color-secondary-400: #a78bfa;
  --color-secondary-500: #8b5cf6;
  --color-secondary-600: #7c3aed;
  --color-secondary-700: #6d28d9;

  /* Colors - Accent (Pink) */
  --color-accent-400: #fb7185;
  --color-accent-500: #f43f5e;
  --color-accent-600: #e11d48;

  /* Colors - Neutral */
  --color-gray-50: #fafafa;
  --color-gray-100: #f4f4f5;
  --color-gray-200: #e4e4e7;
  --color-gray-300: #d4d4d8;
  --color-gray-400: #a1a1aa;
  --color-gray-500: #71717a;
  --color-gray-600: #52525b;
  --color-gray-700: #3f3f46;
  --color-gray-800: #27272a;
  --color-gray-900: #18181b;
  --color-gray-950: #09090b;

  /* Semantic Colors */
  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* Background Gradients */
  --gradient-bg: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
  --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-primary: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-secondary-600) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-primary-600) 100%);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.3);
  --shadow-glow-pink: 0 0 30px rgba(236, 72, 153, 0.3);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background: var(--gradient-bg);
  color: #fff;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

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

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

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Layout Utilities
   ======================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.grid {
  display: grid;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-w-0 {
  min-width: 0;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: var(--z-fixed);
}

.z-40 {
  z-index: var(--z-modal-backdrop);
}

.z-50 {
  z-index: var(--z-modal);
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ========================================
   Spacing Utilities
   ======================================== */
.m-0 {
  margin: 0;
}

.m-1 {
  margin: var(--space-1);
}

.m-2 {
  margin: var(--space-2);
}

.m-4 {
  margin: var(--space-4);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mx-2 {
  margin-left: var(--space-2);
  margin-right: var(--space-2);
}

.mx-4 {
  margin-left: var(--space-4);
  margin-right: var(--space-4);
}

.my-2 {
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.my-4 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.ml-2 {
  margin-left: var(--space-2);
}

.ml-4 {
  margin-left: var(--space-4);
}

.mr-2 {
  margin-right: var(--space-2);
}

.mr-4 {
  margin-right: var(--space-4);
}

.p-0 {
  padding: 0;
}

.p-1 {
  padding: var(--space-1);
}

.p-2 {
  padding: var(--space-2);
}

.p-3 {
  padding: var(--space-3);
}

.p-4 {
  padding: var(--space-4);
}

.p-6 {
  padding: var(--space-6);
}

.p-8 {
  padding: var(--space-8);
}

.px-2 {
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.px-3 {
  padding-left: var(--space-3);
  padding-right: var(--space-3);
}

.px-4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.px-6 {
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.py-2 {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.py-3 {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.py-4 {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.py-6 {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.pb-32 {
  padding-bottom: 8rem;
}

/* ========================================
   Colors
   ======================================== */
.text-white {
  color: #fff;
}

.text-black {
  color: #000;
}

.text-gray-300 {
  color: var(--color-gray-300);
}

.text-gray-400 {
  color: var(--color-gray-400);
}

.text-gray-500 {
  color: var(--color-gray-500);
}

.text-purple-400 {
  color: var(--color-secondary-400);
}

.text-purple-500 {
  color: var(--color-secondary-500);
}

.text-pink-400 {
  color: var(--color-primary-400);
}

.text-green-400 {
  color: var(--color-success);
}

.text-red-400 {
  color: var(--color-error);
}

.text-blue-400 {
  color: var(--color-info);
}

.bg-white {
  background-color: #fff;
}

.bg-black {
  background-color: #000;
}

/* ========================================
   Glass Card Component
   ======================================== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-glow);
}

.glass-card-static {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
}

/* ========================================
   Header Component
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-base);
}

.header-scrolled {
  background: rgba(0, 0, 0, 0.6);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-icon {
  font-size: 1.75rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-secondary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-svg {
  height: 32px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  color: var(--color-gray-300);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link.active {
  color: var(--color-secondary-400);
  font-weight: 600;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.mobile-menu {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--glass-border);
  margin-top: var(--space-4);
}

.mobile-menu a {
  display: block;
  padding: var(--space-3) 0;
  color: var(--color-gray-300);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--color-secondary-400);
}

/* ========================================
   EQ Announcement Banner
   ======================================== */
.eq-announce-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(59, 130, 246, 0.10) 50%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-xl, 12px);
  padding: 0.85rem 1rem;
  margin-bottom: var(--space-4, 1rem);
  animation: mb-slide 0.5s ease both;
}

.eq-announce-banner.dismissed {
  animation: eqBannerDismiss 0.35s ease forwards;
}

@keyframes eqBannerDismiss {
  to {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    padding: 0 1rem;
    margin-bottom: 0;
    border-width: 0;
    overflow: hidden;
  }
}

.eq-announce-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(34, 197, 94, 0.12), transparent 70%);
  pointer-events: none;
}

.eq-announce-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.eq-announce-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(59, 130, 246, 0.2));
  color: #22c55e;
  animation: eqIconPulse 2.5s ease-in-out infinite;
}

@keyframes eqIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 12px 4px rgba(34, 197, 94, 0.15); }
}

.eq-announce-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.eq-announce-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.eq-announce-msg {
  margin: 0;
  color: #c4ccd8;
  font-size: 0.82rem;
  line-height: 1.45;
}

.eq-announce-msg strong {
  color: #e8ecf2;
}

.eq-announce-dismiss {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;
}

.eq-announce-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #e5e7eb;
}

@media (max-width: 640px) {
  .eq-announce-icon {
    display: none;
  }
}

/* ========================================
   Hero / Welcome Section
   ======================================== */
.hero {
  text-align: center;
  padding: var(--space-8) 0 var(--space-6);
}

.hero-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, #fff 0%, var(--color-gray-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--color-gray-400);
  font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ========================================
   Search Section
   ======================================== */
.search-section {
  margin-bottom: var(--space-8);
}

.search-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

.search-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.search-input-wrapper {
  position: relative;
  margin-bottom: var(--space-4);
}

.search-input {
  width: 100%;
  padding: var(--space-4);
  padding-left: var(--space-12);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  color: #fff;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.search-input::placeholder {
  color: var(--color-gray-500);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-secondary-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.search-input-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-500);
  width: 20px;
  height: 20px;
}

.search-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (max-width: 480px) {
  .search-buttons {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn-youtube {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
}

.btn-youtube:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-youtube-music {
  background: linear-gradient(135deg, #1f1f1f 0%, #000 100%);
  color: #fff;
  border: 1px solid var(--glass-border);
}

.btn-youtube-music:hover {
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: #fff;
}

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


.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-success {
  background: linear-gradient(135deg, var(--color-success) 0%, #16a34a 100%);
  color: #fff;
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.btn-success.copied {
  background: linear-gradient(135deg, var(--color-info) 0%, #2563eb 100%);
}

.btn-play {
  background: linear-gradient(135deg, var(--color-secondary-600) 0%, var(--color-secondary-700) 100%);
  color: #fff;
}

.btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.btn-play.playing {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
}

.btn-icon {
  padding: var(--space-2);
  border-radius: var(--radius-full);
}

.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: 0.75rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ========================================
   Results Section
   ======================================== */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.results-title {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 700;
}

/* ========================================
   Music Card Component
   ======================================== */
.music-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.music-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  transition: all var(--transition-base);
  animation: fadeInUp 0.4s ease backwards;
}

.music-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(139, 92, 246, 0.1);
}

.music-card.playing {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.2);
}

.music-card.ad-infeed-card {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.music-card.ad-infeed-card:hover {
  background: transparent;
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation for list items */
.music-card:nth-child(1) {
  animation-delay: 0.05s;
}

.music-card:nth-child(2) {
  animation-delay: 0.1s;
}

.music-card:nth-child(3) {
  animation-delay: 0.15s;
}

.music-card:nth-child(4) {
  animation-delay: 0.2s;
}

.music-card:nth-child(5) {
  animation-delay: 0.25s;
}

.music-card:nth-child(6) {
  animation-delay: 0.3s;
}

.music-card:nth-child(7) {
  animation-delay: 0.35s;
}

.music-card:nth-child(8) {
  animation-delay: 0.4s;
}

.music-card:nth-child(9) {
  animation-delay: 0.45s;
}

.music-card:nth-child(10) {
  animation-delay: 0.5s;
}

.music-card-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .music-card {
    padding: var(--space-4);
  }

  .music-card-content {
    gap: var(--space-4);
  }
}

.music-thumbnail {
  width: 100px;
  height: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-secondary-600) 100%);
}

@media (min-width: 768px) {
  .music-thumbnail {
    width: 120px;
    height: 68px;
  }
}

.music-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.music-card:hover .music-thumbnail img {
  transform: scale(1.1);
}

.music-thumbnail-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.music-info {
  flex: 1;
  min-width: 0;
}

.music-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-1);
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .music-title {
    font-size: 1rem;
  }
}

.music-author {
  color: var(--color-gray-400);
  font-size: 0.75rem;
  margin-bottom: var(--space-1);
}

.music-title-link,
.music-author-link {
  text-decoration: none;
  display: block;
  width: fit-content;
  /* Evita que o link ocupe toda a largura disponível */
  max-width: 100%;
}

.music-title-link:hover .music-title {
  color: var(--color-secondary-400);
}

.music-author-link:hover .music-author {
  color: var(--color-primary-400);
  text-decoration: none;
  /* Removido sublinhado */
}

@media (min-width: 768px) {
  .music-author {
    font-size: 0.875rem;
  }
}

.music-duration {
  color: var(--color-secondary-400);
  font-size: 0.75rem;
  font-weight: 500;
}

.music-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .music-actions {
    flex-direction: row;
  }
}

.music-actions .btn {
  min-width: 80px;
}

@media (min-width: 768px) {
  .music-actions .btn {
    min-width: 100px;
  }
}

/* ========================================
   Footer Player
   ======================================== */
.footer-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-2) var(--space-4);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.footer-player.visible {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .footer-player {
    padding: var(--space-4);
  }
}

.player-wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

/* Seekbar */
.seekbar-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .seekbar-wrapper {
    gap: var(--space-3);
    margin-bottom: var(--space-3);
  }
}

.seekbar-time {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  width: 40px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.seekbar {
  flex: 1;
  height: 4px;
  background: var(--color-gray-700);
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.seekbar:hover {
  height: 6px;
}

.seekbar-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.seekbar-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast);
}

.seekbar:hover .seekbar-handle {
  transform: translate(-50%, -50%) scale(1);
}

/* Player Controls */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-song-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .player-song-info {
    gap: var(--space-3);
  }
}

.player-thumbnail {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-secondary-600) 100%);
}

@media (min-width: 768px) {
  .player-thumbnail {
    width: 52px;
    height: 52px;
  }
}

.player-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
}

.player-song-text {
  min-width: 0;
}

.player-song-title {
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

@media (min-width: 768px) {
  .player-song-title {
    font-size: 0.875rem;
  }
}

.player-song-artist {
  color: var(--color-gray-400);
  font-size: 0.75rem;
}

/* Play Controls */
.player-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 var(--space-4);
}

@media (min-width: 768px) {
  .player-buttons {
    gap: var(--space-3);
    margin: 0 var(--space-8);
  }
}

.player-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1);
  border-radius: 50%;
  transition: all var(--transition-fast);
  color: #fff;
}

@media (min-width: 768px) {
  .player-btn {
    padding: var(--space-2);
  }
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.player-btn svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .player-btn svg {
    width: 22px;
    height: 22px;
  }
}

.player-btn-main {
  background: #fff;
  color: #000;
  padding: var(--space-2);
}

@media (min-width: 768px) {
  .player-btn-main {
    padding: var(--space-3);
  }
}

.player-btn-main:hover {
  background: var(--color-gray-200);
  transform: scale(1.05);
}

.player-btn-main svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .player-btn-main svg {
    width: 22px;
    height: 22px;
  }
}

/* Volume Controls */
.player-volume {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  justify-content: flex-end;
}

.volume-slider {
  width: 60px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--color-gray-600);
  border-radius: var(--radius-full);
  cursor: pointer;
}

@media (min-width: 768px) {
  .volume-slider {
    width: 100px;
  }
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}

/* Loading Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-gray-600);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Options Panel (Modal)
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-gray-900);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.visible .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--glass-border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  padding: var(--space-2);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Form Elements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-300);
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: var(--color-gray-500);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-secondary-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 44px;
  cursor: pointer;
}

.form-select option {
  background: var(--color-gray-900);
  color: #fff;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

/* Toggle Switch */
.toggle-group {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 4px;
}

.toggle-btn {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-gray-400);
  transition: all var(--transition-fast);
}

.toggle-btn.active {
  background: var(--color-secondary-600);
  color: #fff;
}

/* Range Slider */
.range-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.range-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--color-gray-700);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-secondary-500);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-secondary-500);
  border: 2px solid #fff;
  cursor: pointer;
}

.range-label {
  font-size: 0.875rem;
  color: var(--color-gray-400);
  min-width: 24px;
}

.range-value {
  font-size: 0.875rem;
  color: var(--color-secondary-400);
  font-weight: 500;
}

/* ========================================
   Settings Button (FAB)
   ======================================== */
.settings-fab {
  display: flex;
  padding: var(--space-3);
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.settings-fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: var(--shadow-glow-pink);
}

.settings-fab svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   Loading State
   ======================================== */
.loading-section {
  text-align: center;
  padding: var(--space-12) 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--color-secondary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-4);
}

.loading-text {
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

/* ========================================
   No Results State
   ======================================== */
.no-results {
  text-align: center;
  padding: var(--space-12) 0;
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.no-results-text {
  color: var(--color-gray-400);
}

/* ========================================
   Content Pages (About, Contact, Terms)
   ======================================== */
.page-content {
  padding-bottom: 8rem;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: var(--space-6);
}

.content-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.content-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.content-card p {
  color: var(--color-gray-300);
  margin-bottom: var(--space-3);
  line-height: 1.7;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  color: var(--color-gray-300);
}

.content-card li {
  margin-bottom: var(--space-2);
  padding-left: var(--space-4);
  position: relative;
}

.content-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-secondary-400);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  transition: all var(--transition-fast);
}

.form-textarea::placeholder {
  color: var(--color-gray-500);
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-status {
  text-align: center;
  font-size: 0.875rem;
  padding: var(--space-2);
  border-radius: var(--radius-md);
}

.form-status.success {
  color: var(--color-success);
  background: rgba(34, 197, 94, 0.1);
}

.form-status.error {
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.1);
}

/* ========================================
   Animations
   ======================================== */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.transition-all {
  transition: all var(--transition-base);
}

.transition-transform {
  transition: transform var(--transition-base);
}

.transition-opacity {
  transition: opacity var(--transition-base);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (min-width: 640px) {
  .sm\:inline {
    display: inline;
  }

  .sm\:flex {
    display: flex;
  }

  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:gap-4 {
    gap: var(--space-4);
  }

  .md\:text-base {
    font-size: 1rem;
  }

  .md\:text-lg {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-secondary-500);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Custom Scrollbar
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-600);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray-500);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-600) transparent;
}

/* ========================================
   Image lazy loading
   ======================================== */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Toggle Switch */
.toggle-group {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 4px;
  gap: 4px;
  /* Adicionado um pequeno gap */
}

.toggle-btn {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--color-gray-400);
  transition: all var(--transition-fast);
  background: transparent;
  /* Padrão transparente */
}

.toggle-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  /* Leve destaque no hover */
}

.toggle-btn.active {
  background: var(--color-secondary-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
  /* Sombra para destacar o botão ativo */
}

/* ========================================
   Modal Component
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

/* Ensure hidden class overrides display flex */
.modal-overlay.hidden {
  display: none;
  visibility: hidden;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  display: flex;
  /* Ensure flex is applied when visible */
}

.modal {
  background: #18181b;
  /* Fallback */
  background: var(--color-gray-900);
  /* Using variable */
  background: rgba(24, 24, 27, 0.95);
  /* Slightly transparent */
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  opacity: 0;
  transition: all var(--transition-base);
  position: relative;
  z-index: var(--z-modal);
}

.modal-overlay.visible .modal {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--glass-border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  color: var(--color-gray-400);
  padding: var(--space-1);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
}

/* ========================================
   Ad Placeholders - REMOVED
   ======================================== */

/* =========================================
   Graphic Equalizer (GEQ) Styles
   ========================================= */
.eq-modal {
  max-width: 1120px;
  width: 96%;
}

.eq-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.eq-preview-player {
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}

.eq-visualizer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.eq-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.eq-preview-shell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
  z-index: 1;
}

.eq-preview-thumb {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.35), rgba(37, 99, 235, 0.35));
}

.eq-preview-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

#eqPreviewThumbImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#eqPreviewThumbImg.loaded {
  opacity: 1;
}

.eq-preview-main {
  min-width: 0;
  flex: 1;
}

.eq-preview-text {
  margin-bottom: 0.3rem;
}

.eq-preview-title {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq-preview-subtitle {
  margin: 0.1rem 0 0;
  color: #9ca3b5;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq-preview-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.2rem;
}

.eq-preview-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(145deg, #f8fafc, #d1d5db);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  line-height: 0;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.35);
}

.eq-preview-play-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.42);
}

.eq-preview-play-btn svg {
  width: 17px;
  height: 17px;
  position: absolute;
  inset: 0;
  margin: auto;
}

#eqPreviewPlayIcon {
  transform: translateX(1px);
}

.eq-preview-seek-wrap {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.eq-preview-seek {
  --eq-preview-progress: 0%;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: linear-gradient(to right, #22c55e 0%, #22c55e var(--eq-preview-progress), rgba(148, 163, 184, 0.35) var(--eq-preview-progress), rgba(148, 163, 184, 0.35) 100%);
}

.eq-preview-seek::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.eq-preview-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-top: -4px;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.4);
}

.eq-preview-seek::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.eq-preview-seek::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

.eq-preview-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.4);
}

.eq-preview-time-row {
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: #8d96aa;
}


#eqPreviewAudio {
  display: none;
}

#eqPreviewError {
  color: #f87171;
  margin-top: 0.35rem;
  position: relative;
  z-index: 1;
}

.eq-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.eq-main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eq-layout {
  display: flex;
  gap: 0.75rem;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 0.7rem;
  border: 1px solid #333;
  overflow: hidden;
}

.eq-bands-container {
  display: flex;
  flex-grow: 1;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  /* Custom scrollbar for desktop */
  scrollbar-width: thin;
  scrollbar-color: #555 #1a1a1a;
}

.eq-bands-container::-webkit-scrollbar {
  height: 8px;
}

.eq-bands-container::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.eq-bands-container::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.eq-master-container {
  padding-left: 1rem;
  border-left: 1px solid #333;
  display: flex;
  justify-content: center;
}

.eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 29px;
  flex-shrink: 0;
}

.master-band {
  width: 45px;
}

.eq-label {
  font-size: 0.62rem;
  color: #666;
  margin: 3px 0;
  font-family: monospace;
}

.eq-freq {
  font-size: 0.68rem;
  color: #999;
  margin-top: 7px;
  font-family: monospace;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  height: 36px;
  text-align: right;
}

.master-band .eq-freq {
  writing-mode: horizontal-tb;
  transform: none;
  height: auto;
  margin-top: 8px;
  font-weight: bold;
  color: var(--color-secondary-500);
}

.eq-value {
  font-size: 0.62rem;
  color: var(--color-secondary-500);
  margin-top: 3px;
  font-weight: 600;
  height: 12px;
}

/* Vertical Slider Wrapper */
.eq-slider-wrapper {
  height: 166px;
  width: 22px;
  display: flex;
  justify-content: center;
  position: relative;
  background: #111;
  border-radius: 4px;
  padding: 9px 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.master-slider-wrapper {
  width: 32px;
}

/* Reset baseline styling */
input[type=range].eq-slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  width: 146px;
  /* Length of the slider */
  height: 4px;
  margin: 0;
  padding: 0;
  outline: none;

  /* Rotate to make it vertical */
  transform-origin: center;
  transform: rotate(-90deg);
  /* Position absolutely to center it within the wrapper */
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}

/* Track */
input[type=range].eq-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #000;
  border-radius: 2px;
  border: 1px solid #222;
}

input[type=range].eq-slider::-moz-range-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #000;
  border-radius: 2px;
  border: 1px solid #222;
}

/* Thumb */
input[type=range].eq-slider::-webkit-slider-thumb {
  height: 14px;
  width: 20px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #ddd 0%, #aaa 45%, #fff 50%, #aaa 55%, #ddd 100%);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5px;
  /* Center thumb on track (track height/2 - thumb height/2) */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  border: 1px solid #333;
}

input[type=range].eq-slider::-moz-range-thumb {
  height: 14px;
  width: 20px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #ddd 0%, #aaa 45%, #fff 50%, #aaa 55%, #ddd 100%);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  border: 1px solid #333;
}

input[type=range].eq-slider.master-slider::-webkit-slider-thumb {
  width: 30px;
  background: linear-gradient(to right, #8b5cf6 0%, #7c3aed 45%, #a78bfa 50%, #7c3aed 55%, #8b5cf6 100%);
}

input[type=range].eq-slider.master-slider::-moz-range-thumb {
  width: 30px;
  background: linear-gradient(to right, #8b5cf6 0%, #7c3aed 45%, #a78bfa 50%, #7c3aed 55%, #8b5cf6 100%);
}

/* Add grid lines behind sliders for professional look */
.eq-slider-wrapper::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  right: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 16px;
  pointer-events: none;
}

/* =========================================
   EQ Profiles Section
   ========================================= */
.eq-presets-section {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.8rem;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  max-height: clamp(285px, 52vh, 310px);
}

.eq-presets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.eq-preset-group {
  margin-bottom: 0.55rem;
}

.eq-preset-group:last-child {
  margin-bottom: 0;
}

.eq-preset-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #2f3442;
  color: #d1d5db;
  text-align: left;
  cursor: pointer;
}

.eq-preset-group-toggle:hover {
  color: #f3f4f6;
}

.eq-preset-group-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a5adbf;
  margin: 0;
  font-weight: 600;
}

.eq-preset-group-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.eq-preset-group-count {
  color: #9ca3af;
  font-size: 0.68rem;
  border: 1px solid #4b5563;
  border-radius: 999px;
  padding: 0.08rem 0.35rem;
  line-height: 1;
}

.eq-preset-group-chevron {
  color: #94a3b8;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.eq-preset-group.open .eq-preset-group-chevron {
  transform: rotate(90deg);
}

.eq-preset-group-content {
  padding: 0.45rem 0 0;
}

.eq-preset-group:not(.open) .eq-preset-group-content {
  display: none;
}

.eq-preset-badge {
  border: 1px solid #355a45;
  color: #83d9a6;
  font-size: 0.62rem;
  padding: 0.08rem 0.34rem;
  border-radius: 999px;
  white-space: nowrap;
}

.eq-profiles-list {
  max-height: none;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.eq-actions-row {
  margin-top: 0;
  display: flex;
  gap: 0.75rem;
}

.eq-actions-row .btn {
  min-height: 44px;
}

.eq-profiles-list::-webkit-scrollbar {
  width: 6px;
}

.eq-profiles-list::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.eq-profiles-list::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

.eq-profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  border: 1px solid #333;
  transition: background 0.2s;
}

.eq-profile-item:hover {
  background: #2a2a2a;
}

.eq-profile-item:last-child {
  margin-bottom: 0;
}

.eq-profile-name {
  font-size: 0.85rem;
  color: #eee;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

.eq-profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.eq-profile-actions {
  display: flex;
  gap: 0.35rem;
}

.btn-profile {
  background: #333;
  border: 1px solid #444;
  color: #ccc;
  border-radius: 4px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  line-height: 1;
}

.btn-profile:hover {
  color: #fff;
}

.btn-profile.apply:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #22c55e;
}

.btn-profile.rename:hover {
  background: rgba(234, 179, 8, 0.2);
  border-color: #eab308;
  color: #eab308;
}

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



@media (max-width: 980px) {
  .eq-workspace {
    grid-template-columns: 1fr;
  }

  .eq-presets-section {
    position: static;
    max-height: none;
  }

  .eq-profiles-list {
    max-height: 220px;
  }

  .eq-preview-thumb {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 640px) {
  .eq-preview-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .eq-preview-thumb {
    width: 100%;
    height: 120px;
  }

  .eq-preview-title,
  .eq-preview-subtitle {
    white-space: normal;
  }

  .eq-preview-controls {
    grid-template-columns: auto minmax(0, 1fr);
  }
}