* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    user-select: none;
    background: #05060b;
}

video {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

.shade {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(0, 0, 0, .05), rgba(0, 0, 0, .45));
    pointer-events: none;
}

.player {
    position: fixed;
    right: 3vw;
    bottom: 7vh;
    z-index: 5;
    width: 315px;
    max-width: calc(100vw - 35px);
    padding: 15px 17px 17px;
    border-radius: 19px;
    background: rgba(10, 11, 18, .88);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .55);
    backdrop-filter: blur(12px);
    transition: transform .25s ease, opacity .25s ease;
}

.hiddenPlayer {
    transform: translateY(24px) scale(.97);
    opacity: 0;
    pointer-events: none;
}

.liveBadge {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 0, 35, .82);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 0 18px rgba(255, 0, 35, .35);
}

.coverFrame {
    width: 118px;
    height: 118px;
    margin: 0 auto 11px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}

#coverArt {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: .96;
}

h1 {
    margin: 0 auto 3px;
    max-width: 255px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
}

.subtitle {
    margin-top: 4px;
    max-width: 255px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

button {
    border: 0;
    outline: 0;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, opacity .15s ease;
}

button:hover {
    background: rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px) scale(.98);
}

.iconBtn {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 29px;
    height: 29px;
    min-width: 29px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 800;
    line-height: 29px;
    z-index: 2;
}

.progressWrap {
    margin-top: 10px;
}

.timeRow {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 700;
}

.customProgress {
    position: relative;
    width: 100%;
    height: 18px;
    display: flex;
    align-items: center;
    z-index: 30;
}

.customProgress::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
}

.customProgressFill {
    position: absolute;
    left: 0;
    height: 5px;
    width: 0%;
    border-radius: 999px;
    background: #fff;
    pointer-events: none;
}

.customProgressThumb {
    position: absolute;
    left: 0%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 17px;
}

.controlBtn,
.playBtn,
.smallBtn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.controlBtn {
    width: 43px;
    height: 43px;
    border-radius: 14px;
    font-size: 18px;
}

.playBtn {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 27px;
    background: rgba(255, 255, 255, .25);
}

.volumeRow {
    display: grid;
    grid-template-columns: 34px 1fr 38px;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.smallBtn {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 17px;
}

input[type='range'] {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    accent-color: #fff;
    cursor: pointer;
}

#volumeText {
    color: rgba(255, 255, 255, .75);
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.help {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .58);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.showBtn {
    position: fixed;
    right: 28px;
    bottom: 32px;
    z-index: 6;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 21px;
    background: rgba(10, 11, 18, .86);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px);
}

.hidden {
    display: none;
}

.errorBox {
    text-align: center;
    color: rgba(255, 255, 255, .75);
    font-size: 11px;
    font-weight: 700;
    margin-top: 8px;
    min-height: 14px;
}

@media (max-width: 900px) {
    .player {
        left: 50%;
        right: auto;
        bottom: 5vh;
        transform: translateX(-50%);
    }

    .hiddenPlayer {
        transform: translateX(-50%) translateY(24px) scale(.97);
    }
}