/* =================================
   JNKVERSE STREAM
================================= */

:root {
    --black: #080808;
    --dark: #0d0d0d;
    --white: #f5f4f1;
    --muted: #8e8e8e;
    --ruby: #d3134b;
    --line: rgba(255,255,255,0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: "Inter", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =================================
   PAGE
================================= */

.stream-page {
    min-height: 100vh;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.35)
        ),
        url("../assets/images/stream-bg.png") center center / cover no-repeat fixed;
}


/* =================================
   NAVIGATION
================================= */

.stream-nav {
    height: 86px;

    padding: 0 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}

.stream-logo {
    font-size: 20px;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.stream-logo span {
    color: var(--ruby);
    margin-right: 7px;
}

.stream-nav nav {
    display: flex;
    gap: 38px;
}

.stream-nav nav a {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;

    color: var(--muted);

    transition: 0.3s ease;
}

.stream-nav nav a:hover,
.stream-nav nav .active {
    color: var(--white);
}


/* =================================
   HEADER
================================= */

.stream-header {
    min-height: 400px;

    padding: 90px 7vw 80px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}

.stream-eyebrow {
    color: var(--ruby);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.3em;

    margin-bottom: 22px;
}

.stream-header h1 {
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(75px, 10vw, 150px);

    line-height: 0.75;

    font-weight: 500;

    letter-spacing: -0.04em;
}

.stream-header h1 span {
    color: transparent;

    -webkit-text-stroke: 1px rgba(255,255,255,0.65);
}

.stream-intro {
    max-width: 250px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;
}


/* =================================
   COMMON SECTION
================================= */

.today-section,
.days-section,
.guide-section {
    padding: 75px 7vw 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 25px;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.25em;

    color: var(--muted);
}

.section-label span {
    color: var(--ruby);
}


/* =================================
   TODAY CARD
================================= */

.today-card {
    min-height: 300px;

    border: 1px solid var(--line);

    display: grid;

    grid-template-columns: 150px 1fr 220px;

    background:
        linear-gradient(
            120deg,
            rgba(211,19,75,0.08),
            transparent 45%
        );
}

.day-info {
    padding: 30px;

    border-right: 1px solid var(--line);

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.day-info p {
    font-size: 9px;

    color: var(--muted);

    letter-spacing: 0.2em;
}

.day-info strong {
    font-family: "Cormorant Garamond", serif;

    font-size: 90px;

    line-height: 0.7;

    font-weight: 500;
}

.playlist-info {
    padding: 40px;
}

.playlist-label {
    color: var(--ruby);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.2em;
}

.playlist-info h2 {
    margin-top: 20px;

    font-size: clamp(28px, 4vw, 52px);

    letter-spacing: -0.04em;
}

.playlist-info p {
    max-width: 360px;

    margin-top: 12px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.6;
}

.playlist-button {
    display: inline-flex;

    align-items: center;

    gap: 25px;

    margin-top: 28px;

    padding: 14px 18px;

    border: 1px solid rgba(255,255,255,0.35);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.18em;

    transition: 0.3s ease;
}

.playlist-button:hover {
    background: var(--ruby);

    border-color: var(--ruby);
}

.playlist-button span {
    font-size: 16px;
}

.completion {
    padding: 40px;

    border-left: 1px solid var(--line);

    display: flex;

    align-items: flex-end;
}

.completion label {
    display: flex;

    align-items: center;

    gap: 12px;

    cursor: pointer;

    font-size: 9px;

    letter-spacing: 0.15em;

    color: var(--muted);
}

.completion input {
    appearance: none;

    width: 18px;
    height: 18px;

    border: 1px solid rgba(255,255,255,0.4);

    cursor: pointer;
}

.completion input:checked {
    background: var(--ruby);

    border-color: var(--ruby);
}


/* =================================
   14 DAYS
================================= */

.days-grid {
    display: grid;

    grid-template-columns: repeat(7, 1fr);

    border-top: 1px solid var(--line);

    border-left: 1px solid var(--line);
}

.day-card {
    min-height: 145px;

    padding: 20px;

    border: 0;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    background: transparent;

    color: var(--white);

    text-align: left;

    cursor: pointer;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    transition: 0.3s ease;
}

.day-card:hover {
    background: rgba(211,19,75,0.15);
}

.day-card.active {
    background: var(--ruby);
}

.day-card span {
    font-size: 8px;

    letter-spacing: 0.2em;

    color: var(--muted);
}

.day-card.active span {
    color: rgba(255,255,255,0.7);
}

.day-card strong {
    font-family: "Cormorant Garamond", serif;

    font-size: 58px;

    font-weight: 500;

    line-height: 0.7;
}


/* =================================
   GUIDE
================================= */

.guide-section {
    padding-bottom: 80px;
}

.guide-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.guide-grid > div {
    min-height: 220px;

    padding: 25px;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.guide-grid span {
    color: var(--ruby);

    font-size: 9px;

    letter-spacing: 0.15em;
}

.guide-grid h3 {
    font-size: 21px;

    letter-spacing: -0.02em;
}

.guide-grid p {
    max-width: 230px;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.7;
}


/* =================================
   PROGRESS
================================= */

.progress-section {
    margin-top: 20px;

    padding: 35px 7vw;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    display: grid;

    grid-template-columns: 1fr 2fr 1fr;

    align-items: center;

    gap: 35px;
}

.progress-section span {
    display: block;

    font-size: 8px;

    letter-spacing: 0.2em;

    color: var(--muted);

    margin-bottom: 8px;
}

.progress-section strong {
    font-size: 24px;
}

.progress-bar {
    height: 2px;

    background: rgba(255,255,255,0.12);
}

.progress-bar div {
    width: 0%;

    height: 100%;

    background: var(--ruby);
}

.streak {
    text-align: right;
}


/* =================================
   FOOTER
================================= */

footer {
    padding: 30px 7vw;

    display: flex;

    justify-content: space-between;

    color: #555;

    font-size: 8px;

    letter-spacing: 0.2em;
}


/* =================================
   MOBILE
================================= */

@media (max-width: 800px) {

    .stream-nav {
        height: 70px;

        padding: 0 22px;
    }

    .stream-nav nav {
        display: none;
    }

    .stream-header {
        min-height: 330px;

        padding: 70px 25px 55px;

        display: block;
    }

    .stream-intro {
        margin-top: 35px;
    }

    .today-section,
    .days-section,
    .guide-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .today-card {
        grid-template-columns: 1fr;
    }

    .day-info {
        min-height: 140px;

        border-right: 0;

        border-bottom: 1px solid var(--line);
    }

    .playlist-info {
        padding: 30px;
    }

    .completion {
        padding: 25px 30px;

        border-left: 0;

        border-top: 1px solid var(--line);
    }

    .days-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .progress-section {
        padding-left: 22px;
        padding-right: 22px;

        grid-template-columns: 1fr;

        gap: 25px;
    }

    .streak {
        text-align: left;
    }

    footer {
        padding-left: 22px;
        padding-right: 22px;
    }
}


@media (max-width: 480px) {

    .stream-header h1 {
        font-size: 70px;
    }

    .day-card {
        min-height: 125px;
    }

    .day-card strong {
        font-size: 48px;
    }

    footer {
        gap: 20px;

        flex-direction: column;
    }
}

/* ✦ 14-DAY ROUTE — INTERACTIVE DETAILS */

.day-card {
    position: relative;
    overflow: hidden;
    transition:
        background 0.35s ease,
        color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

/* subtle ruby sweep */
.day-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(211, 19, 75, 0.14),
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

/* hover */
.day-card:hover {
    background: rgba(211, 19, 75, 0.08);
    transform: translateY(-3px);
    box-shadow: inset 0 0 35px rgba(211, 19, 75, 0.08);
}

.day-card:hover::before {
    opacity: 1;
}

/* active day */
.day-card.active {
    background: var(--ruby);
    color: #fff;
    box-shadow:
        inset 0 0 35px rgba(255, 255, 255, 0.08),
        0 0 30px rgba(211, 19, 75, 0.18);
}

/* ruby star on active day */
.day-card.active::after {
    content: "✦";
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 13px;
    color: #fff;
    opacity: 0.9;
}

/* STREAMING GUIDE — ELEGANT + READABLE */

.guide-section h3 {
    font-family: "Cormorant Garamond", serif !important;
    font-size: 48px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    color: #ffffff;
}

/* =====================================
   DAILY COMPLETION
===================================== */

.day-completion {
    margin: 100px auto;
    width: min(900px, 90%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.55);
    padding: 55px;
    transition: 0.3s ease;
}

.day-completion.completed {
    border-color: #d3134b;
    box-shadow: 0 0 40px rgba(211, 19, 75, 0.12);
}

.completion-eyebrow {
    color: #d3134b;
    font-size: 11px;
    letter-spacing: 0.25em;
    margin-bottom: 20px;
}

.day-completion h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(50px, 7vw, 85px);
    line-height: 0.85;
    font-weight: 500;
}

.day-completion h2 span {
    color: transparent;
    -webkit-text-stroke: 1px white;
}

.completion-intro {
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.7;
    max-width: 500px;
}

.completion-tasks {
    margin-top: 35px;
    display: grid;
    gap: 12px;
}

.completion-task {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    transition: 0.25s ease;
}

.completion-task:hover {
    border-color: rgba(211, 19, 75, 0.5);
}

.completion-task input {
    width: 17px;
    height: 17px;
    accent-color: #d3134b;
}

.complete-day-button {
    margin-top: 30px;
    padding: 17px 25px;
    border: 1px solid #d3134b;
    background: #d3134b;
    color: white;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: 0.25s ease;
}

.complete-day-button:hover:not(:disabled) {
    background: transparent;
}

.complete-day-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.completion-message {
    margin-top: 18px;
    color: #d3134b;
    font-size: 11px;
    letter-spacing: 0.08em;
}

@media (max-width: 700px) {

    .day-completion {
        padding: 30px 22px;
        margin: 70px auto;
    }

    .complete-day-button {
        width: 100%;
    }

}

/* =========================================
   LAST.FM CONNECTION CARD
   ========================================= */

.lastfm-card {
    width: min(100%, 420px);
    margin-top: 32px;
    padding: 26px 28px;

    background: rgba(8, 0, 8, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.28),
        0 0 30px rgba(190, 0, 55, 0.08);
}


.lastfm-label {
    margin-bottom: 14px;

    color: var(--ruby, #e40046);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.lastfm-card h2 {
    margin: 0 0 10px;

    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 500;
    line-height: 0.95;
}

.lastfm-card p {
    max-width: 330px;
    margin: 0 0 22px;

    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.6;
}

.lastfm-connect-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    min-width: 190px;
    padding: 14px 18px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);

    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.lastfm-connect-button span {
    color: var(--ruby, #e40046);
    font-size: 16px;
}

.lastfm-connect-button:hover {
    background: rgba(228, 0, 70, 0.12);
    border-color: rgba(228, 0, 70, 0.55);
    transform: translateY(-2px);
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .lastfm-card {
        width: 100%;
        padding: 22px;
        margin-top: 24px;
    }

    .lastfm-card h2 {
        font-size: 38px;
    }

    .lastfm-connect-button {
        width: 100%;
    }
}

/* =========================================
   LAST.FM — CONNECTED STATE
   ========================================= */

.lastfm-status {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 18px 0 22px;

    color: rgba(255, 255, 255, 0.58);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;

    background: #e40046;

    box-shadow:
        0 0 8px rgba(228, 0, 70, 0.8);
}

.lastfm-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lastfm-disconnect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 0 18px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);

    color: rgba(255, 255, 255, 0.62);

    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.lastfm-disconnect-button:hover {
    background: rgba(228, 0, 70, 0.08);
    border-color: rgba(228, 0, 70, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
}

.lastfm-connect-button {
    min-height: 46px;
}

.lastfm-username {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Inter", sans-serif;
    font-size: 13px;
    letter-spacing: 0.05em;
}
/* Permanent playlist library update: the hidden anchor remains for the
   mission dashboard insertion point; old route components are removed. */
.today-section[hidden] { display: none !important; }
