/* ==========================================
   Musicas.org — Premium Dark Theme + AI
   ========================================== */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(22, 22, 35, 0.7);
    --bg-card-hover: rgba(30, 30, 50, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a82;
    --accent-purple: #a855f7;
    --accent-purple-light: #c084fc;
    --accent-cyan: #06b6d4;
    --accent-cyan-light: #22d3ee;
    --accent-pink: #ec4899;
    --accent-gradient: linear-gradient(135deg, #a855f7 0%, #06b6d4 50%, #ec4899 100%);
    --accent-gradient-hover: linear-gradient(135deg, #c084fc 0%, #22d3ee 50%, #f472b6 100%);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(168, 85, 247, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.15);
    --shadow-glow-cyan: 0 0 40px rgba(6, 182, 212, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* --- Particles --- */
.bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-purple);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 10, 15, 0.75);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.92);
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.03);
}

.logo-icon {
    font-size: 1.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4));
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

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

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0;
    transition: var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.nav-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.nav-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--accent-purple-light);
    border-color: var(--accent-purple);
}

/* --- Language Selector --- */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.lang-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    z-index: 200;
}

.lang-dropdown.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-option:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--accent-purple-light);
    background: rgba(168, 85, 247, 0.1);
}

/* --- Settings Panel --- */
.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-subtle);
    z-index: 500;
    transition: transform var(--transition-base), visibility var(--transition-base);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    visibility: hidden;
    overflow: hidden;
}

.settings-panel.visible {
    transform: translateX(0);
    visibility: visible;
}

.settings-inner {
    padding: 2rem 1.5rem;
}

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

.settings-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.settings-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-base);
}

.settings-close:hover {
    color: var(--text-primary);
}

.settings-field {
    margin-bottom: 1.5rem;
}

.settings-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.settings-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-base);
}

.settings-field input:focus {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow);
}

.settings-field small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.settings-field small a {
    color: var(--accent-cyan-light);
    text-decoration: none;
}

.settings-save {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.settings-save:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.settings-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.5em;
}

.settings-status.success {
    color: #4ade80;
}

.settings-status.error {
    color: #f87171;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 1.5rem 3rem;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 70%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -20px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title-line {
    display: block;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Search Mode Toggle --- */
.search-mode-toggle {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.mode-btn:hover {
    color: var(--text-secondary);
    border-color: rgba(168, 85, 247, 0.3);
}

.mode-btn.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent-purple);
    color: var(--accent-purple-light);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.mode-icon {
    font-size: 1rem;
}

/* --- Search Bar --- */
.search-container {
    position: relative;
    z-index: 3;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 0.25rem 0.25rem 0.25rem 1.5rem;
    transition: var(--transition-base);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.search-bar:focus-within {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow), var(--shadow-md);
    transform: scale(1.01);
}

.search-bar.ai-mode {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.1), var(--shadow-md);
}

.search-icon {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.search-bar:focus-within .search-icon {
    color: var(--accent-purple);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.05rem;
    padding: 1rem;
    min-width: 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    cursor: pointer;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-base);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--accent-gradient-hover);
    transform: scale(1.03);
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
}

/* --- AI Interpretation Banner --- */
.ai-interpretation {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
    animation: fadeInUp 0.4s ease;
}

.ai-interpretation.visible {
    display: flex;
}

.ai-interp-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.ai-interp-content {
    text-align: left;
}

.ai-interp-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-purple-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-interp-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2px;
    font-style: italic;
}

/* --- Suggestions --- */
.search-suggestions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.suggestion-tag {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
}

.suggestion-tag:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-purple);
    color: var(--accent-purple-light);
    transform: translateY(-1px);
}

/* --- Equalizer --- */
.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    padding: 1rem;
}

.eq-bar {
    width: 6px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    opacity: 0.6;
    animation: eqPulse ease-in-out infinite;
}

.eq-bar:nth-child(1) {
    height: 30%;
    animation-duration: 1.2s;
    animation-delay: 0s
}

.eq-bar:nth-child(2) {
    height: 60%;
    animation-duration: 0.8s;
    animation-delay: .1s
}

.eq-bar:nth-child(3) {
    height: 45%;
    animation-duration: 1s;
    animation-delay: .2s
}

.eq-bar:nth-child(4) {
    height: 80%;
    animation-duration: .9s;
    animation-delay: .05s
}

.eq-bar:nth-child(5) {
    height: 55%;
    animation-duration: 1.1s;
    animation-delay: .15s
}

.eq-bar:nth-child(6) {
    height: 70%;
    animation-duration: .7s;
    animation-delay: .25s
}

.eq-bar:nth-child(7) {
    height: 40%;
    animation-duration: 1.3s;
    animation-delay: .1s
}

.eq-bar:nth-child(8) {
    height: 65%;
    animation-duration: .85s;
    animation-delay: .2s
}

.eq-bar:nth-child(9) {
    height: 35%;
    animation-duration: 1.15s;
    animation-delay: .05s
}

@keyframes eqPulse {

    0%,
    100% {
        transform: scaleY(0.3);
    }

    50% {
        transform: scaleY(1);
    }
}

/* --- Results --- */
.results-section {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: none;
}

.results-section.visible {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

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

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

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.results-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

/* --- Song Card --- */
.song-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    animation: cardReveal 0.4s ease backwards;
    position: relative;
}

.song-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    background: var(--bg-card-hover);
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

.card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.card-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.song-card:hover .card-thumbnail img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.card-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.song-card:hover .card-play-btn {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(168, 85, 247, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-bounce);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.play-icon svg {
    margin-left: 3px;
}

.song-card:hover .play-icon {
    transform: scale(1.1);
}

.card-info {
    padding: 0.85rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition-base);
}

.song-card:hover .card-title {
    color: var(--accent-purple-light);
}

.card-channel {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.card-stats {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- AI Mood Badge --- */
.mood-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    animation: badgePop 0.3s var(--transition-bounce) backwards;
}

@keyframes badgePop {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mood-badge.energetic {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.mood-badge.melancholic {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.mood-badge.romantic {
    background: rgba(244, 114, 182, 0.15);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.3);
}

.mood-badge.chill {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.mood-badge.dark {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.mood-badge.happy {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
}

.mood-badge.epic {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.mood-badge.nostalgic {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.3);
}

/* --- Loading --- */
.loading-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.loading-container.visible {
    display: flex;
}

.loader {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 40px;
}

.loader-bar {
    width: 8px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    animation: loaderPulse 0.8s ease-in-out infinite;
}

.loader-bar:nth-child(1) {
    height: 15px;
    animation-delay: 0s
}

.loader-bar:nth-child(2) {
    height: 25px;
    animation-delay: .1s
}

.loader-bar:nth-child(3) {
    height: 35px;
    animation-delay: .2s
}

.loader-bar:nth-child(4) {
    height: 25px;
    animation-delay: .3s
}

.loader-bar:nth-child(5) {
    height: 15px;
    animation-delay: .4s
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.loading-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- Load More --- */
.load-more-container {
    display: none;
    justify-content: center;
    margin-top: 2rem;
}

.load-more-container.visible {
    display: flex;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.load-more-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-purple);
    color: var(--accent-purple-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* --- No Results / Error --- */
.no-results,
.error-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    gap: 0.75rem;
}

.no-results.visible,
.error-state.visible {
    display: flex;
}

.no-results-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.no-results h3,
.error-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.no-results p,
.error-state p {
    color: var(--text-muted);
    max-width: 400px;
}

.retry-btn {
    margin-top: 0.75rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.retry-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-base);
}

.modal-overlay.visible {
    display: flex;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    width: 100%;
    max-width: 960px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: rgba(168, 85, 247, 0.6);
    transform: rotate(90deg);
}

.modal-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: black;
}

.modal-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.modal-info {
    padding: 1rem 1.5rem;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.modal-channel {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- AI DJ Chat FAB --- */
.dj-chat-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.4);
    transition: var(--transition-base);
}

.dj-chat-fab:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.5);
}

.fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    border: 2px solid var(--accent-purple);
    animation: fabPulseAnim 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fabPulseAnim {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0;
        transform: scale(1.15);
    }
}

.fab-icon {
    font-size: 1.2rem;
}

/* --- AI DJ Chat Panel --- */
.dj-chat-panel {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 400px;
    max-width: calc(100vw - 2rem);
    height: 520px;
    max-height: 70vh;
    z-index: 900;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.dj-chat-panel.visible {
    display: flex;
    animation: chatSlideUp 0.4s var(--transition-bounce);
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(168, 85, 247, 0.05);
}

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

.chat-avatar {
    font-size: 1.5rem;
}

.chat-header-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chat-status {
    font-size: 0.7rem;
    color: var(--accent-cyan-light);
    font-weight: 500;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-base);
}

.chat-close:hover {
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-msg {
    display: flex;
    gap: 0.5rem;
    max-width: 90%;
    animation: fadeInUp 0.3s ease;
}

.chat-msg.bot {
    align-self: flex-start;
}

.chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-bubble {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    line-height: 1.5;
}

.chat-msg.bot .msg-bubble {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}

.chat-msg.user .msg-bubble {
    background: rgba(168, 85, 247, 0.2);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

.msg-bubble p {
    margin-bottom: 0.5rem;
}

.msg-bubble p:last-child {
    margin-bottom: 0;
}

.msg-bubble .chat-song-link {
    display: inline-block;
    color: var(--accent-cyan-light);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    transition: var(--transition-fast);
}

.msg-bubble .chat-song-link:hover {
    color: var(--accent-purple-light);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
    align-items: center;
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingBounce {

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

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.chat-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-base);
}

.chat-input:focus {
    border-color: var(--accent-purple);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-send {
    background: var(--accent-gradient);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.1);
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 1.5rem;
    margin-top: 3rem;
    background: var(--bg-secondary);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .logo-icon {
    font-size: 1.3rem;
}

.footer-brand .logo-text {
    font-size: 1rem;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-purple-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .nav {
        gap: 0.7rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero {
        min-height: 75vh;
        padding: 100px 1rem 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .search-btn span {
        display: none;
    }

    .search-btn {
        padding: 1rem;
        border-radius: 50%;
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .dj-chat-panel {
        bottom: 5rem;
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
        height: 60vh;
    }

    .dj-chat-fab {
        bottom: 1rem;
        right: 1rem;
    }

    .lang-code {
        display: none;
    }
}

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

    .mode-label {
        display: none;
    }
}

/* ═══════════════════════════════════════════
   SEO Content Sections
   ═══════════════════════════════════════════ */

.content-section {
    position: relative;
    z-index: 2;
    padding: 5rem 1.5rem;
}

.content-section.dark-section {
    background: var(--bg-secondary);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* --- Steps Grid (Como Funciona) --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

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

.step-number {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-purple);
    opacity: 0.5;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Genres Grid --- */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.genre-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
    cursor: pointer;
}

.genre-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow-cyan);
    background: var(--bg-card-hover);
}

.genre-emoji {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-base);
}

.genre-card:hover .genre-emoji {
    transform: scale(1.2);
}

.genre-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.genre-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Benefits Grid --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-base);
}

.benefit-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-glow);
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- FAQ Accordion --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-item[open] {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.05);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-base);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-purple-light);
    transition: var(--transition-base);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background: var(--bg-glass-hover);
}

.faq-item summary h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- SEO Responsive --- */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .genres-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 3rem 1rem;
    }

    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

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

    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}