/* YamPlay public listener page */
.container {
    max-width: var(--remote-shell-max);
    margin-inline: auto;
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--remote-inline-pad);
    padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px));
    text-align: center;
}

h1 {
    color: var(--color-accent);
    font-size: 28px;
    margin-bottom: 4px;
    text-shadow: 0 0 12px rgba(253, 185, 19, 0.45);
}

.subtitle {
    color: var(--color-text-primary);
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: var(--space-3);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent-soft);
    border: 1px solid var(--color-border-accent);
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: var(--space-3);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3333;
    box-shadow: 0 0 8px rgba(255, 51, 51, 0.8);
    animation: live-pulse 1.2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.hero-card {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    width: 100%;
    max-width: 420px;
    margin-bottom: var(--space-3);
}

.hero-card p {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.stream-error {
    display: none;
    color: #ff6b6b;
    font-size: 13px;
    margin-top: var(--space-2);
    padding: var(--space-2);
    border: 1px solid rgba(255, 107, 107, 0.35);
    border-radius: var(--radius-sm);
    background: rgba(40, 0, 0, 0.35);
}

.stream-error.visible {
    display: block;
}

/* Fixed bottom bar — matches remote.html floating-controls */
.floating-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 0 0;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 34px));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.65);
    border-top: 1px solid rgba(253, 185, 19, 0.3);
    z-index: 200;
}

.controls-container {
    max-width: var(--remote-shell-max);
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--remote-inline-pad);
    box-sizing: border-box;
}

.floating-now-playing {
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(253, 185, 19, 0.4);
    border-radius: 10px;
    padding: 8px 12px 10px;
    margin-bottom: 8px;
    text-align: center;
}

.floating-track-title {
    font-size: 15px;
    color: #fdb913;
    font-weight: bold;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.floating-track-info {
    font-size: 12px;
    color: #00cc33;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 255, 65, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, #fdb913 0%, #ffd700 100%);
    border-radius: 2px;
    animation: live-bar 2s ease-in-out infinite;
}

@keyframes live-bar {
    0%,
    100% {
        transform: translateX(-20%);
        opacity: 0.85;
    }
    50% {
        transform: translateX(180%);
        opacity: 1;
    }
}

.main-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.control-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdb913 0%, #ffd700 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 20px rgba(253, 185, 19, 0.55);
    flex-shrink: 0;
}

.control-btn:active {
    transform: scale(0.92);
}

.control-btn svg {
    width: 32px;
    height: 32px;
    fill: #000;
}

.volume-block {
    margin-bottom: 4px;
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-primary);
}

.volume-slider-container {
    flex: 1;
    max-width: 200px;
}

.volume-slider-container input[type="range"] {
    width: 100%;
    accent-color: var(--color-accent);
}

.volume-value {
    font-size: 12px;
    color: var(--color-text-secondary);
    min-width: 40px;
    text-align: right;
}

.volume-icon {
    font-size: 18px;
}

#liveStream {
    display: none;
}
