/* Home page content only. Banner/nav: site.css. Radio footer: radio-footer.css. */

body.site h3 {
    font-family: "Courier New", monospace;
    text-shadow:
        0 0 5px var(--accent-red),
        0 0 10px var(--accent-red),
        0 0 20px var(--accent-red);
}

/* Mobile column — fill width, no horizontal scroll */
body.site .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 14px; /* was 30px — half the dead air on phones */
    margin: 10px auto 0;
    padding: 4px;
    flex: 1;
    box-sizing: border-box;
    min-width: 0;
    overflow-x: hidden;
}

/* Scrollable panels: keep scroll, hide scrollbar chrome */
body.site .comment-box,
body.site .song-history,
body.site .box-with-image-body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body.site .comment-box::-webkit-scrollbar,
body.site .song-history::-webkit-scrollbar,
body.site .box-with-image-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body.site .comment-box,
body.site .song-history {
    flex: 1 1 auto;
    min-height: auto;
    min-width: 0;
    padding: 10px;
    background-color: transparent;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/*
 * Center panel — live-like size (gif fills the panel).
 * Header nudged up; list stays in the oval and scrolls if needed.
 */
body.site .box-with-image {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: auto;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 1.25rem 1.5rem;
    background-image: url("/nc_assets/img/poke1.gif");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    overflow: hidden;
    text-align: center;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.site .box-with-image .header-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    /* slightly raised vs old layout so list can sit higher in the oval */
    margin: -0.5rem 0 0.35rem;
    display: block;
    position: relative;
    z-index: 1;
}

body.site .box-with-image-body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 18rem;
    /* oval zone only — scroll instead of spilling into lower haze */
    max-height: 58%;
    margin: 0 auto;
    padding: 0 0.5rem 0.75rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

body.site .box-with-image-body p {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 0.35rem;
    color: #FFFFFF;
}

/* SICK STUFF / OTHER STUFF labels — yellow like Last Tunes numbers */
body.site .box-with-image-body p.stuff-heading {
    color: var(--text-yellow, #ffff00);
    margin: 0.55rem 0 0.2rem;
    letter-spacing: 0.02em;
}

body.site .box-with-image-body p.stuff-heading:first-child {
    margin-top: 0;
}

body.site .box-with-image-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.2rem;
}

body.site .box-with-image-body ul li {
    margin: 0.2em 0;
    line-height: 1.5;
}

body.site .box-with-image-body ul li a {
    color: #D3D3D3;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    padding: 0.1em 0;
    font-size: 1em;
}

body.site .box-with-image-body ul li a:hover {
    color: #FFFFFF;
}

body.site .comment-box h3,
body.site .song-history h3 {
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.17em;
}

body.site .comment-box p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1em;
    line-height: 1.5;
}

body.site .listener-counter {
    font-size: 12px;
    color: #FFFF00 !important;
    margin-top: 10px;
}

body.site .song-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.site .song-history ul li {
    color: #FFFFFF;
    line-height: 1.6;
    margin: 0.25em 0;
}

/* Yellow ranking numbers; white clip/artist (match rest of site) */
body.site .song-history .tune-num {
    color: var(--text-yellow, #ffff00);
    font-weight: bold;
}

body.site .song-history .tune-meta {
    color: #FFFFFF;
}

/*
 * Mobile / tablet (stacked):
 * - New & Notable / Sick Stuff: scroll inside the box when content grows
 * - Last Tunes: grow with the page (no inner scroll) so the footer sits
 *   snugly under the last song after page scroll
 */
@media (max-width: 1024px) {
    body.site .comment-box {
        max-height: min(240px, 32dvh);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Last Tunes — document flow, page scrolls; footer clearance still applies */
    body.site .song-history {
        max-height: none;
        height: auto;
        overflow: visible;
        flex: 0 0 auto;
    }

    body.site .box-with-image {
        max-height: min(380px, 48dvh);
        overflow: hidden;
        padding: 0.85rem 1rem 1.15rem;
    }

    body.site .box-with-image-body {
        flex: 1 1 auto;
        min-height: 0;
        max-height: 60%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.site .box-with-image .header-image {
        margin-top: -0.4rem;
        margin-bottom: 0.3rem;
    }

    body.site .comment-box p {
        margin-bottom: 0.6rem;
    }
}

/* Larger phones — nav lives in site.css (shared with About) */
@media (min-width: 481px) {
    body.site {
        font-size: 16px;
    }
    body.site .main-content {
        gap: 16px;
        margin-top: 12px;
        padding: 4px;
        width: 100%;
        max-width: 100%;
        align-items: center;
    }
    body.site .box-with-image-body p {
        font-size: 1.25rem;
    }
}

/* Tablet: stacked columns, capped width (still uses max-height scroll above) */
@media (min-width: 769px) and (max-width: 1024px) {
    body.site .main-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        margin-top: 12px;
        padding: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.site .box-with-image,
    body.site .comment-box,
    body.site .song-history {
        width: min(100%, 600px);
        max-width: 600px;
        min-width: 0;
        min-height: auto;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    body.site .comment-box {
        max-height: min(280px, 34dvh);
    }
    body.site .song-history {
        max-height: none;
        height: auto;
        overflow: visible;
    }
    body.site .box-with-image {
        max-height: min(420px, 50dvh);
        padding: 1rem 1.25rem 1.35rem;
    }
}

/*
 * Desktop: live-like scale when space allows.
 *   width  — full row to --home-content-max-w (1600px), center column 600px
 *   height — panels use --home-panel-max-h (up to 560px on tall monitors)
 * Short-height bands below only shrink for small laptops.
 */
@media (min-width: 1025px) {
    body.site.page-home {
        overflow-x: hidden;
        overflow-y: auto;
    }
    body.site .main-content {
        display: grid;
        /* Live: flex sides + fixed 600 center + ~60px gap */
        grid-template-columns: minmax(0, 1fr) minmax(min(600px, 100%), 600px) minmax(0, 1fr);
        align-items: stretch;
        column-gap: clamp(1.5rem, 3.75vw, 3.75rem); /* up to 60px like live */
        row-gap: 1.5rem;
        width: 100%;
        max-width: var(--home-content-max-w, 1600px);
        margin: 0.75rem auto 0;
        padding: 0 clamp(16px, 2.5vw, 32px);
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: visible;
        flex: 0 1 auto;
    }
    body.site .comment-box {
        grid-column: 1;
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: var(--home-panel-min-h, 408px);
        height: var(--home-panel-max-h);
        max-height: var(--home-panel-max-h);
        overflow-x: hidden;
        overflow-y: auto;
        font-size: 1em;
        box-sizing: border-box;
        justify-self: stretch;
    }
    body.site .box-with-image {
        grid-column: 2;
        width: 100%;
        max-width: 600px;
        min-width: 0;
        min-height: var(--home-panel-min-h, 408px);
        height: var(--home-panel-max-h);
        max-height: var(--home-panel-max-h);
        overflow: hidden;
        box-sizing: border-box;
        justify-self: center;
        /* live-like padding; header pull-up keeps list in the oval */
        padding: 1.25rem 1.75rem 1.75rem;
        justify-content: flex-start;
        background-position: center center;
        background-size: contain;
    }
    body.site .box-with-image .header-image {
        margin-top: -0.65rem;
        margin-bottom: 0.4rem;
        width: 100%;
        max-width: 100%;
        max-height: none;
    }
    body.site .box-with-image-body {
        flex: 1 1 auto;
        max-height: 62%;
        max-width: 18rem;
    }
    body.site .song-history {
        grid-column: 3;
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: var(--home-panel-min-h, 408px);
        height: var(--home-panel-max-h);
        max-height: var(--home-panel-max-h);
        overflow-x: hidden;
        overflow-y: auto;
        font-size: 1em;
        box-sizing: border-box;
        justify-self: stretch;
    }
    body.site .comment-box h3,
    body.site .song-history h3 {
        font-size: 1.25em;
    }
    body.site .song-history ul li {
        font-size: 1em;
        line-height: 1.65;
    }
}

/* Tall desktop: use more vertical room (closer to live “fill the stage”) */
@media (min-width: 1025px) and (min-height: 901px) {
    body.site {
        --home-panel-max-h: min(560px, calc(100dvh - var(--footer-clearance) - 6.5rem));
        --home-panel-min-h: min(408px, var(--home-panel-max-h));
    }
}

/*
 * Short laptop: denser chrome + shorter internal panels.
 * Banner compact rules live in site.css (same height bands).
 */
@media (min-width: 1025px) and (max-height: 900px) {
    body.site {
        --home-panel-max-h: min(380px, calc(100dvh - var(--footer-clearance) - 7rem));
        --home-panel-min-h: min(280px, var(--home-panel-max-h));
    }
    body.site .main-content {
        margin-top: 0.5rem;
        column-gap: 1.5rem;
        row-gap: 0.75rem;
    }
    body.site .box-with-image {
        padding: 0.85rem 1.25rem 1.15rem;
    }
    body.site .box-with-image .header-image {
        margin-top: -0.45rem;
        margin-bottom: 0.25rem;
    }
    body.site .box-with-image-body {
        max-height: 58%;
    }
}

@media (min-width: 1025px) and (max-height: 720px) {
    body.site {
        --home-panel-max-h: min(280px, calc(100dvh - var(--footer-clearance) - 6rem));
        --home-panel-min-h: 0px;
    }
    body.site .main-content {
        margin-top: 0.25rem;
        column-gap: 1rem;
        row-gap: 0.5rem;
    }
    body.site .box-with-image {
        padding: 0.65rem 1rem 0.85rem;
    }
    body.site .box-with-image .header-image {
        margin-top: -0.35rem;
    }
    body.site .box-with-image-body {
        max-height: 54%;
    }
    body.site .comment-box,
    body.site .song-history {
        padding: 10px;
    }
}

/* Intermediate desktop width: allow center to shrink slightly so sides don’t vanish */
@media (min-width: 1025px) and (max-width: 1200px) {
    body.site .main-content {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr) minmax(0, 1fr);
        max-width: 100%;
        column-gap: clamp(1rem, 2vw, 1.5rem);
    }
    body.site .box-with-image {
        max-width: none;
    }
}
