:root {
    color-scheme: dark;
    --bg: #090d16;
    --surface: #111827;
    --surface-light: #182235;
    --border: rgba(255,255,255,.08);
    --text: #f3f6fc;
    --muted: #8995a9;
    --accent: #648cff;
    --accent-light: #8ba8ff;
}

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

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 76px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(9,13,22,.9);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg,#7598ff,#4265d7);
    font-size: 21px;
    color: white;
}

.brand-light {
    color: var(--muted);
    font-weight: 500;
}

.connection-status {
    color: var(--muted);
    font-size: 12px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #45d69a;
}

.main-content {
    width: min(100% - 40px, 1000px);
    margin: 0 auto;
    flex: 1;
}

.welcome {
    padding: 85px 0 48px;
}

.eyebrow {
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.welcome h1 {
    margin-top: 18px;
    font-size: clamp(42px,7vw,66px);
    line-height: 1.08;
    letter-spacing: -3px;
}

.welcome h1 span {
    color: var(--accent-light);
}

.welcome p {
    max-width: 520px;
    margin-top: 20px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}

.search-panel,
.results-section,
.player-section {
    margin-bottom: 28px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 17px;
}

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

.section-heading h2 {
    font-size: 17px;
    font-weight: 650;
}

.muted,
.result-count {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 7px 8px 7px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 11px;
}

.input-icon {
    color: var(--accent-light);
    font-size: 20px;
}

.search-input-wrap input {
    min-width: 0;
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: white;
    font-size: 14px;
}

.search-input-wrap button {
    padding: 13px 22px;
    background: var(--accent);
    color: white;
    border: 0;
    border-radius: 8px;
    font-weight: 650;
    cursor: pointer;
}

.search-input-wrap button:hover {
    background: var(--accent-light);
}

.search-hint {
    margin-top: 13px;
    color: var(--muted);
    font-size: 11px;
}

.empty-state {
    padding: 45px 15px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.empty-icon {
    margin-bottom: 14px;
    color: var(--accent-light);
    font-size: 35px;
}

.empty-state h3 {
    font-size: 15px;
}

.empty-state p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
}

.player-placeholder {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #05080e;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
}

.play-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 50%;
    background: var(--surface-light);
    color: var(--accent-light);
    font-size: 19px;
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 25px 7%;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1.5px;
}

@media (max-width: 600px) {
    .topbar {
        padding: 0 20px;
    }

    .welcome {
        padding-top: 55px;
    }

    .search-panel,
    .results-section,
    .player-section {
        padding: 18px;
    }

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

    .search-input-wrap input {
        width: calc(100% - 50px);
    }

    .search-input-wrap button {
        width: 100%;
    }
}
