/* ==========================================================================
   CreatorSFX - VIP Dark Studio UI Stylesheet (Spotify / Epidemic Sound Style)
   100/100 Core Web Vitals Optimized • Responsive Mobile & Desktop Layout
   ========================================================================== */

:root {
  --bg-deep: #07090e;
  --bg-surface: #0e131f;
  --bg-card: #131929;
  --bg-card-hover: #192236;
  --bg-elevated: #1e2942;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 242, 254, 0.35);

  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8b5cf6 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-studio: linear-gradient(180deg, rgba(19, 25, 41, 0.92) 0%, rgba(11, 15, 25, 0.98) 100%);

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.22);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   LIGHT MODE STUDIO THEME (Clean Crisp Editorial Style)
   ========================================================================== */
[data-theme="light"] {
  --bg-deep: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-elevated: #e2e8f0;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-highlight: rgba(0, 180, 216, 0.5);

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-violet: #7c3aed;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  --grad-primary: linear-gradient(135deg, #0284c7 0%, #3b82f6 50%, #7c3aed 100%);
  --grad-emerald: linear-gradient(135deg, #059669 0%, #047857 100%);
  --grad-studio: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(2, 132, 199, 0.05) 0%, transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(124, 58, 237, 0.05) 0%, transparent 36%);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .sticky-player-bar {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .search-input {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .mini-waveform {
  background: #f1f5f9;
}

[data-theme="light"] .sound-card,
[data-theme="light"] .hero-visualizer-card,
[data-theme="light"] .studio-section,
[data-theme="light"] .guide-card,
[data-theme="light"] .modal-card,
[data-theme="light"] .shelf-card-mini {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .category-tab {
  background: #f1f5f9;
  color: #475569;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .category-tab:hover,
[data-theme="light"] .category-tab.active {
  background: var(--grad-primary);
  color: #ffffff;
}

[data-theme="light"] .tag-chip {
  background: #f1f5f9;
  color: #334155;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .tag-chip:hover,
[data-theme="light"] .tag-chip.active {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #0284c7;
}

[data-theme="light"] .btn-outline {
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .search-suggestions-dropdown {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .site-footer {
  background: #0f172a;
  color: #f8fafc;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(0, 242, 254, 0.08) 0%, transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(139, 92, 246, 0.09) 0%, transparent 36%);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 96px; /* Space for sticky audio player bar */
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   TOP TRUST BAR & HEADER NAVIGATION
   ========================================================================== */
.top-trust-bar {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.14), rgba(0, 242, 254, 0.14), rgba(139, 92, 246, 0.14));
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  text-align: center;
  color: #e2e8f0;
}

.top-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 9, 14, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  color: #05070b;
  font-weight: 900;
  box-shadow: var(--shadow-glow);
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 242, 254, 0.14);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.main-nav a, .main-nav button.nav-link-btn {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav button.nav-link-btn:hover {
  color: var(--accent-cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--grad-primary);
  color: #060911;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.62rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.4);
  color: #060911;
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--grad-emerald);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.58rem 1.05rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.28);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn-emerald:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.56rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-cyan);
}

/* ==========================================================================
   HERO SECTION & LIVE AUDIO SPECTRUM CANVAS
   ========================================================================== */
.hero-section {
  padding: 2.5rem 0 1.75rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

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

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.04rem;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

/* Search & Viral Tags */
.search-box-wrap {
  position: relative;
  max-width: 640px;
  margin-bottom: 1rem;
}

.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 100;
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem;
  backdrop-filter: blur(16px);
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 0.75rem;
}

.suggestion-item:hover, .suggestion-item.highlighted {
  background: rgba(0, 242, 254, 0.12);
}

.suggestion-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.suggestion-play-mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #050811;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.suggestion-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-category {
  font-size: 0.74rem;
  color: var(--accent-cyan);
  display: block;
}

.suggestion-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Most Viral Spotlight Shelf */
.most-viral-shelf {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0 2.5rem;
  box-shadow: 0 8px 32px rgba(244, 63, 94, 0.15);
}

.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.shelf-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flame-icon {
  font-size: 1.6rem;
  animation: flamePulse 1.5s infinite alternate ease-in-out;
}

@keyframes flamePulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px #f43f5e); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 12px #f59e0b); }
}

.shelf-scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
}

.shelf-card-mini {
  flex: 0 0 250px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.shelf-card-mini:hover {
  transform: translateY(-3px);
  border-color: var(--accent-rose);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.25);
}

.shelf-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shelf-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  border: none;
  color: #050811;
  font-size: 0.95rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shelf-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.5);
}

.shelf-play-btn.playing {
  background: var(--grad-emerald);
  color: #fff;
  animation: pulseEmerald 1.2s infinite alternate ease-in-out;
}

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

.shelf-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.shelf-card-badge {
  font-size: 0.72rem;
  color: var(--accent-amber);
  font-family: var(--font-mono);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shelf-card-actions {
  display: flex;
  gap: 0.5rem;
}

.shelf-card-actions button {
  flex: 1;
  padding: 0.4rem 0.5rem;
  font-size: 0.76rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  white-space: nowrap;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.95rem 7.5rem 0.95rem 3rem;
  font-size: 1rem;
  color: var(--text-main);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  left: 1.05rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.viral-tags-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.viral-tags-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 0.2rem;
}

.tag-chip {
  font-size: 0.78rem;
  padding: 0.26rem 0.68rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.18s ease;
}

.tag-chip:hover, .tag-chip.active {
  background: rgba(0, 242, 254, 0.14);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Right Hero Card: Live Visualizer + Custom Upload */
.hero-visualizer-card {
  background: var(--grad-studio);
  border: 1px solid rgba(0, 242, 254, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

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

.visualizer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 1.6s infinite;
}

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

#live-spectrum-canvas {
  width: 100%;
  height: 145px;
  background: #06080d;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: block;
  margin-bottom: 1rem;
}

.upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.08);
  border: 1px dashed rgba(139, 92, 246, 0.45);
  transition: all 0.2s ease;
}

.upload-dropzone:hover {
  background: rgba(139, 92, 246, 0.14);
  border-color: var(--accent-cyan);
}

.upload-info h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.upload-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   ADSENSE & MONETIZATION SLOTS
   ========================================================================== */
.ad-slot-wrapper {
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(19, 25, 41, 0.95), rgba(26, 35, 58, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.95rem 1.25rem;
  position: relative;
}

.ad-badge-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-fallback-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ad-fallback-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.ad-fallback-text p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CATEGORY TABS & TOOLBAR
   ========================================================================== */
.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cat-tab.active {
  background: var(--grad-primary);
  color: #050811;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.25);
}

.catalog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   SOUND EFFECTS GRID & CARDS
   ========================================================================== */
.sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.15rem;
}

.sound-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.sound-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: var(--shadow-card);
}

.sound-card.is-playing {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.play-trigger-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #060911;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
  transition: transform 0.15s ease;
}

.play-trigger-btn:hover {
  transform: scale(1.07);
}

.sound-card.is-playing .play-trigger-btn {
  background: var(--accent-rose);
  color: #fff;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.5);
}

.card-title-group {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.22rem;
}

.card-popular-in {
  font-size: 0.76rem;
  color: var(--accent-cyan);
  font-weight: 600;
  display: block;
}

.fav-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.fav-btn:hover, .fav-btn.active {
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.12);
}

/* Mini Waveform Bars */
.mini-waveform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  height: 38px;
  padding: 0.35rem 0.5rem;
  background: rgba(7, 9, 14, 0.65);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.wave-bar {
  flex: 1;
  background: rgba(148, 163, 184, 0.42);
  border-radius: 2px;
  transition: background-color 0.2s ease, height 0.2s ease;
}

.sound-card:hover .wave-bar {
  background: rgba(0, 242, 254, 0.65);
}

.sound-card.is-playing .wave-bar {
  background: var(--accent-cyan);
  animation: waveBounce 0.6s infinite alternate;
}

@keyframes waveBounce {
  0% { opacity: 0.65; }
  100% { opacity: 1; filter: drop-shadow(0 0 4px var(--accent-cyan)); }
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.card-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.card-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.mini-tag {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  color: var(--text-secondary);
  cursor: pointer;
}

.mini-tag:hover {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
}

.duration-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-studio-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.52rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #ddd6fe;
  transition: all 0.18s ease;
}

.btn-studio-open:hover {
  background: rgba(139, 92, 246, 0.28);
  color: #fff;
}

.btn-wav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.52rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--grad-emerald);
  color: #fff;
  transition: all 0.18s ease;
}

.btn-wav-download:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   ONLINE AUDIO CUSTOMIZER STUDIO (AdSense Value Magnet)
   ========================================================================== */
.studio-section {
  margin: 3.5rem 0;
  background: linear-gradient(145deg, #101726 0%, #0b0f1a 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.studio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.studio-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.studio-presets {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.preset-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.18s ease;
}

.preset-btn:hover, .preset-btn.active {
  background: rgba(139, 92, 246, 0.22);
  border-color: var(--accent-violet);
  color: #fff;
}

.studio-body-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: stretch;
}

.dsp-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.dsp-control-box {
  background: rgba(7, 9, 14, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.dsp-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.dsp-val-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
}

.dsp-slider {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
  height: 6px;
}

.dsp-range-hints {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.studio-preview-panel {
  background: #070a11;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

#studio-waveform-canvas {
  width: 100%;
  height: 130px;
  background: #04060a;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
}

.studio-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.studio-action-buttons button {
  flex: 1;
  min-width: 150px;
}

/* ==========================================================================
   HIGH-CONVERTING AFFILIATE CARDS SECTION
   ========================================================================== */
.affiliate-section {
  margin: 3.5rem 0;
}

.section-heading-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.section-heading-wrap h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-heading-wrap p {
  color: var(--text-secondary);
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.affiliate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.affiliate-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-card);
}

.aff-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.aff-badge.cyan { background: rgba(0, 242, 254, 0.14); color: var(--accent-cyan); }
.aff-badge.violet { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; }
.aff-badge.emerald { background: rgba(16, 185, 129, 0.16); color: var(--accent-emerald); }
.aff-badge.amber { background: rgba(245, 158, 11, 0.16); color: var(--accent-amber); }

.affiliate-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.affiliate-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.aff-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.aff-features li::before {
  content: "✓ ";
  color: var(--accent-emerald);
  font-weight: 800;
}

/* ==========================================================================
   SEO CREATOR GUIDES & FAQ ACCORDION
   ========================================================================== */
.guides-section {
  margin: 3.5rem 0;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}

.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.guide-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.guide-card p, .guide-card li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.guide-card ul {
  padding-left: 1.1rem;
}

.faq-section {
  margin: 3.5rem 0;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-answer {
  padding: 0 1.35rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.85rem;
}

/* ==========================================================================
   FOOTER & STICKY PLAYER BAR
   ========================================================================== */
.site-footer {
  background: #05070b;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links button, .footer-links a {
  font-size: 0.86rem;
  color: var(--text-secondary);
  text-align: left;
}

.footer-links button:hover, .footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sticky Bottom Audio Bar */
.sticky-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 242, 254, 0.25);
  z-index: 95;
  display: flex;
  align-items: center;
}

.sticky-player-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.now-playing-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.now-playing-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.now-playing-sub {
  font-size: 0.76rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   MODALS (LICENSE CERTIFICATE & ADSENSE COMPLIANCE PAGES)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.82);
  backdrop-filter: blur(8px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
}

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

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
}

.certificate-box {
  background: #070a11;
  border: 1px dashed var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #d1fae5;
  margin-bottom: 1.25rem;
}

.legal-content h4 {
  color: var(--accent-cyan);
  margin: 1.1rem 0 0.45rem;
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-highlight-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  color: #ecfdf5;
  margin-bottom: 1rem;
}

.legal-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-row input, .form-row select, .form-row textarea {
  background: #070a11;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.85rem;
  color: #fff;
}

.contact-feedback {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid var(--accent-emerald);
  color: #a7f3d0;
  font-weight: 600;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 84px;
  right: 20px;
  left: 20px;
  max-width: 540px;
  margin-left: auto;
  background: #111827;
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  z-index: 110;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner[hidden] {
  display: none !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid, .studio-body-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .main-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .dsp-controls-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .studio-section {
    padding: 1.25rem;
  }
  .sticky-player-bar {
    height: auto;
    padding: 0.6rem 0;
  }
}
