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

:root {
    --bg: #08070d;
    --card: rgba(20,17,27,.9);
    --line: rgba(255,255,255,.07);

    --pink: #ff4f9a;
    --purple: #8866ff;

    --text: #f8f6fa;
    --muted: #918a99;
}

html {
    background: var(--bg);
}

body {
    min-height: 100vh;

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 0 0,
            rgba(255,79,154,.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 100% 100%,
            rgba(136,102,255,.12),
            transparent 32%
        ),
        var(--bg);

    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}


/* HEADER */

.topbar {
    width: min(760px, 94%);

    height: 70px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.brand {
    display: flex;

    align-items: center;

    gap: 10px;
}

.brand-logo {
    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--pink),
            var(--purple)
        );

    font-size: 18px;
}

.brand strong {
    display: block;

    font-size: 14px;
}

.brand span {
    display: block;

    margin-top: 3px;

    color: #77717e;

    font-size: 7px;

    letter-spacing: 1.4px;
}

.live {
    display: flex;

    align-items: center;

    gap: 6px;

    padding: 7px 10px;

    border-radius: 999px;

    color: #ff7bb7;

    background:
        rgba(255,79,154,.07);

    border:
        1px solid
        rgba(255,79,154,.15);

    font-size: 7px;

    font-weight: 900;
}

.live i,
.sync-dot {
    width: 6px;
    height: 6px;

    display: block;

    border-radius: 50%;

    background: var(--pink);

    box-shadow:
        0 0 10px
        var(--pink);

    animation:
        pulse 1.4s infinite;
}

@keyframes pulse {
    50% {
        opacity: .3;
    }
}


/* MAIN */

main {
    width: min(760px, 94%);

    margin:
        15px auto
        60px;

    display: flex;

    flex-direction: column;

    gap: 13px;
}


/* RADIO */

.radio-card,
.panel {
    border:
        1px solid var(--line);

    background:
        var(--card);

    border-radius: 23px;

    backdrop-filter:
        blur(20px);

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.35);
}

.radio-card {
    padding: 25px;
}

.sync-status {
    width: fit-content;

    margin:
        0 auto
        18px;

    display: flex;

    align-items: center;

    gap: 7px;

    color: #8e8796;

    font-size: 7px;

    letter-spacing: 1px;

    font-weight: 800;
}


/* COVER */

.cover-wrapper {
    position: relative;

    width: min(350px, 75vw);

    margin: auto;
}

.cover-glow {
    position: absolute;

    inset: 12%;

    border-radius: 25%;

    background:
        linear-gradient(
            135deg,
            var(--pink),
            var(--purple)
        );

    filter: blur(45px);

    opacity: .25;
}

.cover {
    position: relative;

    aspect-ratio: 1;

    overflow: hidden;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            #21182b,
            #0e0b14
        );

    border:
        1px solid
        rgba(255,255,255,.08);
}

.cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: none;
}

.default-cover {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 80px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,79,154,.28),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(136,102,255,.28),
            transparent 40%
        );
}


/* NOW PLAYING */

.now-playing {
    margin-top: 21px;

    text-align: center;
}

.now-playing > span {
    color: #ff69ae;

    font-size: 7px;

    letter-spacing: 1.7px;

    font-weight: 900;
}

.now-playing h1 {
    margin-top: 8px;

    font-size:
        clamp(19px, 5vw, 27px);
}

.now-playing p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 10px;
}


/* PROGRESS */

.progress {
    margin-top: 22px;

    display: flex;

    align-items: center;

    gap: 8px;

    color: #77717d;

    font-size: 8px;
}

.progress-track {
    flex: 1;

    height: 5px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255,255,255,.08);
}

#progressBar {
    width: 0%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--pink),
            var(--purple)
        );

    transition:
        width .2s linear;
}


/* CONTROLS */

.controls {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 17px;

    margin-top: 20px;
}

.controls button {
    border: 0;

    color: white;

    display: flex;

    align-items: center;
    justify-content: center;
}

.secondary {
    width: 43px;
    height: 43px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.05) !important;

    border:
        1px solid var(--line) !important;
}

.main-play {
    width: 59px;
    height: 59px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--pink),
            var(--purple)
        ) !important;

    box-shadow:
        0 14px 40px
        rgba(255,79,154,.25);
}


/* NOTICE */

.notice {
    margin-top: 19px;

    padding: 9px 12px;

    border-radius: 10px;

    color: #77717f;

    background:
        rgba(255,255,255,.025);

    text-align: center;

    font-size: 8px;
}


/* PANEL */

.panel {
    padding: 20px;
}

.panel-head {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 13px;
}

.panel-head small {
    color: #ff69ae;

    font-size: 7px;

    letter-spacing: 1.5px;

    font-weight: 900;
}

.panel-head h2 {
    margin-top: 4px;

    font-size: 17px;
}

.panel-head > span {
    padding: 6px 9px;

    border-radius: 999px;

    color: #8d8694;

    background:
        rgba(255,255,255,.04);

    font-size: 8px;
}


/* PLAYLIST */

.playlist {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.song {
    min-height: 59px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 7px;

    border-radius: 13px;
}

.song.active {
    background:
        rgba(255,79,154,.07);

    border:
        1px solid
        rgba(255,79,154,.12);
}

.number {
    width: 24px;

    color: #625d68;

    font-size: 8px;

    text-align: center;
}

.song.active .number {
    color: #ff6cac;
}

.mini-cover {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    overflow: hidden;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        #17121f;

    color: #aaa1b0;
}

.mini-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.song-info {
    min-width: 0;

    flex: 1;
}

.song-info b {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 10px;
}

.song-info small {
    display: block;

    margin-top: 4px;

    color: #817987;

    font-size: 8px;
}

.on-air {
    color: #ff67ad;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: .8px;
}


/* EMPTY */

.empty {
    min-height: 130px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    color: #706978;

    text-align: center;
}

.empty strong {
    color: #eee;

    font-size: 11px;
}

.empty span {
    font-size: 8px;
}


/* UPLOAD */

.description {
    color: var(--muted);

    font-size: 9px;

    line-height: 1.6;

    margin-bottom: 12px;
}

.upload-panel input[type="text"] {
    width: 100%;

    height: 43px;

    margin-bottom: 9px;

    padding: 0 12px;

    border:
        1px solid var(--line);

    outline: none;

    border-radius: 11px;

    color: white;

    background:
        rgba(255,255,255,.035);

    font-size: 10px;
}

.upload-panel input[type="text"]:focus {
    border-color:
        rgba(255,79,154,.45);
}

.file {
    min-height: 70px;

    margin-top: 9px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    position: relative;

    overflow: hidden;

    border-radius: 12px;

    border:
        1px dashed
        rgba(255,255,255,.13);

    background:
        rgba(255,255,255,.025);

    cursor: pointer;
}

.file b {
    font-size: 9px;
}

.file span {
    margin-top: 3px;

    color: #77707e;

    font-size: 7px;
}

.file input {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}

.upload {
    width: 100%;

    height: 44px;

    margin-top: 11px;

    border: 0;

    border-radius: 11px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--pink),
            var(--purple)
        );

    font-size: 9px;

    font-weight: 900;
}

.upload:disabled {
    opacity: .5;
}

.message {
    min-height: 16px;

    margin-top: 7px;

    text-align: center;

    font-size: 8px;
}

.message.success {
    color: #52df9b;
}

.message.error {
    color: #ff6680;
}


/* FOOTER */

footer {
    width: min(760px, 94%);

    margin:
        0 auto
        30px;

    display: flex;

    justify-content: space-between;

    color: #5f5967;

    font-size: 8px;
}


/* MOBILE */

@media (max-width: 600px) {

    .topbar {
        width: 94%;
        height: 62px;
    }

    .brand-logo {
        width: 35px;
        height: 35px;
    }

    .brand strong {
        font-size: 12px;
    }

    .brand span {
        font-size: 6px;
    }

    .live {
        font-size: 6px;
    }

    main {
        width: 94%;

        margin-top: 9px;
    }

    .radio-card {
        padding: 15px;

        border-radius: 19px;
    }

    .cover-wrapper {
        width: min(
            290px,
            74vw
        );
    }

    .cover {
        border-radius: 20px;
    }

    .default-cover {
        font-size: 65px;
    }

    .panel {
        padding: 16px;

        border-radius: 18px;
    }

    footer {
        padding-bottom:
            env(safe-area-inset-bottom);
    }
}