:root {
    --accent-lime: #EAFFC6;
    --accent-pink: #FC8FB0;
    --bg-page: #f7f8fa;
    --bg-card: rgba(255, 255, 255, 0.78);
    --bg-card-hover: rgba(255, 255, 255, 0.96);
    --nav-bg: rgba(247, 248, 250, 0.75);
    --pill-bg: rgba(0, 0, 0, 0.06);
    --text-primary: #111215;
    --text-secondary: #5c606a;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.09);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-page: #0b0c0e;
        --bg-card: rgba(26, 28, 34, 0.72);
        --bg-card-hover: rgba(34, 37, 45, 0.92);
        --nav-bg: rgba(11, 12, 14, 0.75);
        --pill-bg: rgba(255, 255, 255, 0.08);
        --text-primary: #f5f6f8;
        --text-secondary: #9ca1ad;
        --border-color: rgba(255, 255, 255, 0.1);
        --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.35);
        --shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.5);
    }
}

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

body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(234, 255, 198, 0.384), transparent 38%),
        radial-gradient(circle at 88% 15%, rgba(252, 143, 176, 0.25), transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (prefers-color-scheme: dark) {
    body {
        background-image:
            radial-gradient(circle at 12% 8%, rgba(234, 255, 198, 0.09), transparent 40%),
            radial-gradient(circle at 88% 15%, rgba(252, 143, 176, 0.12), transparent 42%);
    }
}

.container {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 80px;
    flex: 1;
}

.hero {
    text-align: center;
    max-width: 680px;
    margin: 16px auto 56px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-lime), var(--accent-pink));
    color: #111215;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
}

.search-wrapper {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    pointer-events: none;
}

#search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.96rem;
    box-shadow: var(--shadow-soft);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#search-input:focus {
    border-color: var(--accent-pink);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 4px rgba(252, 143, 176, 0.2);
}

.section-block {
    margin-bottom: 52px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.track-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 14px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, box-shadow 0.25s ease;
}

.track-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-hover);
}

.track-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent-lime), var(--accent-pink));
    margin-bottom: 14px;
}

.track-title {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.track-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.tag-sync {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 8px;
    background: var(--pill-bg);
    color: var(--text-secondary);
}

.grid-artists {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 20px 14px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, background 0.25s ease;
}

.artist-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.artist-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-lime));
    margin-bottom: 12px;
}

.artist-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    border-top: 1px solid var(--border-color);
}