#host-player {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 930;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(760px, calc(100% - 24px));
    padding: 8px 10px 8px 14px;
    border-radius: 14px;
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, #3b4859 0%, #2a3544 30%, #1a222c 100%);
    border: 1px solid rgba(140, 190, 230, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 20px 50px rgba(0, 0, 0, 0.65);
    color: #cfdeee;
    font-family: 'Selawik', Tahoma, Verdana, 'Segoe UI', sans-serif;
    font-size: 12px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#host-player[hidden] {
    display: none;
}

.hp-led {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #7d8fa3, #2a3949 55%, #131a23);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.5);
}

#host-player.is-playing .hp-led {
    background: radial-gradient(circle at 35% 30%, #e6fff6, #4ff0c0 45%, #0b8c6a);
    box-shadow:
        0 0 10px rgba(99, 240, 194, 0.85),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.hp-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 0 1 200px;
    line-height: 1.2;
}

.hp-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #eef6ff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.hp-artist {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    color: #8fa4b8;
}

.hp-clock {
    flex: 0 0 auto;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #9fe8cf;
    font-variant-numeric: tabular-nums;
}

.hp-controls {
    display: flex;
    gap: 3px;
    flex: 0 0 auto;
}

.hp-btn {
    width: 28px;
    height: 26px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #dce9f6;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 52%),
        linear-gradient(180deg, #60748c 0%, #41536a 46%, #2a3849 100%);
    border: 1px solid rgba(8, 12, 18, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.hp-btn svg {
    width: 12px;
    height: 12px;
}

.hp-btn svg[hidden] {
    display: none;
}

.hp-btn:hover {
    filter: brightness(1.12);
}

.hp-btn:active {
    transform: translateY(1px);
    filter: brightness(0.9);
}

.hp-btn:focus-visible {
    outline: 2px solid rgba(126, 247, 207, 0.85);
    outline-offset: 2px;
}

.hp-seek {
    -webkit-appearance: none;
    appearance: none;
    flex: 1 1 140px;
    min-width: 50px;
    height: 16px;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.hp-seek::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 55%),
        linear-gradient(90deg, #8ffbd9 0 var(--p, 0%), #1f2a36 var(--p, 0%) 100%);
    border: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.7),
        inset 0 -1px 1px rgba(255, 255, 255, 0.07);
}

.hp-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -4px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #ffffff, #c2d3e2 32%, #6d8296 72%, #33424f);
    border: 1px solid rgba(0, 0, 0, 0.55);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hp-seek::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #1f2a36;
    border: 1px solid rgba(0, 0, 0, 0.6);
}

.hp-seek::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: #8ffbd9;
}

.hp-seek::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #ffffff, #c2d3e2 32%, #6d8296 72%, #33424f);
    border: 1px solid rgba(0, 0, 0, 0.55);
}

.hp-seek:focus-visible {
    outline: 2px solid rgba(126, 247, 207, 0.85);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    #host-player {
        bottom: 8px;
        width: calc(100% - 12px);
        gap: 6px;
        padding: 6px 8px;
    }

    .hp-info {
        flex: 1 1 auto;
    }

    .hp-artist,
    .hp-clock {
        display: none;
    }

    .hp-btn {
        width: 26px;
        height: 24px;
    }

    .hp-seek {
        flex: 1 1 60px;
    }
}
