:root {
    --bg-color: #0b0c10;
    --text-primary: #f0f0f0;
    --text-secondary: #a0aab2;
    --accent-primary: #e62272; /* Neon Pink/Magenta for Kalinka */
    --accent-secondary: #00d2ff; /* Cyan glow */
    
    --glass-bg: rgba(25, 30, 40, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background glows for aesthetics */
.background-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 34, 114, 0.15) 0%, rgba(11, 12, 16, 0) 70%);
    top: -20vh;
    left: -10vw;
    z-index: -1;
    filter: blur(60px);
}

.background-glow.glow-2 {
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(11, 12, 16, 0) 70%);
    top: auto;
    bottom: -20vh;
    left: auto;
    right: -10vw;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
}

.header-logo {
    height: 40px;
    object-fit: contain;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: white;
    white-space: nowrap;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Glass Panel Base */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Controls (Search & Filters) */
.controls-container {
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1rem;
    z-index: 100;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

#searchInput {
    width: 100%;
    padding: 1rem 3rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    transition: var(--transition);
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(230, 34, 114, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.clear-btn:hover {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(230, 34, 114, 0.8), rgba(0, 210, 255, 0.6));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(230, 34, 114, 0.3);
}

/* Sorting */
.sort-box {
    margin-top: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.sort-select {
    padding: 0.6rem 2.5rem 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    transition: var(--transition);
    max-width: max-content;
}

.sort-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.sort-select:focus {
    outline: none;
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.sort-select option {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-weight: normal;
}

/* Stats */
.stats-bar {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 0.4s both;
}

/* Songs List */
.songs-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.song-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.3s ease-out forwards;
    opacity: 0;
}

.song-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition);
}

.song-card.type-public::before {
    background: var(--accent-secondary);
    opacity: 0.8;
}

.song-card.type-updates::before {
    background: var(--accent-primary);
    opacity: 0.8;
}

.song-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    background: rgba(35, 40, 50, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

.song-card:hover::before {
    width: 6px;
    box-shadow: 0 0 10px currentColor;
}

.song-meta {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
}

.song-type {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.type-public .song-type {
    background: rgba(0, 210, 255, 0.15);
    color: var(--accent-secondary);
}

.type-updates .song-type {
    background: rgba(230, 34, 114, 0.15);
    color: var(--accent-primary);
}



.song-fulltitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
}

/* Helpers */
.hidden {
    display: none !important;
}

/* Loading state */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 3rem;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary);
    animation: fadeIn 0.4s ease-out;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    max-width: 400px;
    padding: 2rem;
    text-align: center;
}

.modal-content h2 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-primary), #b01555);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn:hover {
    box-shadow: 0 0 20px rgba(230, 34, 114, 0.4);
    transform: translateY(-2px);
}

/* Footer */
footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (min-width: 768px) {
    header {
        margin-bottom: 3rem;
    }
    
    .header-logo {
        height: 60px;
    }
    
    .logo-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .controls-container {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .search-box {
        flex: 1 1 100%;
        margin-bottom: 0.5rem;
    }

    .filter-tabs {
        flex: 1;
        justify-content: flex-start;
    }

    .sort-box {
        margin-top: 0;
        width: auto;
        justify-content: flex-end;
    }
}
