/* ==========================================================================
   Visual Cinnamon - Nadieh Bremer
   ========================================================================== */

:root {
    --bg-page: #FAF7F2;
    --bg-page-dark: #f8f0e6;
    --bg-chart: #FFFFFF;
    --bg-panel: #F3ECE1;
    --bg-tooltip: #fbf8f4;
    --text-main: #130c08;
    --text-muted: #796e66;
    --text-light: #b2a399;
    
    /* Retro 3D Glasses Colors */
    --color-female: #EF233C;
    --color-female-dark: #B5172C;
    --color-female-bg: #FEE2E2;
    --color-male: #0096C7;
    --color-male-dark: #006494;
    --color-male-bg: #E0F2FE;
    --color-hit: #D97706;
    
    /* Fonts */
    --font-display: 'Bungee', cursive, sans-serif;
    /* --font-display: 'BioRhyme', cursive, sans-serif; */
    /* --font-display: 'Righteous', cursive, sans-serif; */
    --font-heading: 'Space Grotesk', sans-serif;
    /* --font-body: 'Plus Jakarta Sans', sans-serif; */
    --font-body: 'Fira Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-page);
    background: linear-gradient(
        to right,
        var(--bg-page-dark) 0%,
        var(--bg-page) 30%,
        var(--bg-page) 70%,
        var(--bg-page-dark) 100%
    );
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 24px 20px 60px 20px;
    min-height: 100vh;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.highlight {
    font-weight: 700;
    color: var(--color-hit);
    /* font-size: 1.05em; */
}

.actor-highlight {
    font-weight: 700;
    color: #3a1608;
    /* font-family: var(--font-heading); */
}

/* ==========================================================================
   Article Hero & Title Section
   ========================================================================== */

.article-hero {
    text-align: center;
    padding: 24px 10px 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-image {
    max-width: min(500px, 85vw);
    width: 100%;
    height: auto;
    margin: 0 auto 2em auto;
    display: block;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 8.5vw, 6.2rem);
    line-height: 1.05;
    letter-spacing: 0.05em;
    color: #00152f;
    margin: 0 auto;
    /* 3D anaglyph glasses effect */
    text-shadow: 
        0.04em 0.03em 0.01em var(--color-female),
        -0.04em -0.03em 0.01em var(--color-male)
}

/* ==========================================================================
   Editorial Story Container & Typography
   ========================================================================== */

.article-story-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-section {
    width: 100%;
}

.story-paragraph {
    font-family: var(--font-body);
    font-size: 1.1em;
    line-height: 1.75;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.story-paragraph.lead-paragraph {
    font-family: var(--font-heading);
    font-size: 1.2em;
    margin-bottom: 2.1rem;
    font-weight: 600;
}

.story-paragraph.note, .note {
    font-style: italic;
    font-size: 0.9em;
    font-weight: 400;
    color: var(--text-muted);
}

.story-popcorn-icon {
    height: 1.4em;
    width: auto;
    vertical-align: -0.22em;
    display: inline-block;
    margin: 0 0.15em;
}

.story-popcorn-piece {
    height: 1.25em;
    width: auto;
    vertical-align: -0.15em;
    display: inline-block;
    margin: 0 0.15em;
}

.story-oscar-legend {
    height: 1.25em;
    width: auto;
    vertical-align: -0.15em;
    display: inline-block;
    margin: 0 0.2em;
}

.story-paragraph.lead-paragraph::first-letter {
    font-family: var(--font-display);
    font-size: 3.5rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.16em;
    margin-top: 0.08em;
    color: #00152f;
    text-shadow: 0.04em 0.03em 0.01em var(--color-female), -0.04em -0.03em 0.01em var(--color-male);
}

.section-image-glasses {
    display: block;
    margin: 2rem auto 6rem auto;
    height: 80px;
    max-width: 90%;
    width: auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #3a1608;
    margin: 2.2rem 0 1.25rem 0;
}

.story-subtitle {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #3a1608;
    margin: 2.2rem 0 0.85rem 0;
}

.story-conclusion {
    /* font-family: var(--font-heading); */
    font-size: 1.15rem;
    font-weight: 700;
    color: #1C1917;
    margin: 2rem 0 0.5rem 0;
}

/* ==========================================================================
   Visual Placeholders (Simple & Clean)
   ========================================================================== */

.visual-placeholder {
    margin: 1.5rem 0;
    padding: 14px 18px;
    background: #F3ECE1;
    color: #6e5c4b;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 6px;
}

/* ==========================================================================
   Full Visual Section
   ========================================================================== */

.full-visual-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================================
   Data and Methods Section
   ========================================================================== */

.data-methods-section {
    max-width: 800px;
    margin: 1.5rem auto 0 auto;
    width: 100%;
}

.methods-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #3a1608;
    margin-bottom: 1rem;
}

.methods-list {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.65;
    color: #443c36;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.methods-list li {
    padding-left: 0.25rem;
}

.methods-list li::marker {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-hit);
}

.methods-source {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1.25rem;
}

/* ==========================================================================
   Legend
   ========================================================================== */

.legend-panel {
    background: var(--bg-panel);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    /* border-radius: 2em;
    corner-shape: scoop; */
}

.legend-section {
    display: flex;
    /* align-items: center; */
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.legend-title {
    font-family: var(--font-display);
    font-size: 1.5em;
    line-height: 1.25;
    letter-spacing: 0.03em;
    color: var(--text-main);
    text-align: right;
}

.legend-content-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    row-gap: 1em;
    column-gap: 1.1em;
    align-items: center;
}

.legend-label-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    justify-content: center;
    height: 30px;
}

.legend-items-col {
    display: flex;
    align-items: center;
    gap: 1.3em;
    justify-content: flex-start;
}

.legend-label {
    font-family: var(--font-heading);
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--text-main);
}

.legend-label-sub {
    font-family: var(--font-body);
    font-size: 0.7em;
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    /* letter-spacing: 0.02em; */
    margin-top: 1px;
    line-height: 1.1;
}

.legend-text {
    color: #512f1c;
    /* color: var(--text-muted); */
    letter-spacing: 0.02em;
    font-weight: 400;
    font-size: 1em;
    transform: translateY(-1.5px);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.legend-circle {
    width: 28px;
    height: 6px;
    border-radius: 12px;
    display: inline-block;
}

.female-circle {
    background-color: var(--color-female);
}

.male-circle {
    background-color: var(--color-male);
}

.legend-sizes-container {
    display: inline-flex;
    align-items: center;
    gap: 1.5em;
}

.size-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 0.9em;
    /* letter-spacing: 0.02em; */
    color: #512f1c;
    /* color: var(--text-muted); */
}

.popcorn-size {
    display: inline-block;
    vertical-align: middle;
    transform-origin: center center;
    flex-shrink: 0;
}

.size-10 { width: 8px; height: 8px; }
.size-100 { width: 11px; height: 11px; }
.size-500 { width: 15px; height: 15px; }
.size-1000 { width: 18px; height: 18px; }

/* ==========================================================================
   Filter & Search Controls
   ========================================================================== */
.filter-controls-section {
    background: var(--bg-panel);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border-radius: 8px;
}

.filter-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-content-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1.1em;
}

.filter-label-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    justify-content: center;
    height: 30px;
}

.filter-items-col {
    display: flex;
    align-items: center;
}

.filter-label {
    font-family: var(--font-heading);
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--text-main);
}

.filter-label-sub {
    font-family: var(--font-body);
    font-size: 0.7em;
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1px;
    line-height: 1.1;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    font-family: var(--font-body);
    font-size: 13px;
    padding: 7px 28px 7px 32px;
    background: #FFFFFF;
    border: 1px solid #D6CBC1;
    border-radius: 6px;
    color: var(--text-main);
    width: 200px;
    transition: all 0.2s ease;
}

.search-box input::placeholder {
    color: #a89d94;
    font-style: italic;
    font-size: 12.5px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--text-main);
    width: 225px;
    box-shadow: 0 0 0 3px rgba(19, 12, 8, 0.06);
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    display: none;
    padding: 0 4px;
    transition: color 0.15s ease;
}

.search-clear-btn:hover {
    color: var(--text-main);
}

.search-clear-btn.visible {
    display: block;
}

.gender-toggle-group {
    display: flex;
    background: #E5DDD3;
    padding: 3px;
    border-radius: 8px;
    gap: 3px;
}

.toggle-btn {
    font-family: var(--font-body);
    font-size: 0.8em;
    font-weight: 400;
    padding: 5px 13px;
    border: none;
    background: transparent;
    color: #512f1c;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toggle-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.5);
}

.toggle-btn.active {
    background: #FFFFFF;
    color: var(--text-main);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.toggle-btn.female-btn.active {
    color: var(--color-female-dark);
}

.toggle-btn.male-btn.active {
    color: var(--color-male-dark);
}

/* Movie search match highlight circles */
.movie-search-circle {
    pointer-events: none;
    fill: none;
    stroke-linecap: round;
    transition: opacity 0.2s ease;
}

/* ==========================================================================
   Chart Wrapper & SVG Rendering
   ========================================================================== */

#chart-wrapper, .chart-wrapper {
    background: var(--bg-chart);
    /* border: 2px solid #E7DFD5; */
    /* border-radius: 16px; */
    padding: 0 20px 24px 20px;
    box-shadow: 0 4px 20px rgba(28, 25, 23, 0.04);
    overflow-x: clip;
    position: relative;
    border-radius: 8px;
}

.mini-chart-wrapper {
    margin: 2rem 0;
    border-radius: 8px;
    padding-bottom: 8px;
}

/* Scrollytelling Setup (What the Data Tells Us) - Large Screens */
.mini-scrolly-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.mini-scrolly-text-container {
    order: 1;
}

.mini-scrolly-chart-container {
    order: 2;
    position: static;
    height: auto;
    margin-bottom: 0;
}

.mini-scrolly-step {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.mini-scrolly-step:last-child .story-paragraph:last-child {
    margin-bottom: 0;
}

#chart, [id^="mini-chart-"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    width: 100%;
}

.sticky-axis-container {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-chart);
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 14px;
    padding-bottom: 2px;
}

.axis-top-svg {
    display: block;
    overflow: visible;
}

.actor-beeswarm-svg {
    overflow: visible;
    /* border: 1px solid black; */
}

.chart-note {
    position: relative;
    display: inline-block;
    max-width: min(450px, calc(100% - 20px));
    margin: 16px 0 0 0;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75em;
    line-height: 1.45;
    /* color: var(--text-muted); */
    color: var(--color-hit);
}

.chart-footnote {
    margin: 20px auto 0 auto;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.75em;
    color: var(--text-muted);
    line-height: 1.45;
    /* max-width: 750px; */
}

/* SVG Chart Typography & Styling */
.chart-axis-text {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    fill: #78716C;
}

.chart-axis-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    fill: #44403C;
}

.chart-axis-subtitle {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    font-style: italic;
    fill: #44403C;
    opacity: 0.6;
}

.grid-line {
    stroke: #ECE5DC;
    stroke-width: 1px;
    stroke-dasharray: 4, 4;
    stroke-linecap: round;
    opacity: 0.6
}

.threshold-line {
    stroke: var(--color-hit);
    stroke-width: 1.5px;
    stroke-dasharray: 4, 4;
}

/* Actor Rows */
.actor-row {
    cursor: default;
}

.actor-row.dimmed {
    opacity: 0.15;
    transition: opacity 0.2s ease;
}

.row-hover-bg {
    fill: transparent;
    transition: fill 0.15s ease;
    rx: 8px;
}

.actor-row:hover .row-hover-bg {
    fill: rgba(0, 0, 0, 0.025);
}

/* Actor Photo & Label Interaction */
.actor-label-group,
.actor-photo-group {
    cursor: pointer;
}

.actor-photo-group {
    pointer-events: auto;
}

.actor-photo-bg,
.actor-photo-img,
.actor-photo-frame {
    pointer-events: auto;
}

.actor-photo-frame {
    shape-rendering: geometricPrecision;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.actor-photo-group:hover .actor-photo-frame {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.actor-rank-text {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    fill: #817c78;
}

.actor-dot-symbol {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    fill: #817c78;
}

.actor-name-text {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 400;
    fill: #1C1917;
    transition: fill 0.15s ease;
    letter-spacing: 0.03em;
}

.actor-row:hover .actor-name-text {
    fill: #000000;
}

.actor-median-tag-bg {
    fill: #F3ECE1;
    rx: 4px;
}

.actor-median-tag-text {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    fill: #78716C;
    text-anchor: middle;
}

.actor-median-tag-note {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 400;
    fill: #78716C;
    font-style: italic;
    letter-spacing: 0.02em;
}

.actor-baseline {
    stroke-linecap: round;
    transition: stroke-width 0.15s ease, stroke-opacity 0.15s ease;
}

.actor-row:hover .actor-baseline {
    stroke-opacity: 0.75;
    stroke-width: 2px;
}

/* Movie Popcorn Marks */
.movie-mark {
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.15s ease, stroke-width 0.15s ease, filter 0.15s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.movie-mark:hover {
    /* stroke: #1C1917 !important; */
    /* stroke-width: 2.2px !important; */
    transform: scale(1.35);
    filter: drop-shadow(0 3px 6px rgba(185, 104, 16, 0.3));
}

.movie-mark.dimmed, .median-popcorn.dimmed {
    opacity: 0.2;
    transition: opacity 0.2s ease;
}

/* Movie Annotations */
.annotation-item {
    transition: opacity 0.2s ease;
}

.annotation-item.dimmed {
    opacity: 0.2;
    transition: opacity 0.2s ease;
}

.movie-annotation-circle {
    pointer-events: none;
    mix-blend-mode: multiply;
}

.movie-annotation-fo {
    overflow: visible;
    pointer-events: none;
}

.movie-annotation-content {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.35;
    color: #3A1608;
    text-shadow: 0 1px 2px rgba(250, 247, 242, 0.95), 0 0 6px rgba(250, 247, 242, 0.95), 0 0 10px rgba(250, 247, 242, 0.85);
    pointer-events: none;
    user-select: none;
}

.movie-annotation-content em,
.movie-annotation-content i {
    font-style: italic;
    font-weight: 600;
}


/* ==========================================================================
   Vintage Cinema Ticket Stub Tooltip
   ========================================================================== */

.cinema-tooltip {
    position: fixed;
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    filter: drop-shadow(0 6px 9px rgba(114, 70, 26, 0.22)) drop-shadow(0 2px 4px rgba(137, 84, 34, 0.1));
}

.ticket-stub-inner {
    background: var(--bg-tooltip);
    color: var(--text-main);
    width: 390px;
    max-width: calc(100vw - 24px);
    border-radius: 24px;
    corner-shape: scoop;
    padding: 14px;
    position: relative;
}
.ticket-stub-inner.ticket-stub-inner-actor {
    width: 440px;
}

.ticket-stub-inner-inner {
    border-radius: 20px;
    corner-shape: scoop;
    border: 2px solid #E4D9CA;
    padding: 15px 22px 11px 24px;
    position: relative;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #D6CBC1;
}

.ticket-type {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #92400E;
    text-transform: uppercase;
}

.ticket-year, .ticket-profile {
    font-family: var(--font-heading);
    font-size: 0.75em;
    font-weight: 700;
    /* color: var(--text-main); */
    color: var(--bg-tooltip);
    background: #EFE8DE;
    padding: 0.3em 0.5em;
    letter-spacing: 0.06em;
    border-radius: 4px;
}
.ticket-profile {
    font-size: 0.65em;
    letter-spacing: 0.08em;
}

.ticket-title {
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.ticket-role {
    font-size: 13px;
    line-height: 1.35;
    color: #57534E;
    margin-bottom: 12px;
}

.ticket-role .actor-name {
    color: var(--text-muted);
    font-style: italic;
}

.role-character {
    color: var(--text-main);
    font-weight: 700;
}

/* Actor Ticket Specific Hero & Known For */
.ticket-actor-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
}

.ticket-actor-photo-wrap {
    width: 102px;
    height: 102px;
    min-width: 102px;
    border-radius: 50%;
    border: 4px solid #E4D9CA;
    overflow: hidden;
    position: relative;
    /* box-shadow: 0 2px 6px rgba(44, 26, 15, 0.15); */
    background: #FAF7F2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ticket-actor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.ticket-actor-photo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 0.05em;
    z-index: 0;
}

.ticket-actor-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.ticket-actor-details .ticket-title {
    margin-bottom: 4px;
    word-break: break-word;
}

.ticket-actor-info-list {
    display: flex;
    flex-direction: column;
    gap: 2.5px;
}

.ticket-info-row {
    font-size: 12px;
    line-height: 1.35;
    color: #57534E;
}

.ticket-info-row .role-label {
    color: var(--text-muted);
    font-style: italic;
    font-size: 11.5px;
    margin-right: 4px;
}

.ticket-info-row .info-val {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #2c1a0f;
    font-size: 11.5px;
}

.ticket-info-row .info-val.hit-val {
    color: var(--color-hit);
}

.ticket-info-row .info-sub {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
}

.ticket-known-for-card {
    margin-top: 10px;
    background: rgba(243, 236, 225, 0.65);
    border-radius: 8px;
    padding: 10px 13px 10px 13px;
}

.ticket-known-for-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ticket-known-for-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #92400E;
    text-transform: uppercase;
}

.ticket-known-for-sub {
    font-family: var(--font-body);
    font-size: 10px;
    font-style: italic;
    color: var(--text-muted);
}

.ticket-known-for-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.ticket-movie-pill {
    /* display: inline-flex; */
    /* align-items: center; */
    /* gap: 5px; */
    background: #FFFFFF;
    /* border-radius: 5px; */
    padding: 0.3em 0.6em;
}

.ticket-movie-name {
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 700;
    color: #2C1A0F;
    line-height: 1.65;
}

.ticket-movie-year {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 500;
    color: #6e5c4b;
    background: #F3ECE1;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.ticket-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 8px;
    background: var(--bg-panel);
    padding: 10px 14px;
    border-radius: 8px;
    text-align: center;
}

.stat-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-col:not(:last-child) {
    border-right: 1px dashed white;
    padding-right: 8px;
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.6em;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #655043;
    text-transform: uppercase;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 1em;
    font-weight: 700;
    /* color: var(--text-main); */
    color: #2c1a0f;
    line-height: 1.15;
    margin-top: 1px;
}

.stat-val.hit-val, .stat-sub.hit-text {
    color: var(--color-hit);
}

.stat-sub {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.15;
    margin-top: 2px;
    white-space: nowrap;
    /* text-align: right; */
}

.ticket-oscar-info {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #ffd28973;
    border-radius: 6px;
    font-size: 11.5px;
    line-height: 1.35;
    color: #854D0E;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-oscar-info .oscar-icon {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.ticket-oscar-info strong {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #78350F;
    font-size: 1.1em;
}

.ticket-inflation-note {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.2;
    /* text-align: right; */
}

.oscar-badge {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    color: #854D0E;
    background: #FEF08A;
    padding: 3px 8px;
    border-radius: 6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.visual-footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-content {
    line-height: 1.75;
}

.footer-oscar-statue {
    display: block;
    margin: 0 auto 1.25rem auto;
    width: 60px;
    height: auto;
}

.visual-footer a {
    color: var(--color-hit);
    text-decoration: none;
    font-weight: 600;
}

.visual-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    body {
        padding: 1em 1em 1em 1em;
    }
    
    .article-hero {
        padding: 20px 6px 10px 6px;
    }

    .article-story-container {
        padding: 0 4px;
        gap: 16px;
    }

    .story-paragraph {
        font-size: 1.02rem;
        line-height: 1.68;
        margin-bottom: 1rem;
    }

    .story-paragraph.lead-paragraph {
        font-size: 1.12rem;
        line-height: 1.68;
    }

    .story-paragraph.lead-paragraph::first-letter {
        font-size: 3rem;
    }

    .data-methods-section {
        padding: 0 4px;
    }
    
    .filter-content-grid {
        gap: 1.2rem;
    }

    .filter-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-label-col {
        align-items: center;
        text-align: center;
        height: auto;
    }
    
    .search-box input {
        width: 170px;
    }
    
    .search-box input:focus {
        width: 190px;
    }

    #chart-wrapper {
        padding: 0 0.5em 1.5em 0.5em;
    }
}

@media (max-width: 600px) {
    body {
        background: var(--bg-page);
    }

    .annotations-group,
    .annotation-item {
        display: none;
    }

    .legend-section {
        gap: 1.25rem;
    }

    .legend-title {
        text-align: center;
    }

    .legend-content-grid {
        grid-template-columns: 1fr;
        row-gap: 0.4em;
        justify-items: center;
    }

    .legend-label-col {
        align-items: center;
        text-align: center;
        height: auto;
    }

    .legend-label-col:not(:first-child) {
        margin-top: 1em;
    }

    .legend-items-col {
        justify-content: center;
    }

    .legend-sizes-container {
        justify-content: center;
        gap: 1.2em;
    }

    .legend-sizes-container .size-item:has(.size-500),
    .legend-sizes-container .size-item:nth-child(3) {
        display: none;
    }

    /* Scrollytelling Setup (What the Data Tells Us) - Small Screens */
    .mini-scrolly-section {
        position: relative;
        display: block;
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    .mini-scrolly-section:not(:last-child) {
        margin-bottom: 3.5rem;
    }

    .mini-scrolly-section:has(#mini-chart-1),
    .mini-scrolly-section:nth-of-type(1) { --chart-half-h: 110px; }

    .mini-scrolly-section:has(#mini-chart-2),
    .mini-scrolly-section:nth-of-type(2) { --chart-half-h: 110px; }

    .mini-scrolly-section:has(#mini-chart-4),
    .mini-scrolly-section:nth-of-type(3) { --chart-half-h: 365px; }

    .mini-scrolly-section:has(#mini-chart-5),
    .mini-scrolly-section:nth-of-type(4) { --chart-half-h: 170px; }

    .mini-scrolly-chart-container {
        position: -webkit-sticky;
        position: sticky;
        top: calc(50vh - var(--chart-half-h, 100px));
        top: calc(50dvh - var(--chart-half-h, 100px));
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
        z-index: 1;
        pointer-events: none;
        width: 100%;
    }

    .mini-scrolly-chart-container .mini-chart-wrapper {
        margin: 0;
        width: 100%;
        padding: 0 8px 12px 8px;
    }

    .mini-scrolly-text-container {
        position: relative;
        z-index: 2;
        margin-top: 12vh;
        margin-top: 12dvh;
        padding-top: 0;
        padding-bottom: calc(35vh + var(--chart-half-h, 100px));
        padding-bottom: calc(35dvh + var(--chart-half-h, 100px));
        pointer-events: none;
    }

    .mini-scrolly-step {
        position: relative;
        pointer-events: auto;
        background: rgba(250, 247, 242, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 10px;
        box-shadow: 0 0px 20px rgb(152 93 59 / 23%);
        padding: 1.3em 1.3em;
        margin: 0 auto;
        max-width: 500px;
        width: 100%;
    }

    .mini-scrolly-step .story-subtitle {
        margin-top: 0;
        margin-bottom: 0.6rem;
    }

    .mini-scrolly-step .story-paragraph:last-child {
        margin-bottom: 0;
    }

    .mini-scrolly-step:not(:last-child) {
        margin-bottom: 65vh;
        margin-bottom: 65dvh;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.35rem;
    }

    .story-subtitle {
        font-size: 1.15rem;
    }

    .story-conclusion {
        font-size: 1.05rem;
    }

    .visual-placeholder {
        padding: 10px 12px;
        font-size: 0.88rem;
    }
}

@media (max-width: 400px) {
    #filter-gender-label {
        display: none;
    }
}