/* Paleta de app/theme/colors.ts (modo oscuro por defecto, claro si el sistema lo pide). */
:root {
    --background: #0d0b09;
    --surface: #211b15;
    --border: #3a3126;
    --text: #f5f1ec;
    --text-dim: #9a9086;
    --fire: #e2542d;
}

@media (prefers-color-scheme: light) {
    :root {
        --background: #f7f2ec;
        --surface: #ffffff;
        --border: #e5ddd0;
        --text: #211b15;
        --text-dim: #8a8175;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

[hidden] {
    display: none !important;
}

.player {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

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

.stations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.stations button {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-dim);
    font: inherit;
    cursor: pointer;
}

.stations button[aria-pressed="true"] {
    border-color: var(--fire);
    color: var(--text);
}

.cover {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border-radius: 16px;
    object-fit: cover;
    background: var(--surface);
}

.title {
    margin: 0;
    font-size: 1.4rem;
}

.artist {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-dim);
    font: inherit;
    font-size: 1.05rem;
}

.artist:not(:disabled) {
    color: var(--fire);
    cursor: pointer;
    text-decoration: underline;
}

.play {
    min-width: 180px;
    padding: 14px 32px;
    border: 0;
    border-radius: 999px;
    background: var(--fire);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.play:disabled {
    opacity: 0.4;
    cursor: default;
}

.status {
    min-height: 1.2em;
    margin: 0;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.download {
    margin-top: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    text-decoration: none;
}

.profile {
    width: min(440px, calc(100vw - 32px));
    padding: 0 0 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    text-align: center;
    overflow: hidden;
}

.profile::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.profile-cover {
    height: 120px;
    background: var(--border) center / cover no-repeat;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    margin-top: -48px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    object-fit: cover;
}

.profile h2 {
    margin: 8px 16px;
}

.profile p {
    margin: 0 20px 16px;
    color: var(--text-dim);
    white-space: pre-line;
}

.profile button {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}
