* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    color: #f6f9f8;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.radio-player {
    width: 100%;
}

.player-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 12px 12px 14px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(255, 215, 128, 0.22), transparent 28%),
        linear-gradient(135deg, #17232a 0%, #0d464a 52%, #08272d 100%);
    box-shadow: 0 18px 34px rgba(5, 25, 30, 0.32);
}

.player-screen {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(227, 255, 240, 0.14), rgba(188, 255, 228, 0.05)),
        rgba(6, 18, 20, 0.55);
    border: 1px solid rgba(196, 255, 232, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.screen-top,
.screen-main,
.player-actions {
    display: flex;
    align-items: center;
}

.screen-top {
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.screen-main {
    justify-content: space-between;
    gap: 12px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 110, 110, 0.16);
    color: #ffd0d0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff6666;
    box-shadow: 0 0 14px rgba(255, 102, 102, 0.75);
}

.screen-label {
    color: rgba(221, 242, 237, 0.72);
    font-size: 0.72rem;
    white-space: nowrap;
}

.screen-copy {
    min-width: 0;
}

.player-kicker,
.screen-frequency,
#player-status {
    margin: 0;
}

.player-kicker {
    color: #b9ebdd;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.screen-frequency {
    display: block;
    margin-top: 2px;
    color: #f7ffcb;
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: 0.05em;
    text-shadow: 0 0 14px rgba(247, 255, 203, 0.2);
}

#player-status {
    margin-top: 4px;
    color: rgba(229, 247, 241, 0.8);
    font-size: 0.74rem;
    line-height: 1.2;
}

.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
    flex: 0 0 auto;
}

.signal-bars span {
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f9f89a 0%, #6ff0c3 100%);
    box-shadow: 0 0 10px rgba(111, 240, 195, 0.22);
    animation: tuner-bars 1.2s ease-in-out infinite;
}

.signal-bars span:nth-child(1) {
    height: 10px;
}

.signal-bars span:nth-child(2) {
    height: 18px;
    animation-delay: 0.12s;
}

.signal-bars span:nth-child(3) {
    height: 28px;
    animation-delay: 0.24s;
}

.signal-bars span:nth-child(4) {
    height: 20px;
    animation-delay: 0.36s;
}

.signal-bars span:nth-child(5) {
    height: 12px;
    animation-delay: 0.48s;
}

.player-actions {
    display: grid;
    grid-template-columns: 48px 36px minmax(150px, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
}

.play-toggle,
.icon-button {
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.play-toggle:hover,
.icon-button:hover {
    transform: translateY(-1px);
}

.play-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f9d37d 0%, #ff816c 100%);
    color: #102023;
    font-size: 1.05rem;
    box-shadow: 0 14px 28px rgba(255, 129, 108, 0.28);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.95rem;
}

.volume-control {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0;
    height: 36px;
    border-radius: 12px;
    background: transparent;
}

.volume-inline {
    width: 100%;
    min-width: 150px;
    padding: 0 10px;
    border-radius: 14px;
    border: 1px solid rgba(201, 255, 236, 0.16);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.volume-control input[type="range"] {
    width: 100%;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f7d585 0%, #79efc5 100%);
    outline: none;
    cursor: pointer;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #fffdf4;
    box-shadow: 0 0 0 4px rgba(255, 214, 126, 0.25);
    cursor: pointer;
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #fffdf4;
    box-shadow: 0 0 0 4px rgba(255, 214, 126, 0.25);
    cursor: pointer;
}

.volume-control input[type="range"]::-moz-range-track {
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #f7d585 0%, #79efc5 100%);
}

@keyframes tuner-bars {
    0%,
    100% {
        transform: scaleY(0.6);
        opacity: 0.65;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@media (max-width: 520px) {
    .player-actions {
        grid-template-columns: 48px 36px minmax(132px, 1fr);
    }

    .volume-inline {
        min-width: 132px;
    }
}
