/* Evolution Page Styles */

.evolution-page {
    --section-field: #f97316; /* Orange instead of yellow */
    min-height: 100vh;
}

/* More breathing room when scrolling to sections */
.evolution-page .content-section {
    scroll-margin-top: 60px;
}


/* Evolution page navbar title */
.evolution-page header nav.container {
    justify-content: space-between;
}

.nav-page-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-primary) 0%, color-mix(in srgb, var(--accent-primary) 70%, var(--text-primary)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.2s ease;
}

.nav-page-title:hover {
    opacity: 0.8;
}

/* Evolution hero uses base .hero styles from styles.css */
/* Only override what's specific to the evolution page */

/* Zero out hero-intro margin on evolution page - spacing handled by hero-comparison */
.evolution-page .hero-intro {
    margin-bottom: 0;
}

/* Hero Before/After Comparison - SIDE-BY-SIDE */
.hero-comparison {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    position: relative;
    padding-top: 2.5rem;
}

.hero-comparison::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: var(--border-color);
}

.hero-comparison-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.hero-comparison-label-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-year {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-value {
    background: linear-gradient(135deg, #d4af37 0%, #f5d67a 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.hero-comparison-image {
    width: 240px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: bottom;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hero-comparison-image--center {
    object-position: center;
}

.hero-comparison-card:hover .hero-comparison-image {
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 0 1px #d4af37,
                0 0 20px rgba(212, 175, 55, 0.15);
}

/* Short desktop viewports - fluid hero comparison sizing */
@media (min-width: 801px) and (max-height: 800px) {
    .hero-comparison {
        margin-top: clamp(1rem, 3vh, 2.5rem);
        padding-top: clamp(1rem, 3vh, 2.5rem);
        gap: clamp(1rem, 2vh, 1.5rem);
    }

    .hero-comparison-image {
        width: clamp(140px, 28vh, 240px);
    }

    .hero-comparison-label-top {
        font-size: clamp(0.8rem, 1.8vh, 1rem);
    }

    .evolution-page-title {
        margin-top: clamp(0.75rem, 2vh, 1.5rem);
        margin-bottom: clamp(1rem, 2.5vh, 2rem);
    }

    .evolution-page-title-prefix,
    .evolution-page-title h2 {
        font-size: clamp(0.7rem, 1.5vh, 0.9rem);
    }
}

/* Mobile - equal spacing above and below the line */
@media (max-width: 800px) {
    .hero-comparison {
        margin-top: clamp(1rem, calc(2.5rem - (700px - 100svh) * 0.16), 2.5rem);
        padding-top: clamp(1rem, calc(2.5rem - (700px - 100svh) * 0.16), 2.5rem);
    }
}

@media (max-width: 500px) {
    .hero-comparison {
        gap: 1rem;
    }

    .hero-comparison-label-top {
        font-size: 0.85rem;
        gap: 0.35rem;
    }

    .hero-comparison-image {
        width: 42vw;
        max-width: 200px;
    }
}

/* Hero Comparison Modal */
.comparison-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.comparison-modal.active {
    opacity: 1;
    visibility: visible;
}

.comparison-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.comparison-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.comparison-modal.active .comparison-modal-content {
    transform: scale(1);
}

.comparison-modal-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
}

.comparison-modal-label .comparison-year {
    color: var(--text-primary);
}

.comparison-modal-label .comparison-value {
    background: linear-gradient(135deg, #d4af37 0%, #f5d67a 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-modal-label .comparison-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.comparison-modal-image-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comparison-modal-image {
    max-width: 70vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.comparison-modal-image--center {
    object-position: center;
}

.comparison-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.comparison-modal-nav:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
}

.comparison-modal-nav--prev {
    left: -48px;
}

.comparison-modal-nav--next {
    right: -48px;
}

.comparison-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.comparison-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

@media (max-width: 600px) {
    .comparison-modal-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .comparison-modal-nav--prev {
        left: -40px;
    }

    .comparison-modal-nav--next {
        right: -40px;
    }

    .comparison-modal-label {
        font-size: 1rem;
    }

    .comparison-modal-close {
        top: 8px;
        left: 8px;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .comparison-modal-nav--prev {
        left: 0.5rem;
    }

    .comparison-modal-nav--next {
        right: 0.5rem;
    }

    .comparison-modal-image {
        max-width: 85vw;
    }
}

.evolution-page-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2.5rem;
    margin-bottom: 0;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.evolution-page-title:hover {
    opacity: 0.8;
}

.evolution-page-title-text {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.evolution-page-title-arrow {
    display: flex;
    justify-content: center;
    animation: bounce 2s infinite;
}

.evolution-page-title-arrow svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
}

/* Animated scroll down arrow */
.scroll-down-arrow {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    text-decoration: none;
}

.scroll-down-arrow svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.scroll-down-arrow:hover svg {
    color: var(--accent-primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

.evolution-page-title-prefix {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.evolution-page-title h2 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(135deg, #d4af37 0%, #f5d67a 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Hero comparison animation - appears after social links */
.evolution-hero-section > .container.rendered .hero-comparison {
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

/* Page title animation - appears after comparison */
.evolution-hero-section > .container.rendered .evolution-page-title {
    animation: fadeInUp 0.5s ease-out 0.55s both;
}

/* Hero nav animation - appears after page title */
.evolution-hero-section > .container.rendered .hero-nav {
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

/* Hero nav item without icon (year-only sections) */
.evolution-page .hero-nav-item:not(:has(.hero-nav-icon)) {
    padding-left: 1rem;
}

.evolution-page .hero-nav-item:not(:has(.hero-nav-icon)) .hero-nav-label {
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Centered section header (no icon) */
.evolution-page .section-header--centered {
    justify-content: center;
    text-align: center;
}

.evolution-page .section-header--centered h2 {
    font-size: 1.75rem;
}

/* Evolution icon - uses section's accent color from config */
.evolution-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--section-color, var(--section-field));
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.evolution-page .section-header:hover .evolution-icon {
    transform: scale(1.05);
    border-color: var(--section-color, var(--section-field));
    box-shadow: 0 0 20px color-mix(in srgb, var(--section-color, var(--section-field)) 20%, transparent);
}

/* ========================================
   2026 Hero Section - Cinematic Year Showcase
   ======================================== */

.hero-year-section {
    position: relative;
    overflow: visible;
}

.hero-year-section .container {
    position: relative;
}

/* Cinematic hero layout with video and year */
.hero-year-showcase {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

/* Left column: year title and description */
.hero-year-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
    max-width: 400px;
}

/* Text column: description, button (legacy, now in left column) */
.hero-year-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 480px;
}

/* Video spans both rows on desktop */
.hero-year-video {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

/* The year title - bold typographic statement */
.hero-year-title {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    margin: 0;
    background: linear-gradient(
        180deg,
        var(--text-primary) 0%,
        color-mix(in srgb, var(--text-primary) 60%, transparent) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    user-select: none;
}

/* Subtle glow effect behind the year */
.hero-year-title::before {
    content: attr(data-year);
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--section-color, var(--section-field)) 30%, transparent) 0%,
        transparent 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(30px);
    z-index: -1;
    opacity: 0.6;
}

/* Description under the year */
.hero-year-description {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
    background: linear-gradient(135deg, #d4af37 0%, #f5d67a 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus metrics under the description */
.hero-focus-metrics {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    overflow: visible;
}

.hero-focus-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: color-mix(in srgb, var(--bg-card) 60%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    overflow: visible;
}

.hero-focus-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.hero-focus-standalone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.75rem 1rem;
    background: color-mix(in srgb, var(--bg-card) 60%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    overflow: visible;
}

.hero-focus-year {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hero-focus-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.hero-focus-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-focus-arrow {
    font-size: 1.25rem;
    background: linear-gradient(135deg, #d4af37 0%, #f5d67a 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tooltip for focus metrics */
.has-tooltip {
    cursor: pointer;
    position: relative;
}

.hero-focus-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
    pointer-events: none;
}

/* Show on hover for desktop */
@media (hover: hover) {
    .has-tooltip:hover .hero-focus-tooltip {
        opacity: 1;
        visibility: visible;
    }
}

/* Show on click/tap (for mobile or as fallback) */
.hero-focus-tooltip.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Video button in hero section */
.hero-year-video-button {
    margin-bottom: 0;
}

/* Cinematic video container */
.hero-year-video {
    position: relative;
}

.hero-year-video-wrapper {
    position: relative;
    width: min(240px, 22vw);
    min-width: 160px;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-year-video-wrapper:hover {
    border-color: var(--section-color, var(--section-field));
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 0 1px var(--section-color, var(--section-field)),
        0 0 30px color-mix(in srgb, var(--section-color, var(--section-field)) 12%, transparent);
}

.hero-year-video-wrapper iframe {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 118.52%; /* 9:16 video cropped to show bottom in 2:3 container */
    border: none;
    pointer-events: none; /* Allow clicks to pass through to overlay */
}

.hero-video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    transition: opacity 0.5s ease-out;
}

/* Play overlay for click-to-expand */
.hero-video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    background: transparent;
    transition: background 0.3s ease;
}

.hero-video-play-overlay svg {
    width: 56px;
    height: 56px;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-year-video-wrapper:hover .hero-video-play-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.hero-year-video-wrapper:hover .hero-video-play-overlay svg {
    opacity: 1;
    transform: scale(1);
}

.hero-video-play-overlay:active svg {
    transform: scale(0.95);
}

/* When paused, always show play icon */
.hero-year-video-wrapper.paused .hero-video-play-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.hero-year-video-wrapper.paused .hero-video-play-overlay svg {
    opacity: 1;
    transform: scale(1);
}

/* Video pair - highlight and full video side by side */
.hero-video-pair {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 1;
}

.hero-video-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-video-label {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-video-clickable {
    cursor: pointer;
}

.hero-video-expand-overlay {
    background: transparent;
}

.hero-video-expand-overlay svg {
    opacity: 0.8;
    transform: scale(1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-video-clickable:hover .hero-video-expand-overlay {
    background: rgba(0, 0, 0, 0.15);
}

.hero-video-clickable:hover .hero-video-expand-overlay svg {
    opacity: 1;
    transform: scale(1.1);
}

/* Hero section doesn't need the standard section header */
.hero-year-section .section-header {
    display: none;
}

/* Entrance animation for the hero showcase */
@keyframes heroYearFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroVideoSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-year-section.revealed .hero-year-title {
    animation: heroYearFadeIn 0.6s ease-out both;
}

.hero-year-section.revealed .hero-year-video {
    animation: heroVideoSlideIn 0.6s ease-out 0.15s both;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-year-showcase {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .hero-year-left {
        order: 1;
        max-width: 100%;
        gap: 1rem;
    }

    .hero-video-pair {
        order: 2;
    }

    .hero-year-description {
        max-width: 500px;
    }

    .hero-year-title {
        font-size: clamp(4rem, 18vw, 7rem);
    }

    .hero-year-description {
        font-size: 1.2rem;
        letter-spacing: 0.06em;
        max-width: 285px;
    }

    .hero-focus-metrics {
        gap: 0.75rem;
    }

    .hero-focus-group {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }

    .hero-focus-standalone {
        padding: 0.5rem 0.75rem;
    }

    .hero-focus-tooltip {
        font-size: 0.75rem;
        white-space: normal;
        width: max-content;
        max-width: 180px;
        text-align: center;
    }

    .hero-focus-metrics {
        padding: 0 1rem;
    }

    /* Align leftmost tooltip to left edge to prevent cutoff */
    .hero-focus-group .hero-focus-tooltip {
        left: 0;
        right: auto;
        transform: none;
    }

    /* Align rightmost tooltip to right edge to prevent cutoff */
    .hero-focus-standalone:last-child .hero-focus-tooltip {
        left: auto;
        right: 0;
        transform: none;
    }

    .hero-focus-value {
        font-size: 1.5rem;
    }

    .hero-year-video-wrapper {
        width: calc((100vw - 3.5rem) / 2);
        max-width: 240px;
    }

    .hero-video-pair {
        gap: 1rem;
    }

    .hero-video-label {
        font-size: 0.75rem;
    }

    /* Mobile animation uses vertical direction */
    @keyframes heroVideoSlideIn {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 500px) {
    .hero-year-title {
        font-size: clamp(3.5rem, 20vw, 5rem);
    }

    .hero-year-text {
        gap: 1rem;
    }

    .hero-focus-metrics {
        gap: 0.65rem;
    }

    .hero-focus-group {
        padding: 0.35rem 0.75rem;
        gap: 0.5rem;
    }

    .hero-focus-standalone {
        padding: 0.35rem 0.75rem;
    }

    .hero-focus-year {
        font-size: 0.6rem;
    }

    .hero-focus-tooltip {
        font-size: 0.7rem;
        max-width: 160px;
    }

    .hero-focus-value {
        font-size: 1.1rem;
    }

    .hero-focus-label {
        font-size: 0.55rem;
    }

    .hero-focus-arrow {
        font-size: 0.85rem;
    }

    .hero-year-video-wrapper {
        width: calc((100vw - 3.25rem) / 2);
        max-width: 200px;
    }

    .hero-video-pair {
        gap: 0.75rem;
    }

    .hero-year-showcase {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-video-play-overlay svg {
        width: 44px;
        height: 44px;
    }
}

/* Touch devices: no play icon (no hover state) */
@media (hover: none) {
    .hero-video-play-overlay svg {
        display: none;
    }

    /* Still show when paused */
    .hero-year-video-wrapper.paused .hero-video-play-overlay svg {
        display: block;
        opacity: 1;
        transform: scale(1);
    }

    /* Always show expand icon on full video */
    .hero-video-expand-overlay svg {
        display: block;
        opacity: 0.9;
        transform: scale(1);
    }
}

/* ========================================
   Standard Hero Video (non-hero sections)
   ======================================== */

/* Hero video - autoplay embed at top of section */
.hero-video-container {
    margin-bottom: 2.5rem;
    max-width: 700px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-video-container--vertical {
    max-width: 400px;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
}

.hero-video-container--vertical .hero-video-wrapper {
    padding-bottom: 177.78%; /* 9:16 */
}

.hero-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Section description */
.evolution-page .section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 2.5rem;
}

/* Subsection styles - matches homepage */
.evolution-page .subsection {
    margin-bottom: 4rem;
}

.evolution-page .subsection:last-child {
    margin-bottom: 0;
}

/* Placeholder content for upcoming subsections */
.subsection-placeholder {
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.subsection-placeholder p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Leaderboard Cards */
.leaderboard-grid {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 1rem 1.5rem 1rem;
    margin: -0.75rem -1rem -1rem -1rem;
    scroll-padding-left: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.leaderboard-grid::-webkit-scrollbar {
    display: none;
}

.leaderboard-card {
    width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.leaderboard-card:hover {
    border-color: var(--section-color, var(--section-field));
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--section-color, var(--section-field)),
        0 0 24px color-mix(in srgb, var(--section-color, var(--section-field)) 10%, transparent);
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.leaderboard-unit {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    transition: all 0.25s ease;
}

.leaderboard-item:hover {
    background: color-mix(in srgb, var(--section-color, var(--section-field)) 8%, var(--bg-secondary));
}

.leaderboard-highlight {
    background: color-mix(in srgb, var(--section-color, var(--section-field)) 15%, var(--bg-secondary));
    border: 1px solid color-mix(in srgb, var(--section-color, var(--section-field)) 40%, transparent);
}

.leaderboard-highlight:hover {
    background: color-mix(in srgb, var(--section-color, var(--section-field)) 22%, var(--bg-secondary));
}

.leaderboard-highlight .leaderboard-name {
    color: var(--text-primary);
    font-weight: 600;
}

.leaderboard-highlight .leaderboard-value {
    color: var(--section-color, var(--section-field));
}

.leaderboard-rank {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.leaderboard-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.leaderboard-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.leaderboard-pitch {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* Video Grid */
.video-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 560px;
}

.video-card:hover {
    border-color: var(--section-color, var(--section-field));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.video-card--vertical {
    max-width: 280px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-card--vertical .video-wrapper {
    padding-bottom: 177.78%; /* 9:16 aspect ratio */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    padding: 1rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Video Button */
.video-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: color-mix(in srgb, var(--section-color, var(--section-field)) 15%, transparent);
    color: var(--section-color, var(--section-field));
    border: 1px solid color-mix(in srgb, var(--section-color, var(--section-field)) 40%, transparent);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2.5rem;
}

.video-button:hover {
    background: color-mix(in srgb, var(--section-color, var(--section-field)) 25%, transparent);
    border-color: var(--section-color, var(--section-field));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--section-color, var(--section-field)) 25%, transparent);
}

.video-button svg {
    flex-shrink: 0;
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent scrolling when modal is open */
html.modal-open,
body.modal-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-content--vertical {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    overflow: visible;
}

.video-modal-content--square {
    max-width: 500px;
}

.video-modal-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
}

.video-modal-content--vertical .video-modal-wrapper {
    width: 45vh;
    max-width: 350px;
    padding-bottom: 0;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Vertical modal: X button at top left of the video */
.video-modal-content--vertical .video-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 20;
}

.video-modal-content--square .video-modal-wrapper {
    padding-bottom: 100%; /* 1:1 */
}

/* Progression modal with label, nav, and description */
.video-modal-content--progression {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.video-modal-content--progression .video-modal-wrapper {
    width: 70vw;
    max-width: 500px;
    padding-bottom: 0;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.video-modal-content--progression .video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Progression modal: X button at top left of the square video */
.video-modal-content--progression .video-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    z-index: 20;
}

.video-modal-label {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.video-modal-label .badge-year {
    color: var(--text-primary);
}

.video-modal-label .badge-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.video-modal-label .badge-height {
    background: linear-gradient(135deg, #d4af37 0%, #f5d67a 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-modal-body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.video-modal-nav:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
}

.video-modal-nav--prev {
    left: -48px;
}

.video-modal-nav--next {
    right: -48px;
}

.video-modal-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 500px;
    line-height: 1.6;
    margin: 0;
    min-height: 8em;
}

@media (max-width: 700px) {
    .video-modal-content--progression .video-modal-wrapper {
        width: 75vw;
    }

    .video-modal-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .video-modal-nav--prev {
        left: -40px;
    }

    .video-modal-nav--next {
        right: -40px;
    }

    .video-modal-label {
        font-size: 1rem;
    }

    .video-modal-description {
        font-size: 0.85rem;
        max-width: 75vw;
    }
}

@media (max-width: 500px) {
    .video-modal-content--progression .video-modal-wrapper {
        width: 85vw;
    }

    .video-modal-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.7);
    }

    .video-modal-nav--prev {
        left: 0.75rem;
    }

    .video-modal-nav--next {
        right: 0.75rem;
    }

    .video-modal-close {
        top: 8px;
        left: 8px;
        width: 32px;
        height: 32px;
    }
}

.video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    color: #fff;
}

.evolution-page .subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.evolution-page .subsection-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.evolution-page .subsection-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* View Raw Data button - matches homepage view-all-link */
.evolution-page .view-all-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--section-color, var(--section-field));
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.evolution-page .view-all-link:hover {
    gap: 0.5rem;
    color: var(--section-color, var(--section-field));
    background: color-mix(in srgb, var(--section-color, var(--section-field)) 10%, transparent);
}

.evolution-page .view-all-link::after {
    content: '\2192';
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.evolution-page .view-all-link:hover::after {
    transform: translateX(3px);
}

/* Evolution Grid Layout */
.evolution-grid {
    display: flex;
    gap: 2rem;
    align-items: start;
}

/* Movement Chart */
.movement-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.movement-chart {
    display: flex;
    align-items: center;
    justify-content: center;
}

.movement-chart svg {
    display: block;
}

/* Arsenal Table - copy exact styles from homepage */
.evolution-page .stats-table-wrapper {
    overflow-x: auto;
    margin-bottom: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

/* Training card container with label */
.training-card-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.training-card-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.training-card-container .training-card-link,
.training-card-container .training-card {
    flex: none;
    width: 100%;
    min-width: 0;
}

/* Video Progression Grid (uses content-grid for horizontal scroll) */

.video-progression-card {
    width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-progression-header {
    display: flex;
    justify-content: center;
}

.video-progression-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video-progression-badge .badge-year {
    color: var(--text-primary);
    font-weight: 600;
}

.video-progression-badge .badge-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.video-progression-badge .badge-height {
    color: var(--section-color, var(--section-field));
    font-weight: 600;
}

.video-progression-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
    padding: 0.5rem 0.25rem 0;
    margin: 0;
}

.video-progression-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-progression-wrapper.clickable {
    cursor: pointer;
}

.video-progression-wrapper:hover {
    border-color: var(--section-color, var(--section-field));
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 0 1px var(--section-color, var(--section-field)),
        0 0 30px color-mix(in srgb, var(--section-color, var(--section-field)) 12%, transparent);
}

.video-progression-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Play overlay for click-to-pause */
.video-progression-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    background: transparent;
    transition: background 0.3s ease;
}

.video-progression-play-overlay svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-progression-wrapper:hover .video-progression-play-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.video-progression-wrapper:hover .video-progression-play-overlay svg {
    opacity: 1;
    transform: scale(1);
}

.video-progression-play-overlay:active svg {
    transform: scale(0.95);
}

/* Clickable videos always show play icon */
.video-progression-wrapper.clickable .video-progression-play-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.video-progression-wrapper.clickable .video-progression-play-overlay svg {
    opacity: 1;
    transform: scale(1);
}

.video-progression-wrapper.clickable:hover .video-progression-play-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.video-progression-wrapper.clickable:hover .video-progression-play-overlay svg {
    transform: scale(1.1);
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 800px) {
    .video-progression-card {
        flex: 0 0 300px;
        min-width: 280px;
        width: auto;
    }

    .video-progression-badge {
        font-size: 1rem;
    }

    .training-card-container {
        flex: 0 0 300px;
        min-width: 280px;
        width: auto;
    }
}

/* Arsenal table specific styles */
#arsenal-summary .stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    white-space: nowrap;
    table-layout: fixed;
    min-width: 700px;
}

#arsenal-summary .stats-table th,
#arsenal-summary .stats-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

#arsenal-summary .stats-table th {
    background: var(--bg-card);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

#arsenal-summary .stats-table tbody tr {
    background: var(--bg-secondary);
    transition: all 0.25s ease;
}

#arsenal-summary .stats-table tbody tr:hover {
    background: var(--bg-card);
    box-shadow: inset 3px 0 0 var(--section-color, var(--section-field));
}

#arsenal-summary .stats-table tbody tr:last-child td {
    border-bottom: none;
}

#arsenal-summary .stats-table th:nth-child(1),
#arsenal-summary .stats-table td:nth-child(1) {
    width: 80px;
}

#arsenal-summary .stats-table th:nth-child(n+2),
#arsenal-summary .stats-table td:nth-child(n+2) {
    width: 60px;
    text-align: center;
}

/* Career stats table - use section accent color for hover */
.evolution-page .stats-table tbody tr:hover {
    box-shadow: inset 3px 0 0 var(--section-color, var(--section-field));
}

/* Pitch Type Badges - matches org-badge style */
.pitch-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
}

.stats-table tbody tr:hover .pitch-badge {
    transform: scale(1.05);
}

/* Sinker - warm orange/brown */
.pitch-sinker {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

/* Four-Seam - bright blue */
.pitch-four-seam {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

/* Cutter - purple */
.pitch-cutter {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

/* Slider - teal/cyan */
.pitch-slider {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

/* Sweeper - cyan (slider variant) */
.pitch-sweeper {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

/* Curveball - green */
.pitch-curveball {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Changeup - pink */
.pitch-changeup {
    background: rgba(244, 114, 182, 0.15);
    color: #f472b6;
    border: 1px solid rgba(244, 114, 182, 0.3);
}

/* Splitter - yellow/gold */
.pitch-splitter {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Default/Unknown */
.pitch-default {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Responsive */
@media (max-width: 1100px) {
    .evolution-grid {
        flex-direction: column;
    }

    .movement-chart-container {
        margin: 1rem auto 0;
        width: 100%;
        max-width: 320px;
    }

    .movement-chart {
        width: 100%;
    }

    .movement-chart svg {
        width: 100%;
        height: auto;
    }

    .evolution-page .stats-table-wrapper {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .movement-chart-container {
        max-width: 100%;
        padding: 0;
    }
}

@media (max-width: 800px) {
    .evolution-page-title-prefix,
    .evolution-page-title h2 {
        font-size: 0.8rem;
    }

    .evolution-page-title .scroll-down-arrow svg {
        width: 18px;
        height: 18px;
    }

    .nav-page-title {
        font-size: 0.85rem;
    }

    /* Section header mobile styles */
    .evolution-page .section-header h2 {
        font-size: 1.5rem;
    }

    .evolution-page .section-subtitle {
        font-size: 0.85rem;
    }

    .evolution-icon {
        width: 40px;
        height: 40px;
    }

    .evolution-icon svg {
        width: 20px;
        height: 20px;
    }

    .evolution-page .section-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .evolution-page .subsection-header h3 {
        font-size: 1rem;
    }

    .evolution-page .view-all-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }

    .evolution-grid {
        gap: 1.5rem;
    }

    /* Arsenal table mobile styles */
    #arsenal-summary .stats-table {
        min-width: 600px;
    }

    #arsenal-summary .stats-table th,
    #arsenal-summary .stats-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
    }

    #arsenal-summary .stats-table th {
        font-size: 0.65rem;
    }

    .pitch-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    /* Leaderboard mobile styles */
    .leaderboard-grid {
        gap: 1rem;
        padding: 0.75rem 1rem 1rem 1rem;
        margin: -0.75rem -1rem -0.75rem -1rem;
    }

    .leaderboard-card {
        flex: 0 0 300px;
        min-width: 280px;
        width: auto;
        padding: 1rem;
    }

    .leaderboard-header h4 {
        font-size: 0.9rem;
    }

    .leaderboard-item {
        padding: 0.5rem 0.6rem;
        gap: 0.5rem;
    }

    .leaderboard-name {
        font-size: 0.85rem;
    }

    .leaderboard-value {
        font-size: 0.85rem;
    }

    /* Video mobile styles */
    .video-card--vertical {
        max-width: 240px;
    }

    .video-title {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .video-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-content--vertical {
        max-width: 85vw;
    }

    .video-modal-content--vertical .video-modal-wrapper {
        width: 280px;
        max-width: 75vw;
    }

    .video-modal-content--square {
        max-width: 90vw;
    }

    .video-modal-close {
        top: 8px;
        left: 8px;
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }
}

/* Footer styles */
.evolution-page footer {
    margin-top: 0;
    width: 100%;
}

.evolution-page footer .container {
    max-width: var(--max-width);
}

@media (hover: none) {
    #arsenal-summary .stats-table tbody tr:hover {
        background: transparent;
        box-shadow: none;
    }

    #arsenal-summary .stats-table tbody tr:hover .pitch-badge {
        transform: none;
    }

    .leaderboard-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--border-color);
    }

    .leaderboard-item:hover {
        background: var(--bg-secondary);
    }

    .leaderboard-highlight:hover {
        background: color-mix(in srgb, var(--section-color, var(--section-field)) 15%, var(--bg-secondary));
    }
}

/* Disabled theme button for "[Your Team]" */
.theme-btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    white-space: nowrap;
}
