/**
 * Retro Recordings XR — Console Brands Page
 *
 * Top horizontal brand nav + full-width content panels.
 * Fonts sized to match the rest of the site (homepage scale).
 *
 * @package    RetroRecordingsXR
 * @since      1.3.0
 */

/* ==========================================================================
   Layout Shell
   ========================================================================== */

.cb-layout {
    display: flex;
    flex-direction: column;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0 5rem;
}


/* ==========================================================================
   Top Brand Navigation
   ========================================================================== */

.cb-nav-wrap {
    position: sticky;
    top: 52px;
    z-index: 50;
    display: flex;
    align-items: stretch;
}

.cb-sidebar {
    flex: 1;
    min-width: 0;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0 2rem;
    scrollbar-width: none;
}

.cb-sidebar::-webkit-scrollbar { display: none; }

/* Scroll arrow buttons */
.cb-scroll-btn {
    flex-shrink: 0;
    width: 36px;
    background: rgba(26, 26, 26, 0.97);
    border: none;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
    cursor: pointer;
    color: rgba(244, 228, 215, 0.45);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    padding: 0;
    line-height: 1;
}

.cb-scroll-btn:hover {
    color: #e8a054;
    background: rgba(232, 160, 84, 0.06);
}

.cb-scroll-btn[hidden] {
    display: none;
}

.cb-scroll-left {
    border-right: 1px solid rgba(212, 165, 116, 0.1);
}

.cb-scroll-right {
    border-left: 1px solid rgba(212, 165, 116, 0.1);
}

.cb-sidebar-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(244, 228, 215, 0.28);
    white-space: nowrap;
    align-self: center;
    padding: 0 1.25rem 0 0;
    margin-right: 0.5rem;
    border-right: 1px solid rgba(212, 165, 116, 0.12);
    flex-shrink: 0;
    display: block;
}

.cb-brand-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    padding: 1.1rem 1.5rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(244, 228, 215, 0.5);
    line-height: 1.2;
    white-space: nowrap;
    text-align: left;
}

.cb-brand-btn-main {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.cb-brand-btn-flag {
    font-size: 0.85em;
    flex-shrink: 0;
    line-height: 1;
}

.cb-brand-logo {
    height: 22px;
    width: auto;
    max-width: 100px;
    display: block;
    /* grayscale+invert makes dark marks white; screen blend removes any bg */
    filter: grayscale(1) invert(1) brightness(1.15);
    mix-blend-mode: screen;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.cb-brand-btn:hover .cb-brand-logo {
    opacity: 1;
}

.cb-brand-btn.cb-active .cb-brand-logo {
    opacity: 1;
    filter: grayscale(1) invert(1) brightness(1.3);
}

/* Colour logos — keep original colours, no greyscale/invert */
.cb-brand-logo--color {
    filter: none;
    mix-blend-mode: normal;
    opacity: 0.75;
}

.cb-brand-btn:hover .cb-brand-logo--color,
.cb-brand-btn.cb-active .cb-brand-logo--color {
    filter: none;
    opacity: 1;
}

/* Colour logos with opaque white backgrounds — show on a white pill */
.cb-brand-logo--color-bg {
    filter: none;
    mix-blend-mode: normal;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 2px;
    padding: 2px 6px;
}

.cb-brand-btn:hover .cb-brand-logo--color-bg,
.cb-brand-btn.cb-active .cb-brand-logo--color-bg {
    opacity: 1;
    background: #ffffff;
}

/* White-fill logos on transparent bg — no invert, screen removes black bg */
.cb-brand-logo--white {
    filter: brightness(1.1);
    mix-blend-mode: screen;
    opacity: 0.7;
}

.cb-brand-btn:hover .cb-brand-logo--white,
.cb-brand-btn.cb-active .cb-brand-logo--white {
    opacity: 1;
    filter: brightness(1.3);
}

/* Brand name as block below logo row */
.cb-brand-btn-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(244, 228, 215, 0.6);
    margin-top: 0.3rem;
    white-space: nowrap;
}

.cb-brand-btn.cb-active .cb-brand-btn-name {
    color: rgba(232, 160, 84, 0.9);
}

.cb-brand-btn:hover .cb-brand-btn-name {
    color: rgba(244, 228, 215, 0.85);
}

.cb-brand-btn:hover {
    color: rgba(244, 228, 215, 0.9);
    border-bottom-color: rgba(232, 160, 84, 0.45);
    background: rgba(232, 160, 84, 0.04);
}

.cb-brand-btn.cb-active {
    color: #e8a054;
    border-bottom-color: #e8a054;
    background: rgba(232, 160, 84, 0.06);
    font-weight: 700;
}

.cb-brand-btn-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: rgba(244, 228, 215, 0.25);
    margin-top: 2px;
    font-weight: 400;
    display: block;
}

.cb-brand-btn.cb-active .cb-brand-btn-meta {
    color: rgba(232, 160, 84, 0.5);
}

@media (max-width: 700px) {
    .cb-nav-wrap { top: 48px; }
    .cb-sidebar { padding: 0 0.75rem; }
    .cb-sidebar-label { display: none; }
    .cb-brand-btn {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    .cb-brand-btn-meta { display: none; }
    .cb-brand-logo {
        height: 16px;
        max-width: 80px;
    }
    .cb-scroll-btn { width: 28px; font-size: 0.95rem; }
}


/* ==========================================================================
   Intro
   ========================================================================== */

.cb-intro {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
}

.cb-intro-copy {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.85;
    color: rgba(244, 228, 215, 0.55);
    margin: 0 0 1.25rem;
}

.cb-intro-cta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(232, 160, 84, 0.6);
    margin: 0;
}

.cb-intro-arrow {
    display: inline-block;
    animation: cb-arrow-bob 1.6s ease-in-out infinite;
}

@keyframes cb-arrow-bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(3px); }
}

@media (max-width: 700px) {
    .cb-intro { padding: 2rem 1.25rem 1.75rem; }
    .cb-intro-copy { font-size: 0.975rem; }
}


/* ==========================================================================
   Brand Panels
   ========================================================================== */

.cb-content {
    padding: 3.5rem 2.5rem 0;
}

@media (max-width: 700px) {
    .cb-content { padding: 2rem 1.25rem 0; }
}

.cb-panel {
    display: none;
    animation: cb-panel-in 0.3s ease forwards;
}

.cb-panel.cb-active {
    display: block;
}

@keyframes cb-panel-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   Brand Header
   ========================================================================== */

.cb-brand-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
}

/* Panel logo card — float top-right */
.cb-panel-logo-wrap {
    float: right;
    margin: 0 0 1.5rem 2.5rem;
    clear: right;
    border-radius: 2px;
}

.cb-panel-logo-wrap--white {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.85rem 1.25rem;
}

.cb-panel-logo-wrap--dark {
    background: #1a1a1a;
    border: 1px solid rgba(212, 165, 116, 0.2);
    padding: 0.85rem 1.25rem;
}

/* Base panel logo */
.cb-panel-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: 240px;
}

/* Dark card default: invert dark marks to white/light */
.cb-panel-logo-wrap--dark .cb-panel-logo {
    filter: grayscale(1) invert(1) brightness(1.2);
    mix-blend-mode: screen;
    opacity: 0.9;
}

/* Dark card + colour logo (transparent bg): original colours */
.cb-panel-logo-wrap--dark .cb-panel-logo--color,
.cb-panel-logo-wrap--dark .cb-panel-logo--color-bg {
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
}

/* Dark card + white-fill / dark-bg logos: screen blend only */
.cb-panel-logo-wrap--dark .cb-panel-logo--white {
    filter: brightness(1.15);
    mix-blend-mode: screen;
    opacity: 0.92;
}

/* White card: show original marks as-is */
.cb-panel-logo-wrap--white .cb-panel-logo {
    filter: none;
    mix-blend-mode: normal;
    opacity: 1;
}

@media (max-width: 700px) {
    .cb-panel-logo-wrap {
        float: none;
        margin: 0 0 1.25rem 0;
        display: inline-block;
    }
    .cb-panel-logo { height: 40px; }
}

.cb-brand-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #e8a054;
    margin-bottom: 0.6rem;
    display: block;
}

.cb-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #f4e4d7;
    line-height: 1;
    margin: 0 0 0.5rem;
}

.cb-brand-tagline {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: rgba(244, 228, 215, 0.45);
    margin: 0;
}


/* ==========================================================================
   Brand Story
   ========================================================================== */

.cb-brand-story {
    margin-bottom: 3rem;
    max-width: 820px;
}

.cb-brand-story p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(244, 228, 215, 0.72);
    margin-bottom: 1.1rem;
    font-weight: 300;
}

.cb-brand-story p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Console Cards
   ========================================================================== */

.cb-console-heading {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(244, 228, 215, 0.3);
    margin-bottom: 1.25rem;
    display: block;
}

.cb-console-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cb-console-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0 2rem;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 2px;
    padding: 1.75rem;
    transition: border-color 0.2s ease;
}

.cb-console-card:hover {
    border-color: rgba(212, 165, 116, 0.25);
}

/* Image column (left) */
.cb-console-media {
    grid-row: 1 / 20;
    align-self: start;
}

/* Content column (right) */
.cb-console-body {
    min-width: 0;
}

@media (max-width: 700px) {
    .cb-console-card {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }
    .cb-console-media {
        grid-row: auto;
        margin-bottom: 1.25rem;
    }
}

.cb-console-model {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #f4e4d7;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.cb-console-years {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #e8a054;
    display: block;
    margin-bottom: 0.9rem;
}

.cb-console-story {
    font-size: 0.975rem;
    line-height: 1.75;
    color: rgba(244, 228, 215, 0.58);
    margin-bottom: 1.1rem;
    font-weight: 300;
}

.cb-console-list-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(244, 228, 215, 0.28);
    display: block;
    margin-bottom: 0.4rem;
}

.cb-console-recordings,
.cb-console-studios {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem;
}

.cb-console-recordings li,
.cb-console-studios li {
    font-size: 0.875rem;
    color: rgba(244, 228, 215, 0.55);
    padding: 0.2rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.cb-console-recordings li::before {
    content: '♪';
    position: absolute;
    left: 0;
    color: rgba(232, 160, 84, 0.45);
    font-size: 9px;
    top: 0.28rem;
}

.cb-console-studios li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: rgba(212, 165, 116, 0.35);
    font-size: 7px;
    top: 0.32rem;
}


/* ==========================================================================
   Console Card — Image
   ========================================================================== */

.cb-console-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 2px;
    overflow: hidden;
}

.cb-console-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cb-console-image img:hover {
    transform: scale(1.03);
}

/* ==========================================================================
   Console gallery — multi-image lightbox slideshow
   --------------------------------------------------------------------------
   .cb-console-gallery wraps the primary image + hidden gallery siblings.
   The primary image is wrapped in an <a class="glightbox"> with a badge
   overlay showing the total photo count.
   ========================================================================== */

.cb-console-gallery {
    position: relative;
}

.cb-gallery-trigger {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.cb-gallery-trigger:focus-visible {
    outline: 2px solid rgba(232, 160, 84, 0.8);
    outline-offset: 2px;
}

.cb-gallery-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: rgba(20, 18, 16, 0.85);
    border: 1px solid rgba(212, 165, 116, 0.35);
    color: rgba(244, 228, 215, 0.92);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s;
    pointer-events: none; /* badge is decorative — the <a> handles click */
}

.cb-gallery-badge-icon {
    color: rgba(232, 160, 84, 1);
    font-size: 8px;
    line-height: 1;
}

.cb-gallery-trigger:hover .cb-gallery-badge {
    background: rgba(20, 18, 16, 0.95);
    border-color: rgba(232, 160, 84, 0.6);
}

/* Hidden gallery siblings — GLightbox picks them up by data-gallery */
.cb-gallery-item-hidden {
    display: none;
}

/* Placeholder shown when no image is set */
.cb-console-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(20, 18, 16, 0.6);
}

.cb-console-image-placeholder-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 165, 116, 0.06);
    border: 1px solid rgba(212, 165, 116, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 165, 116, 0.25);
    font-size: 1.1rem;
    line-height: 1;
}

.cb-console-image-placeholder-filename {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.08em;
    color: rgba(244, 228, 215, 0.15);
    text-align: center;
    padding: 0 0.75rem;
    word-break: break-all;
    line-height: 1.6;
}


/* ==========================================================================
   Console Card — Specs Bar
   ========================================================================== */

.cb-console-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    margin: 0.9rem 0 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(212, 165, 116, 0.08);
}

.cb-spec-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.cb-spec-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244, 228, 215, 0.5);
    flex-shrink: 0;
    font-weight: 500;
}

.cb-spec-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(244, 228, 215, 0.88);
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 2px;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
    font-weight: 500;
}

/* Known-for chips */
.cb-console-known-for {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
}

.cb-known-for-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.09em;
    color: #e8a054;
    background: rgba(232, 160, 84, 0.09);
    border: 1px solid rgba(232, 160, 84, 0.28);
    border-radius: 2px;
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
    font-weight: 500;
}


/* ==========================================================================
   Console Card — PDF Link
   ========================================================================== */

.cb-console-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: #e8a054;
    background: rgba(232, 160, 84, 0.07);
    border: 1px solid rgba(232, 160, 84, 0.25);
    border-radius: 2px;
    padding: 0.3rem 0.7rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cb-console-pdf-link:hover {
    background: rgba(232, 160, 84, 0.14);
    border-color: rgba(232, 160, 84, 0.45);
    color: #e8a054;
    text-decoration: none;
}


/* ==========================================================================
   Vintage ads — brand-level strip (above console grid)
   --------------------------------------------------------------------------
   Horizontal scrollable row of vintage magazine ads per brand.
   Each thumbnail opens in GLightbox (grouped by brand-specific gallery id).
   ========================================================================== */

.cb-vintage-ads {
    margin: 1.4rem 0 2rem;
    padding: 1.1rem 0 1.2rem;
    border-top: 1px solid rgba(212, 165, 116, 0.12);
    border-bottom: 1px solid rgba(212, 165, 116, 0.12);
}

.cb-vintage-ads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding: 0 0.15rem;
}

.cb-vintage-ads-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e8a054;
    font-weight: 600;
}

.cb-vintage-ads-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(244, 228, 215, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cb-vintage-ads-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.6rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 165, 116, 0.3) transparent;
}

.cb-vintage-ads-strip::-webkit-scrollbar { height: 6px; }
.cb-vintage-ads-strip::-webkit-scrollbar-track { background: transparent; }
.cb-vintage-ads-strip::-webkit-scrollbar-thumb {
    background: rgba(212, 165, 116, 0.3);
    border-radius: 3px;
}

.cb-vintage-ad {
    flex: 0 0 auto;
    width: 140px;
    aspect-ratio: 3 / 4;
    position: relative;
    background: #1a1a1a;
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: zoom-in;
    scroll-snap-align: start;
    transition: border-color 0.25s, transform 0.25s, filter 0.25s;
    /* Dim by default — ads shouldn't dominate the page, only hint at content */
    filter: brightness(0.72) saturate(0.8) contrast(0.95);
}

.cb-vintage-ad:hover {
    border-color: rgba(232, 160, 84, 0.5);
    transform: translateY(-2px);
    filter: brightness(1) saturate(1) contrast(1);
}

.cb-vintage-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cb-vintage-ad-year {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(20, 18, 16, 0.88);
    color: rgba(244, 228, 215, 0.9);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 2px 6px;
    border-radius: 2px;
    pointer-events: none;
}


/* ==========================================================================
   Vintage ads — per-console strip (under console card body)
   --------------------------------------------------------------------------
   Smaller, more compact strip shown inside individual console cards when
   a specific model has model-linked ads.
   ========================================================================== */

.cb-console-ads {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(212, 165, 116, 0.08);
}

.cb-console-ads-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e8a054;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.cb-console-ads-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 165, 116, 0.25) transparent;
}

.cb-console-ad {
    flex: 0 0 auto;
    width: 82px;
    aspect-ratio: 3 / 4;
    position: relative;
    background: #1a1a1a;
    border: 1px solid rgba(212, 165, 116, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: zoom-in;
    transition: border-color 0.25s, transform 0.25s, filter 0.25s;
    filter: brightness(0.72) saturate(0.8) contrast(0.95);
}

.cb-console-ad:hover {
    border-color: rgba(232, 160, 84, 0.5);
    transform: translateY(-2px);
    filter: brightness(1) saturate(1) contrast(1);
}

.cb-console-ad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cb-console-ad-year {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(20, 18, 16, 0.88);
    color: rgba(244, 228, 215, 0.9);
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.08em;
    padding: 1px 4px;
    border-radius: 2px;
    pointer-events: none;
}

/* Spread (two-page) ad — wider thumbnail to hint at its layout */
.cb-console-ad--spread {
    width: 164px;        /* ~2× the normal 82px */
    aspect-ratio: 3 / 2; /* wider, landscape */
}

.cb-console-ad-spread-badge {
    position: absolute;
    top: 3px;
    left: 3px;
    background: rgba(232, 160, 84, 0.9);
    color: #1a1a1a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
    line-height: 1.4;
    border-radius: 2px;
    pointer-events: none;
}


/* ==========================================================================
   No-JS Fallback
   ========================================================================== */

.cb-noscript-note {
    background: rgba(232, 160, 84, 0.08);
    border: 1px solid rgba(232, 160, 84, 0.2);
    padding: 0.9rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(244, 228, 215, 0.5);
    margin: 0 2rem 1.5rem;
    border-radius: 2px;
}
