:root {
    --bg: #f3f1ec;
    --surface: #ffffff;
    --ink: #1c1b1a;
    --muted: #6b6661;
    --accent: #d6402b;
    --accent-ink: #ffffff;
    --line: #e2ddd5;
    --warn: #8a5a00;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #141312;
        --surface: #1f1d1b;
        --ink: #f2efe9;
        --muted: #a29b92;
        --accent: #ff6a52;
        --accent-ink: #141312;
        --line: #34302c;
        --warn: #f1b44c;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
}

body {
    display: flex;
    justify-content: center;
    padding: 24px 16px;
}

.player {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.player__station {
    margin: 0;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
}

.player__status {
    margin: 0;
    min-height: 1.3em;
    color: var(--muted);
    font-size: 0.95rem;
}

.player__status--warn {
    color: var(--warn);
    font-weight: 600;
}

.player__status--live::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: 1px;
}

.now {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

@media (max-width: 420px) {
    .now {
        grid-template-columns: 1fr;
    }

    .now__cover {
        width: 100%;
        max-width: 260px;
        justify-self: center;
    }
}

.now__cover {
    width: 132px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--line);
}

.now__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.now__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #7a2f8a);
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.05;
    text-align: center;
}

.now__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.now__kind {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.now__title {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.now__artist {
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.now__sources {
    margin-top: 6px;
    font-size: 0.9rem;
}

.now__sources-caption {
    margin: 0 0 4px;
    color: var(--muted);
}

.now__sources ul {
    margin: 0;
    padding-left: 18px;
}

.now__sources a {
    color: inherit;
    overflow-wrap: anywhere;
}

.player__button {
    align-self: stretch;
    padding: 16px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
}

.player__button:disabled {
    opacity: 0.5;
    cursor: default;
}

.player__button:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.player__notice {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}
