/**
 * ============================================================================
 * ROOTS ARCHIVES — PAGES (pages.css)
 * ============================================================================
 *
 * Page-specific styles: artist, album, labels, studios, search, stats, etc.
 * ============================================================================
 */


/* ── Artist page ───────────────────────────────────── */

/* Artist photo (desktop) */
.artist-photo {
    width: auto;
    max-width: 300px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
}

.artist-photo-placeholder {
    height: 300px;
    width: 240px;
}

.artist-photo-icon {
    font-size: 4rem;
    color: var(--color-secondary);
}

/* Artist links in grid */
.artist-link {
    display: block;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.78rem;
    line-height: 1.13;
    color: var(--color-link);
}

.artist-link:hover {
    background-color: var(--color-table-header-bg);
    color: var(--color-primary);
    text-decoration: none;
}

@media (min-width: 576px) {
    .artist-link {
        font-size: 0.85rem;
        line-height: 1.15;
    }
}

@media (min-width: 992px) {
    .artist-link {
        font-size: 1rem;
        line-height: 1.18;
    }
}


/* ── Labels page ───────────────────────────────────── */

.label-item {
    display: none;
}

.label-item.is-visible {
    display: block;
}

#labels-grid {
    margin-left: 2.2rem;
}

.label-item {
    padding-left: 0.5rem;
}


/* ── Label detail page ─────────────────────────────── */

.label-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-page-title);
    margin-bottom: 0.7rem;
}

.label-name.label-header-title {
    margin-bottom: 5px;
    word-break: break-word;
}

.label-release-count {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-secondary);
}

.label-grid-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.label-info-col {
    min-height: 0;
    height: 100%;
}

.label-logo-main {
    width: auto;
    max-width: 300px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
}



.label-meta-tag {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 6px;
}

.label-meta-tag a {
    color: var(--color-link);
    text-decoration: none;
}

.label-meta-tag a:hover {
    color: var(--color-link-hover);
}

/* Label info section */
.label-info-heading {
    font-weight: 600;
    color: var(--color-page-title);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.label-info-list li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.label-info-icon {
    color: var(--color-secondary);
    margin-right: 0.4rem;
    font-size: 0.85rem;
}

.label-info-link {
    color: var(--color-link);
    text-decoration: none;
}

.label-info-link:hover {
    color: var(--color-link-hover);
}

.label-address-block {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.label-address-block address {
    font-style: normal;
    line-height: 1.5;
}



@media (max-width: 768px) {
    .label-grid-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .label-logo-col {
        text-align: center;
    }

    .label-logo-main {
        max-height: 150px;
        max-width: 200px;
        margin: 0 auto;
    }


}

/* Label mobile compact info */
.label-mobile-info {
    padding: 0.5rem 0;
    font-size: 0.82rem;
}

.label-mobile-info h6 {
    font-size: 0.85rem;
}

.label-mobile-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
}

.label-mobile-info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: var(--color-surface, #f8f9fa);
    border-radius: 1rem;
    font-size: 0.78rem;
    color: var(--color-text, #444);
    text-decoration: none;
}

.label-mobile-info-chip a {
    color: var(--color-link);
    text-decoration: none;
}

.label-mobile-info-chip i {
    font-size: 0.72rem;
    color: var(--color-secondary);
}


/* ── Artists index ─────────────────────────────────── */

#artists-grid {
    margin-left: 1.7rem;
}

.artist-item {
    padding-left: 0.5rem;
}

/* Quick search box margin */
.card-body .mb-3 {
    margin-left: 1.7rem;
}

/* 3-column grid for artists */
.row-cols-3 > * {
    flex: 0 0 auto;
    width: 33.333333%;
}

.row.g-1 {
    --bs-gutter-x: 0.25rem;
    --bs-gutter-y: 0.25rem;
}


/* ── Tracklist ─────────────────────────────────────── */

ol.list-unstyled li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

ol.list-unstyled li:last-child {
    border-bottom: none;
}


/* ── View all / Collapse system ────────────────────── */

.hidden-album-normal {
    display: none;
}

.hidden-album-compilation {
    display: none;
}

.view-all-btn,
.collapse-btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.view-all-btn:hover,
.collapse-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.album-card-fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

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


/* ── Responsive — Artist page mobile ───────────────── */

@media (max-width: 768px) {
    .artist-photo {
        max-height: 150px;
        max-width: 150px;
    }

    .artist-photo-placeholder {
        height: 150px;
        width: 120px;
    }

    .artist-photo-icon {
        font-size: 60px;
    }

    .view-all-btn,
    .collapse-btn {
        width: 100%;
        text-align: center;
    }
}


/* ── Thumb utility classes ─────────────────────────── */

.thumb-sm {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.thumb-placeholder-sm {
    width: 40px;
    height: 40px;
}

.thumb-placeholder-md {
    width: 60px;
    height: 60px;
    border-radius: 4px;
}

.placeholder-icon-lg {
    font-size: 50px;
    color: var(--color-muted);
}

.placeholder-icon-md {
    font-size: 22px;
    color: var(--color-muted);
}

.placeholder-icon-sm {
    font-size: 12px;
    color: var(--color-muted);
}


/* ── Search result helpers ─────────────────────────── */

.search-link {
    font-weight: 500;
    color: var(--color-primary);
}

.search-link:hover {
    color: var(--color-link-hover);
}

.search-placeholder-note {
    width: 30px;
    height: 30px;
    background: var(--color-light);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-placeholder-vinyl {
    width: 30px;
    height: 30px;
    background: #E8DCC8;
    border: 2px solid #D4C4A8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-vinyl-icon {
    font-size: 14px;
    color: #A89968;
}

.text-primary-brown {
    color: var(--color-primary);
}


/* ── Artist header section ─────────────────────────── */

.artist-header-container {
    margin-bottom: 0.5rem;
}

.artist-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-page-title);
    margin-bottom: 0.7rem;
}

.artist-name.artist-header-title {
    margin-bottom: 5px;
    word-break: break-word;
}

.artist-grid-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.artist-info-col {
    min-height: 0;
    height: 100%;
}

.artist-alias-tag {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.artist-alias-icon {
    font-size: 0.94rem;
}


/* ── Bio section ───────────────────────────────────── */

.bio-clamp {
    font-size: 0.87rem;
    color: var(--color-text, #444);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    line-clamp: 9;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.bio-title {
    color: var(--color-page-title);
}

.bio-read-more {
    background: none;
    border: none;
    color: var(--color-page-title);
    font-size: 0.95em;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
}

.bio-read-more:hover {
    color: var(--color-link-hover);
}


.artist-section-header {
    border-bottom: 1px solid var(--color-table-border);
}

.artist-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-page-title);
    margin-bottom: 0;
    letter-spacing: -0.5px;
}


/* ── Album artwork carousel ────────────────────────── */

.artwork-nav-btn {
    z-index: 1000;
    width: 50px;
    height: 50px;
}

.artwork-nav-icon {
    font-size: 1.5rem;
}

.artwork-info {
    font-size: 0.95rem;
}

.artwork-counter {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* ── Artist photo gallery (stacked) ────────────────── */

.artist-gallery-photo {
    max-width: 220px;
    max-height: 320px;
    object-fit: contain;
}

.bio-photo-position {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}


/* ── Bio modal ─────────────────────────────────────── */

.bio-modal-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text, #333);
}

.bio-photo-sidebar {
    max-width: 240px;
    border-right: 1px solid var(--color-table-border);
    padding-right: 20px;
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.bio-text-col {
    padding-left: 20px;
}

.bio-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    font-weight: 600;
}

.bio-section-title {
    color: var(--color-page-title);
    border-bottom: 2px solid var(--color-table-border);
    padding-bottom: 0.5rem;
}

.bio-source-link {
    color: var(--color-secondary);
    text-decoration: none;
}

.bio-source-link:hover {
    color: var(--color-link-hover);
}

.bio-external-icon {
    font-size: 0.8rem;
}

.text-justify {
    text-align: justify;
}


/* ── Forum search table widths ─────────────────────── */

.forum-th-topic {
    width: 30%;
}

.forum-th-excerpt {
    width: 40%;
}

.forum-th-author {
    width: 15%;
}

.forum-th-replies {
    width: 7%;
}

.forum-th-views {
    width: 8%;
}


/* ── Album card badge (multi-artwork) ──────────────── */

.badge-multi-artwork {
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border-radius: 4px;
}

.badge-position-br {
    z-index: 5;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    margin-bottom: 5px;
    margin-right: 5px;
}


/* ── Featured block image placeholder ──────────────── */

.featured-placeholder-min {
    min-height: 180px;
}


/* ── Album page — credits & artwork ────────────────── */

.bonus-track-marker {
    color: #8B6F47;
    font-weight: bold;
    font-size: 0.85rem;
    position: relative;
    top: 0.08em;
}

.artwork-thumb-wrapper {
    width: 120px;
}

.artwork-thumb-img {
    cursor: pointer;
    width: 100%;
}

.credits-section-title {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.credits-uniform-table {
    margin-left: 1.8rem;
    width: calc(100% - 1.8rem);
}

.credits-col-label {
    width: 30%;
    white-space: nowrap;
}

.credits-col-value {
    width: 70%;
    white-space: normal;
}

.artwork-modal-img {
    max-height: 70vh;
    margin-bottom: 1rem;
}


/* ── Studios page ──────────────────────────────────── */

.studios-region-title {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-table-border);
    padding-bottom: 0.5rem;
}

.studios-category-title {
    color: var(--color-secondary);
}

.location-category {
    margin-left: 1.5rem;
}

.location-category .row {
    margin-left: 1rem;
}

.studio-count {
    font-size: 0.95em;
    font-weight: normal;
}


/* ── Studio detail page ────────────────────────────── */

.studio-th-artist {
    max-width: 120px;
}

.studio-th-album {
    max-width: 140px;
}

.td-cover-sm {
    width: 60px;
}

.studio-check-icon {
    font-size: 1.1rem;
}

.studio-check-icon-muted {
    font-size: 1.1rem;
    opacity: 0.3;
}


/* ── Stats page ────────────────────────────────────── */

/* Counters row */
.st-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--color-table-border, #E5DDD2);
    border-radius: 6px;
    overflow: hidden;
}
.st-counter {
    flex: 1 1 0;
    min-width: 100px;
    text-align: center;
    padding: .9rem .5rem;
    border-right: 1px solid var(--color-table-border, #E5DDD2);
    transition: background .15s;
}
.st-counter:last-child { border-right: none; }
.st-counter:hover { background: var(--color-table-even, #FDFAF5); }
.st-counter-icon {
    font-size: 1.1rem;
    color: var(--color-secondary, #8A7A6A);
    display: block;
    margin-bottom: .25rem;
}
.st-counter-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-page-title, #3D2B1F);
    line-height: 1.2;
}
.st-counter-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text, #5A4A3A);
    font-weight: 600;
    margin-top: .15rem;
}

/* Section titles */
.st-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-page-title, #5A4A3A);
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 2px solid var(--color-table-border, #E5DDD2);
    padding-bottom: .4rem;
    margin-bottom: .75rem;
}

/* Fun facts */
.st-facts {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.st-fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: .45rem 0;
    border-bottom: 1px solid var(--color-table-border, #EDE6DB);
}
.st-fact:last-child { border-bottom: none; }
.st-fact-label {
    font-size: .82rem;
    color: var(--color-text, #5A4A3A);
    font-weight: 500;
}
.st-fact-value {
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-page-title, #3D2B1F);
}
.st-fact-value a {
    color: var(--color-page-title, #3D2B1F);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-text, #5A4A3A);
}
.st-fact-value a:hover { color: var(--color-primary, #8B4513); }
.st-fact-value small {
    font-weight: 400;
    color: var(--color-text, #5A4A3A);
}

/* Format bar */
.st-format-bar {
    display: flex;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: .5rem;
}
.st-format-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
}
.st-format-lp {
    background: var(--color-page-title, #5A4A3A);
    color: #fff;
}
.st-format-cd {
    background: var(--color-table-border, #D5C8B8);
    color: var(--color-page-title, #5A4A3A);
}
.st-format-legend {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--color-text, #5A4A3A);
}
.st-section-subtitle {
    font-size: .85rem;
    font-weight: 700;
    color: var(--color-secondary, #8A7A6A);
    letter-spacing: .03em;
    text-transform: uppercase;
}
.st-format-nonva {
    background: var(--color-page-title, #5A4A3A);
    color: #fff;
}
.st-format-va {
    background: #C49A6C;
    color: #fff;
}
.st-reissue-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    color: var(--color-secondary, #8A7A6A);
    letter-spacing: .02em;
}

/* Timeline vertical bar chart */
.st-chart {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--color-table-border, #D5C8B8);
    font-size: 0;
}
.st-bar-col {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 1.6%;
    min-width: 14px;
    height: 100%;
    vertical-align: bottom;
    cursor: default;
    font-size: 1rem;
}
.st-bar-val {
    font-size: .55rem;
    font-weight: 600;
    color: var(--color-secondary, #8A7A6A);
    line-height: 1;
    margin-bottom: 2px;
}
.st-bar {
    display: block;
    width: 80%;
    background: var(--color-page-title, #5A4A3A);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: opacity .15s;
}
.st-bar-col:hover .st-bar { opacity: .7; }
.st-bar-yr {
    font-size: .55rem;
    font-weight: 600;
    color: var(--color-secondary, #8A7A6A);
    line-height: 1;
    margin-top: 3px;
}

/* Tab nav */
.st-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    padding: 0;
    border: none;
}
.st-tab {
    display: inline-block;
    padding: .3rem .7rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-text, #5A4A3A);
    background: transparent;
    border: 1px solid var(--color-table-border, #D5C8B8);
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.st-tab:hover {
    background: var(--color-table-border, #E5DDD2);
    text-decoration: none;
    color: var(--color-page-title, #3D2B1F);
}
.st-tab.active {
    background: var(--color-page-title, #5A4A3A);
    color: #fff;
    border-color: var(--color-page-title, #5A4A3A);
}

/* Leaderboard rows */
.st-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.st-lb-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 0;
    border-bottom: 1px solid var(--color-table-border, #EDE6DB);
}
.st-lb-row:last-child { border-bottom: none; }
.st-lb-rank {
    width: 22px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--color-secondary, #8A7A6A);
    text-align: right;
    flex-shrink: 0;
}
.st-lb-pic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    opacity: .85;
}
.st-lb-pic-label {
    border-radius: 3px;
}
.st-lb-name {
    width: 180px;
    flex-shrink: 0;
    font-size: .82rem;
    font-weight: 600;
    color: var(--color-page-title, #5A4A3A);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-lb-name:hover { color: var(--color-primary, #8B4513); }
.st-lb-bar-wrap {
    flex: 1;
    height: 12px;
    background: var(--color-table-even, #F5F0E8);
    border-radius: 2px;
    overflow: hidden;
}
.st-lb-bar {
    height: 100%;
    background: var(--color-page-title, #5A4A3A);
    border-radius: 2px;
    min-width: 4px;
}
.st-lb-val {
    width: 90px;
    font-size: .72rem;
    font-weight: 500;
    color: var(--color-secondary, #8A7A6A);
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Dream Band */
.st-dream-intro {
    font-size: .82rem;
    color: var(--color-secondary, #8A7A6A);
    margin-bottom: 1rem;
}
.st-dream-subtitle {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-secondary, #8A7A6A);
    margin-bottom: .75rem;
}
.st-shuffle-btn {
    display: inline-flex;
    align-items: center;
    padding: .3rem .75rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--color-page-title, #5A4A3A);
    background: transparent;
    border: 1px solid var(--color-table-border, #D5C8B8);
    border-radius: 20px;
    cursor: pointer;
    transition: background .15s;
}
.st-shuffle-btn:hover {
    background: var(--color-table-border, #E5DDD2);
}

.st-dream-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .75rem;
    transition: opacity .2s;
}
.st-dream-grid-prod {
    grid-template-columns: repeat(6, 1fr);
}
.st-dream-grid.st-dream-shuffled { opacity: .6; }

.st-dream-card {
    text-align: center;
}
.st-dream-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto .4rem;
    max-width: 110px;
    border: 2px solid var(--color-table-border, #E5DDD2);
}
.st-dream-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}
.st-dream-nophoto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--color-table-even, #F5F0E8);
    color: var(--color-secondary, #8A7A6A);
    font-size: 2rem;
    text-decoration: none;
}
.st-dream-info {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.st-dream-name {
    font-size: .78rem;
    font-weight: 700;
    color: var(--color-page-title, #5A4A3A);
    text-decoration: none;
    line-height: 1.2;
}
.st-dream-name:hover { color: var(--color-primary, #8B4513); }
.st-dream-role {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-secondary, #8A7A6A);
}
.st-dream-credits {
    font-size: .65rem;
    color: var(--color-secondary, #8A7A6A);
}

.st-dream-match-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 600;
    color: var(--color-primary, #8B4513);
    padding: 2px 6px;
    margin-top: auto;
}

/* About page (kept) */
.about-acknowledgements {
    line-height: 1.8;
}

/* Stats mobile */
@media (max-width: 991.98px) {
    .st-pie-sidebar { margin-top: 1rem; }
    .st-pie-wrap { flex-direction: column; align-items: center; }
    .st-pie-donut { width: 120px; height: 120px; margin-bottom: .5rem; }
    .st-pie-legend { width: 100%; }
    .st-tl-name { width: 130px; font-size: .72rem; }
    .st-tl-years { width: 55px; font-size: .62rem; }
    .st-tl-name-collab { width: 220px; }
    .st-tl-name-collab a { max-width: 80px; font-size: .7rem; }
    .st-bar-yr { font-size: .45rem; }
    .st-bar-val { font-size: .45rem; }
    .st-era-pills { flex-wrap: wrap; }
}
@media (max-width: 767.98px) {
    .st-counters { flex-wrap: wrap; }
    .st-counter { min-width: 80px; flex: 1 1 25%; border-bottom: 1px solid var(--color-table-border, #E5DDD2); }
    .st-counter-val { font-size: 1.1rem; }
    .st-lb-name { width: 120px; font-size: .75rem; }
    .st-lb-val { width: 70px; }
    .st-lb-pic { width: 20px; height: 20px; }
    .st-dream-grid { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
    .st-dream-photo { max-width: 80px; }
    .st-yr-albums { grid-template-columns: repeat(3, 1fr); }
    .st-yr-albums .st-yr-album:nth-child(n+10) { display: none; }
    .st-period-cols { grid-template-columns: repeat(2, 1fr); }
    .st-collab-duo { flex-direction: column; gap: 0; width: 160px; }
    .st-collab-duo .st-lb-pic { display: none; }
    .st-collab-sep { display: none; }
    .st-tl-name { width: 100px; font-size: .68rem; }
    .st-tl-total { font-size: .6rem; width: 25px; }
    .st-tl-years { width: 45px; font-size: .58rem; }
    .st-tl-pic { width: 22px; height: 22px; }
    .st-tl-name-collab { width: 170px; }
    .st-tl-name-collab a { max-width: 65px; font-size: .65rem; }
    .st-bar-col { min-width: 10px; }
    .st-bar-yr { font-size: .4rem; }
    .st-bar-val { font-size: .4rem; }
    .st-pie-donut { width: 100px; height: 100px; }
}
@media (max-width: 575.98px) {
    .st-counter { flex: 1 1 50%; }
    .st-counter-val { font-size: 1rem; }
    .st-dream-grid { grid-template-columns: repeat(3, 1fr); }
    .st-fact { flex-direction: column; gap: .15rem; }
    .st-yr-albums { grid-template-columns: repeat(3, 1fr); }
    .st-yr-albums .st-yr-album:nth-child(n+7) { display: none; }
    .st-period-cols { grid-template-columns: 1fr; }
    .st-tl-name { width: 80px; font-size: .65rem; }
    .st-tl-years { display: none; }
    .st-tl-pic { width: 20px; height: 20px; }
    .st-tl-name-collab { width: 140px; }
    .st-tl-name-collab a { max-width: 55px; font-size: .6rem; }
    .st-bar-col { min-width: 8px; }
    .st-bar-val { display: none; }
    .st-bar-col:nth-child(odd) .st-bar-yr { visibility: hidden; }
    .st-yr-picker { gap: .15rem; }
    .st-yr-btn { padding: .15rem .35rem; font-size: .6rem; }
    .st-yr-summary { flex-direction: column; gap: .3rem; }
    .st-tab { padding: .3rem .5rem; font-size: .65rem; }
    .st-pie-donut { width: 90px; height: 90px; }
    .st-pie-legend-row { font-size: .6rem; }
    .st-pie-legend-val { font-size: .58rem; }
    .st-dream-match-badge { font-size: .58rem; }
}

/* ── This Year in Reggae ───────────────────────────── */

.st-yr-picker {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
}
.st-yr-btn {
    padding: .2rem .5rem;
    font-size: .7rem;
    font-weight: 600;
    color: var(--color-text, #5A4A3A);
    background: transparent;
    border: 1px solid var(--color-table-border, #D5C8B8);
    border-radius: 3px;
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1.3;
}
.st-yr-btn:hover {
    background: var(--color-table-border, #E5DDD2);
}
.st-yr-btn.active {
    background: var(--color-page-title, #5A4A3A);
    color: #fff;
    border-color: var(--color-page-title, #5A4A3A);
}

.st-yr-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .8rem;
    margin-bottom: 1rem;
}
.st-yr-badge {
    font-size: .78rem;
    color: var(--color-text, #5A4A3A);
    white-space: nowrap;
}
.st-yr-badge i {
    color: var(--color-secondary, #8A7A6A);
}
.st-yr-badge a {
    color: var(--color-page-title, #3D2B1F);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-text, #5A4A3A);
    font-weight: 600;
}
.st-yr-badge a:hover { color: var(--color-primary, #8B4513); }
.st-yr-badge small {
    font-weight: 400;
    color: var(--color-secondary, #8A7A6A);
}

.st-yr-albums {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .6rem;
    transition: opacity .25s;
}
.st-yr-albums.st-yr-loading { opacity: .4; }

.st-yr-album {
    text-align: center;
}
.st-yr-album-cover {
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: .3rem;
    border: 1px solid var(--color-table-border, #E5DDD2);
}
.st-yr-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.st-yr-nocover {
    width: 100%;
    height: 100%;
    background: var(--color-table-even, #F5F0E8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary, #8A7A6A);
    font-size: 1.5rem;
}
.st-yr-album-info {
    display: flex;
    flex-direction: column;
    gap: .05rem;
}
.st-yr-album-title {
    font-size: .72rem;
    font-weight: 700;
    color: var(--color-page-title, #5A4A3A);
    text-decoration: none;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.st-yr-album-title:hover { color: var(--color-primary, #8B4513); }
.st-yr-album-artist {
    font-size: .65rem;
    color: var(--color-secondary, #8A7A6A);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.st-yr-album-artist a {
    color: var(--color-secondary, #8A7A6A);
    text-decoration: none;
}
.st-yr-album-artist a:hover { color: var(--color-primary, #8B4513); }
.st-yr-album-releases {
    font-size: .6rem;
    font-weight: 600;
    color: var(--color-primary, #8B4513);
    opacity: .7;
}

.st-yr-viewall {
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-primary, #8B4513);
    text-decoration: none;
}
.st-yr-viewall:hover { text-decoration: underline; }

/* ── Pie / Donut charts ────────────────────────────── */

.st-pie-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--color-page-title, #5A4A3A);
    margin-bottom: .6rem;
}
.st-pie-wrap {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
}
.st-pie-donut {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}
.st-pie-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 55%;
    height: 55%;
    background: var(--color-bg, #FAF6F0);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.st-pie-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.st-pie-legend-row {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .68rem;
    line-height: 1.3;
}
.st-pie-swatch {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}
.st-pie-legend-name {
    flex: 1;
    color: var(--color-page-title, #5A4A3A);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
a.st-pie-legend-name:hover { color: var(--color-primary, #8B4513); }
.st-pie-legend-other {
    color: var(--color-secondary, #8A7A6A);
    font-style: italic;
}
.st-pie-legend-val {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--color-secondary, #8A7A6A);
    white-space: nowrap;
}
.st-pie-legend-val small {
    font-weight: 400;
}
.st-pie-legend-note {
    font-size: .62rem;
    color: var(--color-secondary, #8A7A6A);
    font-style: italic;
    margin-top: .2rem;
    padding-left: 11px;
}
.st-pie-sidebar {
    padding-top: .5rem;
}

/* ── Period Leaderboards ───────────────────────────── */

.st-period-scroll {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.st-period-block {
    border: 1px solid var(--color-table-border, #E5DDD2);
    border-radius: 6px;
    padding: .75rem;
}
.st-period-title {
    font-size: .85rem;
    font-weight: 700;
    color: var(--color-page-title, #5A4A3A);
    margin-bottom: .5rem;
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--color-table-border, #EDE6DB);
}
.st-period-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .75rem;
}
.st-period-cat {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-secondary, #8A7A6A);
    margin-bottom: .3rem;
}
.st-period-row {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .15rem 0;
    font-size: .73rem;
    line-height: 1.3;
}
.st-period-pic {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    opacity: .8;
}
.st-period-pic-label {
    border-radius: 3px;
}
.st-period-rank {
    width: 14px;
    font-weight: 700;
    color: var(--color-secondary, #8A7A6A);
    flex-shrink: 0;
    text-align: right;
}
.st-period-name {
    flex: 1;
    color: var(--color-page-title, #5A4A3A);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-period-name:hover { color: var(--color-primary, #8B4513); }
.st-period-cnt {
    font-weight: 600;
    color: var(--color-secondary, #8A7A6A);
    flex-shrink: 0;
}

/* ── Collaboration duos in leaderboard ─────────────── */

.st-collab-duo {
    display: flex;
    align-items: center;
    gap: .25rem;
    width: 280px;
    flex-shrink: 0;
}
.st-collab-duo a {
    color: var(--color-page-title, #5A4A3A);
    text-decoration: none;
    font-weight: 600;
    font-size: .78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-collab-duo a:hover { color: var(--color-primary, #8B4513); }
.st-collab-sep {
    color: var(--color-secondary, #8A7A6A);
    font-weight: 700;
    font-size: .7rem;
    flex-shrink: 0;
}

/* ── Timeline list (labels / studios) ──────────────── */

.st-era-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
}
.st-era-btn {
    padding: .15rem .4rem;
    font-size: .65rem;
    font-weight: 600;
    color: var(--color-secondary, #8A7A6A);
    background: transparent;
    border: 1px solid var(--color-table-border, #D5C8B8);
    border-radius: 3px;
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1.3;
}
.st-era-btn:hover {
    background: var(--color-table-border, #E5DDD2);
    color: var(--color-text, #5A4A3A);
}
.st-era-btn.active {
    background: var(--color-page-title, #5A4A3A);
    color: #fff;
    border-color: var(--color-page-title, #5A4A3A);
}

.st-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.st-tl-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 0;
    border-bottom: 1px solid var(--color-table-border, #EDE6DB);
}
.st-tl-row:last-child { border-bottom: none; }
.st-tl-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    opacity: .8;
}
.st-tl-pic-label {
    border-radius: 4px;
}
.st-tl-name {
    width: 160px;
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-page-title, #5A4A3A);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-tl-name:hover { color: var(--color-primary, #8B4513); }
.st-tl-name-collab {
    width: 280px;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.st-tl-name-collab a {
    font-size: .75rem;
    font-weight: 600;
    color: var(--color-page-title, #5A4A3A);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}
.st-tl-name-collab a:hover { color: var(--color-primary, #8B4513); }
.st-tl-total {
    width: 30px;
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 700;
    color: var(--color-secondary, #8A7A6A);
    text-align: right;
}
.st-tl-track {
    flex: 1;
    position: relative;
    height: 18px;
    background: var(--color-table-even, #F5F0E8);
    border-radius: 2px;
    overflow: visible;
}
.st-tl-bar {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--color-page-title, #5A4A3A);
    border-radius: 2px;
    opacity: .35;
    overflow: hidden;
}
.st-tl-spark {
    width: 100%;
    height: 100%;
    display: block;
}
.st-tl-spark polyline {
    fill: none;
    stroke: rgba(255,255,255,.7);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}
.st-tl-peak {
    position: absolute;
    top: -2px;
    width: 8px;
    height: 8px;
    background: var(--color-primary, #8B4513);
    border-radius: 50%;
    border: 2px solid #fff;
    transform: translateX(-4px);
    top: 50%;
    margin-top: -4px;
    z-index: 1;
}
.st-tl-years {
    width: 70px;
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 500;
    color: var(--color-secondary, #8A7A6A);
    text-align: right;
    white-space: nowrap;
}


/* ── Credit row thumbnails ─────────────────────────── */

.thumb-md-square {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.thumb-placeholder-md-square {
    width: 60px;
    height: 60px;
}


/* ── Search results ────────────────────────────────── */

.badge-criteria {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.search-th-thumb {
    width: 40px;
}

.search-td-thumb {
    width: 40px;
    padding: 4px;
}

.search-td-thumb-padded {
    width: 40px;
    padding: 4px 12px 4px 4px;
}

.thumb-xs {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 2px;
}

.thumb-xs-round {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #D4C4A8;
}

.thumb-md {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.search-result-meta {
    font-size: 0.9em;
    color: var(--color-secondary, #555);
    margin-bottom: 0.25rem;
}

.search-result-detail {
    font-size: 0.85em;
    color: var(--color-muted, #999);
}

.search-separator {
    margin: 0 0.5rem;
}

.search-label-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-td-format {
    width: 100px;
    white-space: nowrap;
    font-size: 0.95em;
}

.search-td-format-sm {
    width: 80px;
    white-space: nowrap;
    font-size: 0.95em;
}

.search-format-link {
    color: var(--color-secondary, #666);
}

.search-album-title {
    color: var(--color-text, #333);
    font-size: 0.9em;
}

.search-author-name {
    color: var(--color-secondary, #666);
    font-weight: normal;
    font-size: 0.9em;
}

.text-clamp-2 {
    max-height: 3.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.8em;
}

.search-result-font {
    font-size: 0.98em;
}


/* ── Block components (data-driven theming) ────────── */

.block-card {
    background: var(--block-bg);
}

.block-card-bordered {
    background: var(--block-bg);
    border: 1px solid var(--block-border, #E8E8D8);
}

.block-wrapper {
    background: var(--block-bg);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.5rem;
}

.block-title {
    color: var(--block-text);
}

.block-accent {
    color: var(--block-accent);
}

.block-muted {
    color: var(--block-muted);
}

.block-stat-number {
    color: var(--block-text);
}

.block-stat-label {
    color: var(--block-muted);
}

.block-heading {
    font-size: 0.85rem;
    color: var(--block-accent);
    font-weight: 600;
}

.block-search-body {
    padding: 0.6rem 0.85rem;
}

.block-search-input {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
    height: 34px;
}

.block-search-btn {
    background: var(--block-btn-bg);
    color: var(--block-btn-text);
    font-size: 0.75rem;
    padding: 0.25rem 0.3rem;
    height: 34px;
}

.block-search-title {
    font-size: 0.9rem;
    color: var(--block-text);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.block-section-title {
    color: var(--block-text);
    font-size: 1.1rem;
}

.block-forum-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--block-text);
}

.block-forum-table {
    background: transparent;
}

.block-forum-link {
    color: var(--block-accent);
}

.block-forum-muted {
    color: var(--block-muted);
}

.block-forum-th {
    color: var(--block-muted);
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
}

.block-forum-td {
    border: none;
    padding: 0.35rem 0.25rem;
}

.block-forum-topic-link {
    color: var(--block-accent);
    font-size: 0.8rem;
    font-weight: 500;
}

.block-forum-author {
    color: var(--block-muted);
    font-size: 0.75rem;
}

.block-forum-excerpt {
    color: var(--block-muted);
    font-size: 0.72rem;
}

.block-forum-badge {
    background: var(--block-badge-bg);
    color: var(--block-text);
    font-size: 0.7rem;
    font-weight: 500;
    min-width: 28px;
}

.block-forum-header-row {
    border-bottom: 1px solid var(--block-border);
}

.block-forum-row {
    border-bottom: 1px solid var(--block-border-light);
}

.block-forum-replies-col {
    width: 70px;
}

/* Forum mobile */
.block-forum-mobile-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--block-border-light);
}

.block-forum-mobile-link {
    color: var(--block-accent);
    font-size: 0.78rem;
    font-weight: 500;
}

.block-forum-mobile-link-compact {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.block-forum-mobile-author {
    color: var(--block-muted);
    font-size: 0.68rem;
}

.block-forum-mobile-badge {
    background: var(--block-badge-bg);
    color: var(--block-text);
    font-size: 0.65rem;
    font-weight: 500;
}

/* Mobile heading */
.block-forum-heading-mobile {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--block-text);
}


/* ── Featured block ────────────────────────────────── */

.featured-block {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.featured-card-compact {
    cursor: pointer;
}

.featured-cover-compact {
    object-fit: cover;
    aspect-ratio: 1;
}

.featured-aspect-1 {
    aspect-ratio: 1;
}

.featured-badge {
    background: rgba(139,69,19,0.9);
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    color: #FAF7F2;
}

.featured-badge-standard {
    background: rgba(139,69,19,0.95);
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    color: #FAF7F2;
}

.featured-title-compact {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--block-text);
    line-height: 1.2;
}

.featured-artist-compact {
    font-size: 0.7rem;
    color: var(--block-muted);
}

.featured-cover-standard {
    object-fit: cover;
    min-height: 180px;
}

.featured-overline {
    font-size: 0.65rem;
    color: var(--block-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.featured-title-standard {
    color: var(--block-text);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.2;
}

.featured-artist-standard {
    color: var(--block-muted);
    font-size: 0.9rem;
}

.featured-meta {
    font-size: 0.75rem;
    color: var(--block-muted);
}

.featured-discover-btn {
    background: var(--block-btn-bg);
    color: var(--block-btn-text);
    font-size: 0.75rem;
    padding: 0.3rem 1rem;
    border-radius: 3px;
}


/* ── Custom Block (.cb-*) ──────────────────────────── */

.cb-block {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.cb-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cb-card {
    background: var(--block-bg);
    height: 200px;
    overflow: hidden;
    position: relative;
}

.cb-badge {
    background: var(--block-badge-bg);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 3px;
}

.cb-badge-corner {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
}

.cb-cover-col {
    height: 200px;
    overflow: hidden;
}

.cb-cover-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.cb-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0ebe4;
}

.cb-overline {
    font-size: 0.65rem;
    color: var(--block-overline);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: var(--cb-overline-weight, 600);
    font-style: var(--cb-overline-style, normal);
    text-decoration: var(--cb-overline-decoration, none);
}

.cb-title {
    color: var(--block-text);
    font-weight: var(--cb-title-weight, 700);
    font-style: var(--cb-title-style, normal);
    text-decoration: var(--cb-title-decoration, none);
    font-size: 1.3rem;
    line-height: 1.2;
}

.cb-subtitle {
    color: var(--block-subtitle);
    font-size: 0.9rem;
    font-weight: var(--cb-subtitle-weight, normal);
    font-style: var(--cb-subtitle-style, normal);
    text-decoration: var(--cb-subtitle-decoration, none);
}

.cb-description {
    color: var(--block-desc);
    font-size: 0.82rem;
    line-height: 1.5;
    font-weight: var(--cb-desc-weight, normal);
    font-style: var(--cb-desc-style, normal);
    text-decoration: var(--cb-desc-decoration, none);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* ── Custom Block Carousel ─────────────────────────── */

.cb-carousel {
    position: relative;
    --carousel-gap: 1rem;
}

.cb-carousel-track {
    display: flex;
    gap: var(--carousel-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    cursor: grab;
}

.cb-carousel-track::-webkit-scrollbar { display: none; }

.cb-carousel-track.is-dragging {
    scroll-behavior: auto;
    cursor: grabbing;
    scroll-snap-type: none;
}
.cb-carousel-track.is-dragging .cb-block { pointer-events: none; }

.cb-carousel-slide {
    flex: 0 0 calc(50% - var(--carousel-gap) / 2);
    scroll-snap-align: start;
    min-width: 0;
}

.cb-carousel-slide .cb-cover-col {
    min-width: 150px;
}

@media (max-width: 767.98px) {
    .cb-carousel .cb-carousel-slide { flex: 0 0 100%; }
    .cb-carousel { overflow: hidden; }

    /* Mobile custom blocks — constrain image, ensure text is visible */
    .cb-card { height: 170px; }
    .cb-cover-col { height: 170px; min-width: 0; }
    .cb-card > .row > .col-auto {
        flex: none;
        max-width: none;
    }
    .cb-cover-col {
        height: 170px;
        overflow: hidden;
    }
    .cb-cover-img {
        height: 100%;
        width: auto;
        object-fit: contain;
        object-position: left center;
    }
    .cb-title { font-size: 1.05rem; margin-bottom: 0.35rem; }
    .cb-subtitle { font-size: 0.8rem; margin-bottom: 0; }
    .cb-description { display: none; }
    .cb-badge { font-size: 0.65rem; padding: 0.25rem 0.6rem; }
    .cb-badge-corner { top: 0.5rem; right: 0.5rem; }
    .cb-card .col > .d-flex { padding-top: 1.8rem; }
    .cb-card .px-4 { padding-left: 0.85rem; padding-right: 0.85rem; }
    .cb-card .pt-3 { padding-top: 0.65rem; }
    .cb-card .pb-3 { padding-bottom: 0.5rem; }
}

/* ── Carousel arrows ── */

.cb-carousel-arrow {
    position: absolute;
    top: calc(50% - 1rem);
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #333;
    transition: opacity 0.25s, transform 0.25s, background 0.2s;
    opacity: 0;
}

.cb-carousel:hover .cb-carousel-arrow { opacity: 1; }

.cb-carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.08);
}

.cb-carousel-prev { left: 0.75rem; }
.cb-carousel-next { right: 0.75rem; }

.cb-carousel-arrow[disabled] {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .cb-carousel-arrow { display: none; }
}

/* ── Carousel indicator ── */

.cb-carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 0.6rem;
}

.cb-carousel-counter {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #999;
}

.cb-carousel-cur {
    color: #555;
    font-weight: 700;
}

.cb-carousel-sep {
    margin: 0 0.2rem;
    opacity: 0.5;
}


/* ── Error page ────────────────────────────────────── */

.error-logo {
    max-height: 80px;
}

.error-code {
    color: var(--color-primary);
}

.error-message {
    font-size: 1.05rem;
}

.error-spinner {
    width: 2rem;
    height: 2rem;
}


/* ── Graphs page ───────────────────────────────────── */

.graphs-forum-link {
    color: var(--color-secondary);
    font-weight: 600;
}


/* --- News Block ----------------------------------------------------------- */

.news-block-title { font-size:1rem; font-weight:700; color:var(--color-primary,#8B4513); margin-bottom:0.75rem; }
.news-card { display:flex; background:var(--news-bg,#F5E6D3); border-radius:8px; overflow:hidden; cursor:pointer; transition:transform .15s ease,box-shadow .15s ease; box-shadow:0 1px 4px rgba(0,0,0,.07); height:100%; }
.news-card:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.12); }
.news-card-img-wrap { flex:0 0 150px; max-width:150px; overflow:hidden; }
.news-card-img { height:150px; width:150px; object-fit:contain; display:block; }
.news-card-body { flex:1; padding:.6rem .85rem; display:flex; flex-direction:column; gap:.2rem; position:relative; }
.news-card-date { font-size:.65rem; color:var(--news-accent,#8B4513); font-weight:600; margin:0; text-transform:uppercase; letter-spacing:.3px; }
.news-type-badge { position:absolute; top:.4rem; right:.45rem; display:inline-block; background:var(--news-accent,#8B4513); color:#fff; font-size:.58rem; padding:.1rem .38rem; border-radius:10px; font-weight:700; letter-spacing:.2px; line-height:1.4; }
.news-source-badge { display:inline-block; background:var(--news-accent,#8B4513); color:#fff; font-size:.6rem; padding:.05rem .35rem; border-radius:10px; font-weight:600; vertical-align:middle; }
.news-card-title { font-size:.85rem; font-weight:700; color:var(--news-text,#3D2B1F); margin:0; line-height:1.25; }
.news-card-excerpt { font-size:.72rem; color:var(--news-text,#3D2B1F); opacity:.75; margin:0; line-height:1.4; flex:1; }
.news-card-more { font-size:.65rem; color:var(--news-accent,#8B4513); font-weight:700; text-transform:uppercase; letter-spacing:.5px; margin-top:auto; align-self:flex-start; }
.news-carousel .cb-carousel-slide { height:auto; flex:0 0 calc(33.333% - var(--carousel-gap) * 2 / 3); }
.news-carousel .news-card { width:100%; }
@media (max-width: 767.98px) { .news-carousel .cb-carousel-slide { flex: 0 0 100%; } }

/* --- News Modal ----------------------------------------------------------- */

.news-modal .modal-content { border-radius:10px; border:none; box-shadow:0 8px 32px rgba(0,0,0,.18); }
.news-modal-layout { display:flex; gap:1.25rem; align-items:flex-start; }
.news-modal-img-col { flex:0 0 220px; max-width:220px; overflow:hidden; }
.news-modal-img { height:200px; width:220px; object-fit:contain; display:block; border-radius:6px; }
.news-modal-img[role="button"] { cursor:zoom-in; }
.news-modal-content-col { flex:1; min-width:0; }
.news-modal-date { font-size:.78rem; margin-bottom:.5rem; }
.news-modal-body { font-size:.88rem; line-height:1.6; color:#3D3D3D; }
.news-source-btn { background:var(--color-primary,#8B4513); color:#fff; border:none; font-size:.8rem; display:inline-block; }
.news-source-btn:hover { background:#6B3410; color:#fff; }
@media (max-width:575.98px) { .news-modal-layout { flex-direction:column; } .news-modal-img { height:auto; width:100%; } }

/* Fullscreen image overlay */
.np-image-overlay { position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.92); display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:opacity .25s ease,visibility .25s ease; overflow:hidden; }
.np-image-overlay--visible { opacity:1; visibility:visible; }
.np-image-overlay-img { max-width:92vw; max-height:92vh; object-fit:contain; border-radius:4px; box-shadow:0 0 40px rgba(0,0,0,.6); transform-origin:0 0; cursor:grab; user-select:none; -webkit-user-select:none; }
.np-image-overlay-img.np-dragging { cursor:grabbing; }
.np-image-overlay-close { position:absolute; top:16px; right:24px; background:none; border:none; color:#fff; font-size:2.5rem; line-height:1; cursor:pointer; opacity:.7; transition:opacity .15s; z-index:10; }
.np-image-overlay-close:hover { opacity:1; }
.np-image-overlay-hint { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); color:rgba(255,255,255,.5); font-size:.8rem; pointer-events:none; transition:opacity .4s; }
.np-image-overlay-hint--hidden { opacity:0; }

/* YouTube card play badge (bottom-right, discreet) */
.news-card-img-wrap { position:relative; }
.news-card-play-badge { position:absolute; bottom:5px; right:5px; color:#fff; font-size:1.25rem; line-height:1; pointer-events:none; filter:drop-shadow(0 1px 3px rgba(0,0,0,.6)); opacity:.85; }
/* YouTube embed (16:9 responsive) */
.news-yt-embed-wrap { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; border-radius:8px; background:#000; }
.news-yt-embed-wrap iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:none; }


/* ══════════════════════════════════════════════════════════════
   NEWS PAGE  (/news) — Differentiated Press Layout v5
   No image cropping. Portrait-aware. Archives prominent.
   ══════════════════════════════════════════════════════════════ */

/* ─── Page wrapper ──────────────────────────────────────── */
.np-page { padding-bottom: 0; background: #FAF8F3; min-height: 80vh; }

/* ─── MASTHEAD ──────────────────────────────────────────── */
.np-masthead { background: #FAF8F3; padding: .8rem 0 .6rem; border-bottom: 3px double #2A1F14; }
.np-masthead-inner { text-align: center; }
.np-masthead-center { text-align: center; }
.np-masthead-rule { height: 1px; background: #2A1F14; margin: .15rem auto; width: 100%; max-width: 600px; }
.np-masthead-title {
    font-size: clamp(1.5rem, 4vw, 2.8rem);
    font-weight: 900; letter-spacing: .02em; text-transform: uppercase;
    color: #1A1208; margin: .1rem 0; line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
}
.np-masthead-sub { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: #7A6A5A; margin: 0; }

/* ─── FILTER BAR ─────────────────────────────────────────── */
.np-filter-bar {
    background: #fff; border-bottom: 1px solid #D8D0C4;
    padding: .4rem 0; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.np-filter-wrap { display: flex; gap: .22rem; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.np-filter-wrap::-webkit-scrollbar { display: none; }
.np-filter-pill {
    display: inline-flex; align-items: center; gap: .2rem;
    padding: .15rem .5rem; border-radius: 2px;
    font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    cursor: pointer; text-decoration: none;
    border: 1px solid #C5B9A8; white-space: nowrap;
    background: #FAF8F3; color: #4A3A2A; line-height: 1.3;
    transition: background .12s, color .12s;
}
.np-filter-pill:hover { background: #EDE5D8; color: #2A1F14; text-decoration: none; }
.np-filter-pill.active { background: var(--fp-active-bg, #2A1F14); color: #fff; border-color: var(--fp-active-bg, #2A1F14); }
.np-filter-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.np-filter-count { font-size: .52rem; opacity: .6; }

@media (max-width: 991.98px) {
    .np-filter-wrap { flex-wrap: wrap; overflow-x: visible; }
}
@media (max-width: 575.98px) {
    .np-filter-wrap { flex-wrap: wrap; overflow-x: visible; gap: .18rem; }
    .np-filter-pill { font-size: .55rem; padding: .12rem .4rem; }
}

/* ═══════════════════════════════════════════════════════════
   PROMO CAROUSEL ON NEWS PAGE
   ═══════════════════════════════════════════════════════════ */
.np-promo-carousel {
    margin: 1rem 0 .5rem;
}

/* ═══════════════════════════════════════════════════════════
   MOSAIC GRID — 5-column dense-packed puzzle layout
   ═══════════════════════════════════════════════════════════ */
.np-mosaic {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 90px;
    grid-auto-flow: dense;
    gap: 8px;
    padding: 1rem 0;
}
@media (max-width: 575.98px)  {
    .np-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 80px; gap: 6px; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .np-mosaic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 85px; }
}

/* ── Tile size classes (desktop 5-col) ───────────────────── */
.np-tile--photo-landscape { grid-column: span 2; grid-row: span 3; }
.np-tile--photo-portrait  { grid-column: span 2; grid-row: span 4; }
.np-tile--video           { grid-column: span 2; grid-row: span 3; }
.np-tile--article         { grid-column: span 3; grid-row: span 4; }
.np-tile--news-img        { grid-column: span 2; grid-row: span 4; }
.np-tile--news-text       { grid-column: span 2; grid-row: span 2; }
.np-tile--interview       { grid-column: span 2; grid-row: span 2; }
.np-tile--interview-lg    { grid-column: span 3; grid-row: span 2; }
.np-tile--cover           { grid-column: span 1; grid-row: span 2; }
.np-tile--cover-lg        { grid-column: span 2; grid-row: span 2; }
.np-tile--cover-xs        { grid-column: span 1; grid-row: span 1; }
.np-tile--game            { grid-column: span 1; grid-row: span 2; }

/* ── Tablet sizes (3-col) ──────────────────────────────── */
@media (min-width: 576px) and (max-width: 991.98px) {
    .np-tile--photo-landscape { grid-column: span 2; grid-row: span 3; }
    .np-tile--photo-portrait  { grid-column: span 2; grid-row: span 4; }
    .np-tile--video           { grid-column: span 2; grid-row: span 3; }
    .np-tile--article         { grid-column: span 2; grid-row: span 3; }
    .np-tile--news-img        { grid-column: span 2; grid-row: span 3; }
    .np-tile--news-img-portrait { grid-row: span 2; }
    .np-tile--news-text       { grid-column: span 2; grid-row: span 2; }
    .np-tile--interview       { grid-column: span 2; grid-row: span 2; }
    .np-tile--interview-lg    { grid-column: span 3; grid-row: span 2; }
    .np-tile--cover           { grid-column: span 1; grid-row: span 2; }
    .np-tile--cover-lg        { grid-column: span 2; grid-row: span 2; }
    .np-tile--cover-xs        { grid-column: span 1; grid-row: span 1; }
    .np-tile--game           { grid-column: span 1; grid-row: span 2; }
}

/* ── Mobile sizes (2-col) ──────────────────────────────── */
@media (max-width: 575.98px) {
    .np-tile--photo-landscape,
    .np-tile--video,
    .np-tile--article,
    .np-tile--interview,
    .np-tile--interview-lg    { grid-column: span 2; grid-row: span 2; }
    .np-tile--photo-portrait  { grid-column: span 2; grid-row: span 4; }
    .np-tile--news-img        { grid-column: span 2; grid-row: span 3; }
    .np-tile--news-img-portrait { grid-row: span 2; }
    .np-tile--news-text       { grid-column: span 2; grid-row: span 2; }
    .np-tile--cover           { grid-column: span 1; grid-row: span 2; }
    .np-tile--cover-lg        { grid-column: span 2; grid-row: span 2; }
    .np-tile--cover-xs        { grid-column: span 1; grid-row: span 1; }
    .np-tile--game           { grid-column: span 1; grid-row: span 2; }
}

/* ═══════════════════════════════════════════════════════════
   TILE BASE — shared by all tile types
   ═══════════════════════════════════════════════════════════ */
.np-tile {
    position: relative; overflow: hidden; border-radius: 4px;
    cursor: pointer; outline: none; text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.np-tile:hover { box-shadow: 0 4px 16px rgba(0,0,0,.15); transform: translateY(-2px); }
.np-tile:focus-visible { outline: 2px solid #8B4513; outline-offset: 2px; }

/* ═══════════════════════════════════════════════════════════
   CARD-STYLE TILES — image top, text below (news/photo/video/article)
   ═══════════════════════════════════════════════════════════ */
.np-tile--photo-landscape,
.np-tile--photo-portrait,
.np-tile--article,
.np-tile--news-img {
    display: flex; flex-direction: column;
    border: 1px solid #E5DDD2;
}
.np-tile--photo-landscape:hover,
.np-tile--photo-portrait:hover,
.np-tile--article:hover,
.np-tile--news-img:hover { border-color: #C5B9A8; }

/* Video tile — full image background + text overlay */
.np-tile--video {
    border: 1px solid #E5DDD2;
    overflow: hidden;
}
.np-tile--video .np-tile-img-wrap {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.np-tile--video .np-tile-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain; object-position: center;
    background: #000;
    transition: transform .4s ease;
}
.np-tile--video:hover .np-tile-bg { transform: scale(1.04); }
.np-tile-video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: .55rem .65rem 2rem;
    pointer-events: none;
}
.np-tile--video .np-tile-label {
    font-size: .55rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #ff4444; margin-bottom: .2rem;
}
.np-tile--video .np-tile-title {
    font-family: Georgia, serif; font-size: .8rem; font-weight: 700;
    color: #fff; margin: 0; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.np-play-badge-sm {
    position: absolute; bottom: .5rem; left: .6rem;
    background: rgba(0,0,0,.55); color: #fff;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; pointer-events: none; z-index: 3;
    transition: background .2s;
}
.np-tile--video:hover .np-play-badge-sm { background: rgba(190,0,0,.85); }

/* Image wrapper — fills available space above the body */
.np-tile-img-wrap {
    position: relative; flex: 1; min-height: 0; overflow: hidden;
}
.np-tile-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
    transition: transform .4s ease;
}
.np-tile:hover .np-tile-img { transform: scale(1.04); }
/* No-crop for photography tiles: show full image — bg color set inline via tile_bg_color */
.np-tile--photo-portrait .np-tile-img { object-fit: contain; }
.np-tile--photo-landscape .np-tile-img { object-fit: contain; }

/* Portrait news tile: image left (no crop), text right */
.np-tile--news-img-portrait {
    flex-direction: row;
    grid-row: span 2;
}
.np-tile--news-img-portrait .np-tile-img-wrap {
    flex: 0 0 auto;
    width: auto;
    height: 100%;
}
.np-tile--news-img-portrait .np-tile-img {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #F5F0E8;
}
.np-tile--news-img-portrait:hover .np-tile-img { transform: none; }
.np-tile--news-img-portrait .np-tile-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.np-tile--news-img-portrait .np-tile-body .np-tile-title {
    -webkit-line-clamp: 3;
}
.np-tile--news-img-portrait .np-tile-body .np-tile-excerpt {
    -webkit-line-clamp: 3;
}

/* Article tile: image fit (no crop) — bg color set inline via tile_bg_color */
.np-tile--article .np-tile-img { object-fit: contain; }
/* News-img tile: image fit (no crop) — bg color set inline via tile_bg_color */
.np-tile--news-img .np-tile-img { object-fit: contain; }

/* Portrait article tile: narrower, badge + title only */
.np-tile--article-portrait { grid-column: span 2; grid-row: span 4; }
.np-tile--article-portrait .np-tile-body .np-tile-excerpt,
.np-tile--article-portrait .np-tile-body .np-tile-date { display: none; }

/* Body text below image */
.np-tile-body {
    padding: .45rem .6rem .4rem;
    flex-shrink: 0;
}
.np-tile-label {
    font-size: .52rem; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; margin-bottom: .1rem; display: block;
}
.np-tile-body .np-tile-title {
    font-size: .78rem; font-weight: 700; color: #1A1208; line-height: 1.25;
    margin: 0 0 .1rem; font-family: Georgia, "Times New Roman", serif;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.np-tile-body .np-tile-excerpt {
    font-size: .66rem; color: #5A4A3A; line-height: 1.45; margin: 0 0 .1rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.np-tile-date {
    font-size: .5rem; letter-spacing: .06em; text-transform: uppercase;
}
.np-tile-body .np-tile-date { color: #8A7A6A; }

/* Entity tags on news tiles */
.np-tile-entities { display: flex; flex-wrap: wrap; gap: 3px; margin-top: .2rem; }
.np-entity-tag {
    font-size: .55rem; padding: .1rem .35rem; border-radius: 8px;
    text-decoration: none; white-space: nowrap;
    font-weight: 600; letter-spacing: .02em;
    transition: opacity .15s;
}
.np-entity-tag:hover { opacity: .8; }
.np-entity-tag--artist { background: rgba(25,135,84,.15); color: #155724; }
.np-entity-tag--label  { background: rgba(13,110,253,.12); color: #0c5460; }
.np-entity-tag--album  { background: rgba(255,193,7,.2); color: #856404; }
.np-entity-tag--studio { background: rgba(111,66,193,.12); color: #4a235a; }

/* ═══════════════════════════════════════════════════════════
   TILE: NEWS-TEXT — text only, no image
   ═══════════════════════════════════════════════════════════ */
.np-tile--news-text {
    background: #fff; border: 1px solid #E5DDD2;
}
.np-tile--news-text:hover { border-color: #C5B9A8; }
.np-tile-text {
    position: absolute; inset: 0;
    padding: .6rem .7rem;
    display: flex; flex-direction: column;
}
.np-tile-text .np-tile-label {
    color: #8B4513; margin-bottom: .25rem;
}
.np-tile-text .np-tile-title {
    font-size: .82rem; font-weight: 700; color: #1A1208; line-height: 1.3;
    margin: 0 0 .3rem; font-family: Georgia, "Times New Roman", serif;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.np-tile-text .np-tile-excerpt {
    font-size: .7rem; color: #5A4A3A; line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    flex: 1;
}
.np-tile-text .np-tile-date {
    color: #8A7A6A; margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════
   TILE: NOIMG fallback — article/news without image
   ═══════════════════════════════════════════════════════════ */
.np-tile--noimg { background: #F5F0E8; border-color: #DDD5C8; }
.np-tile--noimg .np-tile-body {
    position: absolute; inset: 0;
    padding: .6rem .7rem;
    display: flex; flex-direction: column; justify-content: center;
}
.np-tile--noimg .np-tile-body .np-tile-title { color: #1A1208; }
.np-tile--noimg .np-tile-body .np-tile-excerpt { color: #4A3A2A; }
.np-tile--noimg .np-tile-body .np-tile-date { color: #8A7A6A; }

/* ═══════════════════════════════════════════════════════════
   TILE: INTERVIEW — dark text-heavy tall tile
   ═══════════════════════════════════════════════════════════ */
.np-tile--interview,
.np-tile--interview-lg {
    background: #1A1208;
    display: flex; flex-direction: column;
    padding: .5rem .7rem .6rem;
    color: #D5C8B0;
}
.np-tile--interview:hover,
.np-tile--interview-lg:hover { background: #241C10; color: #F5E6D3; }
.np-tile-tag {
    font-size: .52rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: #C0A880;
    margin-bottom: .35rem;
}
.np-tile-tag i { font-size: .65rem; margin-right: .15rem; }
.np-tile-artist {
    font-size: .95rem; font-weight: 800; color: #E8D5B0;
    font-family: Georgia, "Times New Roman", serif;
    margin-bottom: .15rem; line-height: 1.2;
    transition: color .15s;
}
.np-tile--interview:hover .np-tile-artist,
.np-tile--interview-lg:hover .np-tile-artist { color: #C0A880; }
.np-tile-subtitle {
    font-size: .56rem; color: #8A7A6A; text-transform: uppercase;
    letter-spacing: .05em; margin-bottom: .35rem;
}
.np-tile-quote {
    font-size: .7rem; color: #9A8A7A; line-height: 1.6;
    font-style: italic; margin: 0; flex: 1;
    overflow: hidden;
}
.np-tile-link {
    font-size: .54rem; font-weight: 700; color: #C0A880;
    text-transform: uppercase; letter-spacing: .08em;
    margin-top: .4rem; transition: color .15s;
}
.np-tile--interview:hover .np-tile-link,
.np-tile--interview-lg:hover .np-tile-link { color: #E0C890; }
.np-tile-link i { font-size: .5rem; }

/* ═══════════════════════════════════════════════════════════
   TILE: ALBUM COVER — image fill, hover info overlay (1×2 gap filler)
   ═══════════════════════════════════════════════════════════ */
.np-tile--cover,
.np-tile--cover-lg,
.np-tile--cover-xs { background: #E5DDD2; }

.np-tile--cover-xs {
    cursor: default;
    pointer-events: none;
}
.np-tile--cover-xs:hover { box-shadow: none; transform: none; }
.np-tile--cover-xs .np-tile-bg {
    object-fit: fill;
    object-position: center;
}

/* Background image that fills the cover tile */
.np-tile-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    transition: transform .4s ease;
}
.np-tile:hover .np-tile-bg { transform: scale(1.05); }

.np-tile-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(10,8,6,.92) 0%, rgba(10,8,6,.5) 60%, transparent 100%);
    padding: .7rem .6rem .55rem;
    opacity: 0; transition: opacity .25s;
}
.np-tile--cover:hover .np-tile-info,
.np-tile--cover-lg:hover .np-tile-info { opacity: 1; }

.np-tile-info .np-tile-title {
    font-size: .85rem; font-weight: 700; color: #fff; line-height: 1.25;
    margin: 0; font-family: Georgia, "Times New Roman", serif;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.np-tile-sub {
    font-size: .72rem; color: rgba(255,255,255,.75);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.np-tile-meta {
    display: inline-block;
    font-size: .7rem; color: rgba(255,255,255,.9);
    background: rgba(0,0,0,.55);
    border-radius: 3px;
    padding: .1rem .35rem;
    margin-top: .25rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   TILE: GAME PROMO — single card from /games
   ═══════════════════════════════════════════════════════════ */
.np-tile--game {
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.04) 0%, #0E0C0A 70%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: .35rem;
    text-decoration: none; color: #F2EDE6;
    border: 1px solid rgba(255,255,255,.1);
    padding: .5rem .4rem;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 8px rgba(0,0,0,.4);
    transition: border-color .2s, box-shadow .3s, transform .2s;
}
.np-tile--game:hover {
    border-color: var(--gm-color, #C9A227);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06),
                0 0 20px color-mix(in srgb, var(--gm-color, #C9A227) 25%, transparent),
                0 4px 16px rgba(0,0,0,.5);
    color: #F2EDE6;
    transform: translateY(-2px);
}
.np-game-logo {
    width: 80%; max-height: 36px;
    object-fit: contain;
    filter: invert(1) sepia(1) saturate(2) hue-rotate(-10deg) brightness(1.1);
    transition: filter .3s;
    margin-bottom: .3rem;
}
.np-tile--game:hover .np-game-logo {
    filter: invert(1) sepia(1) saturate(2.5) hue-rotate(-10deg) brightness(1.2);
}
.np-game-emoji { font-size: 1.3rem; line-height: 1; }
.np-game-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: .7rem; font-weight: 700; color: var(--gm-color, #C9A227);
    text-transform: uppercase; letter-spacing: .04em;
    line-height: 1.2;
}
.np-game-cta {
    font-size: .55rem; font-weight: 700; text-transform: uppercase;
    color: var(--gm-color, #C9A227); letter-spacing: .06em;
    opacity: 0; transition: opacity .2s;
}
.np-tile--game:hover .np-game-cta { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   PLAY BADGE — video overlay
   ═══════════════════════════════════════════════════════════ */
.np-play-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,.55); color: #fff;
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; pointer-events: none; z-index: 2;
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    transition: background .2s;
}
.np-tile--video:hover .np-play-badge { background: rgba(180,0,0,.75); }

/* ── Inline video player (iframe inside tile) ──────────── */
.np-tile--playing .np-tile-img-wrap { position: relative; }
.np-tile-iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0; border-radius: 0;
}
.np-tile--playing .np-play-badge { display: none; }
.np-tile-stop {
    position: absolute; top: 6px; right: 6px; z-index: 5;
    background: rgba(0,0,0,.6); color: #fff;
    border: none; border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; cursor: pointer;
    transition: background .15s;
}
.np-tile-stop:hover { background: rgba(180,0,0,.8); }

/* ═══════════════════════════════════════════════════════════
   TILE: PROMO VIDEO — vertical autoplay muted loop (9:16 ratio)
   ═══════════════════════════════════════════════════════════ */
.np-tile--promo-video {
    grid-column: span 2; grid-row: span 3;
    background: #000; border: 1px solid rgba(255,255,255,.08);
    overflow: hidden; position: relative;
}
.np-promo-media {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}
.np-promo-iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0; pointer-events: none;
}
.np-promo-poster {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.np-promo-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
    padding: .7rem .65rem .6rem;
    pointer-events: none; z-index: 2;
}
.np-promo-badge {
    display: inline-block;
    font-size: .5rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .1em; color: #E8954A;
    margin-bottom: .15rem;
}
.np-promo-title {
    font-family: Georgia, serif; font-size: .75rem; font-weight: 700;
    color: #fff; margin: 0; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-promo-mute-btn {
    position: absolute; bottom: .5rem; right: .5rem; z-index: 3;
    background: rgba(0,0,0,.6); color: #fff;
    border: none; border-radius: 50%;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; cursor: pointer;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    transition: background .15s;
}
.np-promo-mute-btn:hover { background: rgba(255,255,255,.25); }
.np-promo-link {
    position: absolute; top: .5rem; right: .5rem; z-index: 3;
    background: rgba(0,0,0,.5); color: rgba(255,255,255,.7);
    border-radius: 50%;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem; text-decoration: none;
    transition: background .15s, color .15s;
}
.np-promo-link:hover { background: rgba(0,0,0,.75); color: #fff; }

/* Promo portrait variant (YouTube Shorts — 9:16) */
.np-tile--promo-portrait { grid-column: span 1; grid-row: span 4; }
.np-tile--promo-portrait .np-promo-iframe {
    width: 300%; height: 100%;
    left: 50%; top: 0;
    transform: translateX(-50%);
}

/* Promo responsive: tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
    .np-tile--promo-video { grid-column: span 2; grid-row: span 2; }
    .np-tile--promo-portrait { grid-column: span 1; grid-row: span 4; }
}
/* Promo responsive: mobile */
@media (max-width: 575.98px) {
    .np-tile--promo-video { grid-column: span 2; grid-row: span 2; }
    .np-tile--promo-portrait { grid-column: span 1; grid-row: span 3; }
}

/* ─── INFINITE SCROLL / COLOPHON ─────────────────────────── */
.np-loading { text-align: center; padding: 1.5rem; color: #9B8B7B; font-size: .8rem; }
.np-sentinel { height: 1px; margin-top: .5rem; }
.np-colophon {
    text-align: center; padding: 1.2rem 0; border-top: 2px solid #2A1F14;
    margin-top: 1rem; display: none;
}
.np-colophon p { font-size: .65rem; color: #8A7A6A; letter-spacing: .12em; text-transform: uppercase; margin: 0; }

/* ─── EMPTY STATE ────────────────────────────────────────── */
.np-empty { text-align: center; padding: 4rem 1rem; }
.np-empty-icon { font-size: 3rem; color: #C0B0A0; display: block; margin-bottom: .75rem; }
.np-empty-text { color: #9B8B7B; font-size: .9rem; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   NEW RELEASES PAGE
   ═══════════════════════════════════════════════════════════ */

/* Page title */
.nrel-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-page-title, #5A4A3A);
    letter-spacing: -.02em;
    margin: 0;
}
.nrel-page-title i { color: var(--color-secondary, #8A7A6A); }
.nrel-count {
    font-size: .8rem;
    color: var(--color-secondary, #8A7A6A);
    font-weight: 500;
}

/* Header layout */
.nrel-header {
    border-bottom: 2px solid var(--color-table-border, #E5DDD2);
    padding-bottom: 1rem;
}
.nrel-header-top {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: .75rem;
}

/* Controls bar */
.nrel-controls {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

/* Pill buttons */
.nrel-pill-group {
    display: inline-flex;
    border: 1px solid var(--color-table-border, #D5C8B8);
    border-radius: 20px;
    overflow: hidden;
}
.nrel-pill-group .nrel-pill { border-radius: 0; border: none; }
.nrel-pill-group .nrel-pill + .nrel-pill { border-left: 1px solid var(--color-table-border, #D5C8B8); }

.nrel-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .85rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--color-text, #5A4A3A);
    background: transparent;
    border: 1px solid var(--color-table-border, #D5C8B8);
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
    line-height: 1.4;
}
.nrel-pill:hover {
    background: var(--color-table-border, #E5DDD2);
    color: var(--color-page-title, #3D2B1F);
    text-decoration: none;
}
.nrel-pill--active {
    background: var(--color-page-title, #5A4A3A);
    color: #fff;
    border-color: var(--color-page-title, #5A4A3A);
}
.nrel-pill--active:hover {
    background: var(--color-text, #3D2B1F);
    color: #fff;
}
.nrel-pill--reset {
    border-color: transparent;
    color: var(--color-secondary, #8A7A6A);
    font-weight: 500;
}
.nrel-pill--reset:hover { color: var(--color-page-title, #5A4A3A); }

/* Year selector row */
.nrel-year-selector {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .5rem;
    padding-left: .75rem;
    border-left: 1px solid var(--color-table-border, #D5C8B8);
}

/* Year dropdown */
.nrel-year-dropdown {
    max-height: 350px;
    overflow-y: auto;
    min-width: 140px;
}

/* Section titles */
.nrel-section-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--color-page-title, #5A4A3A);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .75rem;
}

/* Label group headings */
.nrel-label-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-page-title, #5A4A3A);
    border-bottom: 2px solid var(--color-table-border, #E5DDD2);
    padding-bottom: .4rem;
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.nrel-label-count {
    font-size: .7rem;
    font-weight: 600;
    background: var(--color-table-border, #D5C8B8);
    color: var(--color-page-title, #5A4A3A);
    padding: .15rem .55rem;
    border-radius: 10px;
}

.nrel-news-section {
    border-color: var(--color-table-border, #E5DDD2);
}

/* Mobile */
@media (max-width: 575.98px) {
    .nrel-header-top { flex-direction: column; gap: .25rem; }
    .nrel-controls { gap: .35rem; }
    .nrel-year-selector { margin-left: 0; padding-left: 0; border-left: none; flex-wrap: wrap; }
    .nrel-pill { padding: .3rem .65rem; font-size: .72rem; }
}
