/*
Theme Name: SNE Radio
Theme URI: https://sneradio.com
Author: SNE Radio
Description: Custom theme for SNE Radio — the canonical profile, discovery, and community platform for the SNE collective.
Version: 0.3.2
Text Domain: sne
*/

:root {
    --sne-black: #0a0a0a;
    --sne-black-soft: #151515;
    --sne-gold: #d4af37;
    --sne-red: #8b0000;
    --sne-white: #ffffff;
    --sne-muted: rgba(255, 255, 255, 0.62);
    --sne-border: rgba(212, 175, 55, 0.28);

    --sne-display: 'Bebas Neue', sans-serif;
    --sne-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    background: var(--sne-black);
    color: var(--sne-white);
    font-family: var(--sne-body);
    margin: 0;
    line-height: 1.55;
}

a { color: var(--sne-gold); }
a:focus-visible, button:focus-visible, iframe:focus-visible {
    outline: 2px solid var(--sne-gold);
    outline-offset: 2px;
}

h1, h2, h3 {
    font-family: var(--sne-display);
    letter-spacing: 0.03em;
    margin: 0 0 0.4em;
}

/* ── Site header ─────────────────────────────────────────────── */
.sne-site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--sne-border);
}
.sne-logo {
    font-family: var(--sne-display);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: var(--sne-white);
    text-decoration: none;
}
.sne-site-nav a {
    color: var(--sne-white);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
.sne-site-nav a:hover { color: var(--sne-gold); }

.sne-main { max-width: 960px; margin: 0 auto; padding: 0 20px 80px; }

.sne-site-footer {
    text-align: center;
    padding: 32px 20px;
    color: var(--sne-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--sne-border);
}

/* ── The switcher — the page's thesis ────────────────────────── */
.sne-hero { margin: 32px 0 40px; }

.sne-switcher {
    background: var(--sne-black-soft);
    border: 1px solid var(--sne-border);
    border-radius: 4px;
    padding: 16px;
}

.sne-live-badge, .sne-offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sne-display);
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 3px;
    margin-bottom: 14px;
}
.sne-live-badge {
    background: var(--sne-red);
    color: var(--sne-white);
}
.sne-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sne-white);
    animation: sne-pulse 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .sne-live-dot { animation: none; }
}
@keyframes sne-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.sne-offline-badge {
    background: transparent;
    color: var(--sne-muted);
    border: 1px solid var(--sne-border);
}

.sne-switcher-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 16px;
}
@media (max-width: 760px) {
    .sne-switcher-grid { grid-template-columns: 1fr; }
}

.sne-switcher-player iframe,
.sne-switcher-shoutbox iframe {
    width: 100%;
    border: 0;
    display: block;
}
.sne-switcher-player iframe { aspect-ratio: 16 / 9; height: auto; }
.sne-switcher-shoutbox iframe { height: 100%; min-height: 360px; }

.sne-switcher-archive.sne-switcher-mixcloud iframe { aspect-ratio: auto; height: 120px; }

.sne-archive-title {
    margin-top: 10px;
    color: var(--sne-muted);
    font-size: 0.9rem;
}
.sne-no-archive { color: var(--sne-muted); }

/* ── Identity ─────────────────────────────────────────────────── */
.sne-identity {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
}
.sne-dj-photo img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--sne-border);
}
.sne-dj-name { font-size: 3rem; line-height: 1; }
.sne-dj-location { color: var(--sne-muted); margin: 4px 0 12px; }

.sne-genre-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 14px;
}
.sne-genre-tags li {
    border: 1px solid var(--sne-gold);
    color: var(--sne-gold);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
}

.sne-social-links {
    list-style: none;
    display: flex;
    gap: 16px;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}
.sne-social-links a { text-decoration: none; }
.sne-social-links a:hover { text-decoration: underline; }

/* ── Bio ──────────────────────────────────────────────────────── */
.sne-bio { max-width: 640px; margin-bottom: 32px; color: rgba(255,255,255,0.85); }

/* ── Booking CTA ──────────────────────────────────────────────── */
.sne-booking-cta {
    background: var(--sne-gold);
    color: var(--sne-black);
    padding: 20px 24px;
    border-radius: 4px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.sne-booking-cta p { margin: 0; font-weight: 600; }
.sne-btn {
    background: var(--sne-black);
    color: var(--sne-gold);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.sne-btn:hover { background: var(--sne-black-soft); }

/* ── Archive grid ─────────────────────────────────────────────── */
.sne-archive h2 { font-size: 1.6rem; margin-bottom: 16px; }
.sne-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.sne-archive-card {
    display: block;
    color: var(--sne-white);
    text-decoration: none;
    background: var(--sne-black-soft);
    border: 1px solid var(--sne-border);
    border-radius: 4px;
    overflow: hidden;
}
.sne-archive-card img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.sne-archive-card-title {
    display: block;
    padding: 10px 12px 2px;
    font-size: 0.9rem;
    font-weight: 600;
}
.sne-archive-card-date {
    display: block;
    padding: 0 12px 10px;
    font-size: 0.78rem;
    color: var(--sne-muted);
}

/* ── Dashboard (from the backend phase) ──────────────────────── */
.sne-dashboard { max-width: 640px; margin: 40px auto; }
.sne-dash-nav { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.sne-dash-nav-item {
    background: var(--sne-black-soft);
    color: var(--sne-muted);
    border: 1px solid var(--sne-border);
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--sne-body);
    font-size: 0.85rem;
    border-radius: 3px;
}
.sne-dash-nav-item.sne-active { color: var(--sne-gold); border-color: var(--sne-gold); }
.sne-success-message {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--sne-gold);
    padding: 10px 14px;
    border-radius: 3px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.sne-hint { color: var(--sne-muted); font-size: 0.85rem; }
.sne-status-badge { color: var(--sne-muted); font-size: 0.85rem; margin-left: 12px; }
