@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Waveform Network Theme v2.1.2 — Plus/Elite */
/* ── Theme shell ───────────────────────────────────────── */
.theme-waveform {
    --wf-radius: 12px;
    --wf-radius-sm: 8px;
    --wf-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --wf-sans: 'Plus Jakarta Sans', var(--font-body), system-ui, sans-serif;
    --wf-display: var(--wf-sans);
}

.theme-waveform {
    font-family: var(--wf-sans);
}

/* Cleaner sticky header for this layout */
.theme-waveform > header,
body.theme-waveform > header {
    background: color-mix(in srgb, var(--color-menu-bg, #0a0a0a) 78%, transparent) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.theme-waveform .nav-link,
body.theme-waveform .nav-link {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    opacity: 0.78;
    transition: opacity 0.2s var(--wf-ease), background 0.2s var(--wf-ease), color 0.2s var(--wf-ease) !important;
}

.theme-waveform .nav-link:hover,
body.theme-waveform .nav-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.06) !important;
}

.theme-waveform .nav-link.active,
body.theme-waveform .nav-link.active {
    opacity: 1;
    background: color-mix(in srgb, var(--color-primary, #f97316) 22%, transparent) !important;
    color: var(--color-primary, #f97316) !important;
}

/* ── Hero ──────────────────────────────────────────────── */
.wf-hero {
    position: relative;
    min-height: min(68vh, 620px);
    display: flex;
    flex-direction: column;
    background-color: #070708;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding-bottom: 5.5rem;
}

.wf-hero.has-photo {
    background-image: var(--wf-hero-image);
}

.wf-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.wf-hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 18%, color-mix(in srgb, var(--color-primary, #f97316) 20%, transparent), transparent 58%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.78) 100%);
}

.wf-hero.is-tinted .wf-hero-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        color-mix(in srgb, var(--color-background, #070708) 88%, transparent) 0%,
        color-mix(in srgb, var(--color-primary, #f97316) 40%, transparent) 55%,
        color-mix(in srgb, var(--color-secondary, #a855f7) 35%, transparent) 100%
    );
}

.wf-hero-stack {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 5.5rem 1.5rem 2.75rem;
    flex-shrink: 0;
}

.wf-hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.95rem;
    text-align: center;
    animation: wfRise 0.85s var(--wf-ease) both;
}

.wf-brand {
    margin: 0;
    font-family: var(--wf-sans);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary, #f97316);
}

.wf-hero-title {
    margin: 0;
    font-family: var(--wf-sans);
    font-size: clamp(2.35rem, 5.4vw, 3.7rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: rgba(255, 255, 255, 0.96);
    max-width: 16ch;
}

.wf-hero-title-main {
    color: #fff;
}

.wf-hero-title-accent {
    display: inline;
    background: linear-gradient(
        105deg,
        var(--color-primary, #f97316) 0%,
        color-mix(in srgb, var(--color-secondary, #a855f7) 80%, #fff) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wf-hero-sub {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.68);
    max-width: 34rem;
    font-weight: 400;
}

.wf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 0.35rem;
}

.wf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0 1.4rem;
    border-radius: var(--wf-radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--wf-sans);
    transition: transform 0.25s var(--wf-ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.wf-btn:hover {
    transform: translateY(-2px);
}

.wf-btn-primary {
    background: var(--color-button-bg, var(--color-primary, #f97316));
    color: var(--color-button-text, #fff);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--color-primary, #f97316) 35%, transparent);
}

.wf-btn-primary:hover {
    box-shadow: 0 14px 34px color-mix(in srgb, var(--color-primary, #f97316) 45%, transparent);
}

.wf-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.wf-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

.wf-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Wide now-playing bar — kept below the hero buttons */
.wf-hero-now {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.5rem 0.25rem;
    flex-shrink: 0;
}

.wf-hero-now-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 18px;
    background: color-mix(in srgb, var(--color-primary, #7c3aed) 38%, rgba(10, 10, 16, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(22px) saturate(1.25);
}

.wf-now-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s var(--wf-ease);
}

.wf-now-play:hover {
    transform: scale(1.06);
}

.wf-now-play svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

.wf-now-play.is-playing svg {
    margin-left: 0;
}

.wf-now-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wf-now-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.wf-rating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 36px;
    min-height: 36px;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: transform 0.15s var(--wf-ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.wf-rating-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.wf-rating-btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

.wf-rating-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.wf-rating-count {
    font-size: 0.78rem;
    font-weight: 700;
    pointer-events: none;
}

.wf-rating-score {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary, #f97316);
    padding: 0 0.2rem;
}

.wf-now-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.15rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.wf-now-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: wfLivePulse 1.8s ease-out infinite;
}

.wf-now-art-wrap {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.wf-now-art-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wf-now-meta {
    min-width: 0;
    flex: 1;
}

.wf-now-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wf-now-artist {
    margin-top: 0.15rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wf-hero + .wf-section {
    padding-top: 3.25rem;
}

@keyframes wfLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ── Sections ──────────────────────────────────────────── */
.wf-section {
    padding: 4rem 1.5rem;
    background: var(--color-background, #070708);
}

.wf-section-head {
    max-width: 1180px;
    margin: 0 auto 1.75rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.wf-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary, #f97316);
}

.wf-section-title {
    margin: 0;
    font-family: var(--wf-sans);
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-heading, #fff);
}

/* ── Stations ──────────────────────────────────────────── */
.wf-station-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 1.15rem;
}

.wf-station-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s var(--wf-ease);
    font: inherit;
}

.wf-station-card:hover {
    transform: translateY(-4px);
}

.wf-station-card.is-active .wf-station-media {
    outline: 2px solid var(--color-primary, #f97316);
    outline-offset: 3px;
}

.wf-station-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    transition: outline 0.2s ease, box-shadow 0.3s var(--wf-ease);
}

.wf-station-card:hover .wf-station-media,
.wf-station-card.is-active .wf-station-media {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.wf-station-card img,
.wf-station-fallback {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

.wf-station-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    font-family: var(--wf-display);
    font-size: 2rem;
    font-weight: 800;
}

.wf-station-play-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    color: #fff;
}

.wf-station-card:hover .wf-station-play-hint {
    opacity: 1;
}

.wf-station-play-hint span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary, #f97316);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.wf-station-info strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--color-heading, #fff);
}

.wf-station-info span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ── Last played ───────────────────────────────────────── */
.wf-last-played {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wf-lp-list {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wf-lp-row {
    display: grid;
    grid-template-columns: 56px 60px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 0.75rem;
    border-radius: var(--wf-radius);
    transition: background 0.2s ease;
}

.wf-lp-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.wf-lp-ep {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
}

.wf-lp-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--wf-radius-sm);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.wf-lp-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading, #fff);
}

.wf-lp-artist {
    margin-top: 0.2rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.52);
}

.wf-lp-skeleton .wf-lp-thumb,
.wf-lp-skeleton .wf-lp-line {
    background: rgba(255, 255, 255, 0.08);
    animation: wfPulse 1.4s ease-in-out infinite;
}

.wf-lp-line {
    height: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.wf-lp-line.short {
    width: 45%;
    margin-bottom: 0;
}

@keyframes wfPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@keyframes wfRise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
    .wf-hero {
        min-height: auto;
        padding-bottom: 5.25rem;
    }

    .wf-hero-stack {
        padding: 4.25rem 1.15rem 2.25rem;
    }

    .wf-hero-title {
        max-width: none;
    }

    .wf-hero-now {
        margin-bottom: 0;
    }

    .wf-now-live-pill {
        display: none;
    }

    .wf-now-play {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .wf-hero {
        min-height: auto;
        padding-bottom: 5rem;
    }

    .wf-hero-stack {
        padding: 3.5rem 1rem 2rem;
    }

    .wf-hero-now {
        padding: 0 1rem 0.15rem;
        margin-bottom: 0;
    }

    .wf-hero-now-inner {
        flex-wrap: nowrap;
        padding: 0.65rem 0.75rem;
        gap: 0.7rem;
    }

    .wf-now-art-wrap {
        width: 58px;
        height: 58px;
        border-radius: 12px;
    }

    .wf-now-meta {
        flex: 1 1 140px;
    }

    .wf-now-title {
        font-size: 0.95rem;
    }

    .wf-now-play {
        width: 42px;
        height: 42px;
    }

    .wf-now-rating {
        margin-left: 0;
    }

    .wf-section {
        padding: 3rem 1.15rem;
    }

    .wf-station-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.9rem;
    }

    .wf-lp-row {
        grid-template-columns: 44px 52px 1fr;
        gap: 0.7rem;
        padding: 0.7rem 0.35rem;
    }

    .wf-lp-thumb {
        width: 52px;
        height: 52px;
    }

    .wf-lp-ep {
        font-size: 0.62rem;
    }
}
