.htrp-wrapper {
    --htrp-primary: #f5c542;
    --htrp-bg: #111111;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 420px;
    margin: 10px auto;
}

.htrp-inner {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent 60%),
                var(--htrp-bg);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    color: #f9f9f9;
    box-sizing: border-box;
}

.htrp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.htrp-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--htrp-primary), #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.htrp-logo-icon {
    font-size: 24px;
}

.htrp-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.htrp-station-title {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.htrp-station-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

.htrp-now-playing-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-right: 4px;
}

.htrp-now-playing-text {
    font-weight: 500;
}

.htrp-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.htrp-play-pause {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--htrp-primary);
    color: #111111;
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.2s ease-out;
}

.htrp-play-pause:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.55);
}

.htrp-play-pause:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 5px 12px rgba(0,0,0,0.45);
}

.htrp-play-pause .htrp-icon {
    display: none;
}

.htrp-wrapper:not(.htrp-is-playing) .htrp-icon-play {
    display: inline;
}

.htrp-wrapper.htrp-is-playing .htrp-icon-pause {
    display: inline;
}

.htrp-visualizer {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 28px;
}

.htrp-bar {
    flex: 1;
    max-width: 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    transform-origin: bottom;
    transform: scaleY(0.2);
    animation: htrp-bar-idle 1.6s ease-in-out infinite;
}

.htrp-bar:nth-child(2) { animation-delay: 0.12s; }
.htrp-bar:nth-child(3) { animation-delay: 0.24s; }
.htrp-bar:nth-child(4) { animation-delay: 0.36s; }
.htrp-bar:nth-child(5) { animation-delay: 0.48s; }

.htrp-wrapper.htrp-is-playing .htrp-bar {
    background: linear-gradient(to top, rgba(255,255,255,0.1), var(--htrp-primary));
    animation: htrp-bar-play 0.9s ease-in-out infinite;
}

.htrp-volume-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 90px;
}

.htrp-volume-icon {
    font-size: 0.9rem;
    opacity: 0.8;
}

.htrp-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.22);
    outline: none;
    overflow: hidden;
}

.htrp-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--htrp-primary);
    box-shadow: -200px 0 0 200px var(--htrp-primary);
    cursor: pointer;
}

.htrp-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--htrp-primary);
    cursor: pointer;
}

.htrp-volume-slider::-moz-range-track {
    background: rgba(255,255,255,0.22);
    height: 4px;
    border-radius: 999px;
}

@keyframes htrp-bar-idle {
    0%, 100% { transform: scaleY(0.2); }
    50% { transform: scaleY(0.35); }
}

@keyframes htrp-bar-play {
    0%, 100% { transform: scaleY(0.25); }
    40% { transform: scaleY(1); }
    70% { transform: scaleY(0.4); }
}

@media (max-width: 480px) {
    .htrp-inner {
        padding: 14px;
    }
    .htrp-body {
        gap: 10px;
    }
    .htrp-volume-wrapper {
        min-width: 70px;
    }
    .htrp-volume-slider {
        width: 60px;
    }
}
