:root {
    --bg-gradient: linear-gradient(135deg, #110518 0%, #050508 100%);
    --accent-gradient: linear-gradient(90deg, #FF3366 0%, #BA265D 50%, #7652C6 100%);
    --movie-gradient: linear-gradient(90deg, rgb(0, 71, 171) 0%, #1ca9c9 100%);
    --series-gradient: linear-gradient(90deg, rgb(255, 115, 0) 0%, #BABA00 100%);
    --text-main: #ffffff;
    --text-muted: #848497;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    background: #050508; /* Fallback */
    background: var(--bg-gradient);
}

.reveal {
    font-family: var(--font-stack);
    color: var(--text-main);
}

/* Typography Overrides */
.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
    font-family: var(--font-stack);
    text-transform: none; /* Override Reveal's default uppercase */
    letter-spacing: -0.03em;
    margin: 0 0 20px 0;
}

.text-subtle {
    color: var(--text-muted);
}

.reveal h1 {
    font-weight: 800;
    font-size: 3.5em;
}

.reveal h2 {
    font-weight: 700;
    font-size: 2.5em;
}

/* Gradient Text Utility */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(186, 38, 93, 0.3));
}

.text-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(186, 38, 93, 0.3));
}

.text-movie {
    background: var(--movie-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(0, 71, 171, 0.3));
    text-shadow: none;
}

.text-series {
    background: var(--series-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(255, 115, 0, 0.3));
    text-shadow: none;
}

.text-shadow {
    text-shadow: 0px 0px 11px #000000;
}

.fs-sm {
    font-size: 0.8em;
}

/* Slide Specific Classes */
.intro-slide h1 {
    font-size: 4em;
    line-height: 1.1;
}

.intro-subtitle {
    font-size: 1.5em;
    color: var(--text-muted);
    font-weight: 300;
    margin-top: 1rem;
    letter-spacing: 0.05em;
}

/* Big Number Stats */
.stat-number {
    font-size: 10em;
    font-weight: 900;
    line-height: 1;
    display: block;
    margin-bottom: 0.1em;
    
    /* Gradient & Glow */
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(186, 38, 93, 0.3));
}

.stat-label {
    font-size: 2em;
    font-weight: 600;
    color: var(--text-main);
}

.stat-caption {
    font-size: 1.2em;
    color: var(--text-muted);
    margin-top: 1em;
    display: block;
}

/* Timeline / Lists */
.rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.rank-item {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0.3em 0;
    color: var(--text-main);
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.rank-item.visible {
    opacity: 1;
    transform: scale(1.05);
}

/* Highlight Box */
.highlight-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem 4rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.highlight-value {
    font-size: 5em;
    font-weight: 800;
    display: block;
    margin: 0.2em 0;
}

/* Closing */
.closing-text {
    font-size: 3em;
    font-weight: 700;
    line-height: 1.3;
}

/* Reveal.js Overrides for Full Height Centering */
.reveal .slides section {
    /* Let Reveal.js handle the height and centering via config */
    padding: 0;
}

/* Ensure Reveal takes full viewport */
.reveal {
    width: 100vw;
    height: 100vh;
}

/* Progress Bar Color */
.reveal .progress span {
    background: var(--accent-gradient) !important;
}

.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
}

.scroll-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    pointer-events: none;
}

.key {
    width: 40px;
    height: 40px;
    border: 2px solid #FF3366;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 30px;
    color: #FF3366;
    background: #110518;
    box-shadow: 0 4px 0 #BA265D;
    animation: keyPress 2s infinite ease-in-out;
}

@keyframes keyPress {
    0%, 20%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 0 #BA265D;
    }
    10% {
        transform: translateY(4px);
        box-shadow: 0 0 0 #BA265D;
    }
}

/* Calendar Weeks Visualization */
.calendarWeeks {
    display: grid;
    grid-template-columns: repeat(26, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 2px;
    width: 100%;
    margin-top: 20px;
}

.cw-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 2px;
    font-size: 0.4em;
    font-weight: normal;
}

.cw-movie {
    background: var(--movie-gradient);
    color: rgba(0, 0, 0, 0.3);
}

.cw-series {
    background: var(--series-gradient);
    color: rgba(0, 0, 0, 0.3);
}

.cw-empty {
    background: rgba(255, 255, 255, 0.1);
}

.cw-num {
    color: var(--text-muted);
    font-size: 0.3em;
    background: transparent;
    aspect-ratio: auto;
    margin-top: 4px;
    font-weight: normal;
}

.two-col {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: stretch;
    width: 100%;
}

.two-col > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 100%;
}

.two-col canvas {
    max-width: 100%;
    max-height: 100%;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 16px;
}

.chart-legend .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.chart-legend .legend-item > div {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 8px;
}
/* Grid System */
.grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    gap: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    width: calc(100% + 20px);
}

.line-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.grid .row {
    flex: 1;
    align-items: center;
    min-height: 0; /* Allows flex children to shrink below content size */
}

.col {
    flex: 1;
    padding: 0 10px;
    min-width: 0;
    box-sizing: border-box;
}


/* Cover Component */
.cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
}

.cover img {
    height: 150px;
    /* max-height: 25vh; */
    max-height: unset;
    width: auto;
    /* max-width: 100%; */
    max-width: unset;
    object-fit: cover;
    
    /* Border Styles */
    padding: 3px;
    background: transparent;
    border-radius: 8px;
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    margin: 0;
}

/* Cover Modifiers */
.movie-cover img {
    background: var(--movie-gradient);
}

.series-cover img {
    background: var(--series-gradient);
}

.cover:hover img {
    transform: scale(1.05);
}

.cover-xl img {
    height: 450px;
}

.cover-lg img {
    height: 250px;
}

.cover-title {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
    line-height: 1.2;
}

.cover-meta {
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: 300;
    text-shadow: 0px 0px 2px #000000;
}

.scene-title {
    justify-self: left;
}

/* Grid Items for ~90 images */
.grid-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.2vw;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.grid-items > div {
    flex: 0 0 2vw;
    aspect-ratio: 2/3;
    position: relative;
    transition: z-index 0s 0.3s;
    z-index: 1;
}

.grid-items img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: block;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.grid-items > div:hover {
    z-index: 100;
    transition: z-index 0s 0s;
}

.grid-items > div:hover img {
    transform: scale(5);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
}


/* Audio Controls */
.audio-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s;
}

.audio-controls:hover {
    opacity: 1;
}

.audio-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn svg {
    width: 24px;
    height: 24px;
}

#volume-slider {
    width: 80px;
    cursor: pointer;
}


/* Wrapped 2025 Hero Text */
.wrapped-title {
    font-size: 12vmin;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    font-family: 'Impact', 'Arial Black', sans-serif; /* Thick font */
    
    /* Positioning and Angle */
    transform: rotate(-3deg);
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    
    /* Layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* text-shadow: 0px 0px 11px #000000; */
    letter-spacing: 2px;

    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 1));
}