:root {
    --bg: #0e0e0f;
    --bg-soft: #18181b;

    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.65);

    --line: rgba(255, 255, 255, 0.08);
    --card: rgba(255, 255, 255, 0.06);

    --accent: #fcb027; /* JAUNE LOGO */
    --accent-red: #a50000;

    --pill: rgba(255, 255, 255, 0.08);
    --pillBorder: rgba(255, 255, 255, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
    color: var(--text);
}

html {
    background: #0e0e0f;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 14px 6px;
}
.header__sport {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.2px;
}
.header__league {
    font-size: 34px;
    font-weight: 900;
    margin-top: 2px;
    background: linear-gradient(-150deg, #ffffff, #fcb027);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}
.header__title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.headerSeasonWrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    margin-top: 6px;
}

.headerSeasonSelect {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: #fcb027fa;
    text-decoration: underline;
    cursor: pointer;
    outline: none;
    text-align: right;
    max-width: 48vw; /* évite de casser le header */
    text-align: left;
}

.headerSeasonChev {
    font-size: 18px;
    font-weight: 900;
    color: #fcb027fa;
    transform: translateY(1px);
    pointer-events: none;
}
.tabs {
    display: flex;
    gap: 14px;
    overflow: auto;
    padding: 10px 0 0;
    border-bottom: 1px solid var(--line);
}
.tab {
    white-space: nowrap;
    padding: 12px 0;
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 3px solid transparent;
    text-transform: lowercase;
}
.tab[aria-selected="true"] {
    color: var(--text);
    border-bottom-color: var(--text);
}

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 14px 24px;
}

.pillNav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0px 10px;
    border: 1px solid var(--pillBorder);
    border-radius: 999px;
    background: #ffffff14;
}
.pillNav__btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
}
.pillNav__center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}
.pillNav__select {
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: center;
    max-width: 100%;
    outline: none;
    appearance: none;
    cursor: pointer;
}
.pillNav__chev {
    color: var(--text);
    font-weight: 900;
}

.h1 {
    font-size: 22px;
    font-weight: 900;
    margin: 16px 0 10px;
}

.sectionDay {
    margin-top: 14px;
    border-top: 1px solid var(--line);
}
.sectionDay__label {
    background: #f3f4f6;
    color: var(--muted);
    font-weight: 800;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.matchRow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;

    padding: 18px;
    margin: 12px 0;

    background: var(--card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.matchRow:hover {
    transform: translateY(-2px);
    border-color: rgba(252, 176, 39, 0.4);
}

.teamLeft {
    text-align: right;
    font-weight: 800;
    font-size: 18px;
}
.teamRight {
    text-align: left;
    font-weight: 800;
    font-size: 18px;
}
.mid {
    text-align: center;
    font-weight: 900;
    color: #ffffff;
    min-width: 70px;
}
.mid--time {
    color: #111827;
    font-weight: 700;
}

.mid--score {
    font-size: 20px;
    color: var(--accent);
}

.sub {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    color: var(--muted);
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}
.badge {
    padding: 6px 10px;
    background: var(--pill);
    border: 1px solid var(--line);
    border-radius: 999px;
}

/* Tables (standings/leaders) */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.table th,
.table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
}
.table thead th {
    color: var(--muted);
    font-weight: 900;
    text-align: right;
}
.table {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.table thead th:first-child,
.table tbody td:first-child {
    text-align: left;
}
.table tbody td {
    text-align: right;
}
.teamCell {
    text-align: left !important;
    font-weight: 900;
    font-size: 20px;
}
.posCell {
    width: 24px;
    color: var(--muted);
    font-weight: 900;
}

.empty {
    margin-top: 12px;
    padding: 14px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted);
}

/* Highlight FC Baguettes */
.highlightTeam {
    background: linear-gradient(90deg, rgb(252 176 39 / 30%), rgb(252 176 39 / 18%));
    border: 1px solid rgb(252 176 39 / 69%);
    border-radius: 16px;
}

.teamName--highlight {
    font-weight: 900;
}

.matchMeta {
    margin: 6px 0 14px 0;
    display: flex;
    justify-content: center;
}

.venueBadge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;

    background: rgba(252, 176, 39, 0.15);
    color: var(--accent);
    border: 1px solid rgba(252, 176, 39, 0.4);
}
/* --- PWA / app-like feel --- */
html,
body {
    height: 100%;
    overscroll-behavior: none; /* limite bounce / pull-to-refresh (selon navigateurs) */
    -webkit-text-size-adjust: 100%;
    -webkit-touch-callout: none;
}

body {
    touch-action: manipulation; /* réduit le double-tap zoom sur certains navigateurs */
}

/* Safe areas (iPhone notch / home bar) */
.header {
    padding-top: env(safe-area-inset-top);
}
.page {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* ===== Fixed Gradient Background ===== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;

    background: radial-gradient(circle at 20% 20%, rgba(252, 176, 39, 0.25), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(165, 0, 0, 0.35), transparent 40%),
        linear-gradient(180deg, #090202 0%, #1a0000 60%, #090202 100%);

    background-repeat: no-repeat;
    background-size: cover;
}

/* ===== Match detail ===== */

.matchRow--clickable {
    cursor: pointer;
    position: relative;
}

.matchRow--clickable::after {
    content: "›";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    font-size: 22px;
}

.backBtn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
    margin: 6px 0 12px;
}

.matchDetailCard {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(8px);
}

.matchDetailTitle {
    font-size: 20px;
    font-weight: 1000;
}

.muted {
    color: var(--muted);
    font-weight: 800;
}

.dayHeader {
    text-align: center;
    font-weight: 800;
    margin: 20px auto;
}

.matchDetailMeta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.metaBadge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.scoreBadge {
    background: rgba(252, 176, 39, 0.15);
    border-color: rgba(252, 176, 39, 0.35);
    color: var(--accent);
    font-weight: 900;
}

.videoCard {
    margin-top: 12px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.videoWrap {
    width: 100%;
    aspect-ratio: 16/9;
}

.videoWrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.detailSection {
    margin-top: 14px;
}

.detailH2 {
    font-size: 18px;
    font-weight: 1000;
    margin: 8px 0;
}

.detailH3 {
    font-size: 14px;
    font-weight: 1000;
    color: var(--muted);
    margin: 8px 0;
}

.twoCols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.eventList {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
}

.eventRow {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: space-between;
}

.eventRow:first-child {
    border-top: 0;
}

.eventMin {
    width: 44px;
    color: var(--muted);
    font-weight: 900;
}

.eventName {
    font-weight: 900;
}

.eventHeaderRow {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-weight: 900;
    font-size: 12px;
}

.eventQtyHeader,
.eventQty {
    width: 48px;
    text-align: right;
    font-weight: 1000;
}

.eventNameHeader {
    flex: 1;
}

.eventName {
    flex: 1;
}

.replayBtn {
    margin-top: 12px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(252, 176, 39, 0.16);
    color: var(--accent);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 1000;
    cursor: pointer;
}

.modalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    padding: 14px;
}

.modalCard {
    width: 100%;
    max-width: 520px;
    background: rgba(20, 20, 20, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.modalHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modalTitle {
    font-weight: 1000;
}

.modalClose {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    cursor: pointer;
}

.modalBody {
    padding: 12px 14px 16px;
}

.modalLink {
    display: inline-block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    font-weight: 800;
}

/* ===== Replay button + modal ===== */

.replayBtn {
    margin-top: 12px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(252, 176, 39, 0.16);
    color: var(--accent);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 1000;
    cursor: pointer;
}

.modalOverlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    z-index: 9999;

    /* fond sombre + blur */
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px) saturate(1.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.modalCard {
    width: 100%;
    max-width: 520px;

    background: rgba(18, 18, 18, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 2px 10px rgba(0, 0, 0, 0.4);
}

.modalHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modalTitle {
    font-weight: 1000;
}

.modalClose {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    cursor: pointer;
}

.modalBody {
    padding: 12px 14px 16px;
}

.modalVideo {
    border-radius: 14px;
    overflow: hidden;
}

.modalLink {
    display: inline-block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    font-weight: 800;
}

.videoFallback {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 900;
}
.videoFallback a {
    color: var(--accent);
    text-decoration: underline;
}

.modalLinkBtn {
    margin-top: 10px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 1000;
    cursor: pointer;
}

/* ===== App Loader (full screen) ===== */
.appLoader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;

    /* overlay translucide: on voit le contenu derrière + blur */
    background: rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(5px) saturate(1.2);
    -webkit-backdrop-filter: blur(5px) saturate(1.2);

    transition:
        opacity 0.01s ease,
        visibility 0.25s ease;
}

.appLoader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.appLoader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 16px;

    border-radius: 18px;
}

.appLoader__logoWrap {
    width: 92px;
    height: 92px;
    border-radius: 999px;

    display: grid;
    place-items: center;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow:
        0 0 0 1px rgba(252, 176, 39, 0.12) inset,
        0 10px 30px rgba(0, 0, 0, 0.45);

    animation: loaderPulse 1.15s ease-in-out infinite;
}

.appLoader__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;

    animation: loaderSpin 1.6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(252, 176, 39, 0.25));
}

.appLoader__text {
    font-weight: 1000;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

@keyframes loaderSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderPulse {
    0% {
        transform: scale(1);
        box-shadow:
            0 0 0 1px rgba(252, 176, 39, 0.1) inset,
            0 10px 30px rgba(0, 0, 0, 0.45);
    }
    50% {
        transform: scale(1.04);
        box-shadow:
            0 0 0 1px rgba(252, 176, 39, 0.22) inset,
            0 14px 38px rgba(0, 0, 0, 0.55);
    }
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 1px rgba(252, 176, 39, 0.1) inset,
            0 10px 30px rgba(0, 0, 0, 0.45);
    }
}

/* Accessibilité: réduire les animations si l’utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
    .appLoader__logoWrap,
    .appLoader__logo {
        animation: none !important;
    }
}

/* ===== Loader Reveal (clean) ===== */

.appLoader__svg {
    width: 150px; /* ajuste si besoin */
    height: 150px;
    display: block;

    /* centre le contenu du SVG dans son viewBox */
    overflow: visible;
}

/* force le centrage du dessin dans le viewBox */
.appLoader__svg {
    transform-box: fill-box;
    transform-origin: center;
}

/* masque animé */
.appLoader__svg {
    mask-image: linear-gradient(90deg, transparent 0%, white 40%, white 60%, transparent 100%);
    mask-size: 200% 100%;
    mask-position: 0% 0%;
    animation: logoReveal 2.4s ease-in-out infinite;
}

@keyframes logoReveal {
    0% {
        mask-position: 0% 0%;
        opacity: 0.4;
    }
    50% {
        mask-position: 100% 0%;
        opacity: 1;
    }
    100% {
        mask-position: 0% 0%;
        opacity: 0.4;
    }
}

/* ===== Loader : style clean (pas de card, pas de contour) ===== */
.appLoader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.appLoader__logoWrap,
.appLoader__logoWrap--draw {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    animation: none !important; /* stop pulse circle */
}

/* garde juste un centrage nickel */
.appLoader__logoWrap--draw {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Force le SVG en blanc */
.appLoader__svg path,
.appLoader__svg polygon {
    fill: #ffffff !important;
}

/* Force le SVG en blanc (fill + stroke) */
.appLoader__svg path,
.appLoader__svg polygon,
.appLoader__svg circle,
.appLoader__svg rect,
.appLoader__svg line,
.appLoader__svg polyline {
    fill: #fff !important;
    stroke: none !important;
}

/* Couleur des options dans la liste déroulante */
.pillNav__select option {
    color: #fcb027;
    background-color: #fff;
}

.header__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.header__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 6px; /* ajuste pour aligner visuellement avec ton titre */
}

.headerIconBtn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.headerIconBtn:hover {
    border-color: rgba(252, 176, 39, 0.4);
    transform: translateY(-1px);
}

/* ===== Layout interne des cards ===== */

.time {
    text-align: center;
    font-weight: 800;
    width: 110px;
    padding: 6px;
    margin: 12px auto 0px;
    background: rgb(255 255 255 / 6%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 0;
}

/* version highlight pour le match FC Baguettes */
.time--highlight {
    background: rgb(252 176 39 / 21%);
    border: 1px solid rgb(252 176 39 / 69%);
    color: var(--text);
    transition: all 0.2s ease;
}

.matchRow {
    display: block; /* on garde le style card, mais on laisse la vraie grille à l'intérieur */
    padding: 18px;
    margin: 12px 0;
}

.matchRow__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
}

.team {
    min-width: 0;
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.team.right {
    text-align: center;
}

.mid {
    text-align: center;
    font-weight: 900;
    color: #fff;
    min-width: 56px;
}

.score {
    font-size: 20px;
    font-weight: 900;
    color: var(--text);
}

.venueBadge {
    display: table;
    margin: 14px auto 0;
    text-align: center;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
}

.matchSeparator {
    width: 40%;
    opacity: 0;
    margin: 10px auto;
}

/* espace pour la flèche sur les cards cliquables */
.matchRow--clickable {
    position: relative;
    padding-right: 36px;
}

.matchRow--clickable::after {
    top: 50%;
    transform: translateY(-50%);
}

.time--live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    border: 1px solid #d7000052;
    color: #ff3b3b;
    background: #ff00002e;
    padding: 6px 12px 6px 12px;
    white-space: nowrap;
}

.liveDot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b3b;
    box-shadow: 0 0 0 rgba(255, 59, 59, 0.7);
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.7);
    }
    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(255, 59, 59, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 59, 0);
    }
}

.timelineNow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 4px;
    opacity: 0.95;
}

.timelineNow__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fcb027;
    flex: 0 0 auto;
    box-shadow: 0 0 0 6px rgba(252, 176, 39, 0.12);
}

.timelineNow__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(252, 176, 39, 0.85), rgba(252, 176, 39, 0.15));
    border-radius: 999px;
}

.timelineNow__label {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 1000;
    letter-spacing: 0.12em;
    color: #fcb027;
}

.playersPage {
    padding: 4px 0 0;
}

.playersSelectPill {
    margin: 12px 0 18px;
}

.playerHeader {
    margin-bottom: 12px;
}

.playerHeader__name {
    font-size: 22px;
    font-weight: 1000;
    line-height: 1.1;
}

.playerStatsGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.statCard {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px;
    min-height: 112px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.statCard--photo {
    padding: 0;
    overflow: hidden;
    min-height: 190px;
}

.statCard--big {
    align-items: flex-start;
}

.statCard__label {
    font-size: 12px;
    line-height: 1.15;
    font-weight: 1000;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
}

.statCard__value {
    font-size: 60px;
    line-height: 1;
    font-weight: 1000;
    color: var(--text);
}

.statCard__value--xl {
    font-size: 120px;
    line-height: 0.9;
}

.playerPhoto {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

@media (max-width: 420px) {
    .statCard__value--xl {
        font-size: 110px;
    }

    .playerStatsGrid {
        gap: 10px;
    }

    .statCard {
        min-height: 104px;
        padding: 12px;
    }

    .statCard--photo {
        min-height: 170px;
        padding: 0;
    }

    .playerPhoto {
        min-height: 170px;
    }

    .statCard__flag {
        font-size: 56px;
    }
}

.playersSelectPill {
    padding: 0 14px;
    min-height: 52px;
}

.playersSelectPill .pillNav__center {
    justify-content: center;
    width: 100%;
}

.playersSelectPill .pillNav__select {
    width: 100%;
    text-align: center;
    font-weight: 900;
}

.statCard--flag {
    align-items: flex-start;
    justify-content: space-between;
}

.statCard__flag {
    font-size: 64px;
    line-height: 1;
}

.eventPlayerBtn {
    flex: 1;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 900;
    padding: 0;
    cursor: pointer;
}

.eventPlayerBtn:hover {
    color: var(--accent);
}

.statCard__season {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seasonYear {
    font-size: 22px;
    font-weight: 1000;
    color: #fff;
}

.seasonSub {
    font-size: 13px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modalCard--news {
    max-width: 640px;
    max-height: min(88vh, 900px);
    display: flex;
    flex-direction: column;
}

.modalBody--news {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.newsModalImageWrap {
    margin: 0 0 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.newsModalImage {
    display: block;
    width: 100%;
    height: auto;
}

.newsModalContent {
    color: var(--text);
    line-height: 1.55;
}

.newsModalContent p:first-child {
    margin-top: 0;
}

.newsModalContent h1,
.newsModalContent h2,
.newsModalContent h3 {
    line-height: 1.2;
}

.newsModalContent img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.newsModalContent iframe {
    width: 100%;
    max-width: 100%;
}

.modalLinkBtn--accent {
    margin-top: 14px;
    background: rgba(252, 176, 39, 0.16);
    color: var(--accent);
    border-color: rgba(252, 176, 39, 0.35);
}

@media (max-width: 480px) {
    .modalOverlay {
        padding: 14px;
    }

    .modalCard {
        max-width: 100%;
    }
}

.previousMeetingRow {
    width: 100%;
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.previousMeetingRow:first-child {
    border-top: 0;
}

.previousMeetingRow:hover {
    background: rgba(255, 255, 255, 0.04);
}

.previousMeetingDate {
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}

.previousMeetingTeams {
    font-weight: 800;
    min-width: 0;
}

.previousMeetingScore {
    font-weight: 1000;
    color: var(--accent);
    white-space: nowrap;
}

.previousMeetingScore {
    font-weight: 1000;
    color: var(--accent);
    margin: 0 8px;
}
/* Boutique supporters */
.shop {
    padding: 12px 0 28px;
}
.shop [hidden] {
    display: none !important;
}
.shop h1 {
    font-size: 32px;
    line-height: 1.1;
    margin: 8px 0 24px;
}
.shop h2 {
    font-size: 22px;
    margin: 0 0 18px;
}
.shop__eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}
.shop__gallery {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg-soft);
}
.shop__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.shop__slide {
    margin: 0;
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}
.shop__slide img,
.shop__placeholder {
    width: 100%;
    height: 340px;
    object-fit: contain;
    background: #202023;
}
.shop__placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
}
.shop__slide figcaption {
    padding: 14px 18px;
    font-weight: 700;
}
.shop__galleryNav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 14px;
}
.shop button {
    cursor: pointer;
}
.shop__galleryNav button,
#shopAnother {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--pillBorder);
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 18px;
}
.shop__description {
    color: var(--muted);
    line-height: 1.6;
    margin: 22px 0 8px;
}
.shop__price {
    color: var(--accent);
    font-weight: 800;
    font-size: 22px;
    margin: 8px 0 24px;
}
.shop__form,
.shop__payment {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 18px;
    padding: 22px;
}
.shop__form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}
.shop__form input,
.shop__form select {
    width: 100%;
    min-height: 48px;
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--pillBorder);
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    font-size: 16px;
}
.shop :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.shop__form small,
.shop__note {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.6;
}
.shop__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.shop__cta {
    width: 100%;
    min-height: 52px;
    background: var(--accent);
    color: #111;
    border: 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
}
.shop__cta:disabled {
    opacity: 0.5;
    cursor: default;
}
.shop__error {
    color: #ffb1b1;
    line-height: 1.5;
}
.shop__trap {
    position: absolute;
    left: -10000px;
}
.shop__payment {
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.shop__qr {
    display: block;
    width: min(100%, 280px);
    height: auto;
    margin: 24px auto;
    padding: 12px;
    background: white;
    border-radius: 12px;
}
.shop__qrLink {
    display: block;
    color: var(--accent);
    text-align: center;
}
@media (max-width: 420px) {
    .shop__slide img,
    .shop__placeholder {
        height: 280px;
    }
    .shop__form,
    .shop__payment {
        padding: 18px;
    }
    .tabs {
        gap: 12px;
    }
    .tab {
        font-size: 13px;
    }
}
.shop__price {
    margin-bottom: 4px;
}
.shop__euro {
    margin: 0 0 24px;
    color: #b8bcc6;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}
.shop__euro small {
    display: block;
    font-size: 11px;
    color: var(--muted);
}
.shop__back {
    display: inline-block;
    margin: 0 0 18px;
    color: var(--muted);
    text-decoration: none;
}
.shop__catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.shop__product {
    display: block;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
}
.shop__product>img {
  display:block;
  width:100%;
  height:auto;
}
.shop__product > div {
    padding: 20px;
}
.shop__product h2 {
    margin: 12px 0;
}
.shop__view {
    color: var(--accent);
    font-weight: 700;
}
.shop__slide figcaption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.shop__slide figcaption a {
    color: var(--accent);
    font-size: 12px;
}

/* Product photos fill the figure width while preserving their aspect ratio. */
.shop__slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* Expandable player size reference for the 2026 kit. */
.shop__playerSizes {
    margin: 0 0 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    overflow: hidden;
}
.shop__playerSizes summary {
    cursor: pointer;
    padding: 18px 20px;
    color: var(--accent);
    font-weight: 800;
}
.shop__playerSizes summary span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}
.shop__playerSizesBody {
    padding: 0 20px 20px;
}
.shop__playerSizesBody > p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}
.shop__sizeTableWrap {
    overflow-x: auto;
}
.shop__sizeTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}
.shop__sizeTable caption {
    text-align: left;
    color: var(--muted);
    font-size: 12px;
    padding: 8px 0 14px;
}
.shop__sizeTable th,
.shop__sizeTable td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--line);
}
.shop__sizeTable thead th {
    color: var(--accent);
    font-size: 12px;
}
.shop__sizeTable td {
    text-align: center;
    font-weight: 800;
    white-space: nowrap;
}
.shop__sizeTable tbody th {
    font-weight: 600;
}
.shop__sizeTable small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    margin-top: 5px;
}
@media (max-width: 420px) {
    .shop__playerSizesBody {
        padding: 0 12px 12px;
    }
    .shop__sizeTable {
        font-size: 13px;
    }
}

/* Restored from the shared line-up conversation. */
.lineupCard {
    margin-top: 10px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 12px;
    overflow: hidden;
}

.lineupPitch {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 300px;
    max-height: 390px;
    border-radius: 10px;
    overflow: hidden;
    background-image: url("/app/image/pitch-bg-lineup.png");
    background-size: cover;
    background-position: center;
}

.lineupPlayer {
    position: absolute;
    width: 76px;
    transform: translate(-50%, -50%);
    text-align: center;
}

.lineupNumber {
    width: 48px;
    height: 48px;
    margin: 0 auto 4px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #000;
    font-size: 19px;
    font-weight: 1000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.lineupName {
    color: #000;
    font-size: 13px;
    font-weight: 1000;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45);
}

@media (max-width: 430px) {
    .lineupPitch {
        min-height: 260px;
    }
    .lineupPlayer {
        width: 64px;
    }
    .lineupNumber {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
    .lineupName {
        font-size: 12px;
    }
}

.lineupSubstitutes {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--line);
}
.lineupSubstitutes__label {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.lineupSubstitutes__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.lineupSubstitute {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--pill);
    font-size: 13px;
}
.lineupSubstitute strong {
    color: var(--accent);
}
.lineupPitch {
    background-color: #47864b;
}
.lineupPitch--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lineupInProgress {
    padding: 14px 22px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.04em;
}
@media (max-width: 430px) {
    .lineupInProgress {
        font-size: 18px;
        padding: 12px 18px;
    }
}

/* Match summary, photo album and MVP restored alongside the original match code. */
.matchSummaryCard {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--card);
}
.matchSummaryImageWrap {
    width: 100%;
}
.matchSummaryImage {
    display: block;
    width: 100%;
    height: auto;
}
.matchSummaryBody {
    padding: 18px;
}
.matchSummaryTitle {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 14px;
}
.matchSummaryContent {
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.matchSummaryContent img {
    max-width: 100%;
    height: auto;
}
.matchSummaryContent a {
    color: var(--accent);
}
.matchAlbumGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.matchAlbumItem {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--card);
}
.matchAlbumItem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mvpWinnerCard {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}
.mvpWinnerEmoji {
    font-size: 36px;
}
.mvpWinnerName {
    font-size: 23px;
    font-weight: 900;
    color: var(--accent);
}
.mvpVoteMatchHeader,
.mvpModalMatch {
    padding: 18px 0;
}
.mvpVoteMatchTeams,
.mvpModalTeams {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
}
.mvpGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.mvpPlayerBtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 100px;
    padding: 16px;
    border: 1px solid var(--pillBorder);
    border-radius: 14px;
    background: var(--card);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}
.mvpPlayerBtn:disabled {
    opacity: 0.55;
    cursor: default;
}
.mvpPlayerBtn:hover:not(:disabled) {
    border-color: var(--accent);
}
.mvpPlayerName {
    font-weight: 800;
}
.mvpPlayerStatsWrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mvpPlayerStatSlot {
    min-height: 20px;
}
.mvpPlayerStats {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--pill);
    font-size: 12px;
}
.mvpPlayerStats--goal {
    color: var(--accent);
}
.mvpPlayerStats--assist {
    color: #b9d4ff;
}
.mvpResultsList {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}
.mvpResultRow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
}
.mvpResultRow--winner {
    border-color: var(--accent);
}
.mvpResultRank {
    min-width: 28px;
    font-weight: 900;
    color: var(--accent);
}
.mvpResultName {
    flex: 1;
    font-weight: 700;
}
.mvpResultVotes {
    color: var(--muted);
}
.mvpCodeBlock {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-top: 18px;
    background: var(--card);
}
.mvpCodeLabel {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}
.mvpCodeInput {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--pillBorder);
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 16px;
}
.mvpCodeError {
    color: #ffb1b1;
    margin-top: 10px;
}
.mvpCountdownWrap {
    margin: 20px 0;
    text-align: center;
}
.mvpCountdownLabel {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}
.mvpFlipCountdown {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}
.mvpFlipCountdown > div {
    padding: 10px;
    border-radius: 10px;
    background: var(--card);
    font-weight: 900;
}
.modalCard--mvp {
    max-width: 480px;
}
@media (max-width: 430px) {
    .matchAlbumGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .matchSummaryBody {
        padding: 14px;
    }
    .mvpGrid {
        gap: 8px;
    }
    .mvpPlayerBtn {
        padding: 12px;
    }
}
.matchHeroTeams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
}
.matchHeroTeam {
    font-weight: 900;
    font-size: 19px;
    overflow-wrap: anywhere;
}
.matchHeroTeam--right {
    text-align: right;
}
.matchHeroScore {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 32px;
    font-weight: 900;
}
.matchHeroScoreSep {
    color: var(--muted);
}
.matchDetailMeta--hero {
    justify-content: center;
    margin-top: 18px;
}
.flipUnit {
    text-align: center;
}
.flipCard {
    min-width: 62px;
    padding: 10px;
    border: 1px solid var(--pillBorder);
    border-radius: 8px;
    background: var(--bg-soft);
    font-size: 30px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.flipLabel {
    font-size: 10px;
    color: var(--muted);
    margin-top: 6px;
}
.flipCard.is-flipping {
    animation: mvpDigitPulse 0.25s ease;
}
@keyframes mvpDigitPulse {
    50% {
        transform: scale(0.94);
    }
}
@media (prefers-reduced-motion: reduce) {
    .flipCard.is-flipping {
        animation: none;
    }
}
@media (max-width: 430px) {
    .matchHeroTeams {
        gap: 8px;
    }
    .matchHeroTeam {
        font-size: 15px;
    }
    .matchHeroScore {
        font-size: 26px;
        gap: 6px;
    }
}
