* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: #999;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
}

.player-shell {
    width: 100%;
}

.player-card {
    position: relative;
    width: min(500px, 100%);
    min-height: 220px;
    padding: 10px 18px 0;
    background: #000;
    overflow: hidden;
}

.top-row {
    min-height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .04em;
}

.live-dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    border-radius: 50%;
    background: #666;
}

.live-dot.playing {
    background: #fff;
    animation: livePulse 1.1s infinite ease-in-out;
}

.elapsed-time {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

@keyframes livePulse {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: .35; transform: scale(.78); }
    100% { opacity: 1; transform: scale(1); }
}

.signal-bar {
    width: 100%;
    height: 4px;
    margin-top: 5px;
    background: #929292;
    overflow: hidden;
}

.signal-pulse {
    width: 0;
    height: 100%;
    background: #fff;
}

.signal-pulse.playing {
    width: 35%;
    animation: streamMove 1.8s infinite linear;
}

@keyframes streamMove {
    0%   { margin-left: -35%; }
    100% { margin-left: 100%; }
}

.content-row {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    min-width: 0;
}

.cover-wrap {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    overflow: hidden;
    background: #222;
}

.cover {
    display: block;
    width: 140px;
    height: 140px;
    object-fit: cover;
}

.details {
    flex: 1 1 auto;
    min-width: 0;
    height: 140px;
    display: flex;
    flex-direction: column;
}

.headline {
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    min-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.teaser {
    margin-top: 8px;
    color: #a6a6a6;
    font-size: 16px;
    line-height: 1.25;
    max-height: 42px;
    overflow: hidden;
}

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

button {
    font: inherit;
}

.play-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #000;
    cursor: pointer;
    font-size: 19px;
    display: grid;
    place-items: center;
    padding: 0;
}

.play-button:hover {
    transform: scale(1.04);
}

.small-button {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    font-size: 17px;
}

.volume-slider {
    flex: 1 1 auto;
    min-width: 60px;
    height: 4px;
    cursor: pointer;
    accent-color: #fff;
}

.status {
    margin-top: 8px;
    color: #8e8e8e;
    font-size: 11px;
    line-height: 1.2;
    min-height: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-row {
    min-height: 28px;
    margin-top: 18px;
    border-bottom: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 11px;
}

.footer-row a {
    color: #fff;
    text-decoration: none;
}

.footer-row a:hover {
    text-decoration: underline;
}

@media (max-width: 420px) {
    .player-card {
        padding: 10px 12px 0;
    }

    .content-row {
        gap: 12px;
    }

    .cover-wrap,
    .cover {
        width: 105px;
        height: 105px;
    }

    .cover-wrap {
        flex-basis: 105px;
    }

    .details {
        height: 105px;
    }

    .headline {
        font-size: 14px;
    }

    .teaser {
        font-size: 13px;
        max-height: 34px;
    }

    .play-button {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .volume-slider,
    .status {
        display: none;
    }

    .footer-row {
        margin-top: 12px;
    }
}
