/* static/style.css */

* {
    box-sizing: border-box;
}

html {
    overflow-y: hidden;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: #050505;
    color: white;
    font-family: Inter, system-ui, sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* ===== LAYOUT ===== */

.app {
    display: flex;
    height: 100vh;
    width: 100%;
    max-width: 100%;
}

/* ===== MAIN ===== */

.main {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,0.08),
            transparent 50%
        );
}

/* ===== TOP BAR ===== */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    z-index: 2;
    position: relative;
}

.logo {
    font-size: 34px;
    font-weight: 800;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4444;
    box-shadow: 0 0 12px #ff4444;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.live-dot.online {
    background: #1ed760;
    box-shadow: 0 0 12px #1ed760;
}

.live-text {
    font-size: 12px;
    letter-spacing: 2px;
    color: #888;
}

/* ===== HERO ===== */

.hero {
    flex: 1;
    width: 100%;
    max-width: 100%;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 20px;

    z-index: 2;
}

.current-track {
    font-size: clamp(28px, 6vw, 72px);
    font-weight: 700;
    max-width: 900px;
    width: 100%;
    line-height: 1.1;
    margin-bottom: 40px;

    overflow-wrap: break-word;
    word-break: break-word;
}

/* ===== PLAYER ===== */

.player-controls {
    display: flex;
    align-items: center;
    gap: 26px;
}

.play-button {

    width: 110px;

    height: 110px;

    border-radius: 50%;

    border: none;

    background: white;

    color: black;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 40px;

    font-weight: 700;

    line-height: 1;

    padding: 0;

    position: relative;

    overflow: hidden;

    box-shadow:
        0 0 30px rgba(255,255,255,0.12);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.play-button:hover {

    transform: scale(1.04);

    box-shadow:
        0 0 40px rgba(255,255,255,0.18);
}

.play-icon {

    margin-left: 6px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.pause-icon {

    position: relative;

    width: 28px;

    height: 28px;

    display: flex;

    align-items: center;

    justify-content: center;
}



.side-button {

    width: 64px;

    height: 64px;

    border-radius: 50%;

    border: none;

    background:
        rgba(255,255,255,0.08);

    color: white;

    font-size: 28px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    backdrop-filter: blur(12px);

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.side-button:hover {

    background:
        rgba(255,255,255,0.12);

    transform: scale(1.05);
}

.volume-label {

    margin-top: 18px;

    color: #666;

    font-size: 14px;

    letter-spacing: 1px;
}

/* ===== SIDEBAR ===== */

.sidebar {

    width: 360px;

    min-width: 360px;

    border-left:
        1px solid rgba(255,255,255,0.06);

    background:
        rgba(255,255,255,0.03);

    backdrop-filter: blur(20px);

    display: flex;

    flex-direction: column;

    overflow: hidden;
}

.sidebar-title {

    padding: 24px;

    font-size: 12px;

    letter-spacing: 2px;

    color: #666;

    text-transform: uppercase;
}

.artists-list {

    flex: 1;

    overflow-y: auto;

    padding: 0 18px 40px;
}

.artist-item {

    padding: 18px 6px;

    border-bottom:
        1px solid rgba(255,255,255,0.04);
}

.artist-name {

    display: block;

    font-size: 20px;

    margin-bottom: 12px;

    color: white;

    text-decoration: none;
}

.artist-name:hover {

    opacity: 0.7;
}

.artist-tracks {

    display: flex;

    flex-direction: column;

    gap: 8px;
}

.track-link {

    padding: 10px 12px;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.04);

    color: #aaa;

    text-decoration: none;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.track-link:hover {

    background:
        rgba(255,255,255,0.08);

    color: white;
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {

    body {

        overflow-y: hidden;

        overflow-x: hidden;
    }

    .app {

        flex-direction: column;

        height: auto;

        width: 100%;

        max-width: 100%;

        overflow-x: hidden;
    }

    .main {

        min-height: 55vh;

        width: 100%;

        max-width: 100%;
    }

    .topbar {

        padding: 16px 18px;
    }

    .logo {

        font-size: 26px;
    }

    .hero {

        width: 100%;

        max-width: 100%;

        padding-left: 18px;

        padding-right: 18px;
    }

    .current-track {

        font-size:
            clamp(24px, 8vw, 42px);

        max-width: 100%;
    }

    .player-controls {

        gap: 18px;
    }

    .play-button {

        width: 90px;

        height: 90px;
    }

    .side-button {

        width: 52px;

        height: 52px;

        font-size: 22px;
    }

    .sidebar {

        width: 100%;

        min-width: 100%;

        max-width: 100%;

        border-left: none;

        border-top:
            1px solid rgba(255,255,255,0.06);

        height: 340px;
    }

    .artists-list {

        overflow-y: auto;

        padding-right: 8px;
    }
}