/* Server-rendered pieces that the app also renders (2026-11-21): genre links in the footer, ?page=N
   pagination, the Last.fm bio attribution. The page bodies themselves reuse style.css classes. */

/* Genre hub links in the server footer */
.footer-browse {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.footer-browse-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem;
}

.footer-genre-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.1rem;
}

.footer-genre-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-genre-links a:hover {
    color: var(--text-color);
}

/* ?page=N links under a genre list */
.bs-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 2rem auto 1rem;
    padding: 0 1rem;
}

.bs-page {
    display: inline-block;
    min-width: 2.25rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: var(--surface-color);
    border: 1px solid #333;
    color: var(--text-secondary);
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: color 0.2s, border-color 0.2s;
}

a.bs-page:hover {
    color: var(--text-color);
    border-color: var(--accent-color);
}

.bs-page-current {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    font-weight: 700;
}

.bs-page-disabled {
    opacity: 0.4;
}

.bs-page-gap {
    color: var(--text-secondary);
    padding: 0 0.2rem;
}

/* "Biography from Last.fm, available under CC BY-SA." */
.bio-attribution {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin: 0.5rem 0 0;
    opacity: 0.8;
}

.bio-attribution a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.bio-attribution a:hover {
    color: var(--text-color);
}

/* /artist/{id} with JavaScript off (render/artist.php, Artist.js.php). The right carousel arrow shows where the
   JS shows it: when the row is wider than its box (the JS tests scrollWidth - clientWidth > 1). A row of n cards
   (150px wide with a 1.5rem gap, style.css .artist-card/.carousel) overflows when the box is narrower than
   n x 150px + (n - 1) x 1.5rem - 1px. The server prints this arrow with no style attribute. The JS always sets one
   on its own arrows, so these rules stop applying once the JS has rendered. Without JS the button does nothing;
   the row still scrolls sideways by touch or trackpad. Rules go up to 24 cards (a box about 4,150px wide). */
.artist-content .carousel-container:has(> .carousel-arrow-right:not([style])) { container-type: inline-size; }
.artist-content .carousel-arrow-right:not([style]) { display: none; }
@container (width < calc(149px + 0 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(1)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(299px + 1 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(2)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(449px + 2 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(3)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(599px + 3 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(4)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(749px + 4 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(5)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(899px + 5 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(6)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(1049px + 6 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(7)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(1199px + 7 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(8)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(1349px + 8 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(9)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(1499px + 9 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(10)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(1649px + 10 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(11)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(1799px + 11 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(12)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(1949px + 12 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(13)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(2099px + 13 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(14)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(2249px + 14 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(15)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(2399px + 15 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(16)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(2549px + 16 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(17)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(2699px + 17 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(18)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(2849px + 18 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(19)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(2999px + 19 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(20)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(3149px + 20 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(21)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(3299px + 21 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(22)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(3449px + 22 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(23)) > .carousel-arrow-right:not([style]) { display: flex; } }
@container (width < calc(3599px + 23 * 1.5rem)) { .artist-content .carousel-container:has(> .carousel > :nth-child(24)) > .carousel-arrow-right:not([style]) { display: flex; } }

/* /home (render/home.php, Home.js.php): a row whose name is not one of the 27 genre pages has no link
   (<span class="genre-title-link">), so it must not get the link's hover arrow, colour or pointer. */
span.genre-title-link .genre-title {
    cursor: default;
}

span.genre-title-link:hover .genre-title {
    color: var(--text-color);
}

span.genre-title-link .genre-title::after {
    content: none;
}

/* Server-rendered /radio (render/static.php bsStaticRadio). The JS page is the Cesium globe on a black stage
   (src/radio.css .radio-page, body.radio-active), loaded by the JS only. Without JS the same stage, full bleed,
   with the page's intro centred where the loading overlay sits. Nothing here matches the JS markup. */

#main-content:has(> .ssr-radio) {
    padding: 0;
    overflow: hidden;
}

.ssr-radio {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    background-image: radial-gradient(circle closest-side, #0e1a27 0%, #0a131d 70%, #1a2a3b 74%, #05080c 76%, #000 79%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.ssr-radio-intro {
    max-width: 36rem;
    padding: 0 1.5rem;
    text-align: center;
    color: #fff;
}

.ssr-radio-title {
    margin: 0 0 0.75rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.ssr-radio-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}
