:root {
    --brand-red-bright: #ee1c25;
    --brand-red-dark: #7a0c12;
    --brand-black: #111111;
    --bg: #0b0b0d;
    --card-bg: #1a1517;
    --text: #f1f1f1;
    --text-dim: #a89a9b;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 30% 20%, var(--brand-red-dark) 0%, var(--bg) 55%);
    color: var(--text);
}

.initial-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: var(--text-dim);
}

.app-background {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.player-card {
    width: 100%;
    max-width: 380px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(238, 28, 37, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red-dark), var(--brand-red-bright), var(--brand-red-dark));
}

.station-logo img {
    width: 160px;
    height: auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.station-name {
    margin: 4px 0 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.station-tagline {
    margin: 4px 0 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #64748b;
}
.status-dot.status-live { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.status-dot.status-buffering { background: var(--brand-red-bright); animation: pulse 1s infinite; }
.status-dot.status-error { background: #ef4444; }
.status-dot.status-paused { background: #6b6b6b; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.controls-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.play-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, var(--brand-red-bright), var(--brand-red-dark));
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(238, 28, 37, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(238, 28, 37, 0.55);
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    color: var(--text-dim);
}

.volume-row input[type="range"] {
    flex: 1;
    accent-color: var(--brand-red-bright);
}

#blazor-error-ui {
    display: none;
    background: #b32121;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
