@font-face {
    font-family: "Lemon Display";
    src:
        url("../fonts/lemon/Lemon-Regular.woff2") format("woff2"),
        url("../fonts/lemon/Lemon-Regular.woff") format("woff"),
        url("../fonts/lemon/Lemon-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lemon Display";
    src:
        url("../fonts/lemon/Lemon-Medium.woff2") format("woff2"),
        url("../fonts/lemon/Lemon-Medium.woff") format("woff"),
        url("../fonts/lemon/Lemon-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lemon Display";
    src:
        url("../fonts/lemon/Lemon-SemiBold.woff2") format("woff2"),
        url("../fonts/lemon/Lemon-SemiBold.woff") format("woff"),
        url("../fonts/lemon/Lemon-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lemon Display";
    src:
        url("../fonts/lemon/Lemon-Bold.woff2") format("woff2"),
        url("../fonts/lemon/Lemon-Bold.woff") format("woff"),
        url("../fonts/lemon/Lemon-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Custom";
    src: url("../fonts/inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Custom";
    src: url("../fonts/inter/Inter-VariableFont_opsz,wght.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Space Mono Custom";
    src: url("../fonts/space-mono/SpaceMono-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Space Mono Custom";
    src: url("../fonts/space-mono/SpaceMono-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter Custom", sans-serif;
    background: #000;
}

img {
    display: block;
    max-width: 100%;
}

.hero-media {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 44% 10%;
    /* filter: grayscale(1) contrast(1.08) brightness(0.62); */
    /* transform: scale(1.03); */
}

.hero-overlay {
    background: 
        radial-gradient(circle at 50% 25%, rgba(210, 53, 53, 0.5) 0%, transparent 40%),
        linear-gradient(180deg, rgba(210, 53, 53, 0.18) 0%, rgba(210, 53, 53, 0.34) 50%, rgba(0, 0, 0, 0.9) 82%, #000 92%, #000 100%);
}

.hero-title {
    font-family: "Lemon Display", sans-serif;
    font-weight: 600;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
    font-family: "Lemon Display", sans-serif;
    font-weight: 600;
}

.hero-layout {
    align-items: stretch;
}

.hero-copy-block {
    margin-inline: auto;
    text-align: center;
    font-family: "Inter Custom", sans-serif;
    font-size: 16px;
}

.hero-lede {
    margin-inline: auto;
}

.hero-jump-label {
    display: none;
}

.hero-brand-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-brand-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    justify-content: center;
    width: 100%;
}

.hero-brand-primary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 69%;
    flex: 0 0 auto;
}

.hero-brand-primary-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
}

.hero-brand-supplier {
    margin: 0;
    width: 100%;
    font-size: 0.44rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

.hero-brand-partner-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.hero-brand-partner-line::before,
.hero-brand-partner-line::after {
    content: "";
    width: 1rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.78);
}

.hero-logo {
    width: auto;
    height: auto;
    object-fit: contain;
}

.hero-logo-fifa {
    width: 48%;
}

.hero-logo-nielsen {
    width: 37%;
    transform: translateY(0.08rem);
}

.hero-brand-divider {
    width: 1px;
    height: 2rem;
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.28);
}

.hero-brand-copy {
    font-size: 20px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    font-weight: 400;
    font-family: "Lemon Display", sans-serif;
}

#behavior-insight {
    background:#100F0F;
}

.hero-pattern,
.panel::before {
    background-position: 0 0, 0.25rem 0.25rem;
    background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
}

.fading-bottom {
    mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 95%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 95%);
}

.insight-tile {
    min-height: 7rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    color: #fff;
    font-family: "Inter Custom", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 160ms ease, filter 160ms ease;
}

.insight-tile::after {
    content: "\2197";
    font-size: 1.25rem;
    line-height: 1;
}

.insight-tile:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.panel {
    position: relative;
    overflow: hidden;
    background: #100F0F;
    padding: 16px;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
}

.accent-red {
    background: radial-gradient(150% 120% at 50% -20%, rgba(204, 32, 40, 0.8) 0%, rgba(17, 17, 17, 0.9) 80%);
}

.accent-purple {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.15) 0%, rgba(17,17,17,0.8) 40%);
}

.accent-cyan {
    background: linear-gradient(180deg, rgba(54, 199, 207, 0.15) 0%, rgba(17,17,17,0.8) 40%);
}

.accent-orange {
    background: linear-gradient(180deg, rgba(247, 148, 29, 0.15) 0%, rgba(17,17,17,0.8) 40%);
}

.accent-pink {
    background: linear-gradient(180deg, rgba(255, 15, 114, 0.15) 0%, rgba(17,17,17,0.8) 40%);
}

.section-title {
    margin: 0;
    font-family: "Lemon Display", sans-serif;
    font-size: 40px;
    line-height: 0.95;
    text-transform: uppercase;
    font-weight: 600;
}

.source-title {
    margin-bottom: .75rem;
    font-family: "Lemon Display", sans-serif;
    font-size: clamp(1.5rem, 1.5vw, 1.3125rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}


.section-subtitle {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 16px;
}

.omni-chart-shell {
    border: 1px solid rgba(20, 184, 166, 0.22);
    border-radius: 6px;
    background-color: #0b0b0d;
    background-image: 
        radial-gradient(ellipse at 80% 15%, rgba(20, 184, 166, 0.16) 0%, transparent 60%),
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0);
    background-size: 100% 100%, 8px 8px;
    padding: 1.5rem 1.25rem;
}

.omni-chart-shell-purple {
    border-color: rgba(139, 92, 246, 0.22);
    background-image: 
        radial-gradient(ellipse at 80% 15%, rgba(139, 92, 246, 0.16) 0%, transparent 60%),
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0);
}

.omni-chart-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
}

.omni-chart-select {
    width: 100%;
    max-width: 14rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background-color: rgba(5, 5, 5, 0.7);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.7)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.95rem;
    color: #fff;
    font-family: "Inter Custom", sans-serif;
    font-size: 14px;
    padding: 0.65rem 2.5rem 0.65rem 1rem;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}

.omni-chart-select:hover {
    border-color: rgba(20, 184, 166, 0.45);
}

.omni-chart-select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.25);
}

.omni-chart-select-purple:hover {
    border-color: rgba(139, 92, 246, 0.45);
}

.omni-chart-select-purple:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.25);
}

.omni-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
}

.omni-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.omni-chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.omni-chart-layout {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 0.5rem;
    align-items: stretch;
}

.omni-chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-right: 0.5rem;
    height: 18rem;
    position: relative;
    user-select: none;
}

.omni-chart-y-tick {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
    transform: translateY(-50%);
}

.omni-chart-y-tick:last-child {
    transform: none;
}

.omni-chart-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 0.5rem;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(20, 184, 166, 0.5) rgba(255, 255, 255, 0.05);
}

.omni-chart-scroll-purple {
    scrollbar-color: rgba(139, 92, 246, 0.5) rgba(255, 255, 255, 0.05) !important;
}

.omni-chart-scroll::-webkit-scrollbar {
    height: 5px;
}

.omni-chart-scroll::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 166, 0.45);
    border-radius: 999px;
}

.omni-chart-scroll-purple::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.45) !important;
}

.omni-chart-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

.omni-chart-plot {
    position: relative;
    height: 19.5rem; /* Includes spacing for x-ticks at bottom */
}

.omni-chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18rem;
    pointer-events: none;
}

.omni-chart-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.omni-chart-bars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18rem;
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
}

.omni-chart-group {
    width: 2.65rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.omni-chart-stack {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
    background: transparent;
    border: none;
}

.omni-chart-segment {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-sizing: border-box;
    transition: height 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.15s;
}

.omni-chart-group:hover .omni-chart-segment {
    filter: brightness(1.15);
}

.omni-chart-month {
    font-family: "Inter Custom", sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .omni-chart-layout {
        grid-template-columns: 2.3rem 1fr;
        gap: 0.35rem;
    }

    .omni-chart-group {
        width: 2.1rem;
    }
}

.stat-card,
.fan-card {
    min-height: 8.75rem;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 0.75rem;
    background: #1A1919;
    padding: 16px;
}

.stat-card:nth-child(2),
.stat-card:nth-child(3),
.fan-card:nth-child(even) {
    background: #373535
}

#stat-main {
    font-family: "Lemon Display", sans-serif;
    font-size: 66px;
    font-weight: 700;
    line-height: 75px;
}

#stat-main-label {
    font-family: "Lemon Display", sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: normal;
    max-width: 89%;
}

@media (min-width: 1024px) {
    .fan-card:nth-child(1),
    .fan-card:nth-child(4) {
        background: #373535
    }

    .fan-card:nth-child(4) {
        background: #1A1919
    }
}

.fan-card {
    min-height: 15rem;
}

.stat-value,
.fan-value {
    margin: 0;
    font-family: "Lemon Display", sans-serif;
    font-size: 2.5rem;
    line-height: 0.9;
    position: relative;
    font-weight: 600;
}

/* Mobile: Red Underline */
.stat-value::before, .fan-value::before {
    content: "";
    display: none;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background-color: #D23535;
    margin-right: 0.5rem;
    vertical-align: middle;
    transform: translateY(-0.2rem);
}

.stat-value::after {
    content: "";
    display: block;
    width: 2.25rem;
    height: 3px;
    background-color: #D23535;
    margin-top: 16px;
}

.fan-value::before {
    display: inline-block;
}

@media (min-width: 1024px) {
    /* Desktop: Red dot instead of underline */
    .stat-value::before {
        display: inline-block;
    }
    .stat-value::after {
        display: none;
    }
}

.stat-label,
.fan-copy {
    margin: 0;
    max-width: 16rem;
    font-size: 14px;
    line-height: 1.4;
}

.fan-card-back .fan-copy {
    font-size: 14px;
}

.legend-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-dot::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
}

.filter-pill {
    border: 1px solid rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    padding: 0.45rem 0.75rem;
    font-size: 16px;
    font-weight: 500;
}

.filter-pill-active {
    border-color: #FE8100;
    background: #FE8100;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 0.25rem;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #fff;
    border-radius: 999px;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #fff transparent;
}

/* Custom Scrollbar Horizontal */
.custom-scrollbar-h::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.custom-scrollbar-h {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.show-item {
    padding-left: 0.5rem; /* space for the absolute rank badge */
}

.show-poster-wrap {
    position: relative;
    width: 60px;
    height: 75px;
}

.show-rank {
    position: absolute;
    top: -0.4rem;
    left: -0.6rem;
    width: 1.5rem;
    height: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #FE8100;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.show-meta {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 0.75rem;
    row-gap: 0.25rem;
}

.show-poster {
    width: 100%;
    height: 100%;
    border-radius: 0.2rem;
    object-fit: cover;
    background: linear-gradient(180deg, rgba(247, 148, 29, 0.75), rgba(255, 255, 255, 0.12));
}

.show-name,
.show-service,
.show-episodes,
.show-minutes,
.show-score {
    margin: 0;
}

.show-name {
    font-size: 16px;
    font-weight: 600;
}

.show-service,
.show-episodes,
.show-minutes {
    font-size: 14px;
}

.show-minutes {
    color: rgba(255, 255, 255, 0.75);
}

.show-bar {
    margin-top: 0.4rem;
    padding-right: 16px;
    height: 24px;
    overflow: hidden;
    /* border-radius: 999px; */
    background: rgba(255, 255, 255, 0.08);
}

.show-bar > span {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: #FE8100;
    color: #fff;
    font-size: 0.65rem;
}

@media (min-width: 1024px) {
    .hero-layout {
        align-items: flex-start;
        justify-content: space-between;
        gap: 5.5rem;
        min-height: 52rem;
    }

    .hero-media {
        object-position: 47% 12%;
        filter: grayscale(1) contrast(1.04) brightness(0.7);
        transform: scale(1.01);
    }

    .hero-copy-block {
        margin-inline: 0;
        text-align: left;
        max-width: 31rem;
        padding-top: 2rem;
    }

    .hero-lede {
        margin-inline: 0;
        max-width: 29rem;
    }

    .hero-insights-nav {
        max-width: 31.5rem;
        margin-left: auto;
        padding-top: 9.75rem;
    }

    .hero-jump-label {
        display: block;
        margin-bottom: 0.9rem;
    }

    .hero-brand-row {
        align-items: flex-start;
        gap: 0.35rem;
    }

    .hero-brand-line {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 0.55rem;
    }

    .hero-brand-line {
        width: auto;
    }

    .hero-brand-primary,
    .hero-brand-primary-logos,
    .hero-brand-partner-line {
        align-items: center;
    }

    .hero-brand-primary {
        width: fit-content;
    }

    .hero-logo-fifa {
        width: auto;
        height: 3.23rem;
    }

    .hero-logo-nielsen {
        width: auto;
        height: 1.65rem;
        transform: translateY(0.08rem);
    }

    .hero-brand-divider {
        height: 2.9rem;
        align-self: center;
    }

    .hero-brand-supplier {
        font-size: 0.5rem;
        text-align: center;
    }

    /* .hero-brand-copy {
        font-size: 0.66rem;
    } */

    .hero-brand-row {
        gap: 0.45rem;
    }

    .hero-brand-line {
        gap: 0.7rem;
    }

    .hero-overlay {
        background: 
            radial-gradient(ellipse at 20% 35%, rgba(210, 53, 53, 0.45) 0%, transparent 60%),
            linear-gradient(180deg, rgba(210, 53, 53, 0.16) 0%, rgba(210, 53, 53, 0.32) 30%, rgba(0, 0, 0, 0.92) 80%, #000 95%, #000 100%);
    }
}

@media (min-width: 1024px) {
    .panel {
        padding: 1.25rem;
    }
}

.mask-top-fade {
    mask-image: linear-gradient(to bottom, black 0%, transparent 35%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 35%);
}



.footer-fade {
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    filter: hue-rotate(180deg);
}

@media (min-width: 1024px) {
    .footer-fade {
        mask-image: radial-gradient(ellipse at top right, black 20%, transparent 75%);
        -webkit-mask-image: radial-gradient(ellipse at top right, black 20%, transparent 75%);
        filter: hue-rotate(180deg);
    }
}

/* Custom Flip Card Styles for Sports Insights */
.fan-card-container {
    perspective: 1000px;
    height: 11rem;
    position: relative;
}

.fan-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.fan-card-container.is-flipped .fan-card-inner {
    transform: rotateY(180deg);
}

.fan-card-front,
.fan-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
}

.fan-card-front {
    z-index: 2;
    transform: rotateY(0deg);
    background: #1A1919;
}

.fan-card-back {
    transform: rotateY(180deg);
    background-color: #ff0f72 !important; /* solid, opaque pink bg */
}

.fan-card-container:nth-child(even) .fan-card-front {
    background: #373535;
}

#hero-brand-logo {
    width: 150px;
}

@media (min-width: 1024px) {
    .fan-card-container:nth-child(2) .fan-card-front,
    .fan-card-container:nth-child(3) .fan-card-front {
        background: #373535;
    }

    .fan-card-container:nth-child(4) .fan-card-front {
        background: #1A1919;
    }
}