:root {
    --bg: #05070a;
    --bg-alt: #0d1117;
    --card-bg: #111827;
    --accent: #e11d48;
    --accent-soft: rgba(225, 29, 72, 0.12);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: #1f2933;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --transition-fast: 0.18s ease-out;
    --content-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 12px 16px 40px;
}

/* Brand and Logo */

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* important */
    justify-content: center;
    gap: 2px;               /* tighter = less dead air */
}


.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 35px; 
    width: auto;
    display: block;
}

.brand-tagline {
    font-size: 11px;
    line-height: 1.1;
    margin-top: -2px; /* subtle, intentional pull */
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.06em;
}

/* Tablet */
@media (max-width: 768px) {
    .site-logo img {
        height: 40px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .site-logo img {
        height: 44px;
    }

    .brand-tagline {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .site-logo img {
        height: 38px;
    }
}

/* HEADER & NAV ----------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(9px);
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.3));
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-spacer {
    flex: 1 1 auto;
}

.site-nav {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.site-nav a {
    padding: 6px 0;
    font-weight: 500;
    color: #e5e7eb;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.site-nav a:hover {
    color: #f9fafb;
    border-color: var(--accent);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--text-main);
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-main);
    margin: 4px 0;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

/* HEADER SEARCH ----------------------------------- */

.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

/* Visually hidden but accessible label */
.header-search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Reuse .filter-select pill styling for input + select */
.header-search-input {
    min-width: 180px;
    max-width: 220px;
}

/* Narrower pill for the mode dropdown */
.header-search-mode {
    min-width: 130px;
}

/* Submit button – same pill language as your archive/jump buttons */
.header-search-submit {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    cursor: pointer;
    transition:
        background 0.18s ease-out,
        border-color 0.18s ease-out,
        transform 0.18s ease-out;
}

.header-search-submit:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(248, 250, 252, 0.75);
    transform: translateY(-1px);
}

/* Search keyword highlighting */
.search-hit {
    background-color: rgba(250, 204, 21, 0.35); /* soft amber */
    border-radius: 3px;
    padding: 0 2px;
}


/* RESPONSIVE: stack neatly under the header on mobile */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        align-items: center;
    }

    .header-search {
        order: 3;              /* ensure it comes under nav toggle */
        width: 100%;
        margin-top: 6px;
        justify-content: flex-start;
    }

    .header-search-input {
        flex: 1 1 auto;
        max-width: none;
    }

    /* Optional: hide mode dropdown on very small screens to keep it simple */
    .header-search-mode {
        display: none;
    }
}

/* HERO ----------------------------------- */
.hero {
    margin-top: 16px;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, var(--accent-soft), #020617 55%, #020617 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 3fr);
	
    /* New: fade-in on load */
    opacity: 0;
    animation: heroFadeIn 0.6s ease-out forwards;	
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr);
}

.hero-media {
    position: relative;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.5), rgba(0,0,0,0.15));
}

.hero-content {
    padding: 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--text-muted);
    max-width: fit-content;
}

.hero-label span.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.hero-title {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 0.25rem;	
}

.hero-title a {
    text-decoration: none;
    color: inherit;
}

.hero-title-date {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-meta-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 10px;
}

.hero-excerpt {
    font-size: 13px;
    color: #e5e7eb;
    line-height: 1.4;

    /* Force a consistent 3-line block height (prevents “jumping”) */
    min-height: calc(1.4em * 3);
    max-height: calc(1.4em * 3);
    overflow: hidden;

    /* Clamp long text to 3 lines (nice truncation in WebKit) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    /* Let the H2 behave normally */
    .hero-title {
        display: block;
        overflow: visible;
        min-height: 0;
        max-height: none;
        line-height: 1.15;
    }

    /* Clamp ONLY the clickable title text */
    .hero-title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;

        /* Reserve space for 2 lines (prevents jumping) */
        min-height: calc(1.15em * 2);
        max-height: calc(1.15em * 2);
    }

    /* Date always sits below, unaffected by clamp */
    .hero-title-date {
        display: block;
        margin-top: 0.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero {
        animation: none !important;
        opacity: 1 !important;
    }
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast),
                transform var(--transition-fast),
                box-shadow var(--transition-fast),
                border-color var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, #fb923c, #e11d48);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.8);
    text-decoration: none;
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.btn-ghost:hover {
    background: rgba(15, 23, 42, 1);
    text-decoration: none;
}

.article-buy-btn--steelbook {
    background: linear-gradient(135deg, #3b3b3b, #1f1f1f);
    border-color: #bfa14a;
    box-shadow: 0 0 0 1px rgba(191,161,74,.35);
}

.article-buy-btn--steelbook:hover {
    background: linear-gradient(135deg, #444, #262626);
}

.article-buy-btn--limited {
    border-left: 4px solid #8b1d18;
    box-shadow: inset 0 0 0 1px rgba(139,29,24,.35);
}

.article-buy-btn--limited:hover {
    background: linear-gradient(135deg, #2a1616, #1f1111);
}

.article-buy-btn--collector {
    border-left: 4px solid #6e629a;
    background: linear-gradient(180deg, #2a263d, #1f1c30);
    box-shadow:
        inset 0 0 0 1px rgba(110,98,154,.35),
        inset 0 0 12px rgba(201,176,106,.12);
}

.article-buy-btn--collector:hover {
    background: linear-gradient(135deg, #34305a, #232043);
}

.article-genre-pills {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.article-genre-pills li {
    display: inline-flex;
    align-items: center;

    padding: 3px 8px;
    border-radius: 999px;

    font-size: 10px;
    line-height: 1;

    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;

    white-space: nowrap;
}

.article-genre-pills a {
    text-decoration: none;
    color: inherit;
}

.article-genre-pills li:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(248, 250, 252, 0.75);
    transform: translateY(-1px);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;

    font-size: 2.4rem;
    line-height: 1;
    padding: 0.4rem 0.7rem;

    background: rgba(255, 255, 255, 0.55);
    color: #111;
    border-radius: 4px;

    cursor: pointer;
    z-index: 3;
    transition: background 0.2s, color 0.2s;
}

/* Hero-specific disc format labels */
.hero-label-format {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);

    padding: 0.15rem 0.45rem;
    border-radius: 10px;

    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    margin-left: 0.4rem;

    line-height: 1;
}

/* =========================================================
   HERO CAROUSEL (consolidated)
   ========================================================= */

.hero.hero--carousel {
    position: relative;
    overflow: hidden; /* needed for blur + edge clipping */
}

.hero--carousel .hero-carousel {
    position: relative;
    z-index: 1; /* sits above the blurred bg layer */
}

/* Slides */
.hero-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.hero-slide.is-active {
    display: block;
    opacity: 1;
}

/* Keep your hero grid layout stable per slide */
.hero-slide .hero-inner {
    height: 100%;
}

/* Nav arrows */
.hero--carousel .hero-nav {
    position: absolute;
    top: 40%;             /* your “lifted” default */
    transform: translateY(-50%);
    z-index: 3;
}

@media (max-width: 480px) {
    .hero--carousel .hero-nav {
        top: 25%;
        transform: translateY(-50%);
    }
}

/* Format icon – ONE source of truth */
.hero-format-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
    vertical-align: middle;
    margin-left: 0; /* keep your intent explicit */
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #000;
}

.hero-nav--prev {
    left: 0.75rem;
}

.hero-nav--next {
    right: 0.75rem;
}

/* Dots – sit BELOW the hero content, no overlap */
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0 0.25rem;  /* space above/below */
}

/* On mobile, full-width and centred (same) */
@media (max-width: 768px) {
    .hero-dots {
        padding-top: 0.5rem;
    }
}

/* On mobile: show only format icon, hide the label text */
@media (max-width: 480px) {
    .hero-label-format {
        gap: 0; /* tighten space around icon */
    }

    .hero-label-format img.hero-format-icon {
        margin-right: 0;
    }

    /* Hide all text nodes inside the badge */
    .hero-label-format {
        font-size: 0; /* hides text but keeps element size */
    }

    .hero-label-format img.hero-format-icon {
        width: 20px;
        height: 20px;
    }
}

/* Dot styling */
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.hero-dot.is-active {
    background: rgba(255, 255, 255, 1);
}

/* Hero status badge: Coming soon / Out now */
.hero-status-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.6rem;

    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;

    border-radius: 999px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    z-index: 2;
}

/* Variant colours – tweak to match your palette */
.hero-status-badge--soon {
    background: #c0392b;   /* warm/red for Coming soon */
}

.hero-status-badge--out {
    background: #1e8449;   /* green for Out now */
}

/* -------------------------------------------------------------
   HERO – ambient colour glow behind carousel
   ------------------------------------------------------------- */

/* Blurred “ambient” background derived from current slide image */
.hero-bg-blur {
    position: absolute;
    inset: -40px;                     /* bleed out a bit for a soft edge */
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    transform: scale(1.1);            /* avoid sharp edges from blurring */
    opacity: 0.6;
    z-index: 0;
}

/* Keep the real carousel content above the blur */
.hero--carousel .hero-carousel {
    position: relative;
    z-index: 1;
}

/* LAYOUT GRID ----------------------------------- */
.layout {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

/* Extra breathing room between the first card grid and the second section block */
.main-column section .card-grid + .section-header {
    margin-top: 1.5rem;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;              
}

.section-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;         
}

.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.card {
    display: flex;
    gap: 12px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 10px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
    border-color: rgba(248, 250, 252, 0.18);
    text-decoration: none;
}

.card-media {
    flex: 0 0 90px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.card-spotlight-badge {
    position: absolute;
    top: 1px;
    left: 1px;

    display: inline-flex;
    align-items: center;
    gap: 4px;

    padding: 2px 6px;
    border-radius: 999px;

    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #111827;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    box-shadow: 0 4px 10px rgba(0,0,0,0.45);
    z-index: 2;
}

.card-spotlight-icon {
    font-size: 0.8rem;
}

.card-spotlight-label {
    white-space: nowrap;
}

.card-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit; /* ensures corners stay clipped */
    object-fit: cover;      /* prevents distortion */
}

/* "New/Updated" pill badge – bottom centre of the image */
.card-media .card-badge{
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;

    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;

    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    backdrop-filter: blur(6px);
}

.card-media .card-badge--updated{
    background: rgba(255,255,255,.92);
    color: #111;
    border: 1px solid rgba(0,0,0,.18);
}

.card-media .card-badge--new{
    background: #111;
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
}

@media (max-width: 520px){
    .card-media .card-badge{
        bottom: 6px;
        font-size: .65rem;
        padding: 3px 8px;
        max-width: calc(100% - 12px);
    }
}

.card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.card-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.card-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-rating {
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.card-excerpt {
    margin-top: 0.4rem;
    margin-bottom: 0.25rem;   /* smaller bottom padding */
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 3;     /* was 2 — now 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tag{
    display:inline-flex;
    align-items:center;
    padding:2px 6px;
    border-radius:999px;
    font-size:10px;
    white-space:nowrap;
}

.card-tag--steelbook{
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.65);
    color: #dbeafe;
}

.card-tag--collector{
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.65);
    color: #f5d0fe;
}

.card-tag--limited{
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.65);
    color: #ffedd5;
}

.card-tag--exclusive{
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.65);
    color: #dcfce7;
}

.card-tag--highlight {
    background: rgba(56, 189, 248, 0.14);   /* cyan */
    border: 1px solid rgba(56, 189, 248, 0.7);
    color: #e0f2fe;
}

.card-tag--info {
    background: rgba(148, 163, 184, 0.14);  /* slate */
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: #e5e7eb;
}

.card-spotlight-badge--top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}

.card-spotlight-badge--top .sidebar-card-tag { pointer-events: auto; }
.card--chart .card-media { position: relative; }
.card--nolink { cursor: default; }

.score-sub, .meta-sub {
    font-size: 0.8em;
    opacity: 0.8;
    margin-left: 0.25rem;
}

/* Freshness colouring for last visited */
.score-fresh .score-label,
.score-fresh .score-value {
    /* e.g. green-ish */
    color: #00c853;
}

.score-recent .score-label,
.score-recent .score-value {
    /* e.g. amber-ish */
    color: #ffb300;
}

.score-stale .score-label,
.score-stale .score-value {
    /* e.g. muted / grey */
    color: #b0bec5;
}

.pill-coming-soon{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:2px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:600;
    letter-spacing:.02em;
    border:1px solid rgba(251, 191, 36, .55);
    background: rgba(251, 191, 36, .12);
    color: #fde68a;
}
/* ----------------------*/
/* Review page           */
/* --------------------- */

.layout-reviews .main-column {
    gap: 0;
}

.review-filters {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.review-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.review-filter-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #999;
}

.review-filter-form select {
    background: #1a1a1a;
    color: #e6e6e6;
    border: 1px solid #444;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
	height: 38px;
}

.review-filter-form select option {
    background: #1a1a1a;
    color: #e6e6e6;
}

.review-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.review-az-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    color: inherit;
    transition: background 0.2s ease, transform 0.2s ease;
}

.review-az-link:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
}

.review-az-link.is-active {
    background: var(--accent, #c62828);
    color: #fff;
}

.review-filter-form select {
    min-width: 220px;
    max-width: 320px;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: inherit;
}

.reviews-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
	padding-bottom: 10px;
}

.article-card.review-filter-card {
    margin: 0;
    padding: 0.35rem 1rem 0.35rem;
}

.reviews-stack .section-header--tight {
    margin: 0;
}

.review-filter-card .review-filter-group {
    margin: 0.2rem 0;
}

.review-filter-card .review-az-nav {
    gap: 0.35rem;
}

.review-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.review-az-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;

    text-decoration: none;
    color: inherit;

    background: rgba(255,255,255,0.05);

    opacity: 0.65;
    transition: all 0.15s ease;
}

.review-az-link:hover {
    opacity: 1;
    background: rgba(255,255,255,0.12);
    transform: translateY(-1px);
	text-decoration: none !important;
}

.review-az-link.is-active {
    opacity: 1;
    background: var(--accent, #c62828);
    color: #fff;
    cursor: default;
    pointer-events: none;	
}

.review-az-link.is-disabled {
    opacity: 0.25;
    pointer-events: none;
    background: rgba(255,255,255,0.02);
}

@media (max-width: 600px) {
    .review-az-link {
        min-width: 1.9rem;
        padding: 0.35rem 0.55rem;
        font-size: 0.9rem;
    }
}

.review-reset::before {
    content: "✕ ";
    opacity: 0.7;
}

.review-reset {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    color: #bbb;
    text-decoration: none;
}

.review-reset:hover {
    color: #fff;
    text-decoration: none;
}

.pagination {
    margin-top: 1.5rem;
}

.pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination-link {
    text-decoration: none;
}

.pagination-current {
    opacity: 0.85;
}

.section-header--tight {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* --------------------- */
/* News archive controls */
/* --------------------- */

.archive-controls {
    margin: 0.75rem 0 1.25rem;
}

.archive-month-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Base pill style for ALL month buttons */
.archive-month-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 5px 12px;
    border-radius: 999px;

    background: rgba(30, 41, 59, 0.85); /* slate-800 with translucency */
    border: 1px solid rgba(148, 163, 184, 0.35); /* slate-400 subtle border */

    color: #e5e7eb;
    font-size: 0.8rem;
    text-decoration: none;

    transition:
        background 0.18s ease-out,
        border-color 0.18s ease-out,
        transform 0.18s ease-out;
}

/* Hover */
.archive-month-pill:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(248, 250, 252, 0.6);
    transform: translateY(-1px);
}

/* Active month — slightly lighter & more prominent */
.archive-month-pill.is-active {
    background: rgba(148, 163, 184, 0.25); /* lighter slate translucent */
    border-color: rgba(248, 250, 252, 0.9);
}

/* Label text inside the pill */
.archive-month-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
}

/* Count badge inside the pill */
.archive-month-count {
    background: rgba(255,255,255,0.12);
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Year/month selects */
.archive-year-month-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin: 0 0 1rem;
}

.archive-select {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.archive-select-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.archive-select select {
    background: var(--card-bg);
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 4px 10px;
    font-size: 0.85rem;
    color: #e5e7eb;
}

/* Inside components */
.archive-month-label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
}

.archive-month-count {
    background: rgba(255,255,255,0.08);
    padding: 0 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    opacity: 0.9;
}

.archive-controls .archive-month-pill {
    text-decoration: none !important;
}

.archive-controls .archive-month-pill:hover {
    text-decoration: none !important;
}

/* Archive controls: no underlines */
.archive-controls .archive-month-pill,
.archive-controls .archive-month-pill:hover,
.archive-controls .archive-jump-link,
.archive-controls .archive-jump-link:hover {
    text-decoration: none;
}

/* Layout: months on the left, jump button on the right (wrap on mobile) */
.archive-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.75rem 0 1.25rem;
}

.archive-controls-actions {
    flex: 0 0 auto;
}

/* Jump button – match existing pill/button look */
.archive-jump-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 5px 12px;
    border-radius: 999px;

    font-size: 0.8rem;
    letter-spacing: 0.03em;

    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;

    transition:
        background 0.18s ease-out,
        border-color 0.18s ease-out,
        transform 0.18s ease-out;
}

.archive-jump-link:hover {
    background: rgba(248, 250, 252, 0.08);
    border-color: rgba(248, 250, 252, 0.85);
    transform: translateY(-1px);
}

/* YEAR OVERVIEW GRID ----------------------------------- */

.year-overview {
    margin: 1.0rem 0 1.25rem;
}

.year-overview-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.year-overview-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
}

.year-overview-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 6px 4px;
    border-radius: 10px;
    font-size: 0.7rem;

    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
    text-decoration: none;

    transition:
        background 0.18s ease-out,
        border-color 0.18s ease-out,
        transform 0.18s ease-out,
        color 0.18s ease-out;
}

.year-overview-month:hover {
    background: rgba(15, 23, 42, 1);
    border-color: rgba(248, 250, 252, 0.7);
    transform: translateY(-1px);
    text-decoration: none;
}

.year-overview-month.is-current {
    background: rgba(248, 250, 252, 0.10);
    border-color: rgba(248, 250, 252, 0.85);
}

.year-overview-month--empty {
    background: rgba(15, 23, 42, 0.5);
    border-style: dashed;
    border-color: rgba(100, 116, 139, 0.5);
    color: #6b7280;
}

.year-overview-month--empty:hover {
    transform: none;
    border-color: rgba(100, 116, 139, 0.5);
}

.year-overview-month-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.year-overview-month-count {
    font-size: 0.65rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* On narrow screens, stack to 4 columns */
@media (max-width: 600px) {
    .year-overview-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* MONTH NAVIGATION ----------------------------------- */

.archive-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.5rem 0 1rem;
}

.archive-month-nav-spacer {
    flex: 1 1 auto;
}

.archive-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 4px 10px;
    border-radius: 999px;

    font-size: 0.8rem;
    letter-spacing: 0.03em;

    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
    text-decoration: none;

    transition:
        background 0.18s ease-out,
        border-color 0.18s ease-out,
        transform 0.18s ease-out;
}

.archive-nav-link:hover {
    background: rgba(248, 250, 252, 0.08);
    border-color: rgba(248, 250, 252, 0.85);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Mobile: center the nav buttons */
@media (max-width: 680px) {
    .archive-month-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .archive-month-nav-spacer {
        display: none;
    }

    .archive-nav-link {
        justify-content: center;
    }
}

/* ------------------------- */
/* Release calendar sections */
/* ------------------------- */

.release-week {
    margin-top: 1.5rem;
}

.release-week {
    margin-bottom: 1.75rem;
}

.release-week--past {
    opacity: 0.85;
}

.release-week--current {
    /* subtle emphasis + prepare for animation */
    position: relative;
    animation: calendarCurrentWeekFade 0.6s ease-out both;
}

.release-week--current .section-header {
    border-left: 3px solid rgba(56, 189, 248, 0.9);
    padding-left: 8px;
}

/* Fade-in for current week */
@keyframes calendarCurrentWeekFade {
    from {
        opacity: 0;
        transform: translateY(10px);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.7);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        box-shadow: none;
    }
}

/* Slightly smaller sub-headers inside calendar */
.section-header.section-header--sub {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
    
/* Optional: tone down past weeks a tiny bit */
.release-week--past {
    opacity: 0.95;
}

/* Filter bar (used on calendar / collections etc.) */
.section-header--with-filters {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px 14px;
}

/* Put the filter on its own line, right aligned */
.section-header--with-filters .filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;

    /* full-width row inside the header */
    flex: 0 0 100%;
    justify-content: flex-end;

    /* don’t push other items around */
    margin-left: 0;
}

/* On small screens, let it sit underneath, left-aligned */
@media (max-width: 768px) {
    .section-header--with-filters {
        align-items: flex-start;
    }

    .section-header--with-filters .filter-bar {
        justify-content: flex-start;
        margin-top: 4px;
    }
}

.filter-label {
    font-size: 11px;
    color: var(--text-muted);
    padding-right: 4px; /* space between label text and select */
}

.filter-label-text {
    padding-right: 0.5rem;   /* tweak to taste */
    display: inline-block;   /* ensures padding is respected */
}

.filter-select {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
}

/* On small screens, stack nicely */
@media (max-width: 768px) {
    .section-header--with-filters {
        align-items: flex-start;
    }

    .filter-bar {
        margin-left: 0;
        margin-top: 4px;
    }
}

/* ---------------------------- */
/* PAGINATION — unified version */
/* ---------------------------- */

.pagination {
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    width: 100%;
    padding: 10px 12px 6px;

    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-top: 1px solid rgba(148, 163, 184, 0.20);
}

.pagination-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;

    padding: 5px 12px;
    border-radius: 999px;

    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #e5e7eb;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-decoration: none;

    transition:
        background 0.18s ease-out,
        border-color 0.18s ease-out,
        transform 0.18s ease-out;
}

.pagination-link:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(248, 250, 252, 0.6);
    transform: translateY(-1px);
    text-decoration: none;
}

.pagination-link-active,
.pagination-link.is-active {
    background: rgba(248, 250, 252, 0.10);
    border-color: rgba(248, 250, 252, 0.85);
}

.pagination-info {
    font-size: 0.75rem;
    opacity: 0.7;
    white-space: nowrap;
}

/* Make FIRST / PREV / NEXT / LAST identical to normal buttons */
.pagination-link-first,
.pagination-link-prev,
.pagination-link-next,
.pagination-link-last {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
    color: #e5e7eb !important;
}

/* Hover behaviour identical too */
.pagination-link-first:hover,
.pagination-link-prev:hover,
.pagination-link-next:hover,
.pagination-link-last:hover {
    background: rgba(30, 41, 59, 1) !important;
    border-color: rgba(248, 250, 252, 0.6) !important;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Remove unwanted fading in Safari/Chrome for « and » */
.pagination-link-first,
.pagination-link-prev,
.pagination-link-next,
.pagination-link-last {
    font-weight: 500;
    opacity: 1 !important;
}


/* Mobile: stack & centre */
@media (max-width: 680px) {
    .pagination {
        justify-content: center;
        text-align: center;
        gap: 6px;
        padding: 12px 10px;
    }

    .pagination-links {
        justify-content: center;
        width: 100%;
    }
}

/* SIDEBAR ----------------------------------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
	margin-top: 2rem;	/* test */
}

.widget {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.widget-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-list li + li {
    margin-top: 6px;
}

.widget-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
}

.widget-item span {
    color: var(--text-muted);
    font-size: 11px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

/* Tag cloud links – behave like site buttons, not text links */
.tag-cloud a,
.tag-cloud a:hover {
    text-decoration: none;
    color: inherit;
}

/* Optional: add subtle hover lift like other pills */
.tag-cloud a.tag {
    transition:
        background 0.18s ease-out,
        border-color 0.18s ease-out,
        transform 0.18s ease-out;
}

.tag-cloud a.tag:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(248, 250, 252, 0.75);
    transform: translateY(-1px);
}

/* Tags hub: space between group cards */
.tag-hub-card {
    margin-top: 14px;
}

/* Optional: make the tag cloud breathe a bit on the hub */
.tag-hub-card .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Selected tag (used by charts genre filter) */
.tag.is-active,
.tag-cloud a.tag.is-active {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(248, 250, 252, 0.75);
}

/* NEWS ARCHIVE SIDEBAR ----------------------------------- */

.sidebar-card-archive .sidebar-card-body {
    padding-top: 2px;
}

/* Turn the archive list into a 2-column grid */
.sidebar-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

/* Individual year tile */
.sidebar-archive-year {
    display: flex;
    flex-direction: column;
    gap: 2px;

    padding: 6px 7px;
    border-radius: 10px;

    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.9);

    text-decoration: none;
    color: #e5e7eb;
    font-size: 0.8rem;

    transition:
        background 0.18s ease-out,
        border-color 0.18s ease-out,
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out;
}

.sidebar-archive-year:hover {
    background: rgba(15, 23, 42, 1);
    border-color: rgba(148, 163, 184, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    text-decoration: none;
}

/* Active year – when browsing that year in the archive */
.sidebar-archive-year.is-active {
    background: rgba(15, 23, 42, 1);
    border-color: rgba(239, 246, 255, 0.9);
    box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.65);
}

/* Header row inside tile: Year + tiny tag */
.sidebar-archive-year-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
}

.sidebar-archive-year-label {
    font-size: 0.9rem;
    font-weight: 600;
}

/* "Latest" pill on the newest year */
.sidebar-archive-year-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.7);
    color: #e0f2fe;
}

/* Meta line: total + latest month */
.sidebar-archive-year-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.sidebar-archive-year-latest {
    opacity: 0.9;
}

.sidebar-card-price {
    font-weight: 700;
    white-space: nowrap;
}

/* Mobile: fall back to single column to avoid cramping */
@media (max-width: 768px) {
    .sidebar-archive-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* MOVERS AND SHAKERS SIDEBAR ----------------------------------- */

.sidebar-card-movers .sidebar-list-item {
    margin-bottom: 0.5rem;
}

.sidebar-list-movers .sidebar-list-title {
    display: block;
    font-weight: 600;
    line-height: 1.2;
}

.sidebar-list-movers .sidebar-list-meta {
    display: block;
    font-size: 0.85rem;
    opacity: 0.85;
}

.sidebar-list-movers .mover-icon {
    font-weight: 700;
    margin-right: 0.25rem;
}

.sidebar-list-movers .mover-hot {
    margin-left: 0.25rem;
}

.sidebar-card-movers .sidebar-card-item-meta {
    margin-left: 0;
}

.sidebar-card-movers .sidebar-card-body {
    padding-left: 0;
    margin-top: 0;
    margin-left: 0;
}

.sidebar-card--musthave {
  /*border-left: 4px solid rgba(255,199,0,.55);*/
  
  background: radial-gradient(circle at top, rgba(209, 213, 219, 0.15), var(--card-bg));
  border-color: rgba(209, 213, 219, 0.45);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

.sidebar-card--musthave .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
}

.sidebar-card--musthave .sidebar-card-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, #f3f4f6, #9ca3af);
    box-shadow: 0 0 6px rgba(243, 244, 246, 0.9);
}

.sidebar-card--musthave .sidebar-card-item:hover {
    background: rgba(55, 65, 81, 0.92);
    transform: translateY(-1px);
}

.sidebar-card--musthave .sidebar-card-tag {
  background: rgba(255,199,0,.16);
  border: 1px solid rgba(255,199,0,.28);
}

/* -------------------------------------------
   Birthdays sidebar
------------------------------------------- */

.sidebar-card-birthdays{
  position: relative; /* positioning context for badge */
}

/* List container tweaks */
.sidebar-card-birthdays .sidebar-card-body{
  padding-left: 0;
  margin-top: 0;
}

/* Subtitle spacing */
.sidebar-card-birthdays .sidebar-intro{
  margin-bottom: 6px;
}

/* Row layout: left aligned, tighter vertical rhythm */
.sidebar-card-birthdays .sidebar-card-item{
  justify-content: flex-start;
  gap: 10px;
  padding: 6px 0;
}

/* Thumb placeholder sizing */
.sidebar-card-birthdays .sidebar-card-thumb{
  width: 32px;
  min-width: 32px;
  height: 32px;
  margin: 0 10px 0 0;
}

.sidebar-card-birthdays .sidebar-card-thumb--placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-card-birthdays .sidebar-thumb-emoji{
  font-size: 16px;
  line-height: 1;
}

/* Text block: remove any inherited left offsets */
.sidebar-card-birthdays .sidebar-card-text{
  margin-left: 0;
  padding-left: 0;
}

/* Title line: name + remembered pill */
.sidebar-card-birthdays .sidebar-card-item-title{
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-card-birthdays .sidebar-card-item-title-text{
  flex: 1;
  min-width: 0;
}

/* Remembered pill next to name */
.sidebar-card-birthdays .sidebar-card-tag--remembered{
  margin-left: auto;
  padding: 4px 10px;
  font-size: 10px;
  line-height: 1;
  border-radius: 999px;
  white-space: nowrap;
}

/* Meta line */
.sidebar-card-birthdays .sidebar-card-item-meta{
  display: block;
}

.sidebar-card-birthdays .sidebar-card-item-meta-text{
  line-height: 1.2;
}

/* -------------------------------------------
   Source badge (TMDb / OMDb)
   Use on any sidebar by adding: .sidebar-card-awards or .sidebar-card-birthdays
------------------------------------------- */

.sidebar-card-awards,
.sidebar-card-birthdays{
  position: relative; /* badge anchor */
}

/* Make room so badge never overlaps last row */
.sidebar-card-awards .sidebar-card-body,
.sidebar-card-birthdays .sidebar-card-body{
  padding-bottom: 15px; /*42px;*/
}

/* -------------------------------------------
   Source badge (TMDb / OMDb)
------------------------------------------- */

.sidebar-card-awards .sidebar-source-badge,
.sidebar-card-birthdays .sidebar-source-badge{
  position: absolute;
  right: 10px;
  bottom: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;     /* wider (X) */
  height: 22px;    /* flatter (Y) */

  border-radius: 999px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);

  opacity: .9;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 5;
}

.sidebar-card-awards .sidebar-source-badge:hover,
.sidebar-card-birthdays .sidebar-source-badge:hover{
  opacity: 1;
  transform: translateY(-1px);
}

/* Force SVGs (TMDb + OMDb) to scale INSIDE the pill */
.sidebar-card-awards .sidebar-source-badge img,
.sidebar-card-birthdays .sidebar-source-badge img{
  max-width: 70%;
  max-height: 70%;
  width: auto;
  height: auto;
  display: block;
}

/* Optional: OMDb often needs a touch more horizontal room */
.sidebar-card-awards .sidebar-source-badge--omdb img,
.sidebar-card-birthdays .sidebar-source-badge--omdb img{
  max-width: 78%;
}

.sidebar-source-badge--zavvi img {
	width: 50px;
	height: auto;
}

/* FOOTER ----------------------------------- */
.site-footer {
    margin-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding-top: 14px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ARTICLE PAGE ----------------------------------- */

.article-layout .main-column {
    gap: 20px;
}

.article {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 18px;
    padding: 16px 14px 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
}

.breadcrumb {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb li::after {
    content: "›";
    opacity: 0.5;
    font-size: 11px;
}

.breadcrumb li:last-child::after {
    content: "";
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-header-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
    gap: 16px;
    align-items: flex-start;
}

.article-cover img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.article-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-label {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.article-label-type,
.article-label-format {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

.format-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
}

.article-label-type {
    border-color: rgba(248, 250, 252, 0.7);
}

.article-title {
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.article-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px 16px;
    margin: 8px 0 0;
}

.article-facts div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 100%;
}

/* test */
.article-facts div {
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.article-facts dt {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.article-facts dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
}

@media (max-width: 480px) {
    .article-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.article-summary-box {
    margin-top: 16px;
    padding: 12px;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(225, 29, 72, 0.12), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    gap: 12px;
}

.article-summary {
    margin: 0;
    font-size: 13px;
    color: #e5e7eb;
}

.article-scores {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    font-size: 12px;
}

.score-block {
    padding: 6px 8px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.score-overall {
    grid-column: span 2;
    border-color: rgba(248, 250, 252, 0.8);
}

.score-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.score-value {
    font-size: 14px;
    font-weight: 600;
}

.score-sub {
    white-space: nowrap;
	margin-left: 0;       /* remove leading gap */	
}

.article-body {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #e5e7eb;
}

.article-body h2,
.article-body h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 16px;
}

.article-body p {
    margin: 0 0 10px;
}

.article-stills {
    margin-top: 18px;
}

.article-stills h2 {
    font-size: 14px;
    margin-bottom: 8px;
}

.article-stills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.article-story-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
}

.article-story-sublist {
    margin: 0.25rem 0 0.5rem 1.25rem;
    padding-left: 1rem;
    list-style-type: disc;
}

/* Improved, theme-matched Episodes block */
.article-episodes {
    margin: 1.75rem 0;
    padding: 1.25rem 1.4rem 1.4rem;

    background: rgba(15, 23, 42, 0.90); /* matches .article, .article-toc, etc. */
    border: 1px solid rgba(148, 163, 184, 0.35); /* subtle slate border */
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.55);

    backdrop-filter: blur(4px); /* softens background like other blocks */
}

/* Heading — scaled like other article subsections */
.article-episodes-heading {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0; /* same as .article-block-title */
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Decorative gradient bar (same style as section headings, toc, etc.) */
.article-episodes-heading::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8, #a855f7);
}

/* Top-level list */
.article-episodes-list {
    margin: 0.25rem 0 0;
    padding-left: 1.2rem;
    list-style-type: disc;
    color: #e5e7eb; /* matches article text colour */
    font-size: 0.95rem;
}

/* Sublist for @ items */
.article-episodes-sublist {
    margin: 0.25rem 0 0.5rem 1.2rem;
    padding-left: 1rem;
    list-style-type: circle;
    color: #cbd5e1; /* slightly muted text tone */
    font-size: 0.88rem;
}

.article-episodes-list {
    margin: 0.5rem 0 1rem;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.article-episode-item {
    margin-bottom: 0.75rem;
}

.article-episode-title {
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.25rem;
}

.article-episodes-sublist {
    margin: 0.5rem 0 0.5rem 1.25rem;
    padding-left: 1rem;
    list-style-type: circle;
}

.article-episodes-subsublist {
    margin: 0.25rem 0 0.5rem 1.25rem;
    padding-left: 1rem;
    list-style-type: disc;
}

/* Unified article card style */
.article-card {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem 1.5rem;

    background: rgba(15,23,42,0.90);
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
}

/* Shared card heading */
.article-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.03em;
}

/* Ensure the article layout columns line up at the top */
.layout.article-layout {
    align-items: flex-start;  /* for flexbox */
}

/* If you're using CSS Grid for .layout, this also helps: */
.layout.article-layout {
    align-items: start;
}

.article-layout .sidebar {
    margin-top: 0;
}

/* ARTICLE STILLS GRID — Force uniform cinematic crops */
.article-stills-grid img {
    width: 100%;
    /*height: 180px;*/           /* choose the visual height (160–220px works well) */
    object-fit: cover;       /* crop to fill the frame */
    object-position: center; /* keep the main subject centred */
    border-radius: 8px;      /* match your card-grid radius */
    display: block;
    background: #0f172a;     /* fallback for extremely wide images */
    aspect-ratio: 16 / 9;	
}

.article-still:hover img {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.75);
}

/* ARTICLE BLOCK WRAPPER --------------------------------------- */

.article-block {
    margin: 32px 0;
    padding: 22px 24px 26px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

/* Header inside blocks */
.article-block-header {
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    padding-bottom: 10px;
}

.article-block-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

.article-extras-card h2 {
    font-weight: 500;
}

/* Stills-specific container (centres & constrains width) */
.article-stills-block .article-stills-carousel-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* YOUTUBE ----------------------------- */

.article-youtube-card {
    /* inherits the base .article-card styling you already have */
}

/* 16:9 responsive wrapper */
.article-youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 0.75rem;
}

/* Fill the wrapper */
.article-youtube-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ARTICLE STILLS – CAROUSEL ----------------------------- */

.article-stills-carousel {
    position: relative;
    max-width: 520px; /*600px;*/
    margin: 0 auto;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 8px 10px 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

/* Limit width when there's only one still */
.article-stills-carousel.single-image {
    max-width: 520px;   /* adjust to taste */
    margin-left: auto;
    margin-right: auto;
}
.article-stills-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* KEY PART: default slide is hidden… */
.article-still {
    margin: 0;
    display: none;
}

/* …and only the active one is shown */
.article-still.is-active {
    display: block;
}

/* Keep your 16:9 cinematic frame */
.article-still img {
    width: 100%;
    aspect-ratio: 5 / 3;   /* nicer shape for article stills */
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
    background: #0f172a;
}

.article-still figcaption {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Prev/Next arrows (as before) */
.stills-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    transition:
        background 0.18s ease-out,
        border-color 0.18s ease-out,
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out;
}

.stills-nav:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(248, 250, 252, 0.85);
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85);
}

.stills-nav-prev { left: 10px; }
.stills-nav-next { right: 10px; }

/* Dots */
.article-stills-dots {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.stills-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    padding: 0;
    cursor: pointer;
    transition: background 0.18s ease-out,
                border-color 0.18s ease-out,
                transform 0.18s ease-out;
}

.stills-dot.is-active {
    background: #38bdf8;
    border-color: rgba(191, 219, 254, 0.9);
    transform: scale(1.05);
}

/* Center & size the carousel under the heading */
.article-stills-carousel-container {
    max-width: 600px;
    margin: 0 auto 32px auto;
}

/* 16:9 frame */
.article-still img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    display: block;
    background: #0f172a;
}

/* On small screens, make arrows sit a bit closer in */
@media (max-width: 600px) {
    .stills-nav-prev { left: 6px; }
    .stills-nav-next { right: 6px; }
}

.article-tags {
    margin-top: 18px;
}

.article-tags h2 {
    font-size: 14px;
    margin-bottom: 8px;
}

.card-format-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.card-format-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #e5e7eb;
    white-space: nowrap;
}

.card-format-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
}

/* Cast & Crew block – snazzier card style */
.article-credits {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.25), transparent 55%),
                rgba(15, 23, 42, 0.95);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    font-size: 0.875rem; /* match .article-body 14px */
}

/* Cast & crew links – match normal links, no dotted underline */
.article-credits-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.article-credits-link:hover {
    text-decoration: none !important;
}

/* Little chevron for filmography links */
.article-credits-chevron {
    font-size: 0.8em;
    opacity: 0.75;
    margin-left: 2px;
}

/* Header */
.article-credits h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-credits h2::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8, #a855f7);
}

/* Remove decorative bar from Cast & Crew heading */
.article-credits h2::before {
    display: none !important;
}

/* Sub-heading */
.article-credits h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.75rem 0 0.35rem;
    color: #e5e7eb;
}

/* Cast as “pills” instead of a plain list */
.article-cast-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.article-cast-list li {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
    white-space: nowrap;
}

/* Make cast links inherit the pill styling */
.article-cast-list .article-credits-link {
    color: inherit;
    text-decoration: none;
}

/* Star icon inside the pill */
.article-cast-list .article-credits-star {
    color: #fbbf24;          /* warm gold */
    font-size: 0.95em;
    position: relative;
    top: -1px;
}

/* Hover animation for cast/crew pills */
.article-cast-list li {
    transition: 
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}

/* Hover */
.article-cast-list li:hover {
    background: rgba(30, 41, 59, 0.9); /* slightly lighter shade */
    border-color: rgba(203, 213, 225, 0.85); /* brighter border */
    transform: scale(1.04); /* gentle pop */
}

/* If the entire pill becomes clickable later, this prevents text underlines */
.article-cast-list a {
    text-decoration: none;
}

/* Director line – subtle highlight with an icon “dot” */
.article-director {
    margin-top: 0.9rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.6);
    color: #e5e7eb;
}

.article-director::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle, #38bdf8, #0ea5e9);
}

/* Make sure the <strong> label doesn't overpower */
.article-director strong {
    font-weight: 500;
    color: #bae6fd;
}

.section-popular {
    margin-top: 2rem;
}

.section-popular .section-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-popular-sidebar {
    margin-top: 1.5rem;
}

.section-popular-sidebar .section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Slightly tighter card for sidebar */
.card--sidebar {
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.card--sidebar .card-title {
    font-size: 13px;
}

.card--sidebar .card-meta {
    font-size: 10px;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.5);
	text-decoration: none;
}

/* Small intro line under the title */
.sidebar-card .sidebar-intro {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Feature article section headings derived from <story font="larger"> */
/*.article-body .feature-section-heading {*/
.feature-section-heading {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
    color: #e5e7eb;                 /* match your article text colour */
    text-transform: none;           /* or uppercase if you prefer */
    letter-spacing: 0.03em;
    /*border-top: 1px solid rgba(148, 163, 184, 0.35);*/
    /*padding-top: 0.75rem;*/
	
	gap: 0.75rem; /* increased spacing */	
	/*display: inline-flex;*/
}

/* Decorative gradient bar, matching your article-credits style */
.feature-section-heading::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8, #a855f7);
}

/* MINI TABLE OF CONTENTS */
.article-toc {
    margin: 1.2rem 0 1.5rem;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.55);
}

.article-toc-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 6px;
}

.article-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-toc-list,
.article-toc-list li {
    list-style: none !important;
}

.article-toc-item + .article-toc-item {
    margin-top: 4px;
}

.article-toc-item a {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;

    font-size: 0.82rem;
    color: #e5e7eb;
    text-decoration: none;

    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);

    transition: all 0.18s ease-out;
    position: relative;
}

.article-toc-item a::before {
    content: none !important;
}

.article-toc-item a:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.55);
    transform: translateY(-1px);
    color: #f9fafb;
}

/* Optional: tighten normal story paragraphs that follow headings */
.feature-story-paragraph + .feature-section-heading {
    margin-top: 1.5rem;
}

/* SIDEBAR CARDS – shared component
   Used by:
   - section-popular-news-sidebar.php
   - section-popular-tabs-sidebar.php
   - section-upcoming-releases-sidebar.php
*/

/* Outer card */
.sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    padding: 0.75rem 0.75rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Title */
.sidebar-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    padding: 0 0.1rem;
    text-transform: uppercase;	/* test */	
	margin-bottom: 0.1rem !important;
}

/* Body container for list of items */
.sidebar-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Each clickable row */
.sidebar-card-item {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.35rem 0.25rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.18s ease-out, transform 0.18s ease-out;
}

.sidebar-card-item:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Optional thumbnail (Popular, Upcoming) */
.sidebar-card-thumb {
    flex: 0 0 auto;
    width: 54px;
    aspect-ratio: 9 / 14;
    border-radius: 8px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.sidebar-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right-hand text stack */
.sidebar-card-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Title row (optionally with trend icon / rank) */
.sidebar-card-item-title {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* Tiny trend icon (▲ ▼ ● ★) placed on the LEFT */
.sidebar-card-trend {
    font-size: 0.75rem;
    line-height: 1;
    flex: 0 0 auto;
}

/* Actual title text – ellipsis + clamp for consistency */
.sidebar-card-item-title-text {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e5e7eb;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Formats row (used in Popular + Upcoming) */
.sidebar-card-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 2px;
}

.sidebar-card-format-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e5e7eb;
}

.sidebar-card-format-badge .format-icon {
    width: 12px;
    height: 12px;
    display: inline-block;
}

/* Meta row (views this week, release date, etc.) */
.sidebar-card-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
    font-size: 0.68rem;
    color: #9ca3af;
}

.sidebar-card-item-meta-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s ease-out, opacity 0.15s ease-out;
}

/* Slight fade on hover – soft emphasis */
.sidebar-card-item:hover .sidebar-card-item-meta-text {
    color: #e5e7eb;
    opacity: 0.9;
}

.sidebar-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 5px;
    border-radius: 999px;
    font-size: 10px;
    white-space: nowrap;
}

.sidebar-card-tag-new {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.7);
    color: #e0f2fe;
}

/* Footer (used by Upcoming for “View all upcoming”) */
.sidebar-card-footer {
    margin-top: 0.35rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 0.4rem;
}

.sidebar-card-footer-link {
    display: inline-flex;
    font-size: 0.75rem;
    color: #93c5fd;
    text-decoration: none;
}

.sidebar-card-footer-text{
  font-size: .75rem;
  opacity: .85;
}

.sidebar-card-footer-link:hover {
    text-decoration: underline;
}

/* Tabs wrapper (only for the Popular tabs sidebar) */
.sidebar-card--with-tabs .sidebar-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

/* Tab buttons reused across types */
.sidebar-tabs {
    display: inline-flex;
    gap: 4px;
    border-radius: 999px;
    padding: 2px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.sidebar-tab {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    cursor: pointer;
}

.sidebar-tab.is-active {
    background: rgba(248, 250, 252, 0.1);
    color: #e5e7eb;
}

.sidebar-card-loading-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #93c5fd;
    animation: sidebar-pulse 1s infinite ease-in-out;
}

.sidebar-card-tag-hot {
    background: rgba(251, 146, 60, 0.14);   /* warm orange tint */
    border: 1px solid rgba(251, 146, 60, 0.7);
    color: #ffedd5; /* soft orange text */
}

.mover-trend {
    margin-left: .5rem;
    opacity: 0.85;
}

.mover-trend--surging {
    font-weight: 600;
}

@keyframes sidebar-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50%      { opacity: 1;   transform: scale(1.1); }
}

/* ------------------------------------------
   Sidebar card footer as a link (no duplication)
   ------------------------------------------ */

/* Make <a.sidebar-card-footer> behave like the old container */
a.sidebar-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    text-decoration: none;
    color: inherit;
}

/* Reuse the existing footer link styling */
a.sidebar-card-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    align-items: center;
    gap: 4px;
    transition: color 0.18s ease-out, transform 0.18s ease-out;
}

/* Hover behaviour — identical to .sidebar-card-footer-link */
a.sidebar-card-footer:hover {
    color: var(--accent);
    transform: translateX(1px);
    text-decoration: none;
}

/* ------------------------------------------
   Sidebar Loading Indicator
   ------------------------------------------ */
.sidebar-card-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 0;
    color: var(--text-muted);

    font-size: 0.8rem;
    letter-spacing: 0.03em;

    opacity: 0.85;
    animation: sidebarLoadingFade 1.4s ease-in-out infinite alternate;
}

/* ------------------------------------------
   RETRO PICK SIDEBAR
   ------------------------------------------ */

.sidebar-card--retro {
    position: relative;
    overflow: hidden;

    /* Match the card style, but with a retro glow */
    background:
        radial-gradient(circle at top, rgba(244, 63, 94, 0.16), rgba(15, 23, 42, 0.96));
    border-color: rgba(248, 250, 252, 0.45);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.75);
}

/* Neon border + faint scanlines to make it feel retro */
.sidebar-card--retro::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #22d3ee, #a855f7, #f97316);
    opacity: 0.35;
    mix-blend-mode: screen;
    pointer-events: none;
}

.sidebar-card--retro::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image:
        repeating-linear-gradient(
            to bottom,
            rgba(15, 23, 42, 0.85),
            rgba(15, 23, 42, 0.85) 1px,
            transparent 1px,
            transparent 3px
        );
    opacity: 0.25;
    pointer-events: none;
}

/* Make sure the inner content sits above the overlays */
.sidebar-card--retro > * {
    position: relative;
    z-index: 1;
}

/* Title – styled like other sidebar titles but with a neon gradient */
.sidebar-card--retro .sidebar-title {
    margin: 0 0 0.35rem;
    padding: 0 0.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    /*letter-spacing: 0.16em;*/
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    background: linear-gradient(90deg, #fb923c, #f97316, #38bdf8);
    -webkit-background-clip: text;
    color: transparent;
}

/* Tiny “glow dot” next to the heading */
.sidebar-card--retro .sidebar-title::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle, #f97316, #e11d48);
    box-shadow: 0 0 10px rgba(248, 250, 252, 0.8);
}

/* Layout of the card body – match sidebar-card-item feel */
.retro-card-link {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.35rem 0.25rem 0.2rem;
    border-radius: 10px;
    text-decoration: none;
    transition:
        background 0.18s ease-out,
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out;
}

.sidebar-card--retro .retro-card-link:hover {
    background: rgba(15, 23, 42, 0.92);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.75);
    text-decoration: none;
}

/* Poster thumb – same language as other thumbs but a bit punchier */
.retro-card-media {
    flex: 0 0 auto;
    width: 60px;
    aspect-ratio: 9 / 14;
    border-radius: 9px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(248, 250, 252, 0.45);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.retro-card-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Text stack */
.retro-card-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
}

.retro-card-heading {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: #e5e7eb;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Generic paragraphs inside the body */
.retro-card-body p {
    margin: 0.1rem 0;
    font-size: 0.78rem;
    color: #cbd5e1;
}

/* “Meta” lines – year / IMDB etc – lean into the retro label vibe */
.retro-card-meta {
    margin: 0.05rem 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #a5b4fc;
    opacity: 0.9;
}

/* Slightly different tint for the IMDB line if you’d like */
.retro-card-meta:nth-of-type(2) {
    color: #fbbf24;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .sidebar-card--retro .retro-card-media {
        width: 52px;
    }

    .retro-card-heading {
        font-size: 0.86rem;
        -webkit-line-clamp: 3;
    }
}

/* Subtle fade animation */
@keyframes sidebarLoadingFade {
    from { opacity: 0.45; }
    to   { opacity: 1; }
}

/* Small spinning loader (consistent with your theme) */
.sidebar-card-loading-spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(148,163,184,0.3);
    border-top-color: rgba(148,163,184,0.9);

    animation: sidebarSpinner 0.6s linear infinite;
}

@keyframes sidebarSpinner {
    to { transform: rotate(360deg); }
}

.sidebar-card-footer {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    justify-content: flex-end;
}

.sidebar-card-footer-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.18s ease-out, transform 0.18s ease-out;
}

.sidebar-card-footer-link:hover {
    color: var(--accent);
    transform: translateX(1px);
    text-decoration: none;
}

/* ------------------------------------------
   SIDEBAR THEME: CHARTS
   ------------------------------------------ */

.sidebar-card-charts {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), var(--card-bg));
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
}

/* Title with a small rank-bar accent */
.sidebar-card-charts .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    /*letter-spacing: 0.12em;*/
    text-transform: uppercase;
}

.sidebar-card-charts .sidebar-card-title::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8, #0ea5e9);
}

/* Slightly tinted hover for items inside */
.sidebar-card-charts .sidebar-card-item:hover {
    background: rgba(8, 47, 73, 0.9);
    transform: translateY(-1px);
}

/* ------------------------------------------
   SIDEBAR THEME: SPOTLIGHT
   ------------------------------------------ */

.sidebar-card-spotlight {
    background: radial-gradient(circle at top, rgba(248, 171, 77, 0.18), var(--card-bg));
    border-color: rgba(248, 171, 77, 0.6);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.75);
}

/* Title with warm pill accent */
.sidebar-card-spotlight .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    /*letter-spacing: 0.12em;*/
    text-transform: uppercase;
}

.sidebar-card-spotlight .sidebar-card-title::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    box-shadow: 0 0 10px rgba(251, 146, 60, 0.7);
}

/* Hover tint inside spotlight cards */
.sidebar-card-spotlight .sidebar-card-item:hover {
    background: rgba(88, 28, 13, 0.9);
    transform: translateY(-1px);
}

/* ------------------------------------------
   SIDEBAR THEME: GENERIC BLUE
   ------------------------------------------ */

.sidebar-card-blue {
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.14), var(--card-bg));
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

.sidebar-card-blue .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    /*letter-spacing: 0.11em;*/
    text-transform: uppercase;
}

.sidebar-card-blue .sidebar-card-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: radial-gradient(circle, #60a5fa, #2563eb);
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.8);
}

.sidebar-card-blue .sidebar-card-item:hover {
    background: rgba(23, 37, 84, 0.92);
    transform: translateY(-1px);
}

/* ------------------------------------------
   SIDEBAR THEME: GENERIC PINK
   Warm but still subtle. Great for “editor picks”, “staff favourites”, soft features.
   ------------------------------------------ */

.sidebar-card-pink {
    background: radial-gradient(circle at top, rgba(236, 72, 153, 0.14), var(--card-bg));
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

.sidebar-card-pink .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    /*letter-spacing: 0.11em;*/
    text-transform: uppercase;
}

.sidebar-card-pink .sidebar-card-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: radial-gradient(circle, #f472b6, #db2777);
    box-shadow: 0 0 6px rgba(244, 114, 182, 0.8);
}

.sidebar-card-pink .sidebar-card-item:hover {
    background: rgba(76, 29, 59, 0.92);
    transform: translateY(-1px);
}

/* ------------------------------------------
   SIDEBAR THEME: GENERIC ORANGE
   Punchy without being overpowering. Great for “hot topics”, “new arrivals”, anything dynamic.
   ------------------------------------------ */

.sidebar-card-orange {
    background: radial-gradient(circle at top, rgba(249, 115, 22, 0.15), var(--card-bg));
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.sidebar-card-orange .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    /*letter-spacing: 0.11em;*/
    text-transform: uppercase;
}

.sidebar-card-orange .sidebar-card-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: radial-gradient(circle, #fb923c, #f97316);
    box-shadow: 0 0 6px rgba(251, 146, 60, 0.8);
}

.sidebar-card-orange .sidebar-card-item:hover {
    background: rgba(124, 45, 18, 0.92);
    transform: translateY(-1px);
}

/* ------------------------------------------
   SIDEBAR THEME: DIRECTOR SPOTLIGHT
   ------------------------------------------ */

.sidebar-card-director {
    background:
        radial-gradient(
            circle at top,
            rgba(184, 154, 91, 0.18),
            var(--card-bg)
        );
    border-color: rgba(184, 154, 91, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.72);
}

.sidebar-card-director .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
}

.sidebar-card-director .sidebar-card-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background:
        radial-gradient(
            circle,
            #e6d3a3,
            #b89a5b
        );
    box-shadow: 0 0 6px rgba(230, 211, 163, 0.75);
}

.sidebar-card-director .sidebar-card-item:hover {
    background: rgba(61, 51, 29, 0.95);
    transform: translateY(-1px);
}


/* ------------------------------------------
   SIDEBAR THEME: GENERIC PURPLE
   ------------------------------------------ */

.sidebar-card-purple {
    background: radial-gradient(circle at top, rgba(139, 92, 246, 0.15), var(--card-bg));
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.sidebar-card-purple .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    /*letter-spacing: 0.11em;*/
    text-transform: uppercase;
}

.sidebar-card-purple .sidebar-card-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: radial-gradient(circle, #c4b5fd, #8b5cf6);
    box-shadow: 0 0 6px rgba(196, 181, 253, 0.85);
}

.sidebar-card-purple .sidebar-card-item:hover {
    background: rgba(49, 46, 129, 0.92);
    transform: translateY(-1px);
}

/* ------------------------------------------
   SIDEBAR THEME: GENERIC SILVER
   Elegant, metallic, perfect for “Editor’s Picks”, “Premium Choice”, “Top Rated”.
   ------------------------------------------ */

.sidebar-card-silver {
    background: radial-gradient(circle at top, rgba(209, 213, 219, 0.15), var(--card-bg));
    border-color: rgba(209, 213, 219, 0.45);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

.sidebar-card-silver .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    /*letter-spacing: 0.12em;*/
}

.sidebar-card-silver .sidebar-card-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, #f3f4f6, #9ca3af);
    box-shadow: 0 0 6px rgba(243, 244, 246, 0.9);
}

.sidebar-card-silver .sidebar-card-item:hover {
    background: rgba(55, 65, 81, 0.92);
    transform: translateY(-1px);
}

/* ------------------------------------------
   SIDEBAR THEME: GENERIC GREEN
   Relaxed, modern, perfect for “Recommended”, “You May Like”, “Hidden Gems”, etc.
   ------------------------------------------ */

.sidebar-card-green {
    background: radial-gradient(circle at top, rgba(52, 211, 153, 0.14), var(--card-bg));
    border-color: rgba(52, 211, 153, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

.sidebar-card-green .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    /*letter-spacing: 0.12em;*/
}

.sidebar-card-green .sidebar-card-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: radial-gradient(circle, #6ee7b7, #10b981);
    box-shadow: 0 0 6px rgba(110, 231, 183, 0.85);
}

.sidebar-card-green .sidebar-card-item:hover {
    background: rgba(6, 78, 59, 0.92);
    transform: translateY(-1px);
}

/* ------------------------------------------
   CATCHING FIRE
   Rapidly gaining momentum
   Orange / red heat
   ------------------------------------------ */

.sidebar-card-catching-fire {
    background:
        radial-gradient(circle at top,
            rgba(239, 68, 68, 0.14),
            rgba(249, 115, 22, 0.07) 45%,
            var(--card-bg) 75%);
    border-color: rgba(249, 115, 22, 0.58);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.68);
}

.sidebar-card-catching-fire .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
}

.sidebar-card-catching-fire .sidebar-card-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;

    background:
        radial-gradient(circle at 35% 30%,
            #fde68a,
            #f97316 55%,
            #dc2626);

    box-shadow:
        0 0 6px rgba(249, 115, 22, 0.9),
        0 0 12px rgba(239, 68, 68, 0.4);
}

.sidebar-card-catching-fire .sidebar-card-item:hover {
    background: rgba(124, 45, 18, 0.72);
    transform: translateY(-1px);
}


/* ------------------------------------------
   AHEAD OF THE CURVE
   Early signs of emerging interest
   Electric cyan / blue
   ------------------------------------------ */

.sidebar-card-ahead-of-the-curve {
    background:
        radial-gradient(circle at top,
            rgba(34, 211, 238, 0.14),
            rgba(14, 165, 233, 0.06) 45%,
            var(--card-bg) 75%);
    border-color: rgba(34, 211, 238, 0.52);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.68);
}

.sidebar-card-ahead-of-the-curve .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
}

/* Signal / trend bar rather than a dot */
.sidebar-card-ahead-of-the-curve .sidebar-card-title::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 999px;

    background:
        linear-gradient(180deg,
            #67e8f9,
            #06b6d4 55%,
            #0284c7);

    box-shadow:
        0 0 7px rgba(34, 211, 238, 0.65);
}

.sidebar-card-ahead-of-the-curve .sidebar-card-item:hover {
    background: rgba(8, 47, 73, 0.78);
    transform: translateY(-1px);
}


/* ------------------------------------------
   SECOND WIND
   Older article returning to prominence
   Emerald / teal
   ------------------------------------------ */

.sidebar-card-second-wind {
    background:
        radial-gradient(circle at top,
            rgba(45, 212, 191, 0.13),
            rgba(16, 185, 129, 0.055) 45%,
            var(--card-bg) 75%);
    border-color: rgba(45, 212, 191, 0.50);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.68);
}

.sidebar-card-second-wind .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
}

.sidebar-card-second-wind .sidebar-card-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;

    background:
        radial-gradient(circle,
            #99f6e4,
            #2dd4bf 55%,
            #059669);

    box-shadow:
        0 0 7px rgba(45, 212, 191, 0.70);
}

.sidebar-card-second-wind .sidebar-card-item:hover {
    background: rgba(6, 78, 59, 0.70);
    transform: translateY(-1px);
}


/* ------------------------------------------
   PUNCHING ABOVE ITS WEIGHT
   Performing unusually well relative to baseline
   Violet / magenta
   ------------------------------------------ */

.sidebar-card-punching-above {
    background:
        radial-gradient(circle at top,
            rgba(192, 132, 252, 0.14),
            rgba(168, 85, 247, 0.06) 45%,
            var(--card-bg) 75%);
    border-color: rgba(192, 132, 252, 0.52);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.70);
}

.sidebar-card-punching-above .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
}

/* Slightly larger marker to imply "above expectation" */
.sidebar-card-punching-above .sidebar-card-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    transform: rotate(45deg);

    background:
        linear-gradient(135deg,
            #e9d5ff,
            #c084fc 45%,
            #9333ea);

    box-shadow:
        0 0 7px rgba(192, 132, 252, 0.72);
}

.sidebar-card-punching-above .sidebar-card-item:hover {
    background: rgba(59, 7, 100, 0.68);
    transform: translateY(-1px);
}


/* ------------------------------------------
   BACK IN THE SPOTLIGHT
   Older content attracting renewed attention
   Gold / amber
   ------------------------------------------ */

.sidebar-card-back-in-the-spotlight {
    background:
        radial-gradient(circle at top,
            rgba(250, 204, 21, 0.14),
            rgba(245, 158, 11, 0.055) 45%,
            var(--card-bg) 75%);
    border-color: rgba(250, 204, 21, 0.50);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.70);
}

.sidebar-card-back-in-the-spotlight .sidebar-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
}

/* Warm glowing spotlight */
.sidebar-card-back-in-the-spotlight .sidebar-card-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;

    background:
        radial-gradient(circle,
            #fef9c3,
            #facc15 50%,
            #d97706);

    box-shadow:
        0 0 6px rgba(250, 204, 21, 0.90),
        0 0 13px rgba(245, 158, 11, 0.40);
}

.sidebar-card-back-in-the-spotlight .sidebar-card-item:hover {
    background: rgba(113, 63, 18, 0.65);
    transform: translateY(-1px);
}

/* ------------------------------------------
   SIDEBAR THEME: PILL
   ------------------------------------------ */

.sidebar-card-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    background: rgba(255,255,255,0.12);
}

.sidebar-card--recommended .sidebar-card-pill {
    background: rgba(255,193,7,0.18);
}

/* REVIEW SUMMARY ----------------------------------- */

.review-type-label{
    display:inline-block;
    font-size:0.78rem;
    font-weight:600;
    padding:5px 12px;
    margin:6px 0 16px 0;
    border-radius:999px;
    background:#ff7a1a;
    color:#ffffff;
    letter-spacing:.3px;
    line-height:1;
}
.review-summary-box {
    /* Reuse .article-summary-box grid & colours, but works as a review flavour */
    margin-top: 18px;
}

.review-summary-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #e5e7eb;
}

.review-badge-row {
    margin-bottom: 6px;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
}

.review-badge--recommended {
    border-color: rgba(34, 197, 94, 0.7);
    background: rgba(22, 163, 74, 0.18);
    color: #bbf7d0;
}

.review-badge--not-recommended {
    border-color: rgba(248, 113, 113, 0.7);
    background: rgba(239, 68, 68, 0.18);
    color: #fee2e2;
}

/* Compact info cards on the right side of the summary box */
.review-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    align-content: flex-start;
}

.review-info-card {
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.review-info-card--rating {
    border-color: rgba(248, 250, 252, 0.8);
}

.review-info-card--links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-info-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 2px;
}

.review-info-value {
    font-size: 12px;
    color: #e5e7eb;
}

.review-info-hashtag {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.review-imdb-link {
    font-size: 11px;
    color: #e0f2fe;
    text-decoration: none;
    padding: 3px 0;
}

.review-imdb-link:hover {
    text-decoration: underline;
}

/* REVIEW SUMMARY – horizontal info cards under the synopsis */
.article-summary-box.review-summary-box {
    /* Override the base grid layout for reviews only */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

/* Make sure the text stays at the top */
.review-summary-text {
    margin: 0;
}

/* Info cards sit in a horizontal row that can wrap */
.review-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

/* Each card has a sensible minimum width but can wrap nicely */
.review-info-card {
    flex: 0 0 150px; /* tweak 140–180px to taste */
}

/* REVIEW BODY SECTIONS ----------------------------------- */

.review-section {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.review-section-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
}

/* Slight tonal differences per section (optional, but nice) */
.review-section--film {
    border-left: 3px solid rgba(96, 165, 250, 0.9);
}

.review-section--picture {
    border-left: 3px solid rgba(52, 211, 153, 0.9);
}

.review-section--menu {
    border-left: 3px solid rgba(249, 115, 22, 0.9);
}

.review-section--overall {
    border-left: 3px solid rgba(244, 63, 94, 0.9);
}

.review-section--disc-extras {
    border-left: 3px solid rgba(192, 132, 252, 0.9);
}

.review-section p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
}

/* Extras list */
.review-extras-list {
    margin: 4px 0 0;
    padding-left: 18px;
    font-size: 13px;
}

.review-extras-list li + li {
    margin-top: 2px;
}

.review-section { margin-bottom: 1.6rem; }
.review-section h2 { margin-bottom: .6rem; }

.review-extras-disc-title{
  margin: 12px 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

/* CAST & CREW SECTION --------------------------------------- */

.article-credits-block {
    margin: 0 0 32px 0;
}

/* Subheadings for Director / Cast / Writer */
.article-credits-subheading {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 1.2rem 0 0.5rem;
}

/* BACK LINKS --------------------------------------- */

/* Back to article strip on person pages */
.person-back-row {
	margin-top: 12px;
    margin-bottom: 12px;
}

.person-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.8rem;

    transition:
        background-color 0.18s ease-out,
        border-color 0.18s ease-out,
        transform 0.15s ease-out,
        box-shadow 0.18s ease-out;
}

.person-back-link:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(226, 232, 240, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
	text-decoration: none;
}

.person-back-chevron {
    font-size: 0.9rem;
    opacity: 0.85;
}

.person-back-label {
    opacity: 0.85;
}

.person-back-title {
    font-weight: 600;
}

.person-knownfor {
    margin-bottom: 28px;
}

.person-knownfor .section-subheading {
    margin-bottom: 10px;
}

.knownfor-grid .card {
    transform: scale(0.98);
    transition: transform 0.2s ease-out;
}

.knownfor-grid .card:hover {
    transform: scale(1.02);
}

/* BUY SECTION --------------------------------------- */

.article-buy-block {
    /* Reuses .article-block base styling */
    margin-top: 24px;
}

.article-buy-note {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    /*max-width: 520px;*/
}

/* Container for all retailers */
.article-buy-retailers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* One retailer row */
.article-buy-retailer {
    padding: 8px 0 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.article-buy-retailer:first-child {
    border-top: none;
}

.article-buy-retailer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.article-buy-retailer-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}

/* Region badge – echoes your tag style */
.article-buy-region-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

/* Button row – reuse hero button look, but slightly smaller */
.article-buy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-buy-btn {
    font-size: 0.78rem;
    padding: 6px 12px;
}

.article-buy-btn .article-buy-format {
    white-space: nowrap;
}

.article-buy-retailer-name {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Generic badge container */
.article-buy-retailer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Fallback plain label if we don't have a special badge */
.article-buy-retailer-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}

/* Amazon badge – generic, non-logo styling */
.article-buy-retailer-logo--amazon {
    background: #232f3e;
    color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.8);
}

/* Zavvi badge – generic neon-green accent */
.article-buy-retailer-logo--zavvi {
    background: #111827;
    color: #7cff4f;
    border: 1px solid rgba(124, 255, 79, 0.7);
}

/* Ensure no underlines on hover, consistent with hero buttons */
.article-buy-btn:hover {
    text-decoration: none;
}

.article-buy-retailer-logo-img {
    height: 25px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.article-buy-retailer-logo-img:hover {
    transform: translateY(-1px);
    transition: 0.15s ease;
}

/* RESPONSIVE tweak: stack summary box on small screens */
@media (max-width: 768px) {
    .article-summary-box.review-summary-box {
        /* already flex/column – just a bit tighter */
        gap: 8px;
    }

    .review-info-grid {
        justify-content: flex-start;
    }
}

/* ---------------------------------------------------
   Advert plaques – 300x250 sponsored cards
   --------------------------------------------------- */

/* Optional: spacing above the advert block */
/*.advert-section {
    margin-top: 1.5rem;
}
*/

.home-section .advert-section {
    padding-top: 0 !important;
}

.home-section .advert-section .section-header {
	margin-bottom: 0 !important;
}

/* Two-column grid on desktop, one column on narrow screens */
.advert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 0.5rem;
	padding-bottom: 0.5rem;
}

/* Advert card – reuse card look but force vertical layout */
.ad-plaque {
    display: flex;              /* override horizontal .card */
    flex-direction: column;     /* image on top, caption under */
    padding: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: var(--card-bg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.ad-plaque:hover {
    border-color: var(--accent);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

/* Make whole advert clickable */
.ad-plaque-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* 300 x 250 frame (keeps aspect ratio) */
.ad-plaque-media {
    position: relative;
    width: 100%;
    padding-top: 83.333%; /* 250 / 300 */
    background-color: #000;
    overflow: hidden;
}

/* Image / placeholder fill the frame */
.ad-plaque-media img,
.ad-plaque-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ad-plaque-media img {
    object-fit: cover;
}

/* Placeholder look if no image yet */
.ad-plaque-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-muted);
    background: repeating-linear-gradient(
        45deg,
        #222,
        #222 10px,
        #1a1a1a 10px,
        #1a1a1a 20px
    );
}

/* Sponsored label pill */
.ad-plaque-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.75);
    color: #e5e7eb;
    backdrop-filter: blur(6px);
    z-index: 2;
}

/* Slight accent change on hover */
.ad-plaque:hover .ad-plaque-tag {
    border-color: var(--accent);
}

/* Caption block under the advert */
.ad-plaque-body {
    padding: 10px 12px 12px;
    background: var(--card-bg);
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.ad-plaque-caption {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
}

/* Snippet adverts: force external <a><img> to stay inside our 300x250 */
.ad-plaque-snippet {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ad-plaque-snippet a {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.ad-plaque-snippet img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;   /* force your preference */
    display: block;
    border: 0;
}

.ad-plaque {
    gap: 0; /* overrides .card { gap: 12px } */
}

/* Affiliate name above advert title */
.ad-plaque-affiliate {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    opacity: 0.75;
    margin-bottom: 3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optional micro-separator for visual clarity */
.ad-plaque-affiliate::after {
    content: '';
    display: block;
    margin-top: 3px;
    width: 20px;
    height: 1px;
    background: rgba(148, 163, 184, 0.35);
}

/* Allow grid items to shrink even if injected content has a large intrinsic width */
.advert-grid > * {
    min-width: 0;
}

.ad-plaque {
    min-width: 0;
}

.ad-plaque-caption,
.ad-plaque-affiliate {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ------------------------------------------
   COLLECTOR'S CORNER – HOME SECTION
   ------------------------------------------ */

.home-section--collectors {
    position: relative;
    padding-block: 2.5rem 2.75rem;
    background: radial-gradient(circle at top left,
                rgba(129, 140, 248, 0.16),
                rgba(15, 23, 42, 0.98));
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.home-section--collectors .home-section-title {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
}

.home-section--collectors .home-section-title::after {
    content: "Collector's Editions";
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #a5b4fc;
    opacity: 0.9;
}

.home-section--collectors .home-section-subtitle {
    max-width: 42rem;
    color: var(--text-muted);
}

/* Grid tweaks specifically for collectors */
.card-grid--collectors {
    margin-top: 1.3rem;
}

/* Slightly “premium” feel on the cards in this section */
.card--collectors {
    border-color: rgba(167, 139, 250, 0.45);
    background: radial-gradient(circle at top,
                rgba(15, 23, 42, 0.95),
                rgba(15, 23, 42, 1));
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.card--collectors .card-title {
    font-weight: 600;
}

/* Optional: subtle hover lift */
.card--collectors .card-link:hover {
    transform: translateY(-3px);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(129, 140, 248, 0.45);
}

/* SIDEBAR FILTERING ----------------------------------- */

/* When a sidebar filter card is placed inside a sidebar-card-list,
   strip ALL default padding so it aligns perfectly with other cards */
.sidebar-card-list .sidebar-card-filter .sidebar-card-body {
    padding: 0 !important;
    margin: 0 !important;
}

/* Also reset padding on the dropdown wrapper */
.sidebar-card-list .sidebar-card-filter .sidebar-filter {
    padding: 0 !important;
    margin: 0 !important;
}

/* Reset padding for the list area inside the filter card */
.sidebar-card-list .sidebar-card-filter .sidebar-card-list {
    padding: 0 !important;
    margin: 0 !important;
}

/* Optional: tidy up vertical spacing in filter cards */
.sidebar-card-list .sidebar-card-filter select.sidebar-filter-select {
    width: 100%;
    margin: 0;
    border-radius: 0;
}

/* ------------------------------------------
   SIDEBAR FILTER CARD – nested alignment fix
   ------------------------------------------ */

/* When a filter card is nested inside another sidebar-card
   (e.g. inside a popular/news sidebar list), remove its own
   padding/border so it lines up with the existing content. */
.sidebar-card-body > .sidebar-card.sidebar-card-filter,
.sidebar-card-list > .sidebar-card.sidebar-card-filter {
    padding: 0;
    border: 0;
    box-shadow: none;
}

/* Make the body of the nested filter card flush as well */
.sidebar-card.sidebar-card-filter .sidebar-card-body {
    padding: 0;
    margin: 0;
}

/* Optional: keep the dropdown tidy but aligned with other rows */
.sidebar-card.sidebar-card-filter .sidebar-filter {
    padding: 0.25rem 0.1rem 0.35rem;
    margin: 0;
}

/* If your AJAX-loaded list inside the filter card uses
   .sidebar-card-list, make sure that’s also flush */
.sidebar-card.sidebar-card-filter .sidebar-card-list {
    padding: 0;
    margin: 0;
}

/* Layout for the filter row inside sidebar cards */
.sidebar-card.sidebar-card-filter .sidebar-filter,
.sidebar-card-list .sidebar-card-filter .sidebar-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 0.35rem 0;
    padding: 0 !important; /* keep it flush with other sidebar content */
}

/* Make the select look like the existing .filter-select pill */
.sidebar-card.sidebar-card-filter .sidebar-filter-select,
.sidebar-card-list .sidebar-card-filter .sidebar-filter-select {
    width: 100%;
    font-size: 11px;
    padding: 4px 10px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
}

/* ------------------------------------------
   COLLECTIONS
   ------------------------------------------ */

.card-grid--collection {
    gap: 1.5rem;
}

.card--collectors .card-body {
    border-top: 2px solid rgba(255, 215, 0, 0.25);
}

.card--steelbook .card-body {
    border-top: 2px solid rgba(180, 200, 255, 0.3);
}

.card--retro .card-body {
    border-top: 2px solid rgba(255, 200, 160, 0.3);
}

.card-grid--collection .card-title {
    margin: 0;          /* removes top/bottom spacing */
    padding: 0;         /* ensures no theme padding leaks in */
}

/* Remove underline from the title link */
.card-grid--collection .card-title a {
    text-decoration: none;
    color: inherit;     /* inherits the card title colour */
}

.card-grid--collection .card-title a:hover {
    text-decoration: none;
}

/* ------------------------------------------
   Collections sidebar widget
   ------------------------------------------ */

.sidebar-card--collections .sidebar-card-body {
    gap: 0.25rem; /* slightly tighter vertical spacing */
}

.sidebar-collections-item {
    align-items: center; /* icon + text nicely aligned */
}

/* Icon wrapper next to the text */
.sidebar-collections-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #1f2937, #020617);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
    margin-top: 1px;
}

/* SVG itself */
.sidebar-collections-icon-svg {
    width: 16px;
    height: 16px;
    fill: #e5e7eb;
}

/* Slightly different accent tints per collection */
.sidebar-collections-icon--collectors {
    background: radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.35), #020617);
    border-color: rgba(250, 204, 21, 0.8);
}

.sidebar-collections-icon--steelbook {
    background: radial-gradient(circle at 30% 20%, rgba(129, 140, 248, 0.35), #020617);
    border-color: rgba(129, 140, 248, 0.9);
}

.sidebar-collections-icon--retro {
    background: radial-gradient(circle at 30% 20%, rgba(248, 113, 113, 0.35), #020617);
    border-color: rgba(248, 113, 113, 0.9);
}

/* Keep the usual hover effect but with a tiny extra emphasis on icon */
.sidebar-card--collections .sidebar-card-item:hover .sidebar-collections-icon {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75);
}

/* ----------------------------------------------------------
   COLLECTION CARD ACCENTS
   ---------------------------------------------------------- */

.card-grid--collection .card {
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* GENERAL hover lift for collection cards */
.card-grid--collection .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

/* -----------------------------------------
   STEELBOOK (Blue)
   ----------------------------------------- */

.card--steelbook .card-content {
    border-top: 2px solid rgba(96,165,250,0.45); /* soft blue accent */
}

.card--steelbook .card-media img {
    border-bottom: 1px solid rgba(96,165,250,0.25);
}

.card--steelbook:hover .card-content {
    border-top-color: rgba(96,165,250,0.85);
}

/* optional glow */
.card--steelbook:hover {
    box-shadow: 0 10px 32px rgba(96,165,250,0.25);
}


/* -----------------------------------------
   RETRO (Gold)
   ----------------------------------------- */

.card--retro .card-content {
    border-top: 2px solid rgba(251,191,36,0.45);
}

.card--retro .card-media img {
    border-bottom: 1px solid rgba(251,191,36,0.25);
}

.card--retro:hover .card-content {
    border-top-color: rgba(251,191,36,0.85);
}

.card--retro:hover {
    box-shadow: 0 10px 32px rgba(251,191,36,0.25);
}


/* -----------------------------------------
   COLLECTORS CORNER (Purple)
   ----------------------------------------- */

.card--collectors .card-content {
    border-top: 2px solid rgba(167,139,250,0.45);
}

.card--collectors .card-media img {
    border-bottom: 1px solid rgba(167,139,250,0.25);
}

.card--collectors:hover .card-content {
    border-top-color: rgba(167,139,250,0.85);
}

.card--collectors:hover {
    box-shadow: 0 10px 32px rgba(167,139,250,0.25);
}


/* -----------------------------------------
   OPTIONAL: matching tinted category label
   ----------------------------------------- */

.card--steelbook .card-category {
    color: #60a5fa;
}

.card--retro .card-category {
    color: #fbbf24;
}

.card--collectors .card-category {
    color: #a78bfa;
}

/* ------------------------------------------
   COLLECTOR'S CORNER SIDEBAR
   ------------------------------------------ */

.sidebar-card--collectors {
    position: relative;
    /* reuse base .sidebar-card look but with a subtle collectors tint */
    background: radial-gradient(circle at top left,
                rgba(167, 139, 250, 0.20),
                rgba(15, 23, 42, 0.96));
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

/* Title – same scale as other sidebar titles, with a tiny accent bar */
.sidebar-card--collectors .sidebar-title {
    margin: 0 0 0.25rem;
    padding: 0 0.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.sidebar-card--collectors .sidebar-title::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #a78bfa, #6366f1);
}

/* Small intro line under the title */
.sidebar-card--collectors .sidebar-intro {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Remove default bullets / spacing */
.collectors-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.collectors-item + .collectors-item {
    margin-top: 0.25rem;
}

/* Each row behaves like your other sidebar-card-item rows */
.collectors-link {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;

    padding: 0.35rem 0.25rem;
    border-radius: 10px;

    text-decoration: none;
    transition:
        background 0.18s ease-out,
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out;
}

.collectors-link:hover {
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
    text-decoration: none;
}

/* Thumbnail – matches sidebar-card-thumb size/feel */
.collectors-thumb {
    flex: 0 0 auto;
    width: 54px;
    aspect-ratio: 9 / 14;
    border-radius: 8px;
    overflow: hidden;
    background: #020617;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.collectors-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Right-hand text column */
.collectors-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8rem;
}

/* Title */
.collectors-heading {
    font-size: 0.86rem;
    font-weight: 500;
    color: #e5e7eb;
    line-height: 1.25;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta line under the title (format / year / label text) */
.collectors-meta {
    margin-top: 2px;
    font-size: 0.72rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Container for badges row */
.collectors-badges {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

/* Base badge pill */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

/* Steelbook – match your steelbook blue accents */
.badge--steelbook {
    border-color: rgba(96, 165, 250, 0.8);
    background: rgba(37, 99, 235, 0.16);
    color: #bfdbfe;
}

/* Limited – purple / collectors tint */
.badge--limited {
    border-color: rgba(167, 139, 250, 0.85);
    background: rgba(129, 140, 248, 0.20);
    color: #e0e7ff;
}

/* Exclusive – warm gold/orange highlight */
.badge--exclusive {
    border-color: rgba(251, 191, 36, 0.9);
    background: rgba(245, 158, 11, 0.20);
    color: #fef3c7;
}

/* ------------------------------------------
   COLLECTOR'S EDITION RIBBON
   ------------------------------------------ */

/* Make sure the thumb is positioned for the ribbon */
.collectors-thumb {
    position: relative;
    overflow: hidden;
}

/* Add this class only for the "special" items */
.collectors-thumb--ribbon::before {
    content: "Collector's Edition";
    position: absolute;
    top: 10px;
    left: -36px;

    padding: 2px 42px 3px 32px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;

    background: linear-gradient(90deg, #fbbf24, #f97316, #a855f7);
    color: #111827;

    transform: rotate(-32deg);
    transform-origin: left top;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.65),
        0 0 8px rgba(251, 191, 36, 0.5);

    pointer-events: none;
    z-index: 3;
}

/* Optional: small darker edge under the ribbon for depth */
.collectors-thumb--ribbon::after {
    content: "";
    position: absolute;
    top: 10px;
    left: -36px;
    width: 100px;
    height: 1px;

    background: rgba(0, 0, 0, 0.55);
    transform: rotate(-32deg);
    transform-origin: left top;
    z-index: 2;
}

@media (max-width: 600px) {
    .collectors-thumb {
        width: 50px;
    }

    .collectors-heading {
        -webkit-line-clamp: 3;
    }
}

/* ---------------------------------------------
   SEARCH RESULTS (lightweight enhancements)
   --------------------------------------------- */

.card-grid--search {
    /*margin-top: 12px;*/
    row-gap: 14px;     /* slightly tighter than news/features grids */
    column-gap: 14px;
}

.card--search .card-body {
   padding-top: 0;
}

/* Title weight/spacing – keep it clean but compact */
.card--search .card-title {
    font-size: 14px;	/*15px*/
    line-height: 1.25;
    margin-bottom: 6px;
}

/* Meta line (release date + type) */
.card--search .card-meta {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    gap: 8px;
}

/* Excerpt lines (cast list) */
.card--search .card-excerpt {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
}

/* Directors line (treated as meta but allowed to wrap) */
.card--search .card-meta + .card-meta {
    margin-top: 4px;
}

/* Slight elevation and border highlight on hover */
.card--search:hover {
    transform: translateY(-2px);
    transition: 
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    border-color: rgba(255,255,255,0.15);
}

/* Search cards: keep the same format label look as article pages,
   but slightly tighten spacing so it fits the compact card layout */
.card--search .article-label-format {
    font-size: 10px; /* match article cards */
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    /*background: rgba(15, 23, 42, 0.9);*/
	background: rgba(255, 255, 255, .06);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Match icon size from article pages but ensure alignment */
.card--search .article-label-format .format-icon {
    width: 14px;
    height: 14px;
    opacity: 0.9;
}

/* Keep dark theme consistency */
.card--search {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;	
    transition: 
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.card--search .card-title {
    margin: 0 0 6px;
}

/* Search: article type pill */
.card--search .badge--search-type {
    font-size: 0.62rem;
    padding: 1px 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Allow date + pill to wrap nicely on small screens */
.card--search .card-meta {
    margin-top: 2px;	
    align-items: center;
    flex-wrap: wrap;
}

/* Search: results count badge in header */
.badge--results {
    margin-right: 6px;
    border-color: rgba(56, 189, 248, 0.7);      /* cyan-ish, on-brand */
    background: rgba(56, 189, 248, 0.18);
    color: #e0f2fe;
}

/* --------------------------------------------------
   Search result type badges (tinted but subtle)
   -------------------------------------------------- */

/* NEWS (cool blue) */
.badge--type-news {
    border-color: rgba(56, 189, 248, 0.55);       /* cyan-400 */
    background: rgba(56, 189, 248, 0.15);         /* cyan-400, faint fill */
    color: #bae6fd;                                /* cyan-200 text */
}

/* FEATURE (amber/gold) */
.badge--type-feature {
    border-color: rgba(251, 191, 36, 0.55);        /* amber-400 */
    background: rgba(251, 191, 36, 0.15);
    color: #fef3c7;                                /* amber-100 */
}

/* REVIEW (violet/purple) */
.badge--type-review {
    border-color: rgba(167, 139, 250, 0.55);       /* violet-400 */
    background: rgba(167, 139, 250, 0.15);
    color: #ede9fe;                                /* violet-100 */
}

/* Fallback/unknown (neutral slate) */
.badge--type-generic {
    border-color: rgba(148, 163, 184, 0.55);
    background: rgba(148, 163, 184, 0.15);
    color: #f1f5f9;
}

/* ------------------------------------------
   CONTACT FORM (site-native)
   ------------------------------------------ */

.contact-form {
    font-size: 0.85rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-field--full {
    grid-column: 1 / -1;
}

/* Labels match archive/filter tone */
.contact-field label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Inputs reuse your pill / filter styling */
.contact-field input,
.contact-field select,
.contact-field textarea {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 12px;
    padding: 8px 10px;
    font: inherit;
    color: #e5e7eb;
}

.contact-field textarea {
    resize: vertical;
}

/* Focus state matches accent behaviour */
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.35);
}

/* Consent row */
.contact-consent label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.contact-consent input {
    margin-top: 2px;
}

/* Actions */
.contact-actions {
    display: flex;
    gap: 10px;
}

.contact-guard-msg {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.45);
    color: #fecdd3;
    font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.principles-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.principles-list li {
    position: relative;

    /* Extra left padding so text clears the accent bar */
    padding: 10px 14px 10px 28px;

    border-radius: 12px;
    background: linear-gradient(
        180deg,
        rgba(30, 41, 59, 0.55),
        rgba(15, 23, 42, 0.75)
    );
    border: 1px solid rgba(148, 163, 184, 0.28);

    line-height: 1.5;
}

.principles-list li + li {
    margin-top: 8px;
}

/* Left accent bar */
.principles-list li::before {
    content: "";
    position: absolute;
    left: 10px;          /* pulls bar slightly away from text */
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(
        180deg,
        rgba(96, 165, 250, 0.9),
        rgba(59, 130, 246, 0.5)
    );
}

.principles-list li:hover::before {
    opacity: 1;
}

.principles-list li::after {
    content: none;
}

/* Hover lift */
.principles-list li:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

@media (max-width: 600px) {
    .principles-list li {
        padding-left: 26px;
    }

    .principles-list li::before {
        left: 8px;
    }
}

/* ------------------------------------------
   STATIC PAGES (About / Contact etc.)
   ------------------------------------------ */

.page-content--static {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 18px;
    padding: 16px 14px 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
}

.page-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.page-header h1 {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.2;
}

.page-intro {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

/* Each section block = “review-section” vibe, but generic */
.page-content--static .content-block {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

/* Headings inside blocks */
.page-content--static .content-block h2 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
}

/* Paragraph rhythm */
.page-content--static .content-block p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
}

.bbfc-cert {
    width: 19px;
    height: 19px;
    vertical-align: middle;
    margin-left: 6px;
    opacity: 0.95;
}

@media (max-width: 640px) {
    .bbfc-cert {
        width: 16px;
        height: 16px;
    }
}

/* ------------------------------------------------------------
   Sidebar Quote Card
------------------------------------------------------------ */

.sidebar-card-quote {
    /* keep standard sidebar-card padding & radius */
    position: relative;
}

/* Subtle quotation mark accent (very restrained) */
.sidebar-card-quote::before {
    content: "“";
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 42px;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(148, 163, 184, 0.18);
    pointer-events: none;
}

/* Quote container */
.sidebar-quote {
    margin: 0;
    padding: 0;
}

/* Quote text */
.sidebar-quote-text {
    margin: 0;
    font-style: italic;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #e5e7eb;

    /* safety for long quotes */
    overflow-wrap: anywhere;
}

/* Footer row */
.sidebar-quote-footer {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

/* Film title */
.sidebar-quote-film {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 75%;
}

/* Year */
.sidebar-quote-year {
    opacity: 0.75;
}

/* Optional article link */
.sidebar-quote-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;

    transition:
        color var(--transition-fast),
        transform var(--transition-fast);
}

.sidebar-quote-link:hover {
    color: var(--accent);
    transform: translateX(1px);
    text-decoration: none;
}

.sidebar-card-external{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  opacity:.75;
}

.sidebar-card-item:hover .sidebar-card-external{
  opacity:1;
}

.imdb-badge{
  vertical-align:middle;
}

/* Badge base (positioning is handled in .card-media below) */
.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;

  pointer-events: none;
}

/* Updated */
.card-badge--updated{
  background:rgba(255,255,255,.95);
}

/* New – slightly stronger */
.card-badge--new{
  background:#111;
  color:#fff;
}

.card, .card-media{
  position:relative;
}

/* ------------------------------------------
   CHART WIDGETS
   ------------------------------------------ */

.chart-widget {
    font-size: 0.9rem;
}

.chart-widget-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.chart-widget-row:last-child {
    border-bottom: none;
}

.chart-widget-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.chart-widget-title {
    font-weight: 600;
}

.chart-widget-title:hover {
    text-decoration: underline;
}

.chart-widget-meta {
    display: flex;
    gap: 8px;
    margin-top: 3px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chart-widget-badge {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: var(--accent-soft);
}

.chart-widget-rank {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    padding: 6px 0;
}

.chart-widget-number {
    font-weight: 700;
    color: var(--text-muted);
}

.chart-widget-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-card-movers .sidebar-card-thumb,
.sidebar-card-charts .sidebar-card-thumb {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

.sidebar-card-movers .sidebar-card-item-meta,
.sidebar-card-charts .sidebar-card-item-meta {
    align-items: center;
}

.sidebar-card-movers .sidebar-card-trend,
.sidebar-card-charts .sidebar-card-trend {
    min-width: 0.2em /*2.2em;*/
    font-weight: 700;
    color: var(--text-muted);
}

.sidebar-card-movers .sidebar-card-tag,
.sidebar-card-charts .sidebar-card-tag {
    flex: 0 0 auto;
}

/* ------------------------------------------
   ARTICLE FOOTER
   ------------------------------------------ */

/* Article footer stack */
.article-footer-stack {
  margin-top: 18px;
}

.footer-stack-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, 1fr);
}

.footer-card {
  grid-column: span 4;
}

/* Responsive footer cards */
@media (max-width: 1024px) {
  .footer-card { grid-column: span 6; }
}

@media (max-width: 640px) {
  .footer-card { grid-column: span 12; }
}

/* Footer mini list */
.footer-mini-list {
  display: grid;
  gap: 10px;
}

.footer-mini-item {
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: inherit;

  border-radius: 12px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.footer-mini-item:hover,
.footer-mini-item:focus {
  text-decoration: none;
  color: inherit;
}

.footer-mini-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.footer-mini-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: cover;
  border-radius: 10px;
}

.footer-mini-thumb--blank {
  flex: 0 0 52px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-mini-text {
  min-width: 0;
}

.footer-mini-title {
  font-size: 13px;
  line-height: 1.2;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  overflow: hidden;
}

.footer-glance { display: grid; gap: 6px; margin: 0; }
.footer-glance div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.footer-glance dt { font-size: 12px; opacity: 0.75; }
.footer-glance dd { margin: 0; font-size: 12px; }

.footer-label-list { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-label-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.footer-poster-grid {
  display: grid;
  gap: 8px;
}

.footer-poster-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.footer-poster {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.footer-poster:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.footer-poster img,
.footer-poster--blank {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.footer-poster--blank {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 640px) {
  .footer-poster-grid--cols-4 { grid-template-columns: repeat(3, 1fr); }
}

/* Galaxy S24 / small phones (≈360px CSS width) */
@media (max-width: 420px) {

  /* Poster grids: smaller + denser */
  .footer-poster-grid {
    gap: 6px;
  }

  /* Keep 4 columns so posters are smaller */
  .footer-poster-grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-poster img,
  .footer-poster--blank {
    border-radius: 8px;
  }

  /* Mini list cards (if any still render) */
  .footer-mini-thumb {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
  }

  .footer-mini-list { gap: 8px; }

  .footer-mini-title {
    font-size: 12px;
    line-height: 1.15;
  }

  /* Optional: reduce vertical “bulk” of the card */
  .article-footer-stack { margin-top: 12px; }

  .sidebar-card.footer-card .sidebar-card-body {
    padding: 10px;
  }
}

/* ------------------------------------------
   LEGAL PAGE TYPOGRAPHY
   ------------------------------------------ */

.legal-content {
    font-size: 14px;          /* match article body */
    line-height: 1.6;
}

/* Headings */
.legal-content h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
}

/* Paragraphs */
.legal-content p {
    margin: 0 0 0.75rem;
    color: #e5e7eb;
}

/* Lists – clean, readable, not browser-default */
.legal-content ul,
.legal-content ol {
    margin: 0.5rem 0 0.9rem;
    padding-left: 1.2rem;
    font-size: 14px;
}

/* List items */
.legal-content li {
    margin-bottom: 0.35rem;
    color: #e5e7eb;
}

/* Optional: subtle bullet refinement */
.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

/* Muted secondary text */
.legal-content small,
.legal-content .muted {
    color: var(--text-muted);
    font-size: 0.85em;
}

/* Behind the Film / Behind the Series */

.film-metadata.article-block { margin: 0; padding: 22px 24px; }
.film-metadata-subtitle, .film-metadata-identity p { color: var(--text-muted); font-size: .82rem; margin: 5px 0 0; }
.film-metadata-identity h3 { margin: 0; font-size: 0.95rem; font-weight: 500; color: #cbd5e1; }
.film-metadata-group-title { margin: 22px 0 12px; padding-top: 14px; border-top: 1px solid rgba(148,163,184,.22); color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; }
.film-metadata-grid, .film-metadata-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 24px; margin: 0; }
.film-metadata-grid dt, .film-metadata-stats dt { color: var(--text-muted); font-size: .76rem; margin-bottom: 4px; }
.film-metadata-grid dd { margin: 0; font-size: .95rem; color: #e2e8f0; overflow-wrap: anywhere; }
.film-metadata-stats { grid-template-columns: repeat(auto-fit,minmax(100px,1fr)); gap: 8px; margin-top: 16px; }
.film-metadata-stats div { display: flex; flex-direction: column-reverse; text-align: center; padding: 12px 6px; background: rgba(148,163,184,.08); border: 1px solid rgba(148,163,184,.18); border-radius: 9px; }
.film-metadata-stats dd { margin: 0 0 5px; font-size: 1.5rem; font-weight: 600; color: #e2e8f0; }
.film-metadata-source { margin-top: 22px; padding-top: 12px; border-top: 1px solid rgba(148,163,184,.22); color: var(--text-muted); font-size: .72rem; }
@media (max-width: 540px) { .film-metadata.article-block { padding: 16px; } .film-metadata-grid { grid-template-columns: 1fr; gap: 12px; } }

/* Metadata phase 2: recorded awards */
.film-metadata-awards { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.film-metadata-awards li { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(148,163,184,.25); border-radius: 8px; background: rgba(30,41,59,.65); }
.film-metadata-awards svg { flex: 0 0 22px; color: #cbd5e1; }
.film-metadata-awards .film-metadata-award--award svg { color: #d4af37; }
.film-metadata-awards small { display: block; color: #94a3b8; font-size: .72rem; }
.film-metadata-awards span { overflow-wrap: anywhere; font-size: .85rem; }
@media (max-width: 640px) { .film-metadata-awards { grid-template-columns: 1fr; } }

/* Film anniversary results summary */
.anniversary-results-summary { margin-top: 4px; }

/* RESPONSIVE ----------------------------------- */
@media (max-width: 768px) {
    .site-nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        padding: 10px 16px 10px;
        flex-direction: column;
        gap: 6px;
        background: rgba(2, 6, 23, 0.98);
        border-bottom: 1px solid rgba(148, 163, 184, 0.3);
        transform-origin: top;
        transform: scaleY(0.9);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.16s ease-out, transform 0.16s ease-out;
    }

    .site-header.nav-open .site-nav {
        opacity: 1;
        transform: scaleY(1);
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .site-header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero {
        border-radius: 20px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        max-height: 200px;
    }

    .layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .card {
        padding: 9px;
    }

    .article {
        padding: 12px 10px 14px;
    }

    .article-header-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-summary-box {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-scores {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 769px) {
    .hero-inner {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .hero-content {
        padding: 20px 20px 20px;
    }

    .hero-title {
        font-size: 26px;
    }

    .layout {
        grid-template-columns: minmax(0, 3fr) minmax(0, 1.3fr);
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
