@font-face {
    font-family: "PPNeueMachina";
    src: url("../PP_Neue_Machina_-_Free_for_Personal_Use (1)/PP Neue Machina - Free for Personal Use/PPNeueMachina-PlainUltrabold.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "PPNeueMachina";
    src: url("../PP_Neue_Machina_-_Free_for_Personal_Use (1)/PP Neue Machina - Free for Personal Use/PPNeueMachina-PlainRegular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "PPNeueMachina";
    src: url("../PP_Neue_Machina_-_Free_for_Personal_Use (1)/PP Neue Machina - Free for Personal Use/PPNeueMachina-PlainLight.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "OffBit";
    src: url("../offbit/OffBit-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "OffBit";
    src: url("../offbit/OffBit-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

:root {
    --bg: #050505;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --muted-strong: rgba(255, 255, 255, 0.82);
    --gold: #ffcc00;
    --mahinda: #ffcb57;
    --richmond: #72b4ff;
    --panel-border: rgba(255, 255, 255, 0.11);
    --panel-bg-top: rgba(255, 255, 255, 0.08);
    --panel-bg-bottom: rgba(255, 255, 255, 0.03);
    --site-header-offset: 12rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    --cursor-x: 50vw;
    --cursor-y: 35vh;
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

.page-main {
    padding-top: calc(var(--site-header-offset) + 1rem);
}

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

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

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.06;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

.grid-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
}

.grid-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 204, 0, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    opacity: 0.42;
    mask-image: radial-gradient(circle 240px at var(--cursor-x) var(--cursor-y), black 0%, rgba(0, 0, 0, 0.88) 38%, transparent 76%);
    -webkit-mask-image: radial-gradient(circle 240px at var(--cursor-x) var(--cursor-y), black 0%, rgba(0, 0, 0, 0.88) 38%, transparent 76%);
}

.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    width: 38rem;
    height: 38rem;
    pointer-events: none;
    z-index: 0;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 214, 79, 0.14) 0%, rgba(255, 204, 0, 0.1) 20%, rgba(255, 204, 0, 0.045) 40%, rgba(255, 204, 0, 0.015) 56%, rgba(0, 0, 0, 0) 78%);
    filter: blur(56px);
    transform: translate3d(calc(var(--cursor-x) - 19rem), calc(var(--cursor-y) - 19rem), 0);
    opacity: 0.8;
    will-change: transform;
}

.cursor-glow::after {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255, 249, 214, 0.07) 0%, rgba(255, 204, 0, 0.018) 42%, rgba(255, 204, 0, 0) 72%);
    filter: blur(18px);
}

.brand-headline {
    font-family: "PPNeueMachina", sans-serif;
    font-weight: 300;
    letter-spacing: -0.05em;
}

.section-label {
    color: rgba(255, 204, 0, 0.8);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.glass-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, var(--panel-bg-top), var(--panel-bg-bottom));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(140deg, rgba(255, 204, 0, 0.12), rgba(255, 204, 0, 0) 34%, rgba(255, 255, 255, 0.05) 78%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.55;
}

.record-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
}

.live-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: #ff5a5a;
    box-shadow: 0 0 16px rgba(255, 90, 90, 0.8);
    flex: 0 0 auto;
}

.score-card {
    border-radius: 2rem;
    padding: 1.4rem;
}

.score-card.is-active {
    border-color: rgba(255, 204, 0, 0.38);
    box-shadow: 0 26px 70px rgba(255, 204, 0, 0.08);
}

.score-card.team-mcg::after,
.score-card.team-rcg::after,
.scorecard-panel.team-mcg::after,
.scorecard-panel.team-rcg::after {
    content: "";
    position: absolute;
    inset: auto -30% -45% auto;
    width: 14rem;
    height: 14rem;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.22;
    pointer-events: none;
}

.score-card.team-mcg::after,
.scorecard-panel.team-mcg::after {
    background: radial-gradient(circle, rgba(255, 204, 0, 0.5), rgba(255, 204, 0, 0));
}

.score-card.team-rcg::after,
.scorecard-panel.team-rcg::after {
    background: radial-gradient(circle, rgba(114, 180, 255, 0.48), rgba(114, 180, 255, 0));
}

.team-badge {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.04);
    font-family: "PPNeueMachina", sans-serif;
    font-size: 0.96rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.team-badge.is-mcg {
    background: linear-gradient(145deg, rgba(255, 204, 0, 0.28), rgba(255, 204, 0, 0.06));
}

.team-badge.is-rcg {
    background: linear-gradient(145deg, rgba(114, 180, 255, 0.25), rgba(114, 180, 255, 0.06));
}

.team-heading {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.team-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.team-logo.team-logo-sm {
    width: 1.5rem;
    height: 1.5rem;
}

.team-logo.team-logo-xs {
    width: 1.1rem;
    height: 1.1rem;
}

.team-name-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.score-highlight,
.summary-value {
    font-family: "PPNeueMachina", sans-serif;
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.92;
}

.score-highlight {
    font-size: clamp(2rem, 4.3vw, 3.5rem);
}

.summary-value {
    font-size: clamp(2rem, 4vw, 3rem);
}

.muted-copy {
    color: var(--muted);
}

.status-line {
    color: var(--muted-strong);
    font-size: 1rem;
    line-height: 1.8;
}

.this-over-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.delivery-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.delivery-chip.wicket {
    border-color: rgba(255, 90, 90, 0.42);
    background: rgba(255, 90, 90, 0.2);
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.95rem 1.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: transform 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.action-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 204, 0, 0.34);
    background: rgba(255, 255, 255, 0.06);
}

.metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.stat-strip,
.table-section {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.45rem;
}

.metric-card,
.stat-strip {
    padding: 1rem;
}

.table-section {
    padding: 1rem;
}

.metric-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.metric-value {
    margin-top: 0.7rem;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
}

.metric-large {
    font-family: "PPNeueMachina", sans-serif;
    font-size: 2.15rem;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.stream-frame,
.stream-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 1.5rem;
}

.stream-frame.is-featured,
.stream-placeholder.is-featured {
    aspect-ratio: 16 / 8.7;
    border-radius: 1.75rem;
}

.stream-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
    line-height: 1.8;
}

.stat-strip h3 {
    margin: 0 0 0.65rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.stat-strip p {
    margin: 0;
    line-height: 1.65;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.018);
}

.score-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.score-table th,
.score-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.score-table thead th {
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: left;
    text-transform: uppercase;
}

.score-table tbody tr:last-child td {
    border-bottom: none;
}

.score-table td {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.96rem;
    vertical-align: top;
}

.score-table th.numeric,
.score-table td.numeric {
    text-align: right;
}

.player-status {
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.82rem;
    line-height: 1.45;
}

.empty-state {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.95rem;
    line-height: 1.75;
}

.page-footer {
    position: relative;
    z-index: 20;
    padding: 0 1.5rem 2rem;
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-align: center;
    text-transform: uppercase;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 1s ease-out forwards;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-500 {
    animation-delay: 500ms;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .metric-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) {
    :root {
        --site-header-offset: 7rem;
    }
}

@media (max-width: 768px) {
    .cursor-glow {
        width: 24rem;
        height: 24rem;
        transform: translate3d(calc(var(--cursor-x) - 12rem), calc(var(--cursor-y) - 12rem), 0);
    }

    .grid-overlay::after {
        mask-image: radial-gradient(circle 160px at var(--cursor-x) var(--cursor-y), black 0%, rgba(0, 0, 0, 0.88) 38%, transparent 75%);
        -webkit-mask-image: radial-gradient(circle 160px at var(--cursor-x) var(--cursor-y), black 0%, rgba(0, 0, 0, 0.88) 38%, transparent 75%);
    }

    .score-card,
    .scorecard-panel {
        border-radius: 1.6rem;
    }

    .score-table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .score-table {
        min-width: 460px;
    }

    .summary-value {
        font-size: 2.2rem;
    }
}

@media (min-width: 768px) {
    .page-main {
        padding-top: calc(var(--site-header-offset) + 1.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor-glow {
        filter: blur(48px);
    }

    .fade-in-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
