:root {
    --color-primary: #4B0E78;
    --color-accent: #A6CE39;
    --color-gold: #D4D1A2;
    --color-white: #FFFFFF;
    --color-deep: #1B0F2A;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(0,0,0,.25);
    --transition: 200ms ease;
}

* { box-sizing: border-box }
html, body { height: 100% }

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Inter, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--color-white);
    background: 
        linear-gradient(135deg, rgba(90,19,143,0.85) 0%, rgba(75,14,120,0.88) 50%, rgba(27,15,42,0.90) 100%),
        url('bg.jpg') 
        center/cover fixed;
}

/* Hero */
.hero {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 48px 20px 120px;
    text-align: center;
}

.hero-content {
    opacity: 0;
    transform: translateY(10px);
    animation: fade-in 800ms var(--transition) forwards;
}

.title {
    font-size: clamp(2rem, 4vw + 1rem, 3rem);
    margin: 16px 0 8px;
    letter-spacing: .5px;
}

.tagline {
    margin: 0 0 12px;
    font-size: clamp(1.05rem, 1vw + .8rem, 1.25rem);
    color: #f3f1ff;
    opacity: .95;
}

.description {
    margin: 0 0 28px;
    font-size: clamp(0.95rem, 1vw + 0.6rem, 1.1rem);
    color: #f0f0f0;
    opacity: .85;
    max-width: 42ch;
    line-height: 1.5;
}

/* Logo */
img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow);
    border: 4px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.06);
}

/* Buttons */
.btn {
    border: 0;
    cursor: pointer;
    font: inherit;
    transition: transform var(--transition),
                box-shadow var(--transition),
                background var(--transition),
                color var(--transition);
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-accent);
    color: #0f2a0e;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(166,206,57,.35);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:active {
    background: var(--color-white);
    color: var(--color-accent);
    transform: translateY(-1px) scale(1.02);
}

.btn-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.play-icon, .pause-icon {
    width: 24px;
    height: 24px;
}

.pause-icon {
    display: none;
}

[aria-pressed="true"] .play-icon {
    display: none;
}

[aria-pressed="true"] .pause-icon {
    display: block;
}

.action-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.social-link {
    color: var(--color-white);
    opacity: 0.85;
    transition: all 0.2s ease;
    padding: 8px;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.social-link-disabled:hover {
    opacity: 0.5;
    transform: none;
}

.btn-icon {
    background: transparent;
    color: var(--color-white);
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 12px;
}

.btn-icon:hover {
    background: rgba(255,255,255,.08);
}

/* Player bar (sticky bottom) */
.player-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(27,15,42,.92);
    backdrop-filter: saturate(140%) blur(6px);
    border-top: 1px solid rgba(255,255,255,.08);
    color: var(--color-white);
}

.player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.station {
    font-weight: 700;
    white-space: nowrap;
}

.status {
    opacity: .85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
}

/* Live indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-indicator .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 0 rgba(166,206,57,.7);
    animation: pulse 1400ms ease-out infinite;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(166,206,57,.7) }
    70% { box-shadow: 0 0 0 12px rgba(166,206,57,0) }
    100% { box-shadow: 0 0 0 0 rgba(166,206,57,0) }
}

@keyframes fade-in {
    to { opacity: 1; transform: none }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-content { animation: none; opacity: 1; transform: none }
    .live-indicator .dot { animation: none }
}