@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
    --red: #c92737;
    --red-dark: #8f1724;
    --red-deep: #5f0f1a;
    --red-soft: #fff0f2;
    --gold: #d9b469;
    --ink: #481018;
    --muted: #6d7280;
    --line: #e8e1d2;
    --paper: #fffaf0;
    --white: #ffffff;
    --font-body: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
    --font-display: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}

/* Club store entry on the home page. */
.club-store-box {
    min-height: 132px;
    isolation: isolate;
    display: grid !important;
    place-items: center;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 232, 173, .28), transparent 32%),
        radial-gradient(circle at 88% 78%, rgba(255, 255, 255, .14), transparent 30%),
        linear-gradient(135deg, #4b0712 0%, #8b0f20 46%, #d21f38 100%) !important;
    box-shadow:
        0 22px 44px rgba(95, 15, 26, .18),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.club-store-box::before {
    background:
        linear-gradient(180deg, rgba(32, 0, 8, .03), rgba(42, 0, 8, .32)),
        linear-gradient(135deg, rgba(217, 180, 105, .24), transparent 46%) !important;
}

.club-store-box span {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 2;
    color: #fff8df !important;
    background: linear-gradient(135deg, #7a0c1a, #b7192d 58%, #5f0f1a) !important;
    border-color: rgba(245, 204, 122, .62) !important;
    box-shadow: 0 12px 26px rgba(45, 0, 8, .18);
    min-width: min(78%, 260px);
    justify-content: center;
}

.home-store-single-grid {
    max-width: 620px;
}

@media (max-width: 760px) {
    .club-store-box {
        min-height: 104px;
    }
}

[data-barba="wrapper"] {
    min-height: 100vh;
}

[data-barba="container"] {
    min-height: 100vh;
    will-change: opacity, transform;
}

.is-barba-transitioning {
    cursor: progress;
}

.is-barba-transitioning a,
.is-barba-transitioning button {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-barba="container"] {
        will-change: auto;
    }
}

/* Final club teams red polish. Keep this near the end to override older mobile rules. */
.teams-list-page .club-category {
    margin-bottom: 34px !important;
}

.teams-list-page .club-teams-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 16px !important;
}

.teams-list-page .club-team-card {
    min-height: 128px !important;
    align-content: center !important;
    justify-items: start !important;
    gap: 9px !important;
    padding: 20px !important;
    border: 1px solid rgba(217, 180, 105, .32) !important;
    border-radius: 18px !important;
    color: var(--white) !important;
    text-align: right !important;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 231, 171, .24), transparent 28%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 54%, var(--red)) !important;
    box-shadow: 0 18px 40px rgba(95, 15, 26, .16) !important;
}

.teams-list-page .club-team-card::before {
    inset: auto 18px 0 18px !important;
    width: auto !important;
    height: 4px !important;
    border-radius: 999px 999px 0 0 !important;
    background: linear-gradient(90deg, transparent, var(--gold), #fff0bd, var(--gold), transparent) !important;
}

.teams-list-page .club-team-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -38px;
    bottom: -48px;
    width: 128px;
    height: 128px;
    border: 14px solid rgba(255, 255, 255, .1);
    border-top-color: rgba(217, 180, 105, .26);
    border-radius: 50%;
    pointer-events: none;
}

.teams-list-page .club-team-kicker,
.teams-list-page .club-team-card small {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.teams-list-page .club-team-kicker {
    color: var(--red-deep) !important;
    background: linear-gradient(135deg, #fff7df, var(--gold)) !important;
}

.teams-list-page .club-team-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--white) !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    text-align: inherit;
    text-shadow: 0 2px 12px rgba(65, 6, 17, .24) !important;
}

.teams-list-page .club-team-card small {
    color: rgba(255, 255, 255, .9) !important;
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
}

.teams-list-page .club-team-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(217, 180, 105, .72) !important;
    box-shadow: 0 24px 54px rgba(95, 15, 26, .24) !important;
}

.club-teams-empty {
    text-align: center;
}

@media (max-width: 720px) {
    .teams-list-page .club-teams-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .teams-list-page .club-team-card {
        min-height: 112px !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .teams-list-page .club-team-card h2 {
        font-size: 17px !important;
    }
}

/* Club teams page: red identity cards with player-count driven display. */
.teams-list-page .club-category {
    margin-bottom: 34px;
}

.teams-list-page .club-teams-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.teams-list-page .club-team-card {
    min-height: 128px;
    align-content: center;
    justify-items: start;
    gap: 9px;
    padding: 20px;
    border: 1px solid rgba(217, 180, 105, .32);
    border-radius: 18px;
    text-align: right;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 231, 171, .24), transparent 28%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 54%, var(--red));
    box-shadow: 0 18px 40px rgba(95, 15, 26, .16);
}

.teams-list-page .club-team-card::before {
    inset: auto 18px 0 18px;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, transparent, var(--gold), #fff0bd, var(--gold), transparent);
}

.teams-list-page .club-team-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -38px;
    bottom: -48px;
    width: 128px;
    height: 128px;
    border: 14px solid rgba(255, 255, 255, .1);
    border-top-color: rgba(217, 180, 105, .26);
    border-radius: 50%;
    pointer-events: none;
}

.teams-list-page .club-team-kicker,
.teams-list-page .club-team-card small {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.teams-list-page .club-team-kicker {
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff7df, var(--gold));
}

.teams-list-page .club-team-card h2 {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-size: clamp(18px, 2vw, 22px);
    text-align: inherit;
}

.teams-list-page .club-team-card small {
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}

.teams-list-page .club-team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 180, 105, .72);
    box-shadow: 0 24px 54px rgba(95, 15, 26, .24);
}

.club-teams-empty {
    text-align: center;
}

@media (max-width: 720px) {
    .teams-list-page .club-teams-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .teams-list-page .club-team-card {
        min-height: 112px;
        padding: 16px;
        border-radius: 16px;
    }

    .teams-list-page .club-team-card h2 {
        font-size: 17px;
    }
}

/* Final iOS 26 Liquid Glass overrides */
body {
    background:
        radial-gradient(circle at 14% -4%, rgba(217, 180, 105, .3), transparent 32%),
        radial-gradient(circle at 86% 12%, rgba(201, 39, 55, .14), transparent 28%),
        linear-gradient(180deg, #fffaf3 0%, #fff4e8 48%, #fffaf5 100%) !important;
}

:where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .gallery-empty, .schedule-card, .match-card, .competition-table-card, .club-team-card, .player-card, .board-member-card, .achievement-card, .detail-panel, .match-detail-hero, .match-info-grid article, .player-profile-hero, .profile-stat, .profile-bio-panel, .advanced-stats-shell, .empty-roster, .visual-stats-panel) {
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 28px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .54) 45%, rgba(255, 246, 232, .68)),
        rgba(255, 255, 255, .66) !important;
    box-shadow: 0 18px 46px rgba(72, 16, 24, .1), inset 0 1px 0 rgba(255, 255, 255, .88) !important;
    backdrop-filter: blur(24px) saturate(1.35);
    -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

:where(.section-title, .home-schedule-title, .ticker) {
    border: 1px solid rgba(255, 255, 255, .7) !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 247, 236, .58)) !important;
    box-shadow: 0 14px 34px rgba(72, 16, 24, .08), inset 0 1px 0 rgba(255, 255, 255, .86) !important;
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

.hero,
.teams-page-hero {
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, .3), transparent 28%),
        radial-gradient(circle at 84% 0%, rgba(217, 180, 105, .3), transparent 30%),
        linear-gradient(135deg, rgba(95, 15, 26, .98), rgba(143, 23, 36, .88) 56%, rgba(217, 180, 105, .5)) !important;
}

.hero-grid {
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 34px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

.brand {
    border: 1px solid rgba(255, 255, 255, .28) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 30px rgba(0, 0, 0, .1) !important;
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

:where(.brand-logo, .inner-brand-logo, .hero-logo, .team-logo, .schedule-team-logo, .detail-team-logo, .table-logo) {
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .84) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 12px 24px rgba(72, 16, 24, .12) !important;
}

:where(button, .button, .link-button, .match-card-action, .section-action, .schedule-details-link, input[type="submit"]) {
    border-radius: 999px !important;
    box-shadow: 0 12px 26px rgba(143, 23, 36, .16), inset 0 1px 0 rgba(255, 255, 255, .3) !important;
}

:where(input, select, textarea) {
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .74) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 8px 20px rgba(72, 16, 24, .05) !important;
}

th {
    background: linear-gradient(135deg, rgba(143, 23, 36, .96), rgba(201, 39, 55, .9)) !important;
}

td {
    background: rgba(255, 255, 255, .46);
}

:where(.score-box, .team-score-badge, .live-match-minute, .status-badge) {
    border-radius: 20px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 12px 24px rgba(143, 23, 36, .15) !important;
}

@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    :where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .schedule-card, .match-card, .competition-table-card, .club-team-card, .player-card, .board-member-card, .achievement-card, .detail-panel, .match-detail-hero, .player-profile-hero, .profile-stat, .profile-bio-panel, .advanced-stats-shell) {
        background: #fffdf7 !important;
    }
}

@media (max-width: 760px) {
    :where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .schedule-card, .match-card, .competition-table-card, .club-team-card, .player-card, .board-member-card, .achievement-card, .detail-panel) {
        border-radius: 24px !important;
    }

    .hero-grid {
        border-radius: 26px !important;
    }
}

/* iOS 26 inspired Liquid Glass theme */
:root {
    --paper: #fff8ef;
    --ios-surface: rgba(255, 255, 255, .66);
    --ios-surface-strong: rgba(255, 255, 255, .82);
    --ios-surface-soft: rgba(255, 246, 232, .58);
    --ios-border: rgba(255, 255, 255, .72);
    --ios-line: rgba(143, 23, 36, .13);
    --ios-shadow: 0 22px 55px rgba(72, 16, 24, .11);
    --ios-shadow-soft: 0 12px 34px rgba(72, 16, 24, .08);
    --ios-blur: blur(24px) saturate(1.38);
    --ios-radius-xl: 28px;
    --ios-radius-lg: 22px;
    --ios-radius-md: 18px;
}

body {
    background:
        radial-gradient(circle at 12% -6%, rgba(217, 180, 105, .32), transparent 34%),
        radial-gradient(circle at 86% 10%, rgba(201, 39, 55, .14), transparent 30%),
        radial-gradient(circle at 50% 112%, rgba(255, 255, 255, .9), transparent 38%),
        linear-gradient(180deg, #fffaf3 0%, #fff4e8 46%, #fffaf4 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .58), transparent 26%, rgba(217, 180, 105, .12) 56%, transparent 78%),
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .75), transparent 18%),
        radial-gradient(circle at 82% 32%, rgba(201, 39, 55, .1), transparent 20%);
    pointer-events: none;
}

:where(.hero, .teams-page-hero) {
    background:
        radial-gradient(circle at 16% 10%, rgba(255, 255, 255, .34), transparent 28%),
        radial-gradient(circle at 84% 0%, rgba(217, 180, 105, .28), transparent 30%),
        linear-gradient(135deg, rgba(95, 15, 26, .96), rgba(143, 23, 36, .86) 54%, rgba(217, 180, 105, .48));
}

:where(.brand, .hero-text, .hero-mark, .ticker, .content-section, .section-title, .match-card, .schedule-card, .facebook-card, .scorer-card, .gallery-card, .competition-table-card, .home-feature-card, .club-teams-box, .club-team-card, .player-card, .board-member-card, .achievement-card, .detail-panel, .match-detail-hero, .player-profile-hero, .profile-stat, .profile-bio-panel, .advanced-stats-shell, .table-wrap, .match-info-grid article, .visual-stats-panel) {
    backdrop-filter: var(--ios-blur);
    -webkit-backdrop-filter: var(--ios-blur);
}

:where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .gallery-empty, .schedule-card, .match-card, .competition-table-card, .club-team-card, .player-card, .board-member-card, .achievement-card, .detail-panel, .match-detail-hero, .match-info-grid article, .player-profile-hero, .profile-stat, .profile-bio-panel, .advanced-stats-shell, .empty-roster) {
    border: 1px solid var(--ios-border) !important;
    border-radius: var(--ios-radius-xl) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .52) 42%, rgba(255, 246, 232, .66)),
        var(--ios-surface) !important;
    box-shadow: var(--ios-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .82) !important;
}

:where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .schedule-card, .match-card, .competition-table-card, .club-team-card, .player-card, .board-member-card, .achievement-card, .detail-panel):hover {
    border-color: rgba(255, 255, 255, .92) !important;
    box-shadow: var(--ios-shadow), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

:where(.section-title, .home-schedule-title, .match-center-title, .competitions-section .section-title, .league-section .section-title) {
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: var(--ios-radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 250, 241, .48)),
        rgba(255, 255, 255, .54);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 14px 36px rgba(72, 16, 24, .07);
}

.brand {
    min-height: 54px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 14px 30px rgba(0, 0, 0, .1);
}

.brand-logo,
.inner-brand-logo,
.hero-logo,
.team-logo,
.schedule-team-logo,
.detail-team-logo,
.table-logo {
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 12px 24px rgba(72, 16, 24, .12);
}

.hero-grid {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.stat-card,
.club-achievements li {
    border-radius: 22px !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08)),
        rgba(255, 255, 255, .12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 26px rgba(0, 0, 0, .1) !important;
}

.ticker {
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 0 0 28px 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 247, 236, .54)),
        rgba(255, 255, 255, .62);
    box-shadow: 0 16px 36px rgba(72, 16, 24, .08);
}

:where(button, .button, .link-button, .match-card-action, .section-action, .schedule-details-link, input[type="submit"]) {
    border-radius: 999px !important;
    box-shadow: 0 12px 26px rgba(143, 23, 36, .16), inset 0 1px 0 rgba(255, 255, 255, .28) !important;
}

:where(.match-card-action, .schedule-details-link, .section-action, .button) {
    background: linear-gradient(135deg, var(--red), var(--red-dark)) !important;
}

:where(input, select, textarea) {
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 20px rgba(72, 16, 24, .05);
}

.table-wrap,
.competition-table-card {
    overflow: hidden;
    border-radius: var(--ios-radius-xl) !important;
}

table {
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: linear-gradient(135deg, rgba(143, 23, 36, .94), rgba(201, 39, 55, .88)) !important;
}

td {
    background: rgba(255, 255, 255, .46);
}

.match-card::before,
.gallery-card::before,
.home-feature-card::before,
.club-team-card::before,
.detail-panel::before {
    opacity: .55;
}

.score-box,
.team-score-badge,
.standing-points,
.live-match-minute {
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 20px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 12px 24px rgba(143, 23, 36, .15) !important;
}

@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    :where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .schedule-card, .match-card, .competition-table-card, .club-team-card, .player-card, .board-member-card, .achievement-card, .detail-panel, .match-detail-hero, .player-profile-hero, .profile-stat, .profile-bio-panel, .advanced-stats-shell) {
        background: #fffdf7 !important;
    }
}

@media (max-width: 760px) {
    :root {
        --ios-radius-xl: 24px;
        --ios-radius-lg: 20px;
    }

    body {
        background:
            radial-gradient(circle at 20% -4%, rgba(217, 180, 105, .26), transparent 30%),
            linear-gradient(180deg, #fff9f0 0%, #fff4e7 52%, #fffaf4 100%);
    }

    :where(.content-section, .section-title, .match-card, .schedule-card, .facebook-card, .scorer-card, .gallery-card, .competition-table-card, .home-feature-card, .club-teams-box, .club-team-card, .player-card, .board-member-card, .achievement-card, .detail-panel) {
        border-radius: var(--ios-radius-xl) !important;
    }

    .hero-grid {
        border-radius: 26px;
    }

    .brand {
        min-height: 48px;
        padding: 7px 10px;
    }
}

/* Match momentum card */
@keyframes momentumGlow {
    0%, 100% {
        opacity: .45;
        transform: scale(.92);
    }

    50% {
        opacity: .9;
        transform: scale(1.08);
    }
}

.match-momentum-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(217, 180, 105, .34);
    background:
        radial-gradient(circle at 14% 12%, rgba(217, 180, 105, .28), transparent 30%),
        radial-gradient(circle at 86% 90%, rgba(201, 39, 55, .12), transparent 34%),
        linear-gradient(135deg, #fffdf8, #fff7eb);
}

.match-momentum-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(143, 23, 36, .04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(217, 180, 105, .07) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
    pointer-events: none;
}

.match-momentum-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.match-momentum-head small {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--red-dark);
    background: rgba(217, 180, 105, .22);
    font-weight: 900;
}

.match-momentum-head h2 {
    margin: 10px 0 6px;
    color: var(--red-deep);
}

.match-momentum-head p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.match-momentum-teams {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.momentum-team-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid rgba(232, 225, 210, .85);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    font-weight: 900;
}

.momentum-team-two {
    justify-content: flex-end;
}

.momentum-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(72, 16, 24, .08);
}

.match-momentum-board {
    position: relative;
    z-index: 1;
    direction: rtl;
    min-height: 240px;
    overflow: hidden;
    border: 1px solid rgba(217, 180, 105, .32);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(201, 39, 55, .08), transparent 48%, rgba(217, 180, 105, .14) 52%, rgba(217, 180, 105, .06)),
        rgba(255, 255, 255, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 24px 48px rgba(72, 16, 24, .08);
}

.momentum-half {
    position: absolute;
    inset-inline: 18px;
    display: flex;
    align-items: center;
    color: rgba(95, 15, 26, .52);
    font-size: 13px;
    font-weight: 900;
    pointer-events: none;
}

.momentum-half-top {
    top: 12px;
}

.momentum-half-bottom {
    bottom: 12px;
    justify-content: flex-end;
}

.momentum-center-line {
    position: absolute;
    inset-inline: 26px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 2px;
    background: linear-gradient(90deg, rgba(143, 23, 36, .15), var(--red), rgba(217, 180, 105, .75));
    transform: translateY(-50%);
}

.momentum-center-line::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 50%;
    height: 28px;
    background: linear-gradient(90deg, rgba(201, 39, 55, .08), rgba(217, 180, 105, .12));
    border-radius: 999px;
    filter: blur(9px);
    transform: translateY(-50%);
}

.momentum-center-line span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 28px;
    border-radius: 999px;
    color: var(--red-deep);
    background: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(72, 16, 24, .1);
}

.momentum-pulse {
    position: absolute;
    inset-inline-start: var(--x);
    z-index: 2;
    display: grid;
    justify-items: center;
    width: 92px;
    color: inherit;
    text-align: center;
    transform: translateX(50%);
}

.momentum-pulse::before {
    content: "";
    width: 6px;
    height: calc(var(--bar) * .62);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--red), rgba(201, 39, 55, .08));
    box-shadow: 0 0 18px rgba(201, 39, 55, .28);
}

.momentum-pulse-two::before {
    background: linear-gradient(0deg, var(--gold), rgba(217, 180, 105, .08));
    box-shadow: 0 0 18px rgba(217, 180, 105, .34);
}

.momentum-pulse-one {
    bottom: 50%;
    padding-bottom: 8px;
}

.momentum-pulse-two {
    top: 50%;
    padding-top: 8px;
}

.momentum-pulse-two::before {
    order: 3;
}

.momentum-pulse i {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-block: 5px;
    border: 1px solid rgba(201, 39, 55, .2);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 13px 24px rgba(72, 16, 24, .16);
}

.momentum-pulse i::after {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: -1;
    border-radius: 16px;
    background: rgba(201, 39, 55, .12);
    animation: momentumGlow 2.8s ease-in-out infinite;
}

.momentum-pulse-two i::after {
    background: rgba(217, 180, 105, .18);
}

.momentum-pulse img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.momentum-pulse b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 24px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(143, 23, 36, .18);
}

.momentum-pulse-two b {
    color: var(--red-deep);
    background: linear-gradient(135deg, #f8dda0, var(--gold));
}

.momentum-pulse span {
    display: grid;
    gap: 2px;
    max-width: 108px;
    margin-top: 4px;
    padding: 6px 7px;
    border: 1px solid rgba(232, 225, 210, .86);
    border-radius: 14px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 24px rgba(72, 16, 24, .09);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
}

.momentum-pulse:hover span,
.momentum-pulse:focus-visible span {
    opacity: 1;
    transform: translateY(0);
}

.momentum-pulse strong {
    color: var(--red-deep);
    font-size: 12px;
}

.momentum-pulse em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    white-space: nowrap;
}

.match-momentum-empty {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    justify-items: center;
    gap: 6px;
    width: min(320px, calc(100% - 48px));
    padding: 18px;
    border: 1px dashed rgba(201, 39, 55, .28);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, .78);
    text-align: center;
    transform: translate(-50%, -50%);
}

.match-momentum-empty strong {
    color: var(--red-deep);
}

@media (max-width: 760px) {
    .match-momentum-head {
        flex-direction: column;
    }

    .match-momentum-teams {
        grid-template-columns: 1fr;
    }

    .momentum-team-two {
        justify-content: flex-start;
    }

    .match-momentum-board {
        min-height: 245px;
        border-radius: 18px;
    }

    .momentum-center-line {
        inset-inline: 18px;
    }

    .momentum-pulse {
        width: 62px;
    }

    .momentum-pulse::before {
        width: 5px;
        height: calc(var(--bar) * .46);
    }

    .momentum-pulse i {
        width: 30px;
        height: 30px;
        border-radius: 12px;
    }

    .momentum-pulse img {
        width: 17px;
        height: 17px;
    }

    .momentum-pulse b {
        min-width: 30px;
        min-height: 22px;
        font-size: 10px;
    }

    .momentum-pulse span {
        display: none;
    }
}

/* Compact match events timeline */
.match-detail-page .live-match-panel {
    padding: clamp(12px, 2vw, 18px);
}

.match-detail-page .live-match-head {
    margin-bottom: 10px;
}

.match-detail-page .live-match-head small {
    min-height: 22px;
    padding: 0 9px;
    font-size: 11px;
}

.match-detail-page .live-match-head h2 {
    font-size: clamp(20px, 2.6vw, 28px);
}

.match-detail-page .live-match-head span {
    min-height: 24px;
    padding: 3px 9px;
    font-size: 11px;
}

.match-detail-page .live-match-timeline {
    gap: 6px;
}

.match-detail-page .live-match-timeline::before {
    right: 17px;
}

.match-detail-page .live-match-event {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(42, 31, 21, .055);
}

.match-detail-page .live-match-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(95, 15, 26, .1);
}

.match-detail-page .live-match-event > div {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 3px 9px;
}

.match-detail-page .live-match-minute {
    width: 34px;
    height: 34px;
    font-size: 12px;
    box-shadow: 0 8px 18px rgba(95, 15, 26, .14);
}

.match-detail-page .live-event-visual {
    gap: 4px;
}

.match-detail-page .live-event-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: 0 7px 16px rgba(95, 15, 26, .09);
}

.match-detail-page .live-event-icon img {
    width: 22px;
    height: 22px;
}

.match-detail-page .live-event-player {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.match-detail-page .live-event-player img {
    border-width: 2px;
    box-shadow: 0 8px 18px rgba(42, 31, 21, .13);
}

.match-detail-page .live-event-player b {
    bottom: -6px;
    min-width: 26px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
}

.match-detail-page .live-match-event strong {
    font-size: 14px;
    line-height: 1.35;
}

.match-detail-page .live-match-event small {
    margin-top: 0;
    font-size: 11px;
}

.match-detail-page .live-match-event p {
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.45;
}

.match-detail-page .live-match-event > b {
    padding: 4px 8px;
    font-size: 11px;
}

.match-detail-page .live-match-substitution > div {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
}

.match-detail-page .live-match-substitution .live-event-sub-icon {
    grid-row: 1;
}

.live-substitution-compact {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.live-sub-player {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 45%;
    padding: 5px 7px;
    border: 1px solid rgba(201, 39, 55, .12);
    border-radius: 12px;
    color: inherit;
    background: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.live-sub-player img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 7px 14px rgba(42, 31, 21, .12);
}

.live-sub-player span {
    display: grid;
    min-width: 0;
}

.live-sub-player small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.1;
}

.live-sub-player strong {
    overflow: hidden;
    color: var(--red-deep);
    font-size: 12px !important;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.live-sub-player b {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-size: 10px;
    font-weight: 900;
}

.live-sub-out {
    background: linear-gradient(135deg, rgba(255, 240, 242, .92), rgba(255, 255, 255, .72));
}

.live-sub-in {
    border-color: rgba(35, 139, 87, .18);
    background: linear-gradient(135deg, rgba(232, 250, 241, .95), rgba(255, 255, 255, .72));
}

.live-sub-in strong {
    color: #116b40;
}

.live-sub-in b {
    background: linear-gradient(135deg, #0f6f42, #27a35f);
}

.live-sub-arrows {
    display: grid;
    gap: 2px;
    flex: 0 0 auto;
}

.live-sub-arrows i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 18px;
    border-radius: 999px;
    color: var(--white);
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.live-sub-arrows .sub-arrow-out {
    background: linear-gradient(135deg, var(--red-deep), var(--red));
}

.live-sub-arrows .sub-arrow-in {
    background: linear-gradient(135deg, #0f6f42, #27a35f);
}

@media (max-width: 640px) {
    .match-detail-page .live-match-panel {
        padding: 10px;
    }

    .match-detail-page .live-match-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .match-detail-page .live-match-event {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 7px;
        padding: 7px;
    }

    .match-detail-page .live-match-event > div {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 2px 7px;
    }

    .match-detail-page .live-match-minute {
        width: 31px;
        height: 31px;
        font-size: 11px;
    }

    .match-detail-page .live-event-icon {
        width: 31px;
        height: 31px;
    }

    .match-detail-page .live-event-icon img {
        width: 20px;
        height: 20px;
    }

    .match-detail-page .live-event-player {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .match-detail-page .live-match-event strong {
        font-size: 13px;
    }

    .match-detail-page .live-match-event small,
    .match-detail-page .live-match-event p {
        font-size: 11px;
    }

    .match-detail-page .live-match-substitution > div {
        grid-template-columns: 31px minmax(0, 1fr);
    }

    .live-substitution-compact {
        gap: 4px;
    }

    .live-sub-player {
        max-width: calc((100% - 32px) / 2);
        padding: 4px 5px;
        gap: 4px;
    }

    .live-sub-player img {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .live-sub-player small {
        display: none;
    }

    .live-sub-player strong {
        font-size: 11px !important;
    }

    .live-sub-player b {
        min-width: 20px;
        height: 16px;
        padding: 0 4px;
        font-size: 9px;
    }

    .live-sub-arrows i {
        width: 20px;
        height: 16px;
        font-size: 12px;
    }
}

/* Club teams premium red icons */
.teams-list-page .club-team-card {
    position: relative !important;
    isolation: isolate;
    min-height: 150px !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 10px !important;
    padding: 22px 18px 18px !important;
    border: 1px solid rgba(255, 231, 171, .42) !important;
    border-radius: 24px !important;
    text-align: center !important;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 231, 171, .22), transparent 28%),
        linear-gradient(145deg, #410611 0%, #7f0b1d 42%, #c92737 72%, #e23849 100%) !important;
    box-shadow:
        0 22px 48px rgba(95, 15, 26, .22),
        inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

.teams-list-page .club-team-card::before {
    content: "" !important;
    position: relative !important;
    inset: auto !important;
    z-index: 1;
    display: block;
    width: 58px !important;
    height: 58px !important;
    margin: 0 auto 2px;
    border: 1px solid rgba(255, 231, 171, .44);
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .34), transparent 25%),
        linear-gradient(135deg, #e23b4f 0%, #b80f28 48%, #5f0f1a 100%) !important;
    box-shadow:
        0 14px 26px rgba(65, 6, 17, .24),
        inset 0 1px 0 rgba(255, 255, 255, .24),
        inset 0 0 0 14px rgba(255, 255, 255, .055);
}

.teams-list-page .club-team-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -34px;
    bottom: -46px;
    z-index: -1;
    width: 132px;
    height: 132px;
    border: 16px solid rgba(255, 255, 255, .1);
    border-top-color: rgba(255, 231, 171, .28);
    border-radius: 50%;
    pointer-events: none;
}

.teams-list-page .club-team-kicker {
    color: #5f0f1a !important;
    background: linear-gradient(135deg, #fff4c9, #d9b469) !important;
}

.teams-list-page .club-team-card h2 {
    color: #ffe7ab !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    text-shadow: 0 2px 12px rgba(65, 6, 17, .36) !important;
}

.teams-list-page .club-team-card small {
    color: #f8d77c !important;
    background: rgba(255, 255, 255, .13) !important;
    border-color: rgba(255, 231, 171, .28) !important;
}

.teams-list-page .club-team-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    border-color: rgba(255, 231, 171, .72) !important;
    box-shadow:
        0 28px 62px rgba(95, 15, 26, .28),
        inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

@media (max-width: 720px) {
    .teams-list-page .club-team-card {
        min-height: 132px !important;
        padding: 18px 14px !important;
        border-radius: 20px !important;
    }

    .teams-list-page .club-team-card::before {
        width: 50px !important;
        height: 50px !important;
        border-radius: 17px !important;
    }
}

/* True EOF override: homepage team stats visual safety. */
.advanced-stats-shell .stats-overview {
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.advanced-stats-shell .stats-showcase {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1fr) minmax(0, .88fr) !important;
    grid-auto-rows: minmax(132px, auto) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

.advanced-stats-shell .stats-chart-card {
    grid-row: span 2 !important;
    min-height: 300px !important;
    border-radius: 20px !important;
}

.advanced-stats-shell .win-rate-card {
    min-height: 150px !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 14px !important;
}

.advanced-stats-shell .form-card,
.advanced-stats-shell .big-win-card {
    min-height: 132px !important;
}

.advanced-stats-shell .player-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.advanced-stats-shell .player-stat-card {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    min-height: 118px !important;
}

@media (max-width: 980px) {
    .advanced-stats-shell .stats-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .advanced-stats-shell .stat-tile-main,
    .advanced-stats-shell .stats-chart-card,
    .advanced-stats-shell .win-rate-card {
        grid-column: 1 / -1 !important;
    }

    .advanced-stats-shell .stats-showcase {
        grid-template-columns: 1fr 1fr !important;
    }

    .advanced-stats-shell .stats-chart-card {
        grid-row: auto !important;
        min-height: 270px !important;
    }

    .advanced-stats-shell .player-stat-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .advanced-stats-shell {
        gap: 10px !important;
        width: min(100%, 430px) !important;
        padding: 10px !important;
    }

    .advanced-stats-shell .stat-tile {
        min-height: 98px !important;
        padding: 12px !important;
    }

    .advanced-stats-shell .stats-showcase {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .advanced-stats-shell .stats-chart-card {
        min-height: 224px !important;
        padding: 10px !important;
    }

    .advanced-stats-shell .win-rate-card {
        grid-template-columns: 82px minmax(0, 1fr) !important;
        min-height: 112px !important;
        padding: 10px !important;
    }

    .advanced-stats-shell .rate-ring {
        width: 78px !important;
        height: 78px !important;
    }

    .advanced-stats-shell .form-card,
    .advanced-stats-shell .big-win-card {
        min-height: 102px !important;
        padding: 11px !important;
    }

    .advanced-stats-shell .player-stat-card {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        min-height: 92px !important;
        padding: 9px !important;
    }

    .advanced-stats-shell .player-stat-photo {
        width: 64px !important;
        height: 72px !important;
    }
}

/* EOF override: refined homepage advanced stats layout. */
.advanced-stats-section .section-title {
    margin-bottom: 16px !important;
}

.advanced-stats-shell {
    isolation: isolate;
    gap: 18px !important;
    padding: clamp(14px, 2vw, 24px) !important;
    border: 1px solid rgba(217, 180, 105, .26) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 231, 171, .2), transparent 28%),
        radial-gradient(circle at 92% 10%, rgba(201, 39, 55, .16), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(255, 248, 234, .86)) !important;
    box-shadow:
        0 24px 64px rgba(95, 15, 26, .12),
        inset 0 1px 0 rgba(255, 255, 255, .75) !important;
}

.advanced-stats-shell::before {
    height: 6px !important;
    background: linear-gradient(90deg, transparent, var(--gold), #fff0bd, var(--red), var(--gold), transparent) !important;
}

.advanced-stats-shell::after {
    content: "";
    position: absolute;
    inset-inline-start: -70px;
    bottom: -90px;
    z-index: -1;
    width: 210px;
    height: 210px;
    border: 22px solid rgba(201, 39, 55, .06);
    border-top-color: rgba(217, 180, 105, .16);
    border-radius: 50%;
    pointer-events: none;
}

.advanced-stats-shell .stats-overview {
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.advanced-stats-shell .stat-tile,
.advanced-stats-shell .win-rate-card,
.advanced-stats-shell .form-card,
.advanced-stats-shell .big-win-card,
.advanced-stats-shell .player-stat-card,
.advanced-stats-shell .stats-chart-card {
    border: 1px solid rgba(217, 180, 105, .22) !important;
    border-radius: 20px !important;
    box-shadow:
        0 16px 36px rgba(95, 15, 26, .1),
        inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

.advanced-stats-shell .stat-tile {
    min-height: 118px !important;
    padding: 18px !important;
    align-content: space-between;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(255, 247, 231, .88)) !important;
}

.advanced-stats-shell .stat-tile-main {
    color: #fff !important;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 231, 171, .25), transparent 28%),
        linear-gradient(145deg, #4e0712, #871022 48%, #c92737 100%) !important;
}

.advanced-stats-shell .stat-tile span {
    color: var(--red-deep) !important;
    font-size: 13px !important;
}

.advanced-stats-shell .stat-tile-main span,
.advanced-stats-shell .stat-tile-main small {
    color: rgba(255, 255, 255, .82) !important;
}

.advanced-stats-shell .stat-tile strong {
    font-size: clamp(30px, 3vw, 44px) !important;
}

.advanced-stats-shell .stats-showcase {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1fr) minmax(0, .88fr) !important;
    grid-auto-rows: minmax(132px, auto);
    gap: 14px !important;
    align-items: stretch;
}

.advanced-stats-shell .stats-chart-card {
    grid-row: span 2;
    min-height: 300px !important;
    padding: 18px !important;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .18), transparent 32%),
        linear-gradient(145deg, #4e0712 0%, #811020 48%, #bd2134 100%) !important;
}

.advanced-stats-shell .win-rate-card {
    grid-column: span 1;
    min-height: 150px !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 16px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(255, 248, 235, .9)) !important;
}

.advanced-stats-shell .rate-ring {
    width: 104px !important;
    height: 104px !important;
    background:
        radial-gradient(circle, #fff 0 57%, transparent 58%),
        conic-gradient(var(--red) calc(var(--rate) * 1%), rgba(217, 180, 105, .24) 0) !important;
}

.advanced-stats-shell .rate-ring strong {
    font-size: 24px !important;
}

.advanced-stats-shell .rate-ring span {
    margin-top: -22px !important;
    font-size: 10px !important;
}

.advanced-stats-shell .win-rate-card h3 {
    margin-bottom: 6px !important;
    color: var(--red-deep) !important;
    font-size: clamp(18px, 1.6vw, 22px) !important;
}

/* EOF override: premium homepage standings tables. */
.competitions-section,
.league-section {
    isolation: isolate;
}

.competitions-stack {
    display: grid !important;
    gap: clamp(16px, 2vw, 24px) !important;
}

.competition-table-card,
.league-section > .table-wrap {
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(217, 180, 105, .28) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 8% 0, rgba(255, 231, 171, .22), transparent 32%),
        radial-gradient(circle at 92% 0, rgba(201, 39, 55, .14), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 248, 235, .9)) !important;
    box-shadow:
        0 24px 64px rgba(95, 15, 26, .12),
        inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

.competition-table-card::before {
    display: block !important;
    height: 6px !important;
    background: linear-gradient(90deg, transparent, var(--gold), #fff0bd, var(--red), var(--gold), transparent) !important;
}

.competition-table-head {
    min-height: 82px !important;
    padding: 16px 18px 14px !important;
    border-bottom: 1px solid rgba(217, 180, 105, .22) !important;
    background:
        linear-gradient(90deg, rgba(95, 15, 26, .06), transparent 34%, rgba(217, 180, 105, .12)),
        rgba(255, 255, 255, .58) !important;
}

.competition-table-head::after {
    right: 20px !important;
    width: min(260px, 54%) !important;
    height: 4px !important;
    background: linear-gradient(90deg, var(--red), var(--gold), rgba(217, 180, 105, 0)) !important;
}

.competition-table-head p {
    min-height: 34px !important;
    padding: 0 14px !important;
    color: #6b4509 !important;
    background: linear-gradient(135deg, #fff7d8, #e3b75b) !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    box-shadow: 0 10px 22px rgba(142, 91, 12, .11) !important;
}

.competition-table-head img {
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .92) !important;
}

.competition-table-card .table-wrap,
.league-section > .table-wrap {
    margin: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(217, 180, 105, .2) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .74) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75) !important;
}

.league-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
}

.league-table .standing-col-rank { width: 72px; }
.league-table .standing-col-team { width: auto; }
.league-table .standing-col-stat { width: 72px; }
.league-table .standing-col-points { width: 84px; }

.league-table th,
.league-table td {
    height: 58px !important;
    padding: 10px 8px !important;
    border-bottom: 1px solid rgba(217, 180, 105, .18) !important;
    color: #4b0c14 !important;
    background: rgba(255, 255, 255, .56) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.league-table th {
    height: 44px !important;
    color: rgba(255, 255, 255, .9) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), transparent),
        linear-gradient(135deg, #5f0f1a, #98152a 54%, #c92737) !important;
    font-size: 12px !important;
    letter-spacing: 0 !important;
}

.league-table tbody tr {
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.league-table tbody tr:hover td {
    background: rgba(255, 246, 229, .96) !important;
}

.league-table tbody tr.is-club-team td {
    background:
        linear-gradient(90deg, rgba(255, 245, 210, .96), rgba(255, 255, 255, .74)) !important;
}

.league-table tbody tr.is-club-team td:nth-child(2) {
    box-shadow: inset -4px 0 0 var(--red);
}

.rank-badge {
    display: inline-grid !important;
    place-items: center !important;
    min-width: 34px !important;
    height: 34px !important;
    border-radius: 12px !important;
    color: var(--red-deep) !important;
    background: rgba(255, 255, 255, .82) !important;
    box-shadow: inset 0 0 0 1px rgba(217, 180, 105, .24) !important;
    font-size: 15px !important;
    font-weight: 950 !important;
}

.standing-rank-1 .rank-badge {
    color: #5d3b06 !important;
    background: linear-gradient(135deg, #fff5c5, #d9b469) !important;
    box-shadow: 0 10px 20px rgba(142, 91, 12, .16) !important;
}

.standing-rank-2 .rank-badge,
.standing-rank-3 .rank-badge {
    color: #f8d77c !important;
    background: linear-gradient(135deg, #7c1020, #c92737) !important;
}

.team-name {
    min-width: 0 !important;
    text-align: start !important;
}

.team-cell {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    justify-content: start !important;
    justify-items: start !important;
    width: 100% !important;
    gap: 11px !important;
    margin-inline: 0 !important;
}

.team-cell span {
    overflow: hidden !important;
    color: #3f0912 !important;
    text-align: start !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 15px !important;
    font-weight: 950 !important;
}

.table-logo {
    width: 42px !important;
    height: 42px !important;
    padding: 4px !important;
    border: 1px solid rgba(217, 180, 105, .28) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, .9) !important;
    box-shadow: 0 10px 22px rgba(95, 15, 26, .08) !important;
}

.goal-diff {
    display: inline-flex;
    justify-content: center;
    min-width: 36px;
    color: #5f0f1a;
    font-weight: 950;
}

.goal-diff.positive {
    color: #138a55;
}

.goal-diff.negative {
    color: #c92737;
}

.points {
    min-width: 44px !important;
    height: 34px !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: linear-gradient(145deg, #6d0714, #c92737) !important;
    box-shadow: 0 10px 20px rgba(115, 9, 24, .18) !important;
    font-size: 15px !important;
    font-weight: 950 !important;
}

@media (max-width: 640px) {
    .competitions-section,
    .league-section {
        width: min(100%, 430px) !important;
    }

    .competition-table-card,
    .league-section > .table-wrap {
        border-radius: 20px !important;
    }

    .competition-table-head {
        min-height: 62px !important;
        padding: 10px 10px 9px !important;
    }

    .competition-table-head p {
        min-height: 30px !important;
        padding: 0 11px !important;
        font-size: 13px !important;
    }

    .competition-table-head img {
        width: 44px !important;
        height: 44px !important;
        border-radius: 14px !important;
    }

    .competition-table-card .table-wrap,
    .league-section > .table-wrap {
        margin: 8px !important;
        overflow: hidden !important;
        border-radius: 14px !important;
    }

    .league-table {
        min-width: 0 !important;
        width: 100% !important;
    }

    .league-table .standing-col-rank { width: 34px; }
    .league-table .standing-col-team { width: auto; }
    .league-table .standing-col-stat { width: 31px; }
    .league-table .standing-col-points { width: 38px; }

    .league-table th,
    .league-table td {
        height: 48px !important;
        padding: 6px 2px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .league-table th {
        height: 34px !important;
        color: #7b6f78 !important;
        background: rgba(250, 248, 244, .96) !important;
        font-size: 0 !important;
    }

    .league-table th::after {
        font-size: 10px !important;
        font-weight: 950 !important;
    }

    .league-table th:first-child,
    .league-table td:first-child {
        position: static !important;
        width: auto !important;
        background: rgba(255, 255, 255, .62) !important;
        box-shadow: none !important;
    }

    .league-table td:first-child {
        box-shadow: inset -3px 0 rgba(201, 39, 55, .74) !important;
    }

    .league-table tbody tr:nth-child(6) td:first-child,
    .league-table tbody tr:nth-child(n+7) td:first-child {
        box-shadow: inset -3px 0 rgba(217, 180, 105, .84) !important;
    }

    .rank-badge {
        min-width: 24px !important;
        height: 24px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
    }

    .team-cell {
        grid-template-columns: 25px minmax(0, 1fr) !important;
        gap: 5px !important;
    }

    .team-cell span {
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .table-logo {
        width: 25px !important;
        height: 25px !important;
        padding: 2px !important;
        border-radius: 8px !important;
    }

    .goal-diff {
        min-width: 0 !important;
        font-size: 10px !important;
    }

    .points {
        min-width: 28px !important;
        height: 24px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
    }
}

.advanced-stats-shell .win-rate-card p {
    color: var(--muted) !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
}

.advanced-stats-shell .form-card,
.advanced-stats-shell .big-win-card {
    min-height: 132px !important;
    padding: 16px !important;
}

.advanced-stats-shell .form-card {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 248, 235, .88)) !important;
}

.advanced-stats-shell .form-card strong,
.advanced-stats-shell .big-win-card strong {
    font-size: clamp(20px, 1.8vw, 25px) !important;
    line-height: 1.25 !important;
}

.advanced-stats-shell .form-dots {
    gap: 7px !important;
}

.advanced-stats-shell .form-dot {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
}

.advanced-stats-shell .big-win-card {
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 231, 171, .28), transparent 28%),
        linear-gradient(145deg, #4e0712, #7d0d1d 54%, #b51c2e) !important;
}

.advanced-stats-shell .player-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.advanced-stats-shell .player-stat-card {
    min-height: 118px !important;
    padding: 12px !important;
    grid-template-columns: 78px minmax(0, 1fr) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(255, 248, 235, .88)) !important;
}

.advanced-stats-shell .player-stat-photo {
    width: 78px !important;
    height: 88px !important;
    border-radius: 18px !important;
}

.advanced-stats-shell .player-stat-photo img,
.advanced-stats-shell .player-stat-photo span {
    border-radius: 15px !important;
}

.advanced-stats-shell .player-stat-card h3 {
    margin-bottom: 7px !important;
    color: var(--red-deep) !important;
    font-size: clamp(17px, 1.5vw, 21px) !important;
    line-height: 1.35 !important;
}

.advanced-stats-shell .player-stat-card strong {
    color: #fff !important;
    background: linear-gradient(135deg, var(--red), var(--red-deep)) !important;
}

@media (max-width: 980px) {
    .advanced-stats-shell {
        width: min(100%, 720px) !important;
    }

    .advanced-stats-shell .stats-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .advanced-stats-shell .stat-tile-main {
        grid-column: 1 / -1;
    }

    .advanced-stats-shell .stats-showcase {
        grid-template-columns: 1fr 1fr !important;
    }

    .advanced-stats-shell .stats-chart-card {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 270px !important;
    }

    .advanced-stats-shell .win-rate-card {
        grid-column: 1 / -1;
    }

    .advanced-stats-shell .player-stat-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .advanced-stats-section .section-title {
        margin-bottom: 10px !important;
    }

    .advanced-stats-shell {
        gap: 10px !important;
        width: min(100%, 430px) !important;
        padding: 10px !important;
        border-radius: 22px !important;
    }

    .advanced-stats-shell .stats-overview {
        gap: 8px !important;
    }

    .advanced-stats-shell .stat-tile {
        min-height: 98px !important;
        padding: 12px !important;
        border-radius: 16px !important;
    }

    .advanced-stats-shell .stat-tile strong {
        font-size: 28px !important;
    }

    .advanced-stats-shell .stat-tile span,
    .advanced-stats-shell .stat-tile small {
        font-size: 11px !important;
        line-height: 1.45 !important;
    }

    .advanced-stats-shell .stats-showcase {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .advanced-stats-shell .stats-chart-card {
        min-height: 224px !important;
        padding: 10px !important;
        border-radius: 18px !important;
    }

    .advanced-stats-shell .win-rate-card {
        grid-template-columns: 82px minmax(0, 1fr) !important;
        gap: 10px !important;
        min-height: 112px !important;
        padding: 10px !important;
        border-radius: 18px !important;
    }

    .advanced-stats-shell .rate-ring {
        width: 78px !important;
        height: 78px !important;
    }

    .advanced-stats-shell .rate-ring strong {
        font-size: 18px !important;
    }

    .advanced-stats-shell .rate-ring span {
        margin-top: -16px !important;
        font-size: 9px !important;
    }

    .advanced-stats-shell .win-rate-card h3 {
        font-size: 16px !important;
    }

    .advanced-stats-shell .win-rate-card p {
        font-size: 12px !important;
        line-height: 1.55 !important;
    }

    .advanced-stats-shell .form-card,
    .advanced-stats-shell .big-win-card {
        min-height: 102px !important;
        padding: 11px !important;
        border-radius: 18px !important;
    }

    .advanced-stats-shell .form-card strong,
    .advanced-stats-shell .big-win-card strong {
        font-size: 18px !important;
    }

    .advanced-stats-shell .form-dot {
        width: 31px !important;
        height: 31px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }

    .advanced-stats-shell .player-stat-grid {
        gap: 8px !important;
    }

    .advanced-stats-shell .player-stat-card {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        min-height: 92px !important;
        padding: 9px !important;
        border-radius: 18px !important;
    }

    .advanced-stats-shell .player-stat-photo {
        width: 64px !important;
        height: 72px !important;
        border-radius: 15px !important;
    }

    .advanced-stats-shell .player-stat-card h3 {
        margin-bottom: 5px !important;
        font-size: 15px !important;
    }

    .advanced-stats-shell .player-stat-card strong {
        min-height: 26px !important;
        padding-inline: 9px !important;
        font-size: 12px !important;
    }
}

/* Swiper progressive enhancement */
.shabab-touch-slider {
    width: 100%;
    overflow: hidden;
    padding-bottom: 34px !important;
}

.shabab-touch-slider .swiper-wrapper {
    align-items: stretch;
}

.shabab-touch-slider .swiper-slide {
    height: auto;
}

.shabab-touch-slider .swiper-pagination {
    bottom: 0 !important;
}

.shabab-touch-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(95, 15, 26, .28);
    opacity: 1;
}

.shabab-touch-slider .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red-deep), var(--red));
}

.stats-chart-card,
.visual-stats-chart {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(216, 164, 58, .28);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .18), transparent 34%),
        linear-gradient(135deg, rgba(143, 16, 31, .96), rgba(92, 7, 18, .94));
    box-shadow: 0 18px 42px rgba(83, 5, 16, .18);
}

.stats-chart-card {
    min-height: 260px;
    padding: 18px;
    border-radius: 18px;
}

.visual-stats-chart {
    height: 330px;
    margin: 18px 0;
    padding: 16px;
    border-radius: 18px;
}

.visual-stats-chart.has-chart {
    display: block;
}

.visual-stats-chart.is-chart-unavailable {
    display: none;
}

.stats-chart-card canvas,
.visual-stats-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .stats-chart-card {
        min-height: 230px;
        padding: 14px;
        border-radius: 16px;
    }

    .visual-stats-chart {
        height: 280px;
        padding: 12px;
        border-radius: 16px;
    }
}

/* Final club teams red polish. Keep this at EOF to override older mobile rules. */
.teams-list-page .club-category {
    margin-bottom: 34px !important;
}

.teams-list-page .club-teams-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 16px !important;
}

.teams-list-page .club-team-card {
    min-height: 128px !important;
    align-content: center !important;
    justify-items: start !important;
    gap: 9px !important;
    padding: 20px !important;
    border: 1px solid rgba(217, 180, 105, .32) !important;
    border-radius: 18px !important;
    color: var(--white) !important;
    text-align: right !important;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 231, 171, .24), transparent 28%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 54%, var(--red)) !important;
    box-shadow: 0 18px 40px rgba(95, 15, 26, .16) !important;
}

.teams-list-page .club-team-card::before {
    inset: auto 18px 0 18px !important;
    width: auto !important;
    height: 4px !important;
    border-radius: 999px 999px 0 0 !important;
    background: linear-gradient(90deg, transparent, var(--gold), #fff0bd, var(--gold), transparent) !important;
}

.teams-list-page .club-team-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -38px;
    bottom: -48px;
    width: 128px;
    height: 128px;
    border: 14px solid rgba(255, 255, 255, .1);
    border-top-color: rgba(217, 180, 105, .26);
    border-radius: 50%;
    pointer-events: none;
}

.teams-list-page .club-team-kicker,
.teams-list-page .club-team-card small {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.teams-list-page .club-team-kicker {
    color: var(--red-deep) !important;
    background: linear-gradient(135deg, #fff7df, var(--gold)) !important;
}

.teams-list-page .club-team-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--white) !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    text-align: inherit;
    text-shadow: 0 2px 12px rgba(65, 6, 17, .24) !important;
}

.teams-list-page .club-team-card small {
    color: rgba(255, 255, 255, .9) !important;
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
}

.teams-list-page .club-team-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(217, 180, 105, .72) !important;
    box-shadow: 0 24px 54px rgba(95, 15, 26, .24) !important;
}

.club-teams-empty {
    text-align: center;
}

@media (max-width: 720px) {
    .teams-list-page .club-teams-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .teams-list-page .club-team-card {
        min-height: 112px !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .teams-list-page .club-team-card h2 {
        font-size: 17px !important;
    }
}

/* Final loaded layer: iOS 26 Liquid Glass */
body {
    background:
        radial-gradient(circle at 14% -4%, rgba(217, 180, 105, .3), transparent 32%),
        radial-gradient(circle at 86% 12%, rgba(201, 39, 55, .14), transparent 28%),
        linear-gradient(180deg, #fffaf3 0%, #fff4e8 48%, #fffaf5 100%) !important;
}

:where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .gallery-empty, .schedule-card, .match-card, .competition-table-card, .club-team-card, .player-card, .board-member-card, .achievement-card, .detail-panel, .match-detail-hero, .match-info-grid article, .player-profile-hero, .profile-stat, .profile-bio-panel, .advanced-stats-shell, .empty-roster, .visual-stats-panel) {
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 28px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .54) 45%, rgba(255, 246, 232, .68)),
        rgba(255, 255, 255, .66) !important;
    box-shadow: 0 18px 46px rgba(72, 16, 24, .1), inset 0 1px 0 rgba(255, 255, 255, .88) !important;
    backdrop-filter: blur(24px) saturate(1.35);
    -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

:where(.section-title, .home-schedule-title, .ticker) {
    border: 1px solid rgba(255, 255, 255, .7) !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 247, 236, .58)) !important;
    box-shadow: 0 14px 34px rgba(72, 16, 24, .08), inset 0 1px 0 rgba(255, 255, 255, .86) !important;
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

.hero,
.teams-page-hero {
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, .3), transparent 28%),
        radial-gradient(circle at 84% 0%, rgba(217, 180, 105, .3), transparent 30%),
        linear-gradient(135deg, rgba(95, 15, 26, .98), rgba(143, 23, 36, .88) 56%, rgba(217, 180, 105, .5)) !important;
}

.hero-grid {
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 34px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

.brand {
    border: 1px solid rgba(255, 255, 255, .28) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 14px 30px rgba(0, 0, 0, .1) !important;
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

:where(.brand-logo, .inner-brand-logo, .hero-logo, .team-logo, .schedule-team-logo, .detail-team-logo, .table-logo) {
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .84) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 12px 24px rgba(72, 16, 24, .12) !important;
}

:where(button, .button, .link-button, .match-card-action, .section-action, .schedule-details-link, input[type="submit"]) {
    border-radius: 999px !important;
    box-shadow: 0 12px 26px rgba(143, 23, 36, .16), inset 0 1px 0 rgba(255, 255, 255, .3) !important;
}

:where(input, select, textarea) {
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .74) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 8px 20px rgba(72, 16, 24, .05) !important;
}

th {
    background: linear-gradient(135deg, rgba(143, 23, 36, .96), rgba(201, 39, 55, .9)) !important;
}

td {
    background: rgba(255, 255, 255, .46);
}

:where(.score-box, .team-score-badge, .live-match-minute, .status-badge) {
    border-radius: 20px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 12px 24px rgba(143, 23, 36, .15) !important;
}

@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    :where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .schedule-card, .match-card, .competition-table-card, .club-team-card, .player-card, .board-member-card, .achievement-card, .detail-panel, .match-detail-hero, .player-profile-hero, .profile-stat, .profile-bio-panel, .advanced-stats-shell) {
        background: #fffdf7 !important;
    }
}

@media (max-width: 760px) {
    :where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .schedule-card, .match-card, .competition-table-card, .club-team-card, .player-card, .board-member-card, .achievement-card, .detail-panel) {
        border-radius: 24px !important;
    }

    .hero-grid {
        border-radius: 26px !important;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    margin: 0;
    direction: rtl;
    font-family: var(--font-body);
    font-size: clamp(15px, .96vw, 16px);
    font-weight: 500;
    line-height: 1.75;
    color: var(--ink);
    background: linear-gradient(180deg, #fff 0%, #fbf7ec 48%, #ffffff 100%);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

:where(body, main, section, article, aside, header, footer, nav, form, table, th, td, label, input, select, textarea, button, .match-card, .schedule-card, .facebook-card, .scorer-card, .gallery-card, .competition-table-card, .player-card, .detail-panel, .player-profile-hero, .advanced-stats-shell, .achievement-card) {
    direction: rtl;
}

:where(p, li, h1, h2, h3, h4, h5, h6, label, input, select, textarea, th, td, small, span, strong, b) {
    unicode-bidi: plaintext;
}

:where(input, textarea, select) {
    text-align: right;
}

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

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: 0;
}

p,
li,
td,
th,
label,
input,
select,
textarea {
    line-height: 1.75;
}

small {
    line-height: 1.6;
}

.brand-logo,
.hero-logo,
.team-logo,
.table-logo,
.schedule-team-logo,
.detail-team-logo {
    object-fit: contain;
    object-position: center;
}

.facebook-image,
.scorer-photo img,
.gallery-card img,
.club-teams-box img,
.home-feature-card img {
    object-position: center;
}

@keyframes iconFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes softPulse {
    0%,
    100% {
        box-shadow: 0 12px 26px rgba(95, 15, 26, .18);
    }

    50% {
        box-shadow: 0 16px 34px rgba(95, 15, 26, .24), 0 0 0 5px rgba(217, 180, 105, .12);
    }
}

@keyframes hourglassWait {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    35% {
        transform: translateY(-3px) rotate(0deg);
    }

    52% {
        transform: translateY(-3px) rotate(180deg);
    }

    82% {
        transform: translateY(0) rotate(180deg);
    }
}

@keyframes heroMotion {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        background-position: 0 0, 100% 20%, 50% 50%;
    }

    50% {
        transform: translate3d(0, -10px, 0) scale(1.025);
        background-position: 18% 10%, 76% 34%, 48% 52%;
    }

    100% {
        transform: translate3d(0, 8px, 0) scale(1.04);
        background-position: 28% 0, 68% 48%, 52% 56%;
    }
}

@keyframes heroShine {
    0% {
        transform: translateX(34%) skewX(-18deg);
        opacity: .08;
    }

    45% {
        opacity: .18;
    }

    100% {
        transform: translateX(-120%) skewX(-18deg);
        opacity: .06;
    }
}

.box-animate {
    opacity: 0;
    transform: translateY(22px) scale(.985);
    filter: saturate(.92);
    transition: opacity .65s ease, transform .65s ease, filter .65s ease, box-shadow .28s ease, border-color .28s ease;
    transition-delay: var(--box-delay, 0ms);
    will-change: opacity, transform;
}

.box-animate.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
}

:where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .gallery-empty, .schedule-card, .match-detail-hero, .match-info-grid article, .detail-panel, .table-wrap, .club-team-card, .player-card, .player-profile-hero, .profile-stat, .profile-bio-panel, .board-member-card, .empty-roster) {
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
}

:where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .gallery-empty, .schedule-card, .match-detail-hero, .match-info-grid article, .detail-panel, .table-wrap, .club-team-card, .player-card, .player-profile-hero, .profile-stat, .profile-bio-panel, .board-member-card, .empty-roster):hover {
    transform: translateY(-5px);
    border-color: rgba(217, 180, 105, .5);
    box-shadow: 0 26px 58px rgba(95, 15, 26, .14);
}

.box-animate.is-visible:where(.stat-card, .home-feature-card, .facebook-card, .scorer-card, .gallery-card, .gallery-empty, .schedule-card, .match-detail-hero, .match-info-grid article, .detail-panel, .table-wrap, .club-team-card, .player-card, .player-profile-hero, .profile-stat, .profile-bio-panel, .board-member-card, .empty-roster):hover {
    transform: translateY(-5px);
    border-color: rgba(217, 180, 105, .5);
    box-shadow: 0 26px 58px rgba(95, 15, 26, .14);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(455px, 54vh, 540px);
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 20%, rgba(217, 180, 105, .35), transparent 28%),
        linear-gradient(135deg, var(--red-deep) 0%, var(--red-dark) 54%, var(--red) 100%);
}

.hero-video,
.hero-motion-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    z-index: -2;
    object-fit: cover;
    opacity: .32;
    filter: saturate(1.12) contrast(1.08);
}

.hero-motion-bg {
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .22), transparent 24%),
        radial-gradient(circle at 82% 20%, rgba(217, 180, 105, .34), transparent 24%),
        linear-gradient(120deg, rgba(95, 15, 26, .72), rgba(143, 23, 36, .5), rgba(201, 39, 55, .35));
    background-size: 120% 120%, 120% 120%, 100% 100%;
    animation: heroMotion 16s ease-in-out infinite alternate;
}

.hero-motion-bg::before,
.hero-motion-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-motion-bg::before {
    background:
        linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, .13) 42%, transparent 50%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 22px);
    animation: heroShine 8s ease-in-out infinite;
}

.hero-motion-bg::after {
    background:
        radial-gradient(circle at 50% 100%, rgba(0, 0, 0, .26), transparent 45%),
        linear-gradient(180deg, rgba(95, 15, 26, .2), rgba(95, 15, 26, .42));
}

.hero.has-video .hero-motion-bg {
    background:
        linear-gradient(135deg, rgba(95, 15, 26, .78), rgba(143, 23, 36, .66) 58%, rgba(201, 39, 55, .5)),
        radial-gradient(circle at 24% 24%, rgba(217, 180, 105, .26), transparent 28%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -18% -8%;
    height: 24%;
    background: var(--white);
    transform: rotate(-2deg);
    transform-origin: left top;
}

.topbar,
.hero-grid,
main,
.ticker,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-weight: 800;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    padding: 4px;
}

.admin-link {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 8px;
    padding: 9px 15px;
    color: var(--white);
    transition: .2s ease;
}

.admin-link:hover {
    background: rgba(255, 255, 255, .16);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 7px;
    min-width: 0;
    overflow-x: auto;
    padding: 3px;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 900;
    transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}

.site-nav a:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 180, 105, .62);
    color: var(--ink);
    background: linear-gradient(135deg, var(--gold), #fff4d3);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.18fr .58fr;
    align-items: center;
    gap: 18px;
    padding: 8px 0 50px;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 9px;
    color: var(--gold);
    font-weight: 800;
}

h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.hero-text {
    width: min(560px, 100%);
    margin: 8px 0 12px;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    line-height: 1.6;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid rgba(217, 180, 105, .34);
    border-radius: 8px;
    text-align: right;
}

.stat-card,
.handball-achievements {
    border-color: rgba(217, 180, 105, .34);
    background:
        radial-gradient(circle at 12% 14%, rgba(217, 180, 105, .18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .07));
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 30px rgba(95, 15, 26, .14);
}

.stat-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin-bottom: 0;
    border-radius: 50%;
    color: var(--ink);
    background: var(--gold);
    font-weight: 900;
    font-size: 14px;
    padding: 8px;
    animation: iconFloat 3.8s ease-in-out infinite;
}

.stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stat-card strong {
    display: block;
    color: var(--white);
    font-size: 24px;
    line-height: 1;
}

.stat-card small {
    display: block;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    line-height: 1.35;
}

.handball-achievements {
    position: relative;
    margin-top: 9px;
    overflow: hidden;
    padding: 10px 13px 11px;
    border: 1px solid rgba(217, 180, 105, .34);
    border-radius: 8px;
    color: var(--white);
}

.handball-achievements::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--gold), var(--red));
}

.handball-achievements strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 900;
}

.handball-achievements strong::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(217, 180, 105, .14);
}

.handball-achievements ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.handball-achievements li {
    position: relative;
    padding-inline-start: 18px;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    line-height: 1.48;
}

.handball-achievements li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red-soft);
}

.club-achievements ul {
    gap: 6px;
}

.club-achievements li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
    padding-inline-start: 0;
}

.club-achievements li::before {
    display: none;
}

.club-achievements li span {
    display: inline-grid;
    place-items: center;
    min-width: 46px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--red-deep);
    background: linear-gradient(135deg, var(--gold), #fff4d3);
    font-weight: 900;
    font-size: 12px;
}

.club-achievements li b {
    color: rgba(255, 255, 255, .95);
    font-size: 13px;
}

.club-achievements li small {
    grid-column: 2;
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
    line-height: 1.45;
}

.hero-mark {
    display: grid;
    place-items: center;
}

.hero-logo {
    width: min(235px, 100%);
    max-height: 265px;
    object-fit: contain;
    filter: drop-shadow(0 28px 54px rgba(0, 0, 0, .38));
}

.ticker {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 74px;
    margin-top: -24px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .22);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 22%, rgba(255, 255, 255, .08)),
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 58%, var(--red));
    box-shadow: 0 22px 54px rgba(95, 15, 26, .26);
}

.ticker::before,
.ticker::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 74px;
    pointer-events: none;
}

.ticker::before {
    right: 138px;
    background: linear-gradient(270deg, rgba(95, 15, 26, .88), transparent);
}

.ticker::after {
    left: 0;
    background: linear-gradient(90deg, rgba(95, 15, 26, .86), transparent);
}

.ticker-label {
    flex: 0 0 auto;
    align-self: stretch;
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 158px;
    padding: 0 20px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    font-weight: 900;
    box-shadow: -10px 0 24px rgba(0, 0, 0, .18);
}

.ticker-label::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 0;
    width: 36px;
    height: 100%;
    background: inherit;
    transform: skewX(-18deg);
    transform-origin: top;
}

.ticker-label strong {
    position: relative;
    z-index: 1;
}

.live-dot {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .65);
    animation: livePulse 1.5s ease-out infinite;
}

.ticker-mask {
    position: relative;
    overflow: hidden;
    flex: 1;
    height: 100%;
}

.ticker-fader {
    position: relative;
    direction: rtl;
    display: flex;
    align-items: center;
    height: 74px;
    color: var(--white);
}

.ticker-item {
    position: absolute;
    inset-inline: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 74px;
    padding: 0 42px 0 24px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    filter: blur(6px);
    transition: opacity .65s ease, transform .65s ease, filter .65s ease;
    pointer-events: none;
}

.ticker-item.is-active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    pointer-events: auto;
}

.ticker-item em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

@keyframes livePulse {
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

main {
    padding: 46px 0 78px;
}

.ticker + main {
    padding-top: clamp(20px, 2.2vw, 28px);
}

.content-section {
    margin-top: 52px;
    scroll-margin-top: 18px;
}

.ticker + main > .content-section:first-child,
.ticker + main > .home-matches-section:first-child {
    margin-top: 0;
}

.ticker + main > .home-matches-section:first-child {
    position: relative;
}

.ticker + main > .home-matches-section:first-child::before {
    content: "";
    position: absolute;
    inset: -18px 8% auto;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(217, 180, 105, .6), rgba(201, 39, 55, .32), transparent);
    pointer-events: none;
}

.match-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 46px;
    perspective: 1200px;
}

.home-matches-section .match-section {
    margin-bottom: 0;
}

.match-section .match-card:only-child {
    grid-column: 1 / -1;
    width: min(100%, 720px);
    margin: 0 auto;
}

.match-card,
.facebook-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(42, 31, 21, .08);
}

.match-card {
    position: relative;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border-color: rgba(201, 39, 55, .18);
    transform: translateY(0) rotateX(0) rotateY(0);
    transform-style: preserve-3d;
    background:
        radial-gradient(ellipse at 50% 118%, rgba(201, 39, 55, .08), transparent 42%),
        linear-gradient(90deg, transparent 0 46%, rgba(217, 180, 105, .1) 46% 46.7%, transparent 46.7% 53.3%, rgba(217, 180, 105, .1) 53.3% 54%, transparent 54%),
        repeating-linear-gradient(0deg, rgba(95, 15, 26, .035) 0 1px, transparent 1px 18px),
        radial-gradient(circle at var(--mx, 50%) var(--my, 42%), rgba(217, 180, 105, .22), transparent 22%),
        linear-gradient(145deg, rgba(255, 240, 242, .75), rgba(255, 255, 255, .92) 42%),
        var(--white);
    box-shadow: 0 22px 48px rgba(95, 15, 26, .1);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    will-change: transform;
}

.match-card:hover {
    border-color: rgba(217, 180, 105, .58);
    box-shadow: 0 30px 66px rgba(95, 15, 26, .16);
}

.match-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    z-index: 3;
    background: linear-gradient(90deg, var(--gold), var(--red), var(--red-deep), var(--gold));
    background-size: 220% 100%;
    transition: background-position .55s ease;
}

.match-card:hover::before {
    background-position: 100% 0;
}

.match-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, .38) 44%, transparent 56%),
        radial-gradient(circle at var(--mx, 50%) var(--my, 42%), rgba(255, 255, 255, .45), transparent 26%),
        radial-gradient(circle at 50% 118%, rgba(217, 180, 105, .18), transparent 44%);
    opacity: .52;
    transform: translateX(18%);
    transition: opacity .28s ease, transform .55s ease;
}

.match-card:hover::after {
    opacity: .82;
    transform: translateX(-18%);
}

.result-card {
    background:
        radial-gradient(ellipse at 50% 118%, rgba(201, 39, 55, .08), transparent 42%),
        linear-gradient(90deg, transparent 0 46%, rgba(217, 180, 105, .1) 46% 46.7%, transparent 46.7% 53.3%, rgba(217, 180, 105, .1) 53.3% 54%, transparent 54%),
        repeating-linear-gradient(0deg, rgba(95, 15, 26, .035) 0 1px, transparent 1px 18px),
        radial-gradient(circle at var(--mx, 50%) var(--my, 42%), rgba(217, 180, 105, .2), transparent 22%),
        linear-gradient(145deg, rgba(255, 240, 242, .8), rgba(255, 255, 255, .94) 46%),
        var(--white);
}

.next-card {
    background:
        radial-gradient(ellipse at 50% 118%, rgba(217, 180, 105, .12), transparent 44%),
        linear-gradient(90deg, transparent 0 46%, rgba(201, 39, 55, .08) 46% 46.7%, transparent 46.7% 53.3%, rgba(201, 39, 55, .08) 53.3% 54%, transparent 54%),
        repeating-linear-gradient(0deg, rgba(95, 15, 26, .03) 0 1px, transparent 1px 18px),
        radial-gradient(circle at var(--mx, 50%) var(--my, 42%), rgba(217, 180, 105, .26), transparent 24%),
        linear-gradient(145deg, rgba(255, 248, 231, .86), rgba(255, 255, 255, .94) 46%),
        var(--white);
}

.match-card .card-heading,
.match-card .match-teams,
.match-card .meta-row {
    transform: translateZ(18px);
}

.match-card .score-box {
    transform: translateZ(34px);
}

.match-card .team-logo {
    transform: translateZ(24px);
}

.match-card .team b {
    transform: translateZ(20px);
}

.match-card .card-heading::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -1px;
    width: 84px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--red));
}

.match-teams::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    left: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 180, 105, .44), transparent);
    transform: translateY(-50%);
    pointer-events: none;
}

.match-card:hover .team-logo {
    transform: translateZ(30px) translateY(-4px) scale(1.05);
    box-shadow: 0 18px 34px rgba(95, 15, 26, .16), 0 0 0 5px rgba(217, 180, 105, .13);
}

.match-card:hover .team {
    border-color: rgba(217, 180, 105, .46);
    background:
        radial-gradient(ellipse at 50% -10%, rgba(217, 180, 105, .28), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 250, 240, .72)),
        rgba(255, 255, 255, .82);
}

.match-card:hover .score-box {
    transform: translateZ(44px) scale(1.03);
}

.match-card:hover .meta-row {
    background: rgba(255, 248, 231, .82);
    border-color: rgba(217, 180, 105, .52);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .box-animate {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .match-card,
    .match-card::before,
    .match-card::after,
    .team-logo,
    .score-box,
    .meta-row {
        transition: none;
    }
}

/*
 * Decorative lower glow for the match cards.
 */
.match-card .meta-row::before {
    content: "";
    position: absolute;
    inset: auto 18% -20px;
    height: 28px;
    pointer-events: none;
    background: radial-gradient(ellipse, rgba(217, 180, 105, .26), transparent 68%);
}

.match-card-action {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 38px;
    margin: 0 24px 22px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(95, 15, 26, .14);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.match-card-action:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--red-dark), var(--red), var(--gold));
    box-shadow: 0 18px 30px rgba(95, 15, 26, .18);
}

.home-schedule-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(201, 39, 55, .13);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 248, 231, .68));
}

.home-schedule-title strong {
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 18px;
}

.home-schedule-title span {
    color: var(--muted);
    font-weight: 800;
}

.card-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(201, 39, 55, .12);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .72), rgba(255, 248, 231, .52)),
        linear-gradient(135deg, rgba(95, 15, 26, .08), rgba(217, 180, 105, .14));
}

.card-heading span,
.section-title p {
    color: var(--red);
    font-weight: 900;
}

.card-heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    box-shadow: 0 10px 20px rgba(95, 15, 26, .14);
}

.card-heading span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(217, 180, 105, .18);
}

.card-heading .match-status-badge {
    min-width: 88px;
    justify-content: center;
}

.card-heading .match-status-badge.finished {
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
}

.card-heading .match-status-badge.scheduled {
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, #f1d48c);
    box-shadow: 0 10px 20px rgba(217, 180, 105, .18);
}

.card-heading .match-status-badge.scheduled::before {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(201, 39, 55, .14);
}

.card-heading strong {
    min-width: 0;
    max-width: 58%;
    padding: 8px 12px;
    border: 1px solid rgba(217, 180, 105, .36);
    border-radius: 999px;
    color: var(--red-deep);
    background: rgba(255, 255, 255, .72);
    font-size: 14px;
    text-align: center;
    overflow-wrap: anywhere;
}

.match-teams {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 26px 24px 22px;
}

.team {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 158px;
    padding: 16px 12px 15px;
    overflow: visible;
    border: 1px solid rgba(217, 180, 105, .22);
    border-radius: 10px;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(217, 180, 105, .22), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 250, 240, .58)),
        rgba(255, 255, 255, .7);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
    transition: border-color .28s ease, background .28s ease;
}

.team::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .68;
}

.team::before {
    content: "";
    position: absolute;
    inset: 12px 14px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 39, 55, .18), transparent);
}

.team b {
    position: relative;
    display: -webkit-box;
    overflow: hidden;
    min-height: 46px;
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.team-logo {
    position: relative;
    width: 96px;
    height: 84px;
    object-fit: contain;
    object-position: center;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 18px;
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--gold), rgba(201, 39, 55, .72)) border-box;
    box-shadow: 0 14px 28px rgba(95, 15, 26, .12), inset 0 0 0 5px rgba(255, 248, 231, .58);
    transition: transform .28s ease, box-shadow .28s ease;
}

.score-box {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 138px;
    max-width: 100%;
    min-height: 112px;
    padding: 14px;
    border: 2px solid rgba(217, 180, 105, .52);
    border-radius: 8px;
    color: var(--white);
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .2), transparent 28%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    box-shadow: 0 18px 32px rgba(95, 15, 26, .18), inset 0 1px 0 rgba(255, 255, 255, .26);
    animation: softPulse 4.6s ease-in-out infinite;
    transition: transform .28s ease, box-shadow .28s ease;
}

.score-box::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    pointer-events: none;
}

.score-box::after {
    content: "";
    position: absolute;
    inset: auto 18px -2px;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.score-box strong {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1;
    text-align: center;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .14);
}

.score-box small {
    position: relative;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .12);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.score-box.upcoming {
    color: var(--red-deep);
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .55), transparent 30%),
        linear-gradient(135deg, #fff8e7, var(--gold));
    box-shadow: 0 18px 32px rgba(217, 180, 105, .22);
}

.score-box.upcoming strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 2px;
    gap: 0;
    color: var(--red-deep);
    text-shadow: 0 2px 18px rgba(217, 180, 105, .3);
}

.score-box.upcoming strong::before {
    content: "";
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    background: url("../img/icon-hourglass.svg") center / contain no-repeat;
    filter: drop-shadow(0 5px 9px rgba(95, 15, 26, .18));
    transform-origin: center;
    animation: hourglassWait 2.8s ease-in-out infinite;
}

.score-box.upcoming small {
    color: var(--ink);
    background: rgba(255, 255, 255, .52);
}

.meta-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin: auto 24px 24px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(217, 180, 105, .32);
    border-radius: 8px;
    color: var(--red-deep);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .82), rgba(255, 248, 231, .72)),
        rgba(255, 240, 242, .72);
    font-weight: 800;
    text-align: center;
    transition: background .28s ease, border-color .28s ease;
}

.meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.meta-row span::before {
    content: "";
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 0;
    background: url("../img/icon-stadium.svg") center / contain no-repeat;
    filter: drop-shadow(0 4px 8px rgba(95, 15, 26, .16));
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.club-teams-box,
.home-feature-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(42, 31, 21, .08);
}

.home-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, transparent 38%, rgba(95, 15, 26, .72)),
        radial-gradient(circle at 18% 18%, rgba(217, 180, 105, .2), transparent 30%);
    pointer-events: none;
}

.club-teams-box img,
.home-feature-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}

.club-teams-box:hover img,
.home-feature-card:hover img {
    transform: scale(1.025);
    filter: saturate(1.08);
}

.home-feature-card span {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    max-width: calc(100% - 32px);
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.teams-page-hero {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .1) 0 1px, transparent 1px 88px),
        linear-gradient(155deg, rgba(217, 180, 105, .24), transparent 34%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 58%, var(--red));
}

.teams-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .12), transparent 18%, transparent 82%, rgba(217, 180, 105, .14)),
        repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, .045) 18px 19px, transparent 19px 54px);
    pointer-events: none;
}

.teams-page-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gold), var(--red), var(--red-deep));
    box-shadow: 0 -14px 34px rgba(95, 15, 26, .2);
}

.teams-page-hero .topbar {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin-top: 14px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07)),
        rgba(95, 15, 26, .2);
    backdrop-filter: blur(18px);
    box-shadow:
        0 18px 42px rgba(30, 5, 9, .18),
        inset 0 1px 0 rgba(255, 255, 255, .16);
}

.teams-page-hero .brand {
    min-width: 0;
    gap: 10px;
    color: var(--white);
}

.inner-brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    padding: 5px;
    border: 1px solid rgba(217, 180, 105, .5);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 24px rgba(30, 5, 9, .18);
}

.teams-page-hero .brand span {
    display: block;
    max-width: min(420px, 56vw);
    overflow: hidden;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inner-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 8px;
}

.teams-page-hero .admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding-inline: 14px;
    border-color: rgba(217, 180, 105, .45);
    color: var(--white);
    background: rgba(95, 15, 26, .24);
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

.inner-home-link {
    color: var(--red-deep) !important;
    border-color: rgba(255, 255, 255, .62) !important;
    background: linear-gradient(135deg, #fff4cc, var(--gold)) !important;
    box-shadow:
        0 10px 24px rgba(217, 180, 105, .18),
        inset 0 1px 0 rgba(255, 255, 255, .58) !important;
}

.inner-home-link::before {
    content: "";
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    background: currentColor;
    clip-path: polygon(50% 5%, 96% 43%, 84% 43%, 84% 96%, 61% 96%, 61% 66%, 39% 66%, 39% 96%, 16% 96%, 16% 43%, 4% 43%);
}

.inner-secondary-link {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05)),
        rgba(95, 15, 26, .26) !important;
}

.teams-page-hero .admin-link:hover {
    color: var(--red-deep);
    border-color: rgba(217, 180, 105, .7);
    background: linear-gradient(135deg, var(--gold), #fff1c4);
    transform: translateY(-1px);
}

.teams-page-title {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 46px 0 64px;
    text-align: center;
}

.teams-page-title::before,
.roster-page-title::before {
    content: "";
    width: 82px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, .82), var(--gold));
    box-shadow: 0 10px 24px rgba(217, 180, 105, .22);
}

.teams-page-title h1,
.roster-page-title h1 {
    text-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.teams-page-title img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .3));
}

.teams-page-title p {
    max-width: 720px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: rgba(255, 255, 255, .84);
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(10px);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
}

.teams-page-main {
    padding-top: 48px;
}

.match-detail-page .teams-page-hero {
    min-height: 224px;
}

.match-detail-page .teams-page-title {
    gap: 10px;
    padding: 30px 0 42px;
}

.match-detail-page .teams-page-title p {
    line-height: 1.55;
}

.match-detail-page .teams-page-main {
    padding-top: 28px;
}

.club-category {
    margin-top: 0;
    margin-bottom: 58px;
}

.club-teams-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.club-team-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 86px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(201, 39, 55, .22);
    border-radius: 8px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .12), transparent 18%, transparent 82%, rgba(255, 255, 255, .1)),
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 55%, var(--red));
    box-shadow: 0 16px 36px rgba(95, 15, 26, .12);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.club-team-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0 68%, rgba(217, 180, 105, .24) 68% 76%, transparent 76%);
    pointer-events: none;
}

.club-team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(217, 180, 105, .65);
    box-shadow: 0 22px 46px rgba(95, 15, 26, .18);
}

.club-team-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--white);
    font-size: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.roster-hero .teams-page-title {
    padding-bottom: 64px;
}

.roster-hero {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .1) 0 1px, transparent 1px 82px),
        linear-gradient(155deg, rgba(217, 180, 105, .22), transparent 34%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 62%, var(--red));
}

.roster-page-title {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    padding: 44px 0 58px;
}

.roster-page-title img {
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
    object-fit: contain;
    padding: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
}

.roster-page-title h1 {
    margin: 4px 0 6px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.2;
}

.roster-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(217, 180, 105, .38);
    border-radius: 999px;
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, var(--gold));
    font-size: 14px;
    font-weight: 900;
}

.roster-page-title span {
    display: inline-block;
    max-width: 720px;
    margin-top: 6px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.8;
}

.roster-section {
    margin-top: 0;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.team-roster-page .roster-player-grid {
    grid-template-columns: repeat(var(--players-per-row, 4), minmax(0, 1fr));
}

.player-card {
    overflow: hidden;
    border: 1px solid rgba(201, 39, 55, .2);
    border-radius: 8px;
    background: linear-gradient(180deg, #fffaf0 0%, #fbf7ec 100%);
    box-shadow: 0 18px 42px rgba(95, 15, 26, .09);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.player-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 39, 55, .38);
    box-shadow: 0 26px 60px rgba(95, 15, 26, .16);
}

.player-photo-frame {
    position: relative;
    margin: 14px 14px 0;
    overflow: hidden;
    height: 250px;
    padding: 4px;
    border-radius: 0;
    background:
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 50%, var(--red)),
        linear-gradient(180deg, rgba(255, 255, 255, .35), transparent);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
    box-shadow: 0 14px 30px rgba(95, 15, 26, .14);
}

.player-photo-frame::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(201, 39, 55, .18);
    background:
        linear-gradient(135deg, transparent 0 70%, rgba(201, 39, 55, .12) 70% 78%, transparent 78%),
        linear-gradient(225deg, transparent 0 74%, rgba(201, 39, 55, .08) 74% 82%, transparent 82%);
    clip-path: inherit;
    pointer-events: none;
}

.player-photo-frame > img,
.player-photo-placeholder {
    width: 100%;
    height: 100%;
}

.player-photo-frame > img {
    display: block;
    position: relative;
    z-index: 1;
    object-fit: cover;
    background:
        linear-gradient(135deg, transparent 0 72%, rgba(201, 39, 55, .08) 72% 82%, transparent 82%),
        linear-gradient(225deg, transparent 0 75%, rgba(201, 39, 55, .06) 75% 84%, transparent 84%),
        #fff;
    clip-path: inherit;
}

.player-photo-placeholder {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, transparent 0 72%, rgba(201, 39, 55, .08) 72% 82%, transparent 82%),
        linear-gradient(225deg, transparent 0 75%, rgba(201, 39, 55, .06) 75% 84%, transparent 84%),
        #fff;
    clip-path: inherit;
}

.player-photo-placeholder img {
    width: min(56%, 150px);
    height: min(56%, 150px);
    object-fit: contain;
    opacity: .72;
}

.player-photo-placeholder span {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border: 2px solid rgba(201, 39, 55, .22);
    border-radius: 50%;
    color: var(--red-dark);
    background: rgba(255, 255, 255, .76);
    font-family: var(--font-display);
    font-weight: 900;
}

.player-number {
    position: absolute;
    left: 4px;
    bottom: 4px;
    z-index: 3;
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 54px;
    padding: 0 10px;
    color: var(--white);
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    border-top: 3px solid var(--white);
    border-right: 3px solid var(--white);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.player-card h2 {
    display: grid;
    place-items: center;
    min-height: 64px;
    margin: 14px 14px 16px;
    padding: 12px 14px 14px;
    color: var(--white);
    background:
        linear-gradient(135deg, var(--red), var(--red-dark) 52%, var(--red-deep));
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

.player-card-link {
    display: block;
    position: relative;
    z-index: 1;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.player-card-link:focus-visible {
    outline: 3px solid rgba(217, 180, 105, .86);
    outline-offset: 4px;
}

.player-card-static {
    display: block;
    cursor: default;
}

.player-card-position {
    margin: -8px 14px 16px;
    color: var(--red-deep);
    font-weight: 900;
    text-align: center;
}

.player-profile-hero {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
    margin-top: 0;
}

.player-profile-photo,
.player-profile-info,
.profile-stat,
.profile-bio-panel {
    border: 1px solid rgba(201, 39, 55, .16);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 12%, rgba(217, 180, 105, .22), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 248, 231, .72));
    box-shadow: 0 22px 52px rgba(95, 15, 26, .1);
}

.player-profile-photo {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 8px;
    background:
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 50%, var(--red)),
        linear-gradient(180deg, rgba(255, 255, 255, .38), transparent);
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

.player-profile-photo img,
.player-profile-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 504px;
    object-fit: cover;
    background:
        linear-gradient(135deg, transparent 0 72%, rgba(201, 39, 55, .08) 72% 82%, transparent 82%),
        linear-gradient(225deg, transparent 0 75%, rgba(201, 39, 55, .06) 75% 84%, transparent 84%),
        #fff;
    clip-path: inherit;
}

.player-profile-placeholder {
    display: grid;
    place-items: center;
}

.player-profile-placeholder span {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border: 2px solid rgba(201, 39, 55, .22);
    border-radius: 50%;
    color: var(--red-dark);
    background: rgba(255, 255, 255, .82);
    font-family: var(--font-display);
    font-weight: 900;
}

.profile-number {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 3;
    display: grid;
    place-items: center;
    min-width: 68px;
    height: 76px;
    padding: 0 14px;
    border-top: 4px solid var(--white);
    border-right: 4px solid var(--white);
    color: var(--white);
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.player-profile-info {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(22px, 4vw, 42px);
}

.profile-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, var(--gold));
    font-weight: 900;
}

.player-profile-info h2 {
    margin: 0;
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.1;
}

.player-profile-info > p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    font-weight: 900;
}

.profile-info-grid,
.player-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.profile-info-grid article,
.profile-stat {
    display: grid;
    gap: 8px;
    min-height: 96px;
    padding: 15px;
    border: 1px solid rgba(217, 180, 105, .26);
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
}

.profile-info-grid span,
.profile-stat span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.profile-info-grid strong,
.profile-stat strong {
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.25;
}

.profile-nationality {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.syria-flag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 48px;
    height: 30px;
    overflow: hidden;
    border: 1px solid rgba(95, 15, 26, .18);
    border-radius: 5px;
    background: linear-gradient(180deg, #138f4d 0 33.333%, #fff 33.333% 66.666%, #151515 66.666% 100%);
    box-shadow: 0 8px 16px rgba(42, 31, 21, .1);
}

.syria-flag i {
    position: relative;
    z-index: 1;
    display: block;
    width: 8px;
    height: 8px;
    background: var(--red);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
}

.player-profile-stats {
    margin-top: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.profile-stat {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 14px;
    min-height: 126px;
    padding: 16px;
    text-align: right;
    background:
        radial-gradient(circle at 0 0, rgba(217, 180, 105, .28), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 248, 231, .76));
    box-shadow: 0 16px 34px rgba(95, 15, 26, .08);
}

.profile-stat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--red-deep), var(--red), var(--gold));
}

.profile-stat > div {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
}

.profile-stat strong {
    display: block;
    width: auto;
    height: auto;
    border-radius: 0;
    color: var(--red-deep);
    background: none;
    font-size: 42px;
    line-height: 1;
    box-shadow: none;
}

.profile-stat small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.profile-stat-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(217, 180, 105, .34);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(143, 23, 36, .96), rgba(201, 39, 55, .92)),
        var(--red);
    box-shadow: 0 14px 26px rgba(95, 15, 26, .16);
}

.profile-stat-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 5px 8px rgba(255, 255, 255, .22));
}

.profile-stat-matches .profile-stat-icon i {
    position: relative;
    display: block;
    width: 42px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 8px;
}

.profile-stat-matches .profile-stat-icon i::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 2px;
    background: rgba(255, 255, 255, .72);
    transform: translateX(50%);
}

.profile-stat-matches .profile-stat-icon i::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.profile-stat-cards .profile-stat-icon i {
    position: absolute;
    width: 24px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, .78);
    border-radius: 5px;
    box-shadow: 0 8px 14px rgba(42, 31, 21, .16);
}

.profile-stat-cards .profile-stat-icon i:first-child {
    right: 18px;
    background: linear-gradient(135deg, #ffe08a, var(--gold));
    transform: rotate(8deg);
}

.profile-stat-cards .profile-stat-icon i:last-child {
    left: 18px;
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    transform: rotate(-8deg);
}

.player-profile-source {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.player-profile-matches {
    margin-top: 28px;
}

.player-match-list {
    display: grid;
    gap: 10px;
}

.player-match-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) minmax(150px, .55fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(201, 39, 55, .16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 248, 231, .68)),
        var(--white);
    box-shadow: 0 14px 32px rgba(95, 15, 26, .07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.player-match-item:hover {
    border-color: rgba(201, 39, 55, .35);
    box-shadow: 0 20px 44px rgba(95, 15, 26, .12);
    transform: translateY(-2px);
}

.player-match-item span,
.player-match-item small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.player-match-item strong {
    color: var(--red-deep);
    font-family: var(--font-display);
    line-height: 1.45;
}

.participation-badge {
    grid-column: 2 / 4;
    justify-self: start;
    padding: 7px 10px;
    border-radius: 999px;
    color: #7b5409;
    background: #fff0bf;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.player-match-icons {
    grid-column: 4;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    justify-self: end;
    min-width: 118px;
    padding: 8px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(143, 23, 36, .08), rgba(217, 180, 105, .2));
    border: 1px solid rgba(201, 39, 55, .13);
    text-align: center;
}

.player-match-icon-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.player-match-ball {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(95, 15, 26, .16));
}

.player-match-card {
    display: inline-block;
    width: 14px;
    height: 20px;
    border: 1px solid rgba(95, 15, 26, .12);
    border-radius: 3px;
    box-shadow: 0 5px 10px rgba(42, 31, 21, .12);
}

.player-match-card.yellow {
    background: linear-gradient(135deg, #ffe08a, var(--gold));
}

.player-match-card.red {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
}

.player-match-icons-empty {
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.player-profile-bio {
    margin-top: 28px;
}

.profile-bio-panel {
    padding: 24px;
}

.profile-bio-panel p {
    margin: 0;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 2;
}

.technical-staff-section {
    margin-bottom: 44px;
}

.staff-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staff-card {
    border-color: rgba(217, 180, 105, .35);
    background:
        radial-gradient(circle at 50% -12%, rgba(217, 180, 105, .24), transparent 42%),
        linear-gradient(180deg, #fff 0%, #fff8e7 100%);
}

.staff-photo-frame {
    background:
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 52%, var(--gold)),
        linear-gradient(180deg, rgba(255, 255, 255, .35), transparent);
}

.staff-photo-frame::after {
    border-color: rgba(217, 180, 105, .34);
    background:
        linear-gradient(135deg, transparent 0 70%, rgba(217, 180, 105, .16) 70% 78%, transparent 78%),
        linear-gradient(225deg, transparent 0 74%, rgba(201, 39, 55, .08) 74% 82%, transparent 82%);
}

.staff-photo-placeholder span {
    border-color: rgba(217, 180, 105, .45);
    color: var(--red-deep);
}

.staff-card h2 {
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--gold));
}

.staff-role {
    min-height: 28px;
    margin: -2px 14px 16px;
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}

.board-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(217, 180, 105, .22), transparent 28%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 58%, #b88a38);
}

.board-member-card {
    border-color: rgba(217, 180, 105, .35);
    background: linear-gradient(180deg, #fffaf0 0%, #fbf7ec 100%);
}

.board-photo-frame {
    background:
        linear-gradient(135deg, #8f6a22, var(--gold) 54%, #f2d58b),
        linear-gradient(180deg, rgba(255, 255, 255, .35), transparent);
}

.board-photo-frame::after {
    border-color: rgba(217, 180, 105, .34);
    background:
        linear-gradient(135deg, transparent 0 70%, rgba(217, 180, 105, .18) 70% 78%, transparent 78%),
        linear-gradient(225deg, transparent 0 74%, rgba(217, 180, 105, .14) 74% 82%, transparent 82%);
}

.board-photo-placeholder span {
    border-color: rgba(217, 180, 105, .55);
    color: #8f6a22;
}

.board-member-card h2 {
    background: linear-gradient(135deg, #8f6a22, var(--gold), #b88a38);
    color: #fff;
}

.board-role {
    margin: -6px 14px 16px;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.board-empty-mark {
    background: linear-gradient(135deg, #8f6a22, var(--gold), #b88a38);
}

.empty-roster {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 46px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 16px 38px rgba(42, 31, 21, .08);
    text-align: center;
}

.empty-roster-mark {
    display: grid;
    place-items: center;
    min-width: 160px;
    min-height: 54px;
    padding: 0 20px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    font-family: var(--font-display);
    font-weight: 900;
}

.empty-roster p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.section-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 16px 18px;
    border: 1px solid rgba(201, 39, 55, .14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 8% 18%, rgba(217, 180, 105, .24), transparent 26%),
        linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 248, 231, .68));
    box-shadow: 0 16px 38px rgba(95, 15, 26, .07);
}

.section-title::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, transparent, var(--gold), var(--red), transparent);
    opacity: .82;
}

.section-title p,
.section-title h2 {
    margin: 0;
    font-family: var(--font-display);
    line-height: 1.2;
    letter-spacing: 0;
}

.section-title p {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    font-size: clamp(17px, 1.8vw, 24px);
    box-shadow: 0 12px 24px rgba(95, 15, 26, .16);
}

.section-title p::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(217, 180, 105, .22);
}

.section-title h2 {
    max-width: 62%;
    color: var(--red-deep);
    font-size: clamp(18px, 2.4vw, 28px);
    font-weight: 900;
    text-align: end;
}

.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(217, 180, 105, .52);
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(95, 15, 26, .12);
    transition: transform .22s ease, box-shadow .22s ease;
}

.section-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(95, 15, 26, .18);
}

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

.facebook-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    overflow: hidden;
    padding: 0 0 22px;
}

.facebook-card h3 {
    display: -webkit-box;
    min-height: 58px;
    margin: 0;
    padding: 0 22px;
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.5;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.facebook-card time {
    padding: 0 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.facebook-card p {
    display: -webkit-box;
    margin: 0;
    padding: 0 22px;
    color: var(--muted);
    line-height: 1.9;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.facebook-image {
    display: block;
    width: 100%;
    height: 320px;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, var(--red-soft), #fffaf0);
}

.facebook-placeholder {
    display: grid;
    place-items: center;
    color: var(--red-dark);
    font-weight: 900;
}

.facebook-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    margin-inline: 22px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    font-weight: 800;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.facebook-card a:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark));
    box-shadow: 0 14px 28px rgba(95, 15, 26, .16);
}

.scorers-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.scorer-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0;
    min-height: 0;
    padding: 10px 10px 14px;
    overflow: hidden;
    border: 1px solid rgba(201, 39, 55, .22);
    border-radius: 8px;
    background:
        radial-gradient(ellipse at 50% -12%, rgba(217, 180, 105, .18), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 250, 240, .7));
    box-shadow: 0 18px 42px rgba(95, 15, 26, .09);
    text-align: center;
}

.scorer-photo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 250px;
    overflow: hidden;
    padding: 4px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background:
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 50%, var(--red)),
        linear-gradient(180deg, rgba(255, 255, 255, .35), transparent);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
    box-shadow: 0 14px 30px rgba(95, 15, 26, .14);
}

.scorer-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background:
        linear-gradient(135deg, transparent 0 72%, rgba(201, 39, 55, .1) 72% 82%, transparent 82%),
        linear-gradient(225deg, transparent 0 75%, rgba(201, 39, 55, .06) 75% 84%, transparent 84%),
        #fff;
    clip-path: inherit;
}

.scorer-photo span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: var(--red-dark);
    background:
        linear-gradient(135deg, transparent 0 72%, rgba(201, 39, 55, .1) 72% 82%, transparent 82%),
        linear-gradient(225deg, transparent 0 75%, rgba(201, 39, 55, .06) 75% 84%, transparent 84%),
        #fff;
    clip-path: inherit;
    font-weight: 900;
}

.scorer-info {
    width: 100%;
}

.scorer-info h3 {
    display: grid;
    place-items: center;
    min-height: 46px;
    margin: 12px 4px 0;
    padding: 9px 10px 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--red-dark) 54%, var(--red-deep));
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

.scorer-info h3 a {
    color: inherit;
}

.goals-circle {
    position: absolute;
    top: 205px;
    left: 10px;
    display: grid;
    place-items: center;
    min-width: 52px;
    height: 58px;
    padding: 0 10px;
    border-radius: 0 8px 0 0;
    border-top: 3px solid var(--white);
    border-right: 3px solid var(--white);
    color: var(--white);
    background: linear-gradient(180deg, var(--red), var(--red-dark));
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(95, 15, 26, .22);
}

.advanced-stats-section {
    position: relative;
}

.achievements-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(217, 180, 105, .16), transparent 24%),
        linear-gradient(180deg, #fff 0%, #fbf7ec 48%, #fff 100%);
}

.achievements-hero {
    min-height: 330px;
}

.achievements-hero::before {
    background:
        radial-gradient(circle at 20% 20%, rgba(217, 180, 105, .34), transparent 28%),
        linear-gradient(135deg, rgba(95, 15, 26, .92), rgba(143, 23, 36, .84) 55%, rgba(201, 39, 55, .72));
}

.achievements-title {
    gap: 10px;
}

.achievements-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(217, 180, 105, .44);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(95, 15, 26, .24);
    font-weight: 900;
}

.achievements-main {
    display: grid;
    gap: 24px;
}

.achievements-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: -72px;
}

.achievements-summary article {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    padding: 18px;
    border: 1px solid rgba(217, 180, 105, .34);
    border-radius: 8px;
    background:
        radial-gradient(circle at 16% 16%, rgba(217, 180, 105, .22), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 250, 240, .84));
    box-shadow: 0 18px 42px rgba(95, 15, 26, .1);
}

.achievements-summary article::after {
    content: "";
    position: absolute;
    inset: auto -28px -36px auto;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(201, 39, 55, .08);
}

.achievements-summary span,
.achievement-feature small,
.achievement-card small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.achievements-summary strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 8px;
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 900;
    line-height: 1;
}

.achievement-feature {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(217, 180, 105, .38);
    border-radius: 8px;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 14%, rgba(217, 180, 105, .32), transparent 30%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark) 58%, var(--red));
    box-shadow: 0 24px 58px rgba(95, 15, 26, .18);
}

.achievement-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, .12) 45%, transparent 54%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 18px);
    opacity: .7;
    pointer-events: none;
}

.achievement-feature-mark {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, .96) 0 54%, transparent 55%),
        conic-gradient(var(--gold), var(--red), var(--gold));
    box-shadow: 0 22px 42px rgba(0, 0, 0, .18);
}

.achievement-feature-mark span {
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 900;
}

.achievement-feature > div:not(.achievement-feature-mark) {
    position: relative;
    z-index: 1;
}

.achievement-feature small {
    color: var(--gold);
}

.achievement-feature h2 {
    margin: 6px 0 10px;
    color: var(--white);
    font-size: clamp(24px, 3.2vw, 42px);
}

.achievement-feature p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
    line-height: 1.9;
}

.achievements-section {
    margin-top: 8px;
}

.achievements-timeline {
    position: relative;
    display: grid;
    gap: 14px;
}

.achievements-timeline::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    right: 84px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gold), rgba(201, 39, 55, .4), transparent);
}

.achievement-card {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 56px;
    align-items: stretch;
    gap: 14px;
    min-height: 132px;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(201, 39, 55, .14);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(217, 180, 105, .08), transparent 40%),
        rgba(255, 255, 255, .9);
    box-shadow: 0 16px 36px rgba(95, 15, 26, .08);
}

.achievement-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--red), transparent);
}

.achievement-year {
    display: grid;
    place-items: center;
    min-height: 108px;
    border-radius: 8px;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 18%, rgba(217, 180, 105, .32), transparent 34%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark));
}

.achievement-year span {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
}

.achievement-body {
    display: grid;
    align-content: center;
    gap: 6px;
    min-width: 0;
}

.achievement-body h3 {
    margin: 0;
    color: var(--red-deep);
    font-size: clamp(19px, 2vw, 27px);
}

.achievement-body p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.85;
}

.achievement-card > b {
    display: grid;
    place-items: center;
    align-self: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--red-deep);
    background: rgba(217, 180, 105, .22);
    font-family: var(--font-display);
    font-weight: 900;
}

.achievements-empty {
    margin-top: 0;
}

.advanced-stats-shell {
    position: relative;
    display: grid;
    gap: 18px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(201, 39, 55, .14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 10% 0, rgba(217, 180, 105, .24), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(201, 39, 55, .13), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 250, 240, .82));
    box-shadow: 0 24px 58px rgba(95, 15, 26, .09);
}

.advanced-stats-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--red), var(--red-deep), var(--gold));
}

.stats-overview {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 12px;
}

.stat-tile,
.win-rate-card,
.form-card,
.big-win-card,
.player-stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 39, 55, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 14px 32px rgba(95, 15, 26, .07);
}

.stat-tile {
    display: grid;
    gap: 6px;
    min-height: 126px;
    padding: 18px;
}

.stat-tile::after {
    content: "";
    position: absolute;
    inset: auto -22px -26px auto;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(217, 180, 105, .16);
}

.stat-tile-main {
    color: var(--white);
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, .2), transparent 26%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
}

.stat-tile span,
.form-card span,
.big-win-card span,
.player-stat-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.stat-tile-main span,
.stat-tile-main small {
    color: rgba(255, 255, 255, .8);
}

.stat-tile strong {
    position: relative;
    z-index: 1;
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: clamp(31px, 3.2vw, 48px);
    font-weight: 900;
    line-height: 1;
}

.stat-tile-main strong {
    color: var(--white);
}

.stat-tile small {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-weight: 800;
}

.stats-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .9fr);
    gap: 12px;
}

.win-rate-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 172px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(95, 15, 26, .04), transparent 44%),
        rgba(255, 255, 255, .9);
}

.rate-ring {
    display: grid;
    place-items: center;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background:
        radial-gradient(circle, #fff 0 58%, transparent 59%),
        conic-gradient(var(--red) calc(var(--rate) * 1%), rgba(217, 180, 105, .22) 0);
    box-shadow: inset 0 0 0 1px rgba(201, 39, 55, .08), 0 18px 32px rgba(95, 15, 26, .12);
}

.rate-ring strong {
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.rate-ring span {
    margin-top: -26px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.win-rate-card h3,
.player-stat-card h3 {
    margin: 0 0 8px;
    color: var(--red-deep);
    font-size: 22px;
}

.win-rate-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.8;
}

.form-card,
.big-win-card {
    display: grid;
    align-content: center;
    gap: 14px;
    min-height: 172px;
    padding: 18px;
}

.form-card strong,
.big-win-card strong {
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
}

.form-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.form-dot {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--white);
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(95, 15, 26, .12);
}

.form-dot.win {
    background: linear-gradient(135deg, #138a50, #16a064);
}

.form-dot.draw {
    background: linear-gradient(135deg, var(--gold), #f1ce80);
    color: var(--ink);
}

.form-dot.loss {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
}

.big-win-card {
    color: var(--white);
    background:
        radial-gradient(circle at 18% 22%, rgba(217, 180, 105, .3), transparent 28%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark));
}

.big-win-card span,
.big-win-card small,
.big-win-card strong {
    color: var(--white);
}

.big-win-card small {
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
}

.player-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.player-stat-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 126px;
    padding: 14px;
}

.player-stat-photo {
    position: relative;
    display: grid;
    place-items: center;
    width: 86px;
    height: 96px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, var(--red-deep), var(--red)),
        #fff;
    box-shadow: 0 14px 28px rgba(95, 15, 26, .14);
}

.player-stat-photo img,
.player-stat-photo span {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 6px;
    object-fit: cover;
    object-position: center top;
    background: #fff;
}

.player-stat-photo span {
    display: grid;
    place-items: center;
    color: var(--red-dark);
    font-weight: 900;
}

.player-stat-photo b {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    min-height: 24px;
    padding: 0 6px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    font-size: 12px;
    box-shadow: 0 8px 16px rgba(95, 15, 26, .18);
}

.player-stat-card h3 a {
    color: inherit;
}

.player-stat-card strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--red-deep);
    background: rgba(217, 180, 105, .2);
    font-weight: 900;
}

.gallery-section {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 14px;
}

.gallery-card {
    position: relative;
    display: block;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid rgba(201, 39, 55, .18);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(42, 31, 21, .08);
}

.gallery-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid rgba(201, 39, 55, .18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 18%, rgba(217, 180, 105, .24), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 248, 231, .78));
    box-shadow: 0 18px 44px rgba(42, 31, 21, .08);
    text-align: center;
}

.gallery-empty div {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.gallery-empty strong {
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 22px;
}

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

.gallery-card.is-featured {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 474px;
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition: transform .42s ease, filter .42s ease;
}

.gallery-card.is-featured img {
    height: 474px;
}

.gallery-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(95, 15, 26, .04), transparent 36%, rgba(35, 6, 10, .78)),
        linear-gradient(135deg, rgba(217, 180, 105, .22), transparent 32%);
    pointer-events: none;
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 6px;
    pointer-events: none;
    opacity: .68;
}

.gallery-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.12) contrast(1.04);
}

.gallery-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--red-deep);
    background: linear-gradient(135deg, var(--gold), #fff4d3);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
}

.gallery-caption {
    position: absolute;
    z-index: 2;
    right: 16px;
    left: 16px;
    bottom: 16px;
    display: grid;
    gap: 6px;
    padding: 14px 14px 13px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(95, 15, 26, .86), rgba(143, 23, 36, .78));
    backdrop-filter: blur(12px);
}

.gallery-caption h3 {
    display: -webkit-box;
    margin: 0;
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-card.is-featured .gallery-caption h3 {
    font-size: 20px;
}

.gallery-caption time {
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    font-weight: 800;
}

body.lightbox-open {
    overflow: hidden;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    direction: rtl;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(217, 180, 105, .16), transparent 30%),
        rgba(28, 4, 8, .86);
    backdrop-filter: blur(10px);
}

.gallery-lightbox-panel {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1020px, 100%);
    max-height: min(86vh, 820px);
    overflow: hidden;
    border: 1px solid rgba(217, 180, 105, .38);
    border-radius: 8px;
    background:
        radial-gradient(circle at 10% 0, rgba(217, 180, 105, .18), transparent 28%),
        linear-gradient(135deg, rgba(95, 15, 26, .94), rgba(35, 6, 10, .96));
    box-shadow: 0 34px 90px rgba(0, 0, 0, .42);
}

.gallery-lightbox-panel figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    margin: 0;
}

.gallery-lightbox-panel img {
    display: block;
    width: 100%;
    max-height: calc(86vh - 118px);
    object-fit: contain;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(217, 180, 105, .06)),
        #170306;
}

.gallery-lightbox-panel figcaption {
    display: grid;
    gap: 4px;
    padding: 16px 72px 18px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(95, 15, 26, .9), rgba(143, 23, 36, .82)),
        rgba(95, 15, 26, .94);
}

.gallery-lightbox-panel figcaption strong {
    font-family: var(--font-display);
    font-size: clamp(17px, 2vw, 24px);
    font-weight: 900;
}

.gallery-lightbox-panel figcaption span {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 800;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 1px solid rgba(217, 180, 105, .42);
    color: var(--white);
    background: rgba(95, 15, 26, .72);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    box-shadow: 0 16px 30px rgba(0, 0, 0, .22);
}

.gallery-lightbox-close {
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.gallery-lightbox-nav {
    top: 50%;
    width: 48px;
    height: 64px;
    border-radius: 8px;
    font-size: 42px;
    transform: translateY(-50%);
}

.gallery-lightbox-nav:hover {
    transform: translateY(calc(-50% - 2px));
}

.gallery-lightbox-next {
    left: 14px;
}

.gallery-lightbox-prev {
    right: 14px;
}

.gallery-lightbox-count {
    position: absolute;
    z-index: 2;
    right: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--red-deep);
    background: var(--gold);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

.schedule-month-bar,
.schedule-season-bar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(201, 39, 55, .16);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(143, 23, 36, .08), transparent 38%, rgba(217, 180, 105, .16)),
        linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(255, 248, 231, .72)),
        var(--white);
    box-shadow: 0 14px 32px rgba(95, 15, 26, .07);
}

.schedule-season-bar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--red-deep), var(--red), var(--gold));
}

.schedule-month-bar a,
.schedule-details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    font-weight: 900;
    white-space: nowrap;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.schedule-month-bar a:hover,
.schedule-details-link:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark));
    box-shadow: 0 14px 28px rgba(95, 15, 26, .14);
}

.schedule-month-bar strong,
.schedule-season-heading strong {
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 22px;
}

.schedule-season-heading {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
}

.schedule-season-heading span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.schedule-season-stats {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.schedule-season-stats b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(201, 39, 55, .14);
    border-radius: 8px;
    color: var(--red-deep);
    background: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.schedule-list {
    display: grid;
    gap: 12px;
}

.schedule-filter-panel {
    position: relative;
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(201, 39, 55, .14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 10% 0, rgba(217, 180, 105, .22), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 250, 240, .86));
    box-shadow: 0 18px 42px rgba(95, 15, 26, .08);
}

.schedule-filter-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--red), var(--red-deep), var(--gold));
}

.schedule-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.schedule-filter-head div {
    display: grid;
    gap: 3px;
}

.schedule-filter-head span,
.schedule-filter-tools span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.schedule-filter-head strong {
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
}

.schedule-filter-head > b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    box-shadow: 0 12px 24px rgba(95, 15, 26, .14);
}

.schedule-filter-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.schedule-filter-controls button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid rgba(201, 39, 55, .14);
    border-radius: 8px;
    color: var(--red-deep);
    background: rgba(255, 255, 255, .78);
    font-weight: 900;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.schedule-filter-controls button:hover,
.schedule-filter-controls button.is-active {
    transform: translateY(-2px);
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    box-shadow: 0 14px 28px rgba(95, 15, 26, .14);
}

.schedule-filter-controls button b {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--red-deep);
    background: rgba(217, 180, 105, .26);
    font-size: 12px;
}

.schedule-filter-controls button.is-active b,
.schedule-filter-controls button:hover b {
    color: var(--red-deep);
    background: var(--gold);
}

.schedule-filter-tools {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1fr);
    gap: 10px;
}

.schedule-filter-tools label {
    display: grid;
    gap: 7px;
}

.schedule-filter-tools select,
.schedule-filter-tools input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(201, 39, 55, .16);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, .9);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.schedule-filter-tools select:focus,
.schedule-filter-tools input:focus {
    border-color: rgba(201, 39, 55, .45);
    box-shadow: 0 0 0 4px rgba(201, 39, 55, .08);
}

.schedule-card[hidden] {
    display: none;
}

.schedule-no-results {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 150px;
    margin-top: 12px;
    border: 1px dashed rgba(201, 39, 55, .22);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, .7);
    text-align: center;
}

.schedule-no-results strong {
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 22px;
}

.schedule-subtitle {
    margin: 22px 0 12px;
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 22px;
}

.schedule-card {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) minmax(160px, .42fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(201, 39, 55, .16);
    border-radius: 8px;
    background:
        radial-gradient(circle at 100% 0, rgba(217, 180, 105, .24), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 248, 231, .64)),
        var(--white);
    box-shadow: 0 18px 44px rgba(42, 31, 21, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.schedule-card::before {
    content: "";
    position: absolute;
    inset: 12px auto 12px 0;
    width: 4px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--red), var(--gold));
    opacity: .9;
}

.schedule-card:hover {
    border-color: rgba(201, 39, 55, .28);
    box-shadow: 0 22px 50px rgba(95, 15, 26, .12);
}

.schedule-date {
    display: grid;
    place-items: center;
    min-height: 76px;
    border-radius: 8px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 38%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 24px rgba(143, 23, 36, .16);
}

.schedule-date span {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.schedule-date small {
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
    font-weight: 800;
}

.schedule-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.schedule-team {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-align: center;
}

.schedule-team-logo,
.detail-team-logo {
    width: 62px;
    height: 56px;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    border: 1px solid rgba(217, 180, 105, .42);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(95, 15, 26, .1);
}

.schedule-team b {
    display: -webkit-box;
    overflow: hidden;
    min-height: 36px;
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.schedule-score {
    display: grid;
    place-items: center;
    min-width: 78px;
    min-height: 56px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, var(--gold));
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
}

.schedule-meta {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.schedule-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .66);
    overflow-wrap: anywhere;
}

.match-detail-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(201, 39, 55, .18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(143, 23, 36, .06), transparent 34%),
        linear-gradient(315deg, rgba(217, 180, 105, .2), transparent 42%),
        var(--white);
    box-shadow: 0 18px 42px rgba(42, 31, 21, .08);
}

.match-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--red-deep), var(--red), var(--gold));
}

.match-detail-hero::after {
    content: "";
    position: absolute;
    inset: 9px;
    pointer-events: none;
    border: 1px solid rgba(217, 180, 105, .16);
    border-radius: 8px;
}

.detail-team {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 7px;
    min-height: 138px;
    padding: 12px;
    border: 1px solid rgba(201, 39, 55, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .74);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.detail-team-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--red-deep);
    background: #fff0f2;
    font-size: 12px;
    font-weight: 900;
}

.detail-team-logo {
    width: 82px;
    height: 72px;
    padding: 7px;
    border-color: rgba(217, 180, 105, .58);
}

.detail-team h2 {
    margin: 0;
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.35;
}

.detail-score {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 148px;
    min-height: 134px;
    padding: 13px 14px;
    border: 1px solid rgba(217, 180, 105, .42);
    border-radius: 8px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 28%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    text-align: center;
    box-shadow: 0 16px 34px rgba(95, 15, 26, .2);
}

.match-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, var(--gold));
    font-size: 12px;
    font-weight: 900;
}

.detail-score span,
.detail-score small {
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
}

.detail-score strong {
    margin: 5px 0 3px;
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1;
}

.detail-competition {
    margin-top: 5px;
}

.detail-datetime {
    max-width: 170px;
    line-height: 1.55;
}

.match-info-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.match-info-grid article,
.detail-panel {
    position: relative;
    padding: 14px;
    border: 1px solid rgba(201, 39, 55, .16);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(42, 31, 21, .06);
}

.match-info-grid article {
    min-height: 82px;
    padding: 13px 14px 13px 82px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(143, 23, 36, .04), transparent 40%),
        #fff;
}

.match-info-grid article::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--red), var(--gold));
}

.match-info-mark {
    position: absolute;
    top: 13px;
    left: 13px;
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(95, 15, 26, .14);
}

.match-info-grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-weight: 800;
}

.match-info-grid strong,
.detail-panel h2 {
    color: var(--red-deep);
    font-family: var(--font-display);
}

.visual-stats-panel {
    overflow: hidden;
    margin-top: 12px;
    padding: 16px;
    background:
        radial-gradient(circle at 8% 0, rgba(217, 180, 105, .22), transparent 30%),
        linear-gradient(135deg, #fff, #fff8ec);
}

.visual-stats-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--red-deep), var(--red), var(--gold));
}

.visual-stats-head,
.visual-stats-teams,
.visual-stat-row {
    display: grid;
    align-items: center;
}

.visual-stats-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 14px;
}

.visual-stats-head small,
.visual-stats-head span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--red-deep);
    background: #fff0c9;
    font-size: 12px;
    font-weight: 900;
}

.visual-stats-head h2 {
    margin: 5px 0 0;
    font-size: clamp(21px, 2.8vw, 32px);
}

.visual-stats-teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid rgba(217, 180, 105, .35);
    border-radius: 8px;
    background: rgba(255, 255, 255, .74);
}

.visual-stats-teams > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    color: var(--red-deep);
    font-weight: 900;
}

.visual-stats-teams > b {
    display: grid;
    place-items: center;
    min-width: 74px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    box-shadow: 0 14px 28px rgba(143, 23, 36, .18);
}

.visual-stats-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(42, 31, 21, .08);
}

.visual-stats-list {
    display: grid;
    gap: 9px;
}

.visual-stat-row {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(201, 39, 55, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
}

.visual-stat-value {
    display: grid;
    place-items: center;
    min-height: 40px;
    border-radius: 8px;
    color: var(--red-deep);
    background: #fff4e0;
    font-size: 18px;
    font-weight: 900;
}

.visual-stat-center {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.visual-stat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--red-deep);
    font-weight: 900;
}

.visual-stat-label span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-size: 13px;
    box-shadow: 0 10px 20px rgba(143, 23, 36, .14);
}

.visual-stat-bars {
    display: flex;
    gap: 4px;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(217, 180, 105, .18);
}

.visual-stat-bars i {
    display: block;
    min-width: 0;
}

.visual-stat-one {
    width: var(--one-width);
    background: linear-gradient(90deg, var(--red-deep), var(--red));
}

.visual-stat-two {
    width: var(--two-width);
    background: linear-gradient(90deg, var(--gold), #fff0bd);
}

.match-map-panel {
    overflow: hidden;
    margin-top: 12px;
    padding: 16px;
    background:
        radial-gradient(circle at 12% 12%, rgba(217, 180, 105, .22), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 248, 231, .82)),
        var(--white);
}

.match-map-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--red-deep), var(--red), var(--gold));
}

.match-map-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.match-map-head > div:first-child {
    display: grid;
    gap: 5px;
}

.match-map-head small {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--red-deep);
    background: #fff0c9;
    font-weight: 900;
}

.match-map-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 34px);
}

.match-map-head p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.match-map-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.match-map-filters button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(217, 180, 105, .34);
    border-radius: 8px;
    color: var(--red-deep);
    background: #fff8e9;
    font-family: var(--font-display);
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.match-map-filters button:hover,
.match-map-filters button.is-active {
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    transform: translateY(-1px);
}

.match-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .85fr);
    gap: 14px;
}

.match-pitch {
    position: relative;
    isolation: isolate;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(217, 180, 105, .42);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .08) 0 9%, transparent 9.5%),
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .26) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 46px, rgba(255, 255, 255, .02) 46px 92px),
        linear-gradient(135deg, #5f0f1a, #8f1724 58%, #711421);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 42px rgba(95, 15, 26, .14);
}

.match-pitch::before {
    content: "";
    position: absolute;
    inset: 20px;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    pointer-events: none;
}

.match-pitch::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 86px;
    height: 86px;
    border: 2px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.pitch-team {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(42%, 260px);
    min-height: 42px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
}

.pitch-team-one {
    top: 14px;
    right: 14px;
}

.pitch-team-two {
    bottom: 14px;
    left: 14px;
    flex-direction: row-reverse;
}

.pitch-team-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    padding: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
}

.match-map-marker {
    position: absolute;
    z-index: 2;
    left: var(--x);
    top: var(--y);
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    box-shadow: 0 14px 26px rgba(20, 3, 7, .28);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, opacity .2s ease, filter .2s ease, box-shadow .2s ease;
}

.match-map-marker:hover,
.match-map-marker.is-active {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 18px 34px rgba(20, 3, 7, .34), 0 0 0 6px rgba(217, 180, 105, .2);
}

.match-map-marker.is-map-hidden {
    opacity: .18;
    filter: grayscale(.8);
    pointer-events: none;
}

.match-map-marker img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.match-map-marker span {
    position: absolute;
    right: 50%;
    bottom: -10px;
    transform: translateX(50%);
    min-width: 30px;
    min-height: 20px;
    padding: 1px 6px;
    border: 2px solid var(--white);
    border-radius: 999px;
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, var(--gold));
    font-size: 11px;
    font-weight: 900;
}

.match-map-yellow {
    color: var(--ink);
    background: linear-gradient(135deg, #ffe08a, var(--gold));
}

.match-map-red {
    background: linear-gradient(135deg, #5f0f1a, #bf1e2e);
}

.match-map-substitution {
    background: linear-gradient(135deg, #94670c, var(--gold));
}

.match-map-empty {
    position: absolute;
    z-index: 3;
    inset: 50% auto auto 50%;
    display: grid;
    gap: 5px;
    width: min(360px, calc(100% - 48px));
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: var(--white);
    background: rgba(95, 15, 26, .72);
    text-align: center;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(10px);
}

.match-map-empty span {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 800;
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-lineup-section {
    grid-template-columns: 1fr;
}

.lineup-panel {
    position: relative;
    overflow: hidden;
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 248, 231, .72)),
        var(--white);
}

.lineup-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--red-deep), var(--red), var(--gold));
}

.lineup-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 39, 55, .12);
}

.lineup-panel-head > div:first-child {
    display: grid;
    gap: 5px;
}

.lineup-panel-head span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--red-deep);
    background: #fff0f2;
    font-size: 12px;
    font-weight: 900;
}

.lineup-panel-head h2 {
    margin: 0;
}

.lineup-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.lineup-summary b {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-size: 12px;
    font-weight: 900;
}

.lineup-summary b:last-child {
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, var(--gold));
}

.lineup-panel .lineup-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-panel h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.lineup-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lineup;
}

.lineup-list li {
    counter-increment: lineup;
    position: relative;
    display: grid;
    grid-template-columns: 34px 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid rgba(217, 180, 105, .24);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 248, 231, .82)),
        #fff;
    color: var(--ink);
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(74, 11, 20, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lineup-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 39, 55, .22);
    box-shadow: 0 18px 36px rgba(74, 11, 20, .1);
}

.lineup-list li::before {
    content: attr(data-player-number);
    display: grid;
    place-items: center;
    width: 34px;
    height: 31px;
    padding-top: 2px;
    color: var(--white);
    background: linear-gradient(145deg, var(--red), var(--red-deep));
    font-size: 12px;
    line-height: 1;
    clip-path: polygon(19% 0, 34% 0, 42% 11%, 58% 11%, 66% 0, 81% 0, 100% 25%, 85% 39%, 76% 31%, 76% 100%, 24% 100%, 24% 31%, 15% 39%, 0 25%);
    box-shadow: 0 10px 18px rgba(143, 23, 36, .22);
}

.lineup-list li:not([data-player-number])::before,
.lineup-list li[data-player-number=""]::before {
    content: counter(lineup);
}

.lineup-list-linked li {
    isolation: isolate;
    overflow: hidden;
}

.lineup-list-linked li::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--red), var(--gold));
    opacity: .9;
}

.lineup-list-linked li.lineup-substitute {
    border-color: rgba(217, 180, 105, .38);
    background:
        linear-gradient(135deg, rgba(255, 248, 231, .98), rgba(255, 255, 255, .9)),
        #fff;
}

.lineup-list-linked li.lineup-substitute::before {
    background: linear-gradient(135deg, var(--gold), #9d6b0d);
}

.lineup-list-linked li.lineup-exited {
    border-color: rgba(201, 39, 55, .28);
    background:
        linear-gradient(135deg, rgba(255, 241, 242, .98), rgba(255, 248, 231, .86)),
        #fff;
}

.lineup-player-photo {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 2px;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(255, 240, 242, .9));
    box-shadow: inset 0 0 0 1px rgba(217, 180, 105, .28), 0 8px 16px rgba(74, 11, 20, .07);
}

.lineup-player-photo img {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: cover;
    background: #fff;
}

.lineup-player-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.lineup-player-main b {
    min-width: 0;
    color: var(--red-deep);
    font-size: 14px;
    line-height: 1.25;
}

.lineup-player-main a {
    color: inherit;
    text-decoration: none;
}

.lineup-player-main a:hover {
    color: var(--red);
}

.lineup-player-main small {
    width: fit-content;
    padding: 1px 7px;
    border-radius: 999px;
    color: rgba(74, 11, 20, .72);
    background: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 900;
}

.lineup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
    min-width: 0;
}

.lineup-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.lineup-badge span {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.lineup-badge.in {
    color: #0f6a43;
    background: rgba(222, 248, 235, .96);
}

.lineup-badge.in span {
    background: #12a667;
}

.lineup-badge.out {
    color: var(--red-deep);
    background: rgba(255, 230, 233, .96);
}

.lineup-badge.out span {
    background: var(--red);
}

.event-list {
    display: grid;
    gap: 10px;
}

.event-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
    padding: 12px;
    border-radius: 8px;
    background: #fff8e7;
}

.event-item span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    background: var(--red-dark);
    font-weight: 900;
}

.event-item.goal span {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
}

.event-item.yellow span {
    color: var(--ink);
    background: var(--gold);
}

.event-item.red span {
    background: var(--red-deep);
}

.live-match-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 248, 231, .72)),
        #fff;
}

.live-match-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--red-deep), var(--red), var(--gold));
}

.live-match-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.live-match-head > div {
    display: grid;
    gap: 4px;
}

.live-match-head small {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--red-deep);
    background: #fff0f2;
    font-size: 12px;
    font-weight: 900;
}

.live-match-head h2 {
    margin: 0;
}

.live-match-head span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-size: 12px;
    font-weight: 900;
}

.live-match-timeline {
    position: relative;
    display: grid;
    gap: 8px;
}

.live-match-timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    right: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--red), var(--gold));
    opacity: .28;
}

.live-match-event {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(201, 39, 55, .14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 248, 231, .74)),
        #fff;
    box-shadow: 0 12px 30px rgba(42, 31, 21, .06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.live-match-event:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 39, 55, .28);
    box-shadow: 0 18px 38px rgba(95, 15, 26, .12);
}

.live-match-event > div {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 6px 14px;
    min-width: 0;
}

.live-match-event > div > strong,
.live-match-event > div > small,
.live-match-event > div > p {
    grid-column: 2;
}

.live-event-visual {
    grid-row: 1 / span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.live-event-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(201, 39, 55, .16);
    border-radius: 8px;
    background: #fff7f0;
    box-shadow: 0 10px 22px rgba(95, 15, 26, .1);
}

.live-event-icon img {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.live-event-player {
    position: relative;
    display: block;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    color: inherit;
    text-decoration: none;
}

.live-event-player img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 24px rgba(42, 31, 21, .16);
}

.live-event-player b {
    position: absolute;
    right: 50%;
    bottom: -7px;
    transform: translateX(50%);
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 21px;
    padding: 0 6px;
    border: 2px solid var(--white);
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 16px rgba(95, 15, 26, .18);
}

.live-match-goal .live-event-icon,
.live-match-penalty .live-event-icon {
    background: linear-gradient(135deg, #fff, #fff0f2);
}

.live-match-yellow .live-event-icon {
    background: linear-gradient(135deg, #fff7d6, #ffe08a);
}

.live-match-red .live-event-icon {
    background: linear-gradient(135deg, #fff0f2, #ffd5da);
}

.live-match-substitution .live-event-icon {
    background: linear-gradient(135deg, #fff8e7, #f4dfaa);
}

.live-match-minute {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(95, 15, 26, .16);
}

.live-match-event strong {
    display: block;
    color: var(--red-deep);
    font-family: var(--font-display);
}

.live-match-event small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-weight: 900;
}

.live-event-player-name {
    color: inherit;
    text-decoration: none;
}

.live-event-player:hover,
.live-event-player-name:hover {
    color: var(--red-deep);
}

.live-match-event p {
    margin: 4px 0 0;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.55;
}

.live-match-event > b {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: var(--red-deep);
    font-size: 12px;
}

.live-match-goal .live-match-minute,
.live-match-penalty .live-match-minute {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
}

.live-match-yellow .live-match-minute {
    color: var(--ink);
    background: linear-gradient(135deg, #ffe08a, var(--gold));
}

.live-match-red .live-match-minute,
.live-match-end .live-match-minute {
    background: linear-gradient(135deg, var(--red-deep), #5f0f1a);
}

.live-match-substitution .live-match-minute,
.live-match-start .live-match-minute {
    background: linear-gradient(135deg, var(--gold), #9d6b0d);
}

.live-match-injury .live-match-minute {
    background: linear-gradient(135deg, #ef8b45, var(--red));
}

.substitution-timeline {
    display: grid;
    gap: 12px;
}

.substitution-public-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(201, 39, 55, .15);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(201, 39, 55, .08), transparent 34%),
        linear-gradient(315deg, rgba(217, 180, 105, .24), transparent 42%),
        #fff;
    box-shadow: 0 14px 34px rgba(42, 31, 21, .08);
}

.substitution-minute {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-weight: 900;
}

.substitution-player {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
}

.substitution-player small {
    display: block;
    margin-bottom: 4px;
    font-weight: 900;
}

.substitution-player strong,
.substitution-player a {
    color: var(--red-deep);
    text-decoration: none;
}

.substitution-out {
    border: 1px solid rgba(201, 39, 55, .2);
    background: #fff1f2;
}

.substitution-out small {
    color: var(--red-deep);
}

.substitution-in {
    border: 1px solid rgba(217, 180, 105, .5);
    background: #fff8e2;
}

.substitution-in small {
    color: #8a5a05;
}

.substitution-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--red-deep);
    background: #fff0bf;
}

.substitution-team {
    color: var(--muted);
    font-weight: 900;
}

.event-item b {
    color: var(--red-deep);
    font-family: var(--font-display);
}

.event-item b a {
    color: inherit;
    text-decoration: none;
}

.event-item b a:hover {
    color: var(--red);
}

.event-item small,
.detail-empty {
    color: var(--muted);
    font-weight: 800;
}

.embed-box iframe,
.embed-box blockquote {
    max-width: 100%;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(42, 31, 21, .08);
}

.competitions-stack {
    display: grid;
    gap: 18px;
}

.competitions-section,
.league-section {
    position: relative;
}

.competitions-section .section-title,
.league-section .section-title {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-color: rgba(217, 180, 105, .34);
    background:
        linear-gradient(90deg, rgba(95, 15, 26, .055), transparent 28%, rgba(217, 180, 105, .12)),
        linear-gradient(135deg, #fff, #fff7e9);
}

.competition-table-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(199, 32, 48, .15);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 248, 242, .88)),
        var(--white);
    box-shadow: 0 22px 48px rgba(95, 15, 26, .09);
}

.competition-table-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--red-deep), var(--red), var(--gold));
}

.competition-table-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 76px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(201, 39, 55, .12);
    background:
        radial-gradient(circle at 12% 12%, rgba(217, 180, 105, .2), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 246, 229, .74));
}

.competition-table-head::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 0;
    width: min(220px, 45%);
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--red), var(--gold), transparent);
}

.competition-table-head p {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, #f1d48c);
    font-size: 13px;
    font-weight: 900;
}

.competition-table-head h3 {
    margin: 0;
    color: var(--red-deep);
    font-size: clamp(20px, 2.6vw, 30px);
    line-height: 1.25;
}

.competition-table-head img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    padding: 7px;
    border: 1px solid rgba(217, 180, 105, .42);
    border-radius: 14px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 14px 28px rgba(95, 15, 26, .1);
}

.competition-table-card .table-wrap {
    margin: 12px;
    box-shadow: none;
}

.league-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

.league-table th,
.league-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    vertical-align: middle;
}

.league-table th {
    color: var(--white);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), transparent),
        linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    font-size: 14px;
    white-space: nowrap;
}

.league-table tbody tr:hover {
    background: #fff8e7;
}

.league-table tbody tr:last-child td {
    border-bottom: 0;
}

.league-empty {
    padding: 28px 16px !important;
    color: var(--muted);
    font-weight: 800;
    background: #fff8f0;
}

.table-logo {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    object-position: center;
}

.team-name {
    min-width: 220px;
    text-align: center !important;
    font-weight: 800;
}

.team-cell {
    display: grid;
    grid-template-columns: 42px minmax(130px, 1fr);
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 12px;
    width: min(230px, 100%);
    margin-inline: auto;
}

.team-cell span {
    width: 100%;
    text-align: center;
}

.points {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 32px;
    border-radius: 8px;
    color: var(--white);
    background: var(--red);
    font-weight: 900;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 28px 0 36px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
    }

    .topbar {
        flex-wrap: wrap;
    }

    .teams-page-hero {
        min-height: 240px;
    }

    .teams-page-hero .topbar {
        margin-top: 10px;
    }

    .teams-page-title {
        padding: 34px 0 48px;
    }

    .roster-page-title {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 34px 0 48px;
    }

    .site-nav {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
    }

    .hero-grid,
    .match-section,
    .facebook-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-card.is-featured {
        grid-column: span 2;
        min-height: 360px;
    }

    .gallery-card.is-featured img {
        height: 360px;
    }

    .schedule-card,
    .match-detail-hero,
    .match-info-grid,
    .match-map-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .match-detail-hero {
        gap: 12px;
        padding: 16px;
    }

    .match-detail-page .match-detail-hero {
        grid-template-columns: minmax(0, 1fr) minmax(112px, .68fr) minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .detail-team {
        min-height: 0;
    }

    .match-detail-page .detail-team {
        padding: 9px 6px;
    }

    .match-detail-page .detail-team-label {
        display: none;
    }

    .match-detail-page .detail-team-logo {
        width: 58px;
        height: 52px;
        padding: 5px;
    }

    .match-detail-page .detail-team h2 {
        font-size: 13px;
        line-height: 1.35;
    }

    .match-detail-page .detail-score {
        min-width: 0;
        min-height: 108px;
        padding: 9px 7px;
    }

    .match-detail-page .detail-score strong {
        font-size: 28px;
    }

    .match-detail-page .detail-score small,
    .match-detail-page .detail-score span {
        font-size: 12px;
    }

    .match-detail-page .match-info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .match-detail-page .match-info-grid article {
        display: grid;
        justify-items: center;
        min-height: 0;
        padding: 9px 6px;
        text-align: center;
    }

    .match-detail-page .match-info-mark {
        position: static;
        min-width: 42px;
        height: 27px;
        margin-bottom: 4px;
        padding: 0 7px;
        font-size: 10px;
    }

    .match-detail-page .match-info-grid span {
        margin-bottom: 2px;
        font-size: 12px;
    }

    .match-detail-page .match-info-grid strong {
        font-size: 12px;
        line-height: 1.45;
    }

    .visual-stats-panel {
        padding: 12px;
    }

    .visual-stats-head {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .visual-stats-head span {
        justify-self: start;
    }

    .visual-stats-teams {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        padding: 8px;
    }

    .visual-stats-teams > div {
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
        line-height: 1.35;
        text-align: center;
    }

    .visual-stats-teams > b {
        min-width: 54px;
        min-height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }

    .visual-stats-logo {
        width: 34px;
        height: 34px;
    }

    .visual-stat-row {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 7px;
        padding: 8px;
    }

    .visual-stat-value {
        min-height: 34px;
        font-size: 14px;
    }

    .visual-stat-label {
        gap: 6px;
        font-size: 13px;
    }

    .visual-stat-label span {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .match-map-head {
        align-items: stretch;
        flex-direction: column;
    }

    .match-map-filters {
        justify-content: flex-start;
    }

    .match-pitch {
        min-height: 320px;
    }

    .schedule-card {
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }

    .schedule-filter-panel {
        gap: 12px;
        padding: 12px;
    }

    .schedule-filter-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .schedule-filter-head strong {
        font-size: 18px;
        line-height: 1.45;
    }

    .schedule-filter-head > b {
        min-height: 34px;
        padding: 0 12px;
        font-size: 13px;
    }

    .schedule-filter-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .schedule-filter-controls button {
        min-height: 42px;
        padding: 0 10px;
        font-size: 13px;
    }

    .schedule-filter-controls button b {
        min-width: 26px;
        height: 26px;
    }

    .schedule-filter-tools {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .schedule-filter-tools select,
    .schedule-filter-tools input {
        min-height: 42px;
    }

    .schedule-date {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 0;
        padding: 10px 12px;
    }

    .schedule-date span {
        font-size: 26px;
    }

    .schedule-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-details-link {
        width: 100%;
    }

    .detail-score {
        width: 100%;
    }

    .substitution-public-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .substitution-public-card .substitution-arrow {
        display: none;
    }

    .substitution-team {
        grid-column: 1 / -1;
    }

    .live-match-event {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .live-match-event > div {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .live-match-event > b {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .live-match-head,
    .lineup-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .lineup-summary {
        justify-content: flex-start;
    }

    .lineup-panel .lineup-list {
        grid-template-columns: 1fr;
    }

    .scorers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-teams-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .players-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .player-profile-hero {
        grid-template-columns: 1fr;
    }

    .player-profile-photo {
        width: min(420px, 100%);
        margin-inline: auto;
    }

    .profile-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-match-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .player-match-item small,
    .player-match-icons {
        grid-column: 2;
        justify-self: start;
    }

    .hero-grid {
        gap: 12px;
        padding: 10px 0 48px;
    }

    .hero-mark {
        order: -1;
    }

    .hero-logo {
        width: min(150px, 44vw);
        max-height: 180px;
    }
}

@media (max-width: 640px) {
    .topbar {
        align-items: center;
        gap: 12px;
    }

    .teams-page-hero {
        min-height: 210px;
    }

    .match-detail-page .teams-page-hero {
        min-height: 176px;
    }

    .teams-page-hero .topbar {
        width: min(100% - 24px, 100%);
        padding: 9px 10px;
    }

    .inner-brand-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        padding: 4px;
    }

    .inner-page-actions {
        gap: 6px;
    }

    .teams-page-hero .admin-link {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .inner-home-link::before {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }

    .brand span {
        max-width: 160px;
        line-height: 1.5;
    }

    .teams-page-hero .brand span {
        max-width: 42vw;
        font-size: 13px;
    }

    .teams-page-title {
        width: min(100% - 24px, 100%);
        gap: 10px;
        padding: 26px 0 36px;
    }

    .match-detail-page .teams-page-title {
        gap: 8px;
        padding: 18px 0 26px;
    }

    .teams-page-title::before,
    .roster-page-title::before {
        width: 56px;
        height: 4px;
    }

    .teams-page-title h1 {
        font-size: 26px;
        line-height: 1.25;
    }

    .match-detail-page .teams-page-title h1 {
        font-size: 21px;
    }

    .teams-page-title p {
        padding: 7px 10px;
        font-size: 13px;
        line-height: 1.75;
    }

    .match-detail-page .teams-page-title p {
        padding: 6px 9px;
        font-size: 12px;
        line-height: 1.55;
    }

    .site-nav {
        gap: 6px;
        padding: 2px 0 3px;
    }

    .schedule-month-bar,
    .schedule-season-bar {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .schedule-season-heading {
        justify-items: center;
    }

    .schedule-season-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        justify-content: stretch;
    }

    .schedule-season-stats b {
        min-height: 32px;
        padding: 0 6px;
        font-size: 12px;
    }

    .home-schedule-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-schedule-title span {
        line-height: 1.7;
    }

    .schedule-teams {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
    }

    .schedule-score {
        width: auto;
        min-width: 64px;
        min-height: 46px;
        padding: 0 8px;
        font-size: 17px;
    }

    .schedule-details-link {
        width: 100%;
    }

    .schedule-team-logo,
    .detail-team-logo {
        width: 48px;
        height: 44px;
        padding: 6px;
    }

    .schedule-team b {
        min-height: 32px;
        font-size: 12px;
    }

    .schedule-meta {
        grid-template-columns: 1fr;
        gap: 5px;
        font-size: 12px;
    }

    .match-detail-hero {
        padding: 14px;
    }

    .detail-team-logo {
        width: 86px;
        height: 76px;
    }

    .match-detail-page .detail-team-logo {
        width: 46px;
        height: 42px;
    }

    .detail-team h2 {
        font-size: 17px;
    }

    .match-detail-page .detail-team h2 {
        font-size: 12px;
    }

    .detail-score {
        min-height: 112px;
    }

    .match-detail-page .detail-score {
        min-height: 96px;
    }

    .detail-score strong {
        font-size: 34px;
    }

    .match-detail-page .detail-score strong {
        font-size: 24px;
    }

    .match-info-grid article,
    .detail-panel {
        padding: 14px;
    }

    .match-info-grid article {
        min-height: 0;
        padding: 14px;
    }

    .match-info-mark {
        position: static;
        width: fit-content;
        height: 30px;
        margin-bottom: 10px;
    }

    .site-nav a {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .admin-link {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 13px;
    }

    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hero-grid {
        padding-bottom: 42px;
    }

    .hero-text {
        margin: 10px 0 14px;
        font-size: 14px;
        line-height: 1.55;
    }

    .stat-card {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 78px;
        padding: 8px 6px;
        text-align: right;
    }

    .stat-icon {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        margin: 0;
    }

    .stat-card strong {
        font-size: 21px;
    }

    .stat-card small {
        display: block;
        font-size: 12px;
        line-height: 1.3;
    }

    .handball-achievements {
        margin-top: 9px;
        padding: 10px 11px;
    }

    .handball-achievements strong {
        font-size: 13.5px;
    }

    .handball-achievements li {
        font-size: 12px;
        line-height: 1.5;
    }

    .club-achievements li {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .club-achievements li span {
        min-width: 42px;
        min-height: 22px;
        font-size: 12px;
    }

    .club-achievements li b {
        font-size: 12px;
    }

    .club-achievements li small {
        font-size: 12px;
    }

    .ticker {
        width: 100%;
        border-radius: 0;
    }

    .ticker-label {
        min-width: 128px;
        padding-inline: 14px;
        font-size: 14px;
    }

    .ticker::before {
        right: 128px;
        width: 42px;
    }

    .ticker::after {
        width: 42px;
    }

    .ticker-item {
        padding-inline: 18px;
        gap: 10px;
    }

    .ticker-item em {
        max-width: calc(100vw - 188px);
    }

    .match-teams {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .match-teams::before {
        display: block;
        right: 12px;
        left: 12px;
        opacity: .42;
    }

    .match-card .card-heading,
    .match-card .match-teams,
    .match-card .meta-row,
    .match-card .score-box,
    .match-card .team-logo,
    .match-card .team b {
        transform: none;
    }

    .team {
        min-height: auto;
        padding: 9px 6px 8px;
    }

    .card-heading {
        align-items: center;
        flex-direction: row;
        gap: 8px;
        padding: 10px 10px 9px;
    }

    .card-heading strong {
        max-width: 100%;
    }

    .team-logo {
        width: 52px;
        height: 46px;
        padding: 5px;
    }

    .score-box {
        width: auto;
        min-width: 68px;
        min-height: 58px;
        padding: 7px 6px;
    }

    .score-box strong {
        font-size: 21px;
    }

    .meta-row {
        margin: 0 10px 10px;
    }

    .match-card-action {
        width: calc(100% - 20px);
        margin: 0 10px 12px;
    }

    .club-teams-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .club-team-card {
        min-height: 70px;
        padding: 14px 10px;
    }

    .club-team-card h2 {
        font-size: 16px;
    }

    .teams-list-page .teams-page-hero,
    .team-roster-page .teams-page-hero {
        background:
            linear-gradient(160deg, var(--red-deep), var(--red-dark) 58%, var(--red));
    }

    .teams-list-page .topbar,
    .team-roster-page .topbar {
        align-items: center;
        width: min(100% - 24px, 100%);
        padding: 14px 0;
    }

    .teams-list-page .brand,
    .team-roster-page .brand {
        max-width: min(100%, 520px);
        gap: 8px;
    }

    .teams-list-page .brand span,
    .team-roster-page .brand span {
        max-width: none;
        font-size: 14px;
        line-height: 1.4;
    }

    .teams-list-page .admin-link,
    .team-roster-page .admin-link {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .teams-list-page .teams-page-title {
        width: min(100% - 24px, 100%);
        justify-items: start;
        gap: 8px;
        padding: 18px 0 28px;
        text-align: right;
    }

    .teams-list-page .teams-page-title h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .teams-list-page .teams-page-title p {
        max-width: 270px;
        font-size: 13px;
        line-height: 1.8;
    }

    .teams-page-main {
        width: min(100% - 24px, 100%);
        padding-top: 24px;
    }

    .achievements-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: -42px;
    }

    .achievements-summary article {
        min-height: 104px;
        padding: 13px;
    }

    .achievements-summary strong {
        font-size: 28px;
    }

    .achievement-feature {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
        text-align: center;
    }

    .achievement-feature-mark {
        width: 104px;
        height: 104px;
        margin-inline: auto;
    }

    .achievement-feature-mark span {
        font-size: 21px;
    }

    .achievement-feature h2 {
        font-size: 24px;
    }

    .achievement-feature p {
        font-size: 14px;
        line-height: 1.75;
    }

    .achievements-timeline::before {
        right: 26px;
    }

    .achievement-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
        min-height: 112px;
        padding: 10px;
    }

    .achievement-year {
        min-height: 92px;
    }

    .achievement-year span {
        font-size: 20px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

    .achievement-body h3 {
        font-size: 18px;
    }

    .achievement-body p {
        font-size: 13px;
        line-height: 1.65;
    }

    .achievement-card > b {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .club-category {
        margin-bottom: 34px;
    }

    .club-category .section-title {
        margin-bottom: 12px;
    }

    .club-category .section-title p {
        display: inline-flex;
        min-height: 34px;
        align-items: center;
        padding: 0 12px;
        border-radius: 8px;
        color: var(--white);
        background: linear-gradient(135deg, var(--red-dark), var(--red));
        font-size: 14px;
    }

    .teams-list-page .club-teams-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .teams-list-page .club-team-card {
        min-height: 54px;
        place-items: center start;
        padding: 0 16px;
        border-color: rgba(201, 39, 55, .18);
        color: var(--red-deep);
        background:
            linear-gradient(135deg, rgba(201, 39, 55, .08), rgba(255, 255, 255, .92)),
            #fff;
        box-shadow: 0 10px 24px rgba(95, 15, 26, .08);
    }

    .teams-list-page .club-team-card::before {
        inset-inline-start: auto;
        width: 4px;
        background: linear-gradient(180deg, var(--red), var(--red-dark));
    }

    .teams-list-page .club-team-card h2 {
        color: var(--red-deep);
        font-size: 15px;
        text-shadow: none;
    }

    .roster-page-title {
        align-items: center;
        gap: 12px;
        width: min(100% - 24px, 100%);
        padding: 16px 0 24px;
    }

    .roster-page-title img {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
    }

    .roster-page-title h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    .roster-page-title span,
    .roster-kicker {
        font-size: 12px;
    }

    .team-roster-page .roster-page-title {
        display: block;
    }

    .team-roster-page .roster-page-title h1 {
        margin: 6px 0;
    }

    .team-roster-page .roster-page-title span {
        display: block;
        max-width: 260px;
        line-height: 1.7;
    }

    .club-teams-box img {
        height: 150px;
    }

    .home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-feature-card span {
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        min-height: 34px;
        padding: 0 12px;
        font-size: 13px;
    }

    .players-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .team-roster-page .roster-section .section-title {
        margin-bottom: 12px;
    }

    .team-roster-page .roster-section .section-title p {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 12px;
        border-radius: 8px;
        color: var(--white);
        background: linear-gradient(135deg, var(--red-dark), var(--red));
        font-size: 14px;
    }

    .player-card {
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(95, 15, 26, .08);
    }

    .player-photo-frame {
        margin: 8px 8px 0;
        height: 210px;
        clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    }

    .player-card h2 {
        min-height: 48px;
        margin: 8px;
        padding: 9px 8px 10px;
        font-size: 14px;
        line-height: 1.35;
    }

    .player-card-position {
        margin: -2px 8px 10px;
        font-size: 12px;
    }

    .player-profile-photo {
        min-height: 420px;
    }

    .player-profile-photo img,
    .player-profile-placeholder {
        min-height: 404px;
    }

    .player-profile-info {
        padding: 20px;
    }

    .player-profile-info h2 {
        font-size: 32px;
    }

    .player-profile-stats,
    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-stat {
        min-height: 110px;
    }

    .player-match-item {
        grid-template-columns: 1fr;
        gap: 7px;
        text-align: center;
    }

    .player-match-item small,
    .player-match-item em,
    .player-match-icons {
        grid-column: auto;
        justify-self: center;
    }

    .substitution-public-card {
        grid-template-columns: 1fr;
    }

    .substitution-minute {
        width: 46px;
        height: 46px;
    }

    .live-match-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-match-event {
        grid-template-columns: 1fr;
    }

    .live-match-event > div {
        grid-template-columns: 1fr;
    }

    .live-match-event > div > strong,
    .live-match-event > div > small,
    .live-match-event > div > p {
        grid-column: 1;
    }

    .live-event-visual {
        grid-row: auto;
        justify-content: flex-start;
    }

    .live-match-timeline::before {
        display: none;
    }

    .match-detail-page .live-match-event {
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: start;
    }

    .match-detail-page .live-match-event > div {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 4px 8px;
    }

    .match-detail-page .live-match-event > div > strong,
    .match-detail-page .live-match-event > div > small,
    .match-detail-page .live-match-event > div > p {
        grid-column: 2;
    }

    .match-detail-page .live-event-visual {
        grid-row: 1 / span 3;
    }

    .match-detail-page .live-match-minute {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .match-detail-page .live-event-icon {
        width: 36px;
        height: 36px;
    }

    .match-detail-page .live-event-icon img {
        width: 23px;
        height: 23px;
    }

    .match-detail-page .live-event-player {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .match-map-panel {
        padding: 12px;
    }

    .match-pitch {
        min-height: 290px;
    }

    .pitch-team {
        max-width: 46%;
        min-height: 36px;
        padding: 4px 7px;
        font-size: 10px;
    }

    .pitch-team-logo {
        width: 26px;
        height: 26px;
    }

    .match-map-marker {
        width: 44px;
        height: 44px;
    }

    .match-map-marker img {
        width: 21px;
        height: 21px;
    }

    .match-detail-page .lineup-panel {
        padding: 10px;
    }

    .match-detail-page .lineup-list li {
        grid-template-columns: 32px 30px minmax(0, 1fr);
        gap: 7px;
        min-height: 58px;
        padding: 8px 9px;
        border-radius: 12px;
    }

    .match-detail-page .lineup-list li::before {
        width: 32px;
        height: 30px;
        font-size: 11px;
    }

    .match-detail-page .lineup-player-photo {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .match-detail-page .lineup-player-photo img {
        border-radius: 8px;
    }

    .match-detail-page .lineup-player-main b {
        font-size: 13px;
    }

    .lineup-badges {
        grid-column: 2 / -1;
        width: 100%;
        margin-inline-start: 0;
        justify-content: flex-start;
    }

    .match-detail-page .lineup-badge {
        min-height: 22px;
        padding: 2px 7px;
        font-size: 10px;
        white-space: normal;
        line-height: 1.4;
    }

    .player-number {
        min-width: 34px;
        height: 40px;
        padding: 0 8px;
        font-size: 20px;
    }

    .facebook-image {
        height: 260px;
    }

    .facebook-card {
        min-height: 0;
    }

    .facebook-card h3 {
        min-height: 52px;
        font-size: 17px;
    }

    .facebook-card a {
        width: calc(100% - 44px);
    }

    .gallery-grid {
        gap: 10px;
    }

    .gallery-card,
    .gallery-card.is-featured {
        min-height: 230px;
    }

    .gallery-card img,
    .gallery-card.is-featured img {
        height: 230px;
    }

    .gallery-card.is-featured {
        grid-row: span 1;
    }

    .gallery-caption {
        right: 10px;
        left: 10px;
        bottom: 10px;
        padding: 11px 12px;
    }

    .gallery-caption h3,
    .gallery-card.is-featured .gallery-caption h3 {
        font-size: 13px;
    }

    .gallery-badge {
        top: 10px;
        right: 10px;
        min-height: 28px;
        padding: 0 10px;
        font-size: 12px;
    }

    .scorers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .scorer-card {
        display: grid;
        grid-template-columns: 1fr;
        text-align: center;
        min-height: 0;
        padding: 9px 9px 12px;
        gap: 0;
    }

    .scorer-photo {
        width: 100%;
        height: 220px;
    }

    .goals-circle {
        top: 177px;
        left: 9px;
        min-width: 46px;
        height: 52px;
        font-size: 25px;
    }

    .scorer-info h3 {
        min-height: 46px;
        margin-top: 10px;
        font-size: 14px;
    }

    .section-title,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-title {
        gap: 10px;
        margin-bottom: 16px;
        padding: 14px;
    }

    .section-title p {
        font-size: 18px;
    }

    .section-title h2 {
        max-width: 100%;
        font-size: 18px;
        text-align: start;
    }

    .competition-table-head {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 12px 14px;
    }

    .competition-table-head img {
        width: 52px;
        height: 52px;
    }

    .competition-table-card .table-wrap {
        margin: 10px;
    }

    .section-action {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .topbar,
    .hero-grid,
    main,
    .ticker,
    .site-footer,
    .teams-page-hero .topbar,
    .teams-page-title,
    .roster-page-title {
        width: min(100% - 20px, 460px);
    }

    main,
    .teams-page-main {
        padding-top: 18px;
        padding-bottom: 42px;
    }

    .content-section {
        margin-top: 28px;
    }

    .ticker + main {
        padding-top: 16px;
    }

    .ticker + main > .content-section:first-child,
    .ticker + main > .home-matches-section:first-child {
        margin-top: 0;
    }

    .ticker + main > .home-matches-section:first-child::before {
        inset: -10px 14% auto;
        opacity: .72;
    }

    .hero {
        min-height: 0;
    }

    .hero-grid {
        gap: 10px;
        padding: 8px 0 34px;
    }

    .ticker {
        min-height: 56px;
        margin-top: -18px;
        box-shadow: 0 14px 34px rgba(95, 15, 26, .2);
    }

    .ticker-fader,
    .ticker-item {
        min-height: 56px;
        height: 56px;
    }

    .ticker-item {
        padding: 0 16px;
        font-size: 13px;
    }

    .match-section,
    .facebook-grid,
    .gallery-grid,
    .competitions-stack,
    .player-match-list {
        gap: 10px;
    }

    .match-card,
    .facebook-card,
    .scorer-card,
    .gallery-card,
    .home-feature-card,
    .schedule-card,
    .competition-table-card,
    .player-profile-hero,
    .profile-stat,
    .profile-bio-panel,
    .detail-panel,
    .empty-roster {
        border-radius: 8px;
        box-shadow: 0 12px 26px rgba(95, 15, 26, .08);
    }

    .match-card,
    .schedule-card,
    .detail-panel,
    .profile-bio-panel {
        padding: 10px;
    }

    .home-matches-section {
        width: min(100%, 430px);
        margin-inline: auto;
    }

    .home-matches-section .section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        gap: 10px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-matches-section .section-title p {
        min-height: 0;
        padding: 0;
        color: var(--red-deep);
        background: transparent;
        font-size: 23px;
        line-height: 1.25;
    }

    .home-matches-section .section-action {
        width: auto;
        min-height: 34px;
        padding: 0 12px;
        border: 1px solid rgba(201, 39, 55, .26);
        border-radius: 8px;
        color: var(--red);
        background: rgba(255, 255, 255, .68);
        box-shadow: none;
    }

    .home-matches-section .match-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-matches-section .match-card {
        padding: 12px;
        overflow: hidden;
        border-radius: 8px;
        border-color: rgba(217, 180, 105, .28);
        background:
            radial-gradient(circle at 10% 0, rgba(217, 180, 105, .2), transparent 34%),
            linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 250, 240, .88)),
            var(--white);
        box-shadow: 0 12px 28px rgba(95, 15, 26, .1);
    }

    .home-matches-section .match-card::after {
        opacity: .28;
    }

    .match-card .card-heading,
    .match-card .match-teams,
    .match-card .meta-row,
    .match-card .score-box,
    .match-card .team-logo,
    .match-card .team b {
        border-radius: 8px;
    }

    .match-card .match-teams {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        padding: 10px 9px 8px;
    }

    .match-card .score-box {
        width: auto;
        min-width: 66px;
        min-height: 54px;
        padding: 6px 5px;
        font-size: 20px;
        border-width: 1px;
        box-shadow: 0 10px 20px rgba(95, 15, 26, .14);
    }

    .match-card .team-logo {
        width: 48px;
        height: 42px;
        padding: 5px;
        border-radius: 8px;
    }

    .match-card .team b {
        min-height: 30px;
        padding: 0 2px;
        background: transparent;
        box-shadow: none;
        font-size: 12px;
        line-height: 1.35;
    }

    .home-matches-section .team {
        gap: 6px;
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-matches-section .team::before,
    .home-matches-section .team::after {
        display: none;
    }

    .home-matches-section .card-heading {
        padding: 0 0 10px;
        border-bottom: 0;
        background: transparent;
    }

    .home-matches-section .card-heading span {
        min-height: 30px;
        padding: 0 11px;
        color: var(--red-deep);
        background: rgba(255, 255, 255, .82);
        box-shadow: 0 8px 18px rgba(217, 180, 105, .12);
        font-size: 12px;
    }

    .home-matches-section .card-heading strong {
        max-width: 58%;
        padding: 6px 10px;
        border-color: rgba(217, 180, 105, .2);
        background: rgba(255, 255, 255, .84);
        font-size: 13px;
    }

    .home-matches-section .match-teams::before {
        display: none;
    }

    .home-matches-section .match-card .match-teams {
        padding: 10px 0 12px;
        border-bottom: 1px solid rgba(109, 114, 128, .18);
    }

    .home-matches-section .score-box strong {
        font-size: 22px;
    }

    .home-matches-section .score-box small {
        margin-top: 3px;
        padding: 2px 5px;
        font-size: 11px;
        line-height: 1.3;
    }

    .home-matches-section .score-box.upcoming strong {
        width: 34px;
        height: 34px;
        margin-bottom: 0;
    }

    .home-matches-section .score-box.upcoming strong::before {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .home-matches-section .meta-row {
        min-height: 32px;
        margin: 0;
        padding: 8px 0 0;
        border: 0;
        background: transparent;
        font-size: 12px;
    }

    .home-matches-section .match-card-action {
        align-self: center;
        width: 100%;
        min-height: 36px;
        margin: 8px 0 0;
        border-radius: 8px;
        font-size: 13px;
    }

    .advanced-stats-shell {
        gap: 12px;
        width: min(100%, 430px);
        margin-inline: auto;
        padding: 12px;
        border-radius: 8px;
    }

    .stats-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

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

    .stat-tile-main {
        grid-column: 1 / -1;
    }

    .stat-tile strong {
        font-size: 30px;
    }

    .stats-showcase,
    .player-stat-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .win-rate-card {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        min-height: 126px;
        padding: 12px;
    }

    .rate-ring {
        width: 88px;
        height: 88px;
    }

    .rate-ring strong {
        font-size: 20px;
    }

    .rate-ring span {
        margin-top: -19px;
        font-size: 10px;
    }

    .win-rate-card h3 {
        font-size: 18px;
    }

    .win-rate-card p {
        font-size: 13px;
        line-height: 1.65;
    }

    .form-card,
    .big-win-card {
        min-height: 112px;
        padding: 12px;
    }

    .form-card strong,
    .big-win-card strong {
        font-size: 19px;
    }

    .form-dot {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .player-stat-card {
        grid-template-columns: 72px minmax(0, 1fr);
        min-height: 104px;
        padding: 10px;
    }

    .player-stat-photo {
        width: 72px;
        height: 82px;
    }

    .player-stat-card h3 {
        margin-bottom: 6px;
        font-size: 17px;
    }

    .player-stat-card strong {
        min-height: 28px;
        font-size: 13px;
    }

    .match-card-action,
    .section-action,
    .schedule-details-link {
        min-height: 38px;
        border-radius: 8px;
        font-size: 13px;
    }

    .section-title {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 8px;
    }

    .section-title p {
        width: fit-content;
        min-height: 30px;
        padding: 0 11px;
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 17px;
        line-height: 1.55;
    }

    .home-feature-card img,
    .facebook-image,
    .gallery-card img,
    .gallery-card.is-featured img {
        height: 210px;
    }

    .home-feature-card span,
    .gallery-caption,
    .facebook-card h3 {
        border-radius: 8px;
    }

    .facebook-card {
        padding-bottom: 12px;
    }

    .facebook-card h3 {
        min-height: 44px;
        margin: 10px;
        padding: 10px 12px;
        font-size: 15px;
    }

    .facebook-card p {
        margin-inline: 12px;
        font-size: 13px;
        line-height: 1.75;
    }

    .scorers-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px 8px;
        width: min(100%, 360px);
        margin-inline: auto;
    }

    .scorer-card {
        grid-column: span 2;
        overflow: visible;
        padding: 8px 5px 6px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .scorers-grid .scorer-card:nth-child(4):nth-last-child(2) {
        grid-column: 2 / span 2;
    }

    .scorer-photo {
        width: 66px;
        height: 66px;
        margin-inline: auto;
        padding: 3px;
        border-radius: 50%;
        clip-path: none;
        background: linear-gradient(135deg, var(--red-deep), var(--red), var(--gold));
        box-shadow: 0 10px 20px rgba(95, 15, 26, .14);
    }

    .scorer-photo img,
    .scorer-photo span {
        border-radius: 50%;
        clip-path: none;
    }

    .goals-circle {
        top: 51px;
        left: calc(50% - 34px);
        min-width: 28px;
        height: 28px;
        border-width: 2px;
        font-size: 16px;
        box-shadow: 0 8px 16px rgba(95, 15, 26, .16);
    }

    .scorer-info h3 {
        min-height: 34px;
        margin: 8px 0 0;
        padding: 0;
        color: var(--red-deep);
        background: transparent;
        font-size: 12px;
        line-height: 1.35;
        text-shadow: none;
    }

    .competition-table-card {
        margin-inline: -2px;
    }

    .competition-table-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
    }

    .competition-table-head p {
        min-height: 26px;
        padding: 0 9px;
        font-size: 12px;
    }

    .competition-table-head h3 {
        font-size: 18px;
        line-height: 1.4;
    }

    .competition-table-head img {
        width: 44px;
        height: 44px;
        padding: 5px;
        border-radius: 8px;
    }

    .competition-table-card .table-wrap {
        margin: 8px;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        box-shadow: inset 0 0 0 1px rgba(232, 225, 210, .7), 0 10px 22px rgba(95, 15, 26, .06);
        scroll-snap-type: x proximity;
    }

    .table-wrap::-webkit-scrollbar {
        height: 5px;
    }

    .table-wrap::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(201, 39, 55, .42);
    }

    .league-table {
        min-width: 650px;
    }

    .league-table th,
    .league-table td {
        padding: 10px 8px;
        font-size: 12px;
        white-space: nowrap;
    }

    .league-table th:first-child,
    .league-table td:first-child {
        position: sticky;
        right: 0;
        z-index: 2;
    }

    .league-table th:first-child {
        background: linear-gradient(135deg, var(--red-deep), var(--red-dark));
    }

    .league-table td:first-child {
        background: #fff;
        box-shadow: -8px 0 18px rgba(95, 15, 26, .06);
    }

    .team-name {
        min-width: 170px;
    }

    .team-cell {
        grid-template-columns: 34px minmax(100px, 1fr);
        gap: 8px;
        width: 170px;
    }

    .table-logo {
        width: 34px;
        height: 34px;
    }

    .points {
        min-width: 32px;
        height: 28px;
        border-radius: 8px;
    }

    .player-profile-hero,
    .player-profile-stats,
    .profile-info-grid {
        gap: 10px;
    }

    .profile-info-grid article,
    .profile-stat {
        min-height: 92px;
        padding: 12px;
    }

    .profile-stat {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .profile-stat-icon {
        width: 54px;
        height: 54px;
    }

    .profile-stat strong {
        font-size: 34px;
    }

    .player-match-item {
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 10px 22px rgba(95, 15, 26, .06);
    }

    .player-match-icons {
        min-width: 86px;
        padding: 6px 8px;
    }
}

@media (max-width: 640px) {
    .competitions-section,
    .league-section {
        width: min(100%, 430px);
        margin-inline: auto;
    }

    .competitions-section .section-title,
    .league-section .section-title {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .competition-table-card {
        overflow: hidden;
        border: 0;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(95, 15, 26, .07);
    }

    .competition-table-card::before {
        display: none;
    }

    .competition-table-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 58px;
        padding: 12px 12px 10px;
        border-bottom: 0;
        background: #fff;
    }

    .competition-table-head::after {
        display: none;
    }

    .competition-table-head h3 {
        font-size: 22px;
        line-height: 1.3;
    }

    .competition-table-head p {
        justify-self: start;
        min-height: 28px;
        padding: 0 10px;
        background: rgba(217, 180, 105, .18);
        font-size: 12px;
    }

    .competition-table-head img {
        width: 44px;
        height: 44px;
        padding: 5px;
        border-radius: 8px;
        box-shadow: 0 8px 18px rgba(95, 15, 26, .08);
    }

    .competition-table-card .table-wrap {
        margin: 0;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }

    .league-table {
        min-width: 500px;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: fixed;
    }

    .league-table th,
    .league-table td {
        height: 52px;
        padding: 8px 4px;
        border-bottom: 1px solid rgba(232, 225, 210, .62);
        font-size: 12px;
        font-weight: 800;
        white-space: nowrap;
    }

    .league-table th {
        height: 38px;
        color: var(--muted);
        background: #f7f7fb;
        font-size: 0;
        font-weight: 900;
    }

    .league-table th::after {
        font-size: 12px;
    }

    .league-table th:nth-child(1)::after { content: "#"; }
    .league-table th:nth-child(2)::after { content: "الفريق"; }
    .league-table th:nth-child(3)::after { content: "ف"; }
    .league-table th:nth-child(4)::after { content: "ت"; }
    .league-table th:nth-child(5)::after { content: "خ"; }
    .league-table th:nth-child(6)::after { content: "له"; }
    .league-table th:nth-child(7)::after { content: "ع"; }
    .league-table th:nth-child(8)::after { content: "+/-"; }
    .league-table th:nth-child(9)::after { content: "ن"; }

    .league-table th:first-child,
    .league-table td:first-child {
        position: static;
        right: auto;
        z-index: auto;
        width: 32px;
    }

    .league-table th:nth-child(2),
    .league-table td:nth-child(2) {
        width: 132px;
    }

    .league-table th:nth-child(n+3),
    .league-table td:nth-child(n+3) {
        width: 40px;
    }

    .league-table th:first-child {
        background: #f7f7fb;
    }

    .league-table td:first-child {
        color: var(--ink);
        background: #fff;
        box-shadow: inset -3px 0 rgba(64, 132, 245, .72);
    }

    .league-table tbody tr:nth-child(6) td:first-child {
        box-shadow: inset -3px 0 rgba(239, 117, 62, .82);
    }

    .league-table tbody tr:nth-child(n+7) td:first-child {
        box-shadow: inset -3px 0 rgba(26, 171, 111, .72);
    }

    .league-table tbody tr:first-child td:first-child strong {
        display: inline-grid;
        place-items: center;
        min-width: 28px;
        height: 28px;
        border-radius: 50%;
        color: var(--red-deep);
        background: linear-gradient(135deg, #fff8e7, var(--gold));
        box-shadow: 0 8px 16px rgba(217, 180, 105, .2);
    }

    .team-name {
        min-width: 132px;
        text-align: start !important;
    }

    .team-cell {
        grid-template-columns: 30px minmax(76px, 1fr);
        justify-items: start;
        gap: 6px;
        width: 128px;
        margin-inline: 0;
    }

    .team-cell span {
        overflow: hidden;
        text-align: start;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .table-logo {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .points {
        min-width: 28px;
        height: 26px;
        border-radius: 8px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .teams-page-hero .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .teams-page-hero .brand span {
        max-width: 100%;
    }

    .inner-page-actions {
        width: 100%;
        justify-content: stretch;
    }

    .inner-page-actions .admin-link {
        flex: 1 1 0;
    }

    .home-matches-section {
        width: min(100%, 360px);
    }

    .home-matches-section .section-title p {
        font-size: 21px;
    }

    .home-matches-section .section-action {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .home-matches-section .match-card {
        padding: 10px;
    }

    .home-matches-section .match-card .match-teams {
        gap: 6px;
        padding: 8px 0 10px;
    }

    .home-matches-section .match-card .team-logo {
        width: 42px;
        height: 38px;
        padding: 4px;
    }

    .home-matches-section .match-card .team b {
        min-height: 28px;
        font-size: 11px;
    }

    .home-matches-section .match-card .score-box {
        min-width: 58px;
        min-height: 50px;
        padding: 5px 4px;
    }

    .home-matches-section .score-box strong {
        font-size: 18px;
    }

    .home-matches-section .score-box small {
        max-width: 54px;
        font-size: 10px;
    }

    .home-matches-section .card-heading strong {
        max-width: 54%;
    }

    .schedule-season-stats {
        grid-template-columns: 1fr;
    }

    .schedule-card {
        padding: 10px;
    }

    .schedule-date {
        padding: 9px 10px;
    }

    .schedule-date span {
        font-size: 23px;
    }

    .schedule-date small {
        font-size: 12px;
    }

    .schedule-teams {
        gap: 6px;
    }

    .schedule-team-logo {
        width: 42px;
        height: 38px;
        padding: 5px;
    }

    .schedule-team b {
        font-size: 12px;
    }

    .schedule-score {
        min-width: 56px;
        min-height: 42px;
        padding: 0 6px;
        font-size: 15px;
    }

    .home-feature-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card.is-featured {
        grid-column: span 1;
    }

    .club-teams-box img,
    .home-feature-card img {
        height: 160px;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }

    .player-photo-frame {
        height: 250px;
    }

    .player-profile-photo {
        min-height: 360px;
    }

    .player-profile-photo img,
    .player-profile-placeholder {
        min-height: 344px;
    }

    .profile-number {
        min-width: 54px;
        height: 62px;
        font-size: 32px;
    }

    .scorers-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        width: min(100%, 320px);
        margin-inline: auto;
    }

    .scorer-photo {
        width: 58px;
        height: 58px;
    }

    .goals-circle {
        top: 46px;
        left: calc(50% - 31px);
        min-width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .scorer-info h3 {
        min-height: 32px;
        font-size: 11px;
    }

    .team-roster-page .players-grid {
        width: min(310px, 100%);
        margin-inline: auto;
    }

    .teams-list-page .club-team-card {
        min-height: 52px;
    }

    .league-table {
        min-width: 470px;
    }

    .league-table th {
        padding: 8px 3px;
        font-size: 0;
    }

    .league-table td {
        padding: 8px 3px;
        font-size: 11px;
    }

    .league-table th::after {
        font-size: 11px;
    }

    .league-table th:nth-child(2),
    .league-table td:nth-child(2) {
        width: 120px;
    }

    .team-name {
        min-width: 120px;
    }

    .team-cell {
        grid-template-columns: 28px minmax(68px, 1fr);
        width: 116px;
        gap: 5px;
    }

    .table-logo {
        width: 28px;
        height: 28px;
    }
}

/* Premium interactive match map */
@keyframes matchMapSheen {
    0% {
        transform: translateX(42%) rotate(12deg);
        opacity: 0;
    }
    26% {
        opacity: .55;
    }
    62% {
        opacity: .12;
    }
    100% {
        transform: translateX(-140%) rotate(12deg);
        opacity: 0;
    }
}

@keyframes mapMarkerSignal {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .38), 0 18px 34px rgba(20, 3, 7, .32);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0), 0 18px 34px rgba(20, 3, 7, .32);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 18px 34px rgba(20, 3, 7, .32);
    }
}

.match-map-panel {
    border-color: rgba(217, 180, 105, .32);
    background:
        radial-gradient(circle at 18% 6%, rgba(217, 180, 105, .26), transparent 28%),
        radial-gradient(circle at 88% 96%, rgba(201, 39, 55, .12), transparent 30%),
        linear-gradient(135deg, #fff, #fff8ec 58%, #fff2df);
    box-shadow: 0 22px 54px rgba(95, 15, 26, .1);
}

.match-map-panel::after {
    content: "";
    position: absolute;
    top: -38%;
    bottom: -38%;
    width: 34%;
    right: -12%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .56), transparent);
    pointer-events: none;
    animation: matchMapSheen 7s ease-in-out infinite;
}

.match-map-head {
    position: relative;
    z-index: 2;
}

.match-map-head small {
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    box-shadow: 0 10px 22px rgba(143, 23, 36, .16);
}

.match-map-head h2 {
    letter-spacing: 0;
}

.match-map-filters {
    padding: 5px;
    border: 1px solid rgba(217, 180, 105, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .64);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.match-map-filters button {
    position: relative;
    min-height: 34px;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
}

.match-map-filters button::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-inline-end: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .5;
}

.match-map-filters button:hover,
.match-map-filters button.is-active {
    box-shadow: 0 10px 22px rgba(143, 23, 36, .14);
}

.match-map-layout {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.65fr) minmax(270px, .78fr);
    align-items: stretch;
}

.match-pitch {
    min-height: 420px;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .36) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
        radial-gradient(circle at 50% 50%, transparent 0 10%, rgba(255, 255, 255, .3) 10.4% 10.9%, transparent 11.3%),
        radial-gradient(circle at 17% 18%, rgba(217, 180, 105, .2), transparent 24%),
        radial-gradient(circle at 88% 78%, rgba(255, 255, 255, .08), transparent 28%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 52px, rgba(255, 255, 255, .018) 52px 104px),
        linear-gradient(135deg, #64101d, #8f1724 48%, #4d0b16);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .12),
        inset 0 26px 70px rgba(255, 255, 255, .04),
        0 24px 54px rgba(95, 15, 26, .2);
}

.match-pitch::before {
    inset: 22px;
    border-color: rgba(255, 255, 255, .38);
    border-radius: 12px;
    box-shadow:
        inset 0 0 0 1px rgba(217, 180, 105, .18),
        inset 52px 0 0 -48px rgba(255, 255, 255, .16),
        inset -52px 0 0 -48px rgba(255, 255, 255, .16);
}

.match-pitch::after {
    width: 96px;
    height: 96px;
    border-color: rgba(255, 255, 255, .34);
    box-shadow:
        0 0 0 2px rgba(217, 180, 105, .12),
        inset 0 0 26px rgba(255, 255, 255, .06);
}

.pitch-team {
    max-width: min(46%, 280px);
    min-height: 46px;
    padding: 6px 11px;
    border-color: rgba(255, 255, 255, .26);
    background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07));
    box-shadow: 0 14px 28px rgba(20, 3, 7, .18);
}

.pitch-team-logo {
    width: 32px;
    height: 32px;
    box-shadow: 0 8px 18px rgba(20, 3, 7, .18);
}

.match-map-marker {
    width: 58px;
    height: 58px;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 18px 18px 18px 4px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .3), transparent 26%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: mapMarkerSignal 3.2s ease-out infinite;
}

.match-map-marker::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 22px 22px 22px 6px;
    border: 1px solid rgba(255, 255, 255, .18);
    opacity: 0;
    transition: opacity .2s ease;
}

.match-map-marker:hover,
.match-map-marker.is-active {
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.1);
}

.match-map-marker:hover::before,
.match-map-marker.is-active::before {
    opacity: 1;
}

.match-map-marker img,
.match-map-marker span {
    transform: rotate(45deg);
}

.match-map-marker img {
    width: 25px;
    height: 25px;
    filter: drop-shadow(0 4px 8px rgba(20, 3, 7, .18));
}

.match-map-marker span {
    right: -12px;
    bottom: -12px;
    min-width: 32px;
    min-height: 24px;
    border-color: rgba(255, 255, 255, .95);
    box-shadow: 0 8px 18px rgba(20, 3, 7, .16);
}

.match-map-goal,
.match-map-penalty {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .34), transparent 26%),
        linear-gradient(135deg, #8f1724, #c92737 52%, #ef4a57);
}

.match-map-yellow {
    color: var(--red-deep);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .5), transparent 26%),
        linear-gradient(135deg, #f1d48c, #ffd45f 58%, #b97913);
}

.match-map-red {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .28), transparent 26%),
        linear-gradient(135deg, #3d0710, #8f1724 48%, #d42838);
}

.match-map-substitution {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 26%),
        linear-gradient(135deg, #805407, #d9b469 52%, #fff0bd);
}

.match-map-substitution img {
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(20, 3, 7, .18));
}

.match-map-empty {
    border-radius: 12px;
    background:
        radial-gradient(circle at 20% 0, rgba(217, 180, 105, .24), transparent 34%),
        rgba(95, 15, 26, .78);
}

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

    .match-pitch {
        min-height: 360px;
    }

}

@media (max-width: 520px) {
    .match-map-panel {
        padding: 11px;
    }

    .match-map-head h2 {
        font-size: 20px;
    }

    .match-map-head p {
        font-size: 12px;
        line-height: 1.6;
    }

    .match-map-filters {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        padding: 4px;
        border-radius: 12px;
    }

    .match-map-filters button {
        min-height: 32px;
        padding: 0 4px;
        font-size: 11px;
    }

    .match-map-filters button::before {
        display: none;
    }

    .match-pitch {
        min-height: 300px;
        border-radius: 12px;
    }

    .match-pitch::before {
        inset: 14px;
    }

    .match-pitch::after {
        width: 72px;
        height: 72px;
    }

    .pitch-team {
        max-width: 48%;
        min-height: 36px;
        padding: 4px 7px;
        gap: 5px;
        font-size: 10px;
    }

    .pitch-team-logo {
        width: 24px;
        height: 24px;
    }

    .match-map-marker {
        width: 44px;
        height: 44px;
        border-radius: 14px 14px 14px 4px;
    }

    .match-map-marker img {
        width: 19px;
        height: 19px;
    }

    .match-map-marker span {
        right: -10px;
        bottom: -10px;
        min-width: 27px;
        min-height: 20px;
        padding: 0 5px;
        font-size: 10px;
    }

}

/* Full-field match map: no side event list */
.match-map-layout {
    grid-template-columns: 1fr !important;
}

.match-map-panel {
    padding: clamp(12px, 2vw, 20px);
    background:
        radial-gradient(circle at 12% 8%, rgba(217, 180, 105, .24), transparent 26%),
        radial-gradient(circle at 86% 92%, rgba(201, 39, 55, .15), transparent 30%),
        linear-gradient(135deg, #fff, #fff8ec 54%, #fff0da);
}

.match-map-head {
    align-items: center;
    padding: 0 2px 2px;
}

.match-map-head h2 {
    font-size: clamp(24px, 3.2vw, 38px);
}

.match-map-head p {
    max-width: 780px;
}

.match-pitch {
    min-height: clamp(360px, 52vw, 560px);
    border-radius: 18px;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .44) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(90deg, transparent 0 9%, rgba(255, 255, 255, .22) 9% 9.4%, transparent 9.4% 90.6%, rgba(255, 255, 255, .22) 90.6% 91%, transparent 91%),
        linear-gradient(180deg, transparent 0 20%, rgba(255, 255, 255, .16) 20% 20.5%, transparent 20.5% 79.5%, rgba(255, 255, 255, .16) 79.5% 80%, transparent 80%),
        radial-gradient(circle at 50% 50%, transparent 0 9.5%, rgba(255, 255, 255, .36) 9.8% 10.4%, transparent 10.7%),
        radial-gradient(circle at 16% 18%, rgba(217, 180, 105, .25), transparent 23%),
        radial-gradient(circle at 88% 80%, rgba(255, 255, 255, .12), transparent 28%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 58px, rgba(255, 255, 255, .018) 58px 116px),
        linear-gradient(135deg, #4f0a15, #7d1221 42%, #a31d2d 70%, #580b17);
}

.match-pitch::before {
    inset: 24px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, .46);
    border-radius: 16px;
    box-shadow:
        inset 70px 0 0 -62px rgba(255, 255, 255, .2),
        inset -70px 0 0 -62px rgba(255, 255, 255, .2),
        inset 0 0 0 1px rgba(217, 180, 105, .22),
        inset 0 0 70px rgba(255, 255, 255, .05);
}

.match-pitch::after {
    width: clamp(80px, 14vw, 130px);
    height: clamp(80px, 14vw, 130px);
    border-color: rgba(255, 255, 255, .42);
}

.pitch-team {
    max-width: min(44%, 330px);
    min-height: 52px;
    padding: 7px 14px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08)),
        rgba(95, 15, 26, .28);
}

.pitch-team-logo {
    width: 36px;
    height: 36px;
}

.match-map-marker {
    width: 64px;
    height: 64px;
    border-radius: 20px 20px 20px 5px;
}

.match-map-marker::after {
    content: attr(aria-label);
    position: absolute;
    right: 50%;
    bottom: calc(100% + 12px);
    z-index: 3;
    width: max-content;
    max-width: 210px;
    padding: 7px 10px;
    border: 1px solid rgba(217, 180, 105, .5);
    border-radius: 999px;
    color: var(--red-deep);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 28px rgba(20, 3, 7, .18);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translateX(50%) rotate(45deg) translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.match-map-marker:hover::after,
.match-map-marker.is-active::after {
    opacity: 1;
    transform: translateX(50%) rotate(45deg) translateY(0);
}

.match-map-marker img {
    width: 28px;
    height: 28px;
}

.match-map-marker span {
    min-width: 34px;
    min-height: 24px;
}

@media (max-width: 720px) {
    .match-map-head {
        align-items: stretch;
    }

    .match-pitch {
        min-height: 330px;
        border-radius: 14px;
    }

    .pitch-team {
        max-width: 50%;
        min-height: 40px;
        padding: 5px 8px;
        border-radius: 999px;
        font-size: 10px;
    }

    .pitch-team-logo {
        width: 26px;
        height: 26px;
    }

    .match-map-marker {
        width: 46px;
        height: 46px;
        border-width: 2px;
        border-radius: 15px 15px 15px 4px;
    }

    .match-map-marker::after {
        display: none;
    }

    .match-map-marker img {
        width: 20px;
        height: 20px;
    }
}

/* RTL correction for visual match statistics */
.visual-stats-panel {
    direction: rtl;
}

.visual-stats-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: rtl;
}

.visual-team-one,
.visual-team-two {
    flex: 1 1 0;
    min-width: 0;
}

.visual-team-one {
    justify-content: flex-start;
}

.visual-team-two {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.visual-stats-score {
    flex: 0 0 auto;
}

.visual-stat-row {
    display: flex;
    align-items: center;
    direction: rtl;
}

.visual-stat-one-value,
.visual-stat-two-value {
    flex: 0 0 48px;
}

.visual-stat-center {
    flex: 1 1 auto;
}

.visual-stat-bars {
    direction: rtl;
}

.visual-stat-one {
    order: 1;
}

.visual-stat-two {
    order: 2;
}

@media (max-width: 520px) {
    .visual-stat-one-value,
    .visual-stat-two-value {
        flex-basis: 38px;
    }

    .visual-team-one,
    .visual-team-two {
        font-size: 11px;
    }
}

/* Ambiguity-free match result display */
.team-score-badge {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 14px;
    color: var(--white);
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .24), transparent 28%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(95, 15, 26, .2);
}

.team .team-score-badge,
.schedule-team .team-score-badge {
    margin-top: 2px;
}

.match-center-label,
.schedule-score-label,
.visual-stats-score {
    white-space: nowrap;
}

.score-box .match-center-label {
    font-size: 22px;
}

.schedule-score.schedule-score-label {
    color: var(--white);
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .22), transparent 30%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    font-size: 16px;
}

.detail-team-score {
    margin-top: 4px;
    min-width: 48px;
    height: 48px;
    font-size: 27px;
}

.visual-team-score {
    min-width: 32px;
    height: 32px;
    border-radius: 11px;
    font-size: 18px;
}

.visual-stats-score {
    min-width: 82px;
}

.visual-team-one,
.visual-team-two {
    gap: 8px;
}

@media (max-width: 720px) {
    .team-score-badge {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        border-radius: 11px;
        font-size: 19px;
    }

    .score-box .match-center-label {
        font-size: 14px;
    }

    .schedule-score.schedule-score-label {
        font-size: 12px;
    }

    .detail-team-score {
        min-width: 34px;
        height: 34px;
        font-size: 19px;
    }

    .visual-team-score {
        min-width: 26px;
        height: 26px;
        border-radius: 9px;
        font-size: 14px;
    }

    .visual-stats-score {
        min-width: 58px;
        font-size: 11px;
    }
}

/* Match day premium home interface */
.ticker + main > .match-day-section:first-child {
    margin-top: 0;
}

.match-day-section {
    scroll-margin-top: 18px;
}

.match-day-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(217, 180, 105, .36);
    border-radius: 10px;
    background:
        radial-gradient(circle at 13% 10%, rgba(217, 180, 105, .24), transparent 28%),
        radial-gradient(circle at 88% 100%, rgba(201, 39, 55, .14), transparent 30%),
        linear-gradient(135deg, #fff, #fff7e9 58%, #fff0dc);
    box-shadow: 0 24px 58px rgba(95, 15, 26, .12);
}

.match-day-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--red-deep), var(--red), var(--gold));
}

.match-day-card::after {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: -1;
    border: 1px solid rgba(217, 180, 105, .18);
    border-radius: 8px;
    pointer-events: none;
}

.match-day-copy {
    display: grid;
    align-content: center;
    gap: 9px;
    min-width: 0;
}

.match-day-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(143, 23, 36, .16);
}

.match-day-kicker i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(217, 180, 105, .2);
    animation: livePulse 1.8s ease-out infinite;
}

.match-day-copy h2 {
    margin: 0;
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: clamp(24px, 3.2vw, 42px);
    line-height: 1.15;
}

.match-day-copy p {
    margin: 0;
    color: var(--muted);
    font-weight: 900;
}

.match-day-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, .44fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    min-width: 0;
}

.match-day-stage::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 8%;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 180, 105, .62), transparent);
    transform: translateY(-50%);
    pointer-events: none;
}

.match-day-team,
.match-day-center {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 148px;
    padding: 14px 10px;
    border: 1px solid rgba(217, 180, 105, .28);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 0, rgba(217, 180, 105, .18), transparent 44%),
        rgba(255, 255, 255, .78);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.match-day-logo {
    width: 74px;
    height: 70px;
    object-fit: contain;
    padding: 8px;
    border: 1px solid rgba(217, 180, 105, .42);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(95, 15, 26, .1);
}

.match-day-team strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 36px;
    color: var(--red-deep);
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.match-day-center {
    color: var(--white);
    background:
        radial-gradient(circle at 30% 16%, rgba(255, 255, 255, .2), transparent 32%),
        linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
    box-shadow: 0 18px 34px rgba(95, 15, 26, .2);
}

.match-day-center span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, var(--gold));
    font-size: 12px;
    font-weight: 900;
}

.match-day-center strong {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1;
}

.match-day-center small {
    color: rgba(255, 255, 255, .82);
    font-weight: 900;
}

.match-day-score {
    min-width: 48px;
    height: 48px;
    font-size: 28px;
}

.match-day-meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid rgba(217, 180, 105, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.match-day-meta span {
    color: var(--muted);
    font-weight: 900;
}

.match-day-meta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(95, 15, 26, .14);
}

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

    .match-day-copy {
        text-align: center;
        justify-items: center;
    }
}

@media (max-width: 520px) {
    .match-day-card {
        gap: 11px;
        padding: 12px;
        border-radius: 8px;
    }

    .match-day-stage {
        grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
        gap: 7px;
    }

    .match-day-team,
    .match-day-center {
        min-height: 104px;
        gap: 5px;
        padding: 9px 5px;
        border-radius: 8px;
    }

    .match-day-logo {
        width: 46px;
        height: 44px;
        padding: 5px;
        border-radius: 8px;
    }

    .match-day-team strong {
        min-height: 28px;
        font-size: 11px;
    }

    .match-day-center span {
        min-height: 21px;
        padding: 0 6px;
        font-size: 10px;
    }

    .match-day-center strong {
        font-size: 15px;
    }

    .match-day-center small {
        font-size: 10px;
    }

    .match-day-score {
        min-width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .match-day-meta {
        align-items: stretch;
        flex-direction: column;
        min-height: 0;
        text-align: center;
    }

    .match-day-meta a {
        width: 100%;
    }
}

/* Premium visual match statistics infographic */
.visual-stats-panel {
    border-color: rgba(217, 180, 105, .32);
    background:
        radial-gradient(circle at 10% 8%, rgba(217, 180, 105, .26), transparent 26%),
        radial-gradient(circle at 92% 0, rgba(201, 39, 55, .11), transparent 30%),
        linear-gradient(135deg, #fff, #fff8ec 54%, #fff0dc);
    box-shadow: 0 24px 56px rgba(95, 15, 26, .1);
}

.visual-stats-panel::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 180, 105, .72), transparent);
}

.visual-stats-head {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.visual-stats-head small {
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    box-shadow: 0 12px 24px rgba(143, 23, 36, .16);
}

.visual-stats-head span {
    color: var(--red-deep);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 240, 190, .72));
    border: 1px solid rgba(217, 180, 105, .36);
}

.visual-stats-teams {
    position: relative;
    overflow: hidden;
    padding: 12px;
    border-color: rgba(217, 180, 105, .45);
    background:
        linear-gradient(90deg, rgba(143, 23, 36, .05), transparent 36%, rgba(217, 180, 105, .18)),
        rgba(255, 255, 255, .82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.visual-stats-teams::before {
    content: "";
    position: absolute;
    inset: 50% 12px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 39, 55, .18), transparent);
}

.visual-stats-logo {
    border: 1px solid rgba(217, 180, 105, .38);
    box-shadow: 0 12px 24px rgba(95, 15, 26, .1);
}

.visual-stats-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.visual-stat-row {
    --stat-accent: var(--red);
    --stat-accent-deep: var(--red-deep);
    position: relative;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px;
    min-height: 108px;
    overflow: hidden;
    padding: 12px;
    border-color: rgba(217, 180, 105, .28);
    background:
        radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--stat-accent) 16%, transparent), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 248, 231, .68));
    box-shadow: 0 14px 30px rgba(95, 15, 26, .07);
}

.visual-stat-row::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--stat-accent-deep), var(--stat-accent), var(--gold));
}

.visual-stat-row::after {
    content: "";
    position: absolute;
    width: 92px;
    height: 92px;
    left: -30px;
    bottom: -36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--stat-accent) 10%, transparent);
    pointer-events: none;
}

.visual-stat-possession {
    --stat-accent: #c92737;
    --stat-accent-deep: #6f1020;
}

.visual-stat-shots {
    --stat-accent: #d83b45;
    --stat-accent-deep: #8f1724;
}

.visual-stat-target {
    --stat-accent: #b61f2e;
    --stat-accent-deep: #5f0f1a;
}

.visual-stat-corners {
    --stat-accent: #d9b469;
    --stat-accent-deep: #94670c;
}

.visual-stat-fouls {
    --stat-accent: #a0182a;
    --stat-accent-deep: #4a0712;
}

.visual-stat-offsides {
    --stat-accent: #ef4a57;
    --stat-accent-deep: #8f1724;
}

.visual-stat-saves {
    --stat-accent: #bf8a19;
    --stat-accent-deep: #6f4708;
}

.visual-stat-value {
    position: relative;
    z-index: 1;
    min-height: 48px;
    border: 1px solid color-mix(in srgb, var(--stat-accent) 22%, transparent);
    color: var(--stat-accent-deep);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 244, 224, .82));
    font-size: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 20px rgba(95, 15, 26, .06);
}

.visual-stat-center {
    position: relative;
    z-index: 1;
    align-self: stretch;
    grid-template-rows: 1fr auto;
    gap: 10px;
}

.visual-stat-label {
    flex-direction: column;
    gap: 6px;
    min-height: 62px;
}

.visual-stat-label span {
    position: relative;
    width: 42px;
    height: 42px;
    color: transparent;
    background:
        conic-gradient(from 140deg, var(--stat-accent), var(--gold), var(--stat-accent-deep), var(--stat-accent));
    box-shadow: 0 12px 24px color-mix(in srgb, var(--stat-accent) 22%, transparent);
    font-size: 0;
}

.visual-stat-label span::before {
    content: "";
    position: absolute;
    inset: 7px;
    display: grid;
    place-items: center;
    border-radius: inherit;
    color: var(--white);
    background: linear-gradient(135deg, var(--stat-accent-deep), var(--stat-accent));
    font-size: 15px;
    font-weight: 900;
}

.visual-stat-possession .visual-stat-label span::before { content: "%"; }
.visual-stat-shots .visual-stat-label span::before { content: "◉"; }
.visual-stat-target .visual-stat-label span::before { content: "◎"; }
.visual-stat-corners .visual-stat-label span::before { content: "⌟"; }
.visual-stat-fouls .visual-stat-label span::before { content: "!"; }
.visual-stat-offsides .visual-stat-label span::before { content: "↗"; }
.visual-stat-saves .visual-stat-label span::before { content: "▣"; }

.visual-stat-label b {
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
}

.visual-stat-bars {
    position: relative;
    height: 14px;
    padding: 2px;
    gap: 3px;
    border: 1px solid rgba(217, 180, 105, .24);
    background:
        linear-gradient(90deg, rgba(143, 23, 36, .08), rgba(217, 180, 105, .14));
}

.visual-stat-bars::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(217, 180, 105, .24);
    transform: translate(-50%, -50%);
    z-index: 2;
}

.visual-stat-bars i {
    border-radius: 999px;
}

.visual-stat-one {
    background:
        linear-gradient(90deg, var(--stat-accent-deep), var(--stat-accent));
    box-shadow: 0 8px 16px color-mix(in srgb, var(--stat-accent) 18%, transparent);
}

.visual-stat-two {
    background:
        linear-gradient(90deg, #fff0bd, var(--gold), #b98218);
    box-shadow: 0 8px 16px rgba(217, 180, 105, .16);
}

.visual-stat-row:first-child {
    grid-column: 1 / -1;
    min-height: 116px;
}

.visual-stat-row:first-child .visual-stat-label {
    min-height: 70px;
}

.visual-stat-row:first-child .visual-stat-label span {
    width: 52px;
    height: 52px;
}

.visual-stat-row:first-child .visual-stat-label span::before {
    inset: 8px;
    font-size: 18px;
}

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

    .visual-stat-row:first-child {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .visual-stats-list {
        gap: 8px;
    }

    .visual-stat-row {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        min-height: 92px;
        padding: 9px;
    }

    .visual-stat-value {
        min-height: 38px;
        font-size: 13px;
    }

    .visual-stat-label {
        min-height: 52px;
        gap: 4px;
    }

    .visual-stat-label span,
    .visual-stat-row:first-child .visual-stat-label span {
        width: 34px;
        height: 34px;
    }

    .visual-stat-label span::before,
    .visual-stat-row:first-child .visual-stat-label span::before {
        inset: 6px;
        font-size: 12px;
    }

    .visual-stat-label b {
        font-size: 12px;
    }

    .visual-stat-bars {
        height: 11px;
    }
}

@media (max-width: 640px) {
    .competition-table-card .table-wrap {
        overflow-x: hidden;
        width: 100%;
    }

    .league-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .league-table th,
    .league-table td {
        height: 46px;
        padding: 7px 1px;
        font-size: 10px;
        letter-spacing: 0;
    }

    .league-table th {
        height: 34px;
        font-size: 0;
    }

    .league-table th::after {
        font-size: 10px;
    }

    .league-table th:first-child,
    .league-table td:first-child {
        width: 6.5%;
    }

    .league-table th:nth-child(2),
    .league-table td:nth-child(2) {
        width: 29.5%;
    }

    .league-table th:nth-child(n+3),
    .league-table td:nth-child(n+3) {
        width: 9.1%;
    }

    .team-name {
        min-width: 0;
    }

    .team-cell {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 3px;
        width: 100%;
    }

    .team-cell span {
        font-size: 10px;
        line-height: 1.25;
    }

    .table-logo {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .points {
        min-width: 22px;
        height: 22px;
        border-radius: 7px;
        font-size: 10px;
    }

    .league-table tbody tr:first-child td:first-child strong {
        min-width: 22px;
        height: 22px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .gallery-card,
    .gallery-card.is-featured {
        min-height: 128px;
        border-radius: 8px;
        box-shadow: 0 10px 22px rgba(95, 15, 26, .08);
    }

    .gallery-card.is-featured {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 190px;
    }

    .gallery-card img,
    .gallery-card.is-featured img {
        height: 128px;
    }

    .gallery-card.is-featured img {
        height: 190px;
    }

    .gallery-card::after {
        inset: 7px;
    }

    .gallery-badge {
        top: 8px;
        right: 8px;
        min-height: 24px;
        padding: 0 8px;
        font-size: 11px;
    }

    .gallery-caption {
        right: 8px;
        left: 8px;
        bottom: 8px;
        gap: 3px;
        padding: 8px;
        border-radius: 8px;
    }

    .gallery-caption h3,
    .gallery-card.is-featured .gallery-caption h3 {
        font-size: 12px;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }

    .gallery-caption time {
        font-size: 10px;
    }

    .gallery-lightbox {
        padding: 10px;
    }

    .gallery-lightbox-panel {
        max-height: 88vh;
    }

    .gallery-lightbox-panel img {
        max-height: calc(88vh - 128px);
    }

    .gallery-lightbox-panel figcaption {
        padding: 13px 14px 15px;
    }

    .gallery-lightbox-close {
        top: 10px;
        left: 10px;
        width: 38px;
        height: 38px;
        font-size: 27px;
    }

    .gallery-lightbox-count {
        top: 10px;
        right: 10px;
        min-height: 30px;
        font-size: 12px;
    }

    .gallery-lightbox-nav {
        top: auto;
        bottom: 72px;
        width: 44px;
        height: 44px;
        font-size: 32px;
        transform: none;
    }

    .gallery-lightbox-nav:hover {
        transform: translateY(-2px);
    }

    .gallery-lightbox-next {
        left: 10px;
    }

    .gallery-lightbox-prev {
        right: 10px;
    }
}

/* Final mobile app polish layer */
@media (max-width: 720px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        background:
            radial-gradient(circle at 14% 0, rgba(217, 180, 105, .18), transparent 28%),
            linear-gradient(180deg, #fffaf1 0%, #fff 46%, #fff7ee 100%);
    }

    main,
    .teams-page-main {
        width: min(100% - 20px, 440px);
        margin-inline: auto;
        padding-top: 22px;
        padding-bottom: 54px;
    }

    .content-section {
        margin-top: 30px;
    }

    .section-title,
    .competitions-section .section-title,
    .league-section .section-title {
        display: grid;
        gap: 6px;
        margin-bottom: 10px;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .section-title h2 {
        font-size: 21px;
        line-height: 1.25;
    }

    .section-title p {
        min-height: 0;
        padding: 0;
        font-size: 12px;
        line-height: 1.5;
        background: transparent;
    }

    .match-section,
    .schedule-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .match-card,
    .schedule-card,
    .competition-table-card,
    .detail-panel,
    .gallery-card,
    .scorer-card {
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(95, 15, 26, .08);
    }

    .match-card .card-heading {
        gap: 7px;
        padding: 10px 10px 0;
    }

    .card-heading span,
    .card-heading .match-status-badge {
        min-height: 28px;
        padding: 0 10px;
        font-size: 11px;
    }

    .card-heading strong {
        max-width: none;
        min-height: 28px;
        padding: 5px 9px;
        font-size: 11px;
    }

    .match-teams {
        grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
        gap: 7px;
        padding: 12px 9px 10px;
    }

    .team {
        min-height: 94px;
        gap: 6px;
        padding: 9px 5px 8px;
        border-radius: 8px;
    }

    .team::before,
    .team::after {
        display: none;
    }

    .team-logo {
        width: 48px;
        height: 48px;
        padding: 6px;
        border-radius: 8px;
    }

    .team b {
        min-height: 32px;
        font-size: 12px;
        line-height: 1.35;
    }

    .score-box {
        min-width: 64px;
        min-height: 66px;
        padding: 7px;
    }

    .score-box strong {
        font-size: 22px;
    }

    .score-box small {
        margin-top: 4px;
        padding: 2px 5px;
        font-size: 10px;
    }

    .score-box.upcoming strong,
    .score-box.upcoming strong::before {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .match-card .meta-row {
        gap: 6px;
        padding: 0 10px 12px;
    }

    .match-card-action {
        min-height: 36px;
        font-size: 12px;
    }

    .schedule-filter-panel {
        padding: 10px;
        border-radius: 8px;
    }

    .schedule-filter-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .schedule-filter-controls button {
        justify-content: space-between;
        min-height: 38px;
        padding: 0 9px;
        font-size: 12px;
    }

    .schedule-filter-tools {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .schedule-filter-tools select,
    .schedule-filter-tools input {
        min-height: 40px;
        border-radius: 8px;
        font-size: 13px;
    }

    .schedule-card {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 11px;
    }

    .schedule-card::before {
        inset: 0 auto 0 0;
        width: 3px;
    }

    .schedule-date {
        display: flex;
        justify-content: center;
        gap: 8px;
        justify-self: start;
        min-height: 30px;
        padding: 0 10px;
        border-radius: 999px;
    }

    .schedule-date span {
        font-size: 15px;
    }

    .schedule-date small {
        font-size: 11px;
    }

    .schedule-teams {
        grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
        gap: 8px;
        width: 100%;
    }

    .schedule-team {
        gap: 6px;
    }

    .schedule-team-logo,
    .detail-team-logo {
        width: 48px;
        height: 46px;
        padding: 5px;
        border-radius: 8px;
    }

    .schedule-team b {
        min-height: 30px;
        font-size: 12px;
        line-height: 1.3;
    }

    .schedule-score {
        min-width: 58px;
        min-height: 46px;
        padding: 0 6px;
        border-radius: 8px;
        font-size: 18px;
    }

    .schedule-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 11px;
    }

    .schedule-meta span {
        min-height: 24px;
        padding: 3px 7px;
        border-radius: 999px;
    }

    .schedule-details-link {
        min-height: 36px;
        border-radius: 8px;
        font-size: 12px;
    }

    .match-detail-page .match-detail-hero {
        grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
        gap: 7px;
        padding: 9px;
        border-radius: 8px;
    }

    .match-detail-page .detail-team {
        padding: 8px 4px;
        border-radius: 8px;
    }

    .match-detail-page .detail-team-logo {
        width: 46px;
        height: 44px;
    }

    .match-detail-page .detail-team h2 {
        min-height: 30px;
        font-size: 12px;
    }

    .match-detail-page .detail-score {
        min-width: 0;
        min-height: 92px;
        padding: 8px 5px;
        border-radius: 8px;
    }

    .match-detail-page .detail-score strong {
        font-size: 24px;
    }

    .match-status-pill {
        min-height: 22px;
        padding: 0 7px;
        font-size: 10px;
    }

    .match-detail-page .match-info-grid {
        gap: 6px;
    }

    .match-detail-page .match-info-grid article {
        min-height: 76px;
        padding: 8px 5px;
        border-radius: 8px;
    }

    .match-detail-page .match-info-grid span,
    .match-detail-page .match-info-grid strong {
        font-size: 11px;
    }

    .visual-stats-panel {
        padding: 11px;
        border-radius: 8px;
    }

    .visual-stats-head h2 {
        font-size: 19px;
    }

    .visual-stats-head small,
    .visual-stats-head span {
        min-height: 24px;
        padding: 0 8px;
        font-size: 11px;
    }

    .visual-stats-teams {
        gap: 7px;
        padding: 8px 6px;
        border-radius: 8px;
    }

    .visual-stats-teams > div {
        gap: 4px;
        font-size: 11px;
    }

    .visual-stats-teams > b {
        min-width: 48px;
        min-height: 32px;
        padding: 0 6px;
        font-size: 12px;
    }

    .visual-stats-logo {
        width: 30px;
        height: 30px;
    }

    .visual-stats-list {
        gap: 7px;
    }

    .visual-stat-row {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 6px;
        padding: 7px;
        border-radius: 8px;
    }

    .visual-stat-value {
        min-height: 31px;
        border-radius: 8px;
        font-size: 12px;
    }

    .visual-stat-label {
        gap: 5px;
        font-size: 12px;
    }

    .visual-stat-label span {
        width: 23px;
        height: 23px;
        font-size: 10px;
    }

    .visual-stat-bars {
        height: 8px;
    }

    .competition-table-head {
        min-height: 0;
        padding: 10px;
        border-radius: 8px 8px 0 0;
    }

    .competition-table-head h3 {
        font-size: 17px;
    }

    .competition-table-head p {
        min-height: 24px;
        padding: 0 8px;
        font-size: 11px;
    }

    .competition-table-head img {
        width: 38px;
        height: 38px;
        padding: 5px;
        border-radius: 8px;
    }

    .competition-table-card .table-wrap,
    .table-wrap {
        margin: 8px;
        overflow-x: hidden;
        border-radius: 8px;
    }

    .league-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .league-table th,
    .league-table td {
        height: 38px;
        padding: 5px 1px;
        font-size: 9.5px;
        line-height: 1.2;
    }

    .league-table th {
        height: 30px;
        font-size: 0;
    }

    .league-table th::after {
        font-size: 9.5px;
    }

    .league-table th:first-child,
    .league-table td:first-child {
        width: 6.8%;
    }

    .league-table th:nth-child(2),
    .league-table td:nth-child(2) {
        width: 33.4%;
    }

    .league-table th:nth-child(n+3),
    .league-table td:nth-child(n+3) {
        width: 8.54%;
    }

    .team-cell {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 3px;
        width: 100%;
    }

    .team-cell span {
        display: -webkit-box;
        overflow: hidden;
        font-size: 9.5px;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .table-logo {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .points {
        min-width: 20px;
        height: 20px;
        border-radius: 6px;
        font-size: 9.5px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .gallery-card,
    .gallery-card.is-featured {
        min-height: 126px;
    }

    .gallery-card.is-featured {
        grid-column: span 2;
        min-height: 178px;
    }

    .gallery-card img,
    .gallery-card.is-featured img {
        height: 126px;
    }

    .gallery-card.is-featured img {
        height: 178px;
    }

    .gallery-caption {
        right: 7px;
        left: 7px;
        bottom: 7px;
        padding: 7px;
    }

    .gallery-caption h3,
    .gallery-card.is-featured .gallery-caption h3 {
        font-size: 11.5px;
        line-height: 1.35;
    }
}

@media (max-width: 420px) {
    main,
    .teams-page-main {
        width: min(100% - 16px, 390px);
    }

    .scorers-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .scorer-card {
        grid-column: span 2;
        padding: 7px 6px 9px;
    }

    .scorer-card:nth-child(4):nth-last-child(2) {
        grid-column: 2 / span 2;
    }

    .scorer-photo {
        width: 100%;
        height: 82px;
        padding: 3px;
    }

    .goals-circle {
        top: 68px;
        left: 7px;
        min-width: 25px;
        height: 25px;
        padding: 0 6px;
        border-top-width: 2px;
        border-right-width: 2px;
        border-radius: 0 7px 0 0;
        font-size: 14px;
    }

    .scorer-info h3 {
        min-height: 34px;
        margin: 8px 0 0;
        padding: 6px 5px;
        font-size: 10.5px;
        line-height: 1.25;
    }

    .match-teams {
        grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    }

    .team-logo {
        width: 42px;
        height: 42px;
    }

    .team b {
        font-size: 11px;
    }

    .score-box {
        min-width: 58px;
        min-height: 60px;
    }

    .score-box strong {
        font-size: 20px;
    }

    .schedule-teams {
        grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    }

    .schedule-team-logo,
    .detail-team-logo {
        width: 42px;
        height: 40px;
    }

    .schedule-score {
        min-width: 52px;
        min-height: 42px;
        font-size: 16px;
    }

    .visual-stat-row {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    .league-table th,
    .league-table td {
        padding-inline: 0;
        font-size: 9px;
    }

    .league-table th::after,
    .team-cell span,
    .points {
        font-size: 9px;
    }

    .team-cell {
        grid-template-columns: 18px minmax(0, 1fr);
        gap: 2px;
    }

    .table-logo {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }
}

/* Final compact match events timeline overrides */
.match-detail-page .live-match-panel {
    padding: clamp(12px, 2vw, 18px);
}

.match-detail-page .live-match-head {
    margin-bottom: 10px;
}

.match-detail-page .live-match-head small {
    min-height: 22px;
    padding: 0 9px;
    font-size: 11px;
}

.match-detail-page .live-match-head h2 {
    font-size: clamp(20px, 2.6vw, 28px);
}

.match-detail-page .live-match-head span {
    min-height: 24px;
    padding: 3px 9px;
    font-size: 11px;
}

.match-detail-page .live-match-timeline {
    gap: 6px;
}

.match-detail-page .live-match-timeline::before {
    right: 17px;
}

.match-detail-page .live-match-event {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(42, 31, 21, .055);
}

.match-detail-page .live-match-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(95, 15, 26, .1);
}

.match-detail-page .live-match-event > div {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 3px 9px;
}

.match-detail-page .live-match-minute {
    width: 34px;
    height: 34px;
    font-size: 12px;
    box-shadow: 0 8px 18px rgba(95, 15, 26, .14);
}

.match-detail-page .live-event-visual {
    gap: 4px;
}

.match-detail-page .live-event-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: 0 7px 16px rgba(95, 15, 26, .09);
}

.match-detail-page .live-event-icon img {
    width: 22px;
    height: 22px;
}

.match-detail-page .live-event-player {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.match-detail-page .live-event-player img {
    border-width: 2px;
    box-shadow: 0 8px 18px rgba(42, 31, 21, .13);
}

.match-detail-page .live-event-player b {
    bottom: -6px;
    min-width: 26px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
}

.match-detail-page .live-match-event strong {
    font-size: 14px;
    line-height: 1.35;
}

.match-detail-page .live-match-event small {
    margin-top: 0;
    font-size: 11px;
}

.match-detail-page .live-match-event p {
    margin: 3px 0 0;
    font-size: 12px;
    line-height: 1.45;
}

.match-detail-page .live-match-event > b {
    padding: 4px 8px;
    font-size: 11px;
}

.match-detail-page .live-match-substitution > div {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
}

.match-detail-page .live-match-substitution .live-event-sub-icon {
    grid-row: 1;
}

.live-substitution-compact {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.live-sub-player {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 45%;
    padding: 5px 7px;
    border: 1px solid rgba(201, 39, 55, .12);
    border-radius: 12px;
    color: inherit;
    background: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.live-sub-player img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 7px 14px rgba(42, 31, 21, .12);
}

.live-sub-player span {
    display: grid;
    min-width: 0;
}

.live-sub-player small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.1;
}

.live-sub-player strong {
    overflow: hidden;
    color: var(--red-deep);
    font-size: 12px !important;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.live-sub-player b {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-size: 10px;
    font-weight: 900;
}

.live-sub-out {
    background: linear-gradient(135deg, rgba(255, 240, 242, .92), rgba(255, 255, 255, .72));
}

.live-sub-in {
    border-color: rgba(35, 139, 87, .18);
    background: linear-gradient(135deg, rgba(232, 250, 241, .95), rgba(255, 255, 255, .72));
}

.live-sub-in strong {
    color: #116b40;
}

.live-sub-in b {
    background: linear-gradient(135deg, #0f6f42, #27a35f);
}

.live-sub-arrows {
    display: grid;
    gap: 2px;
    flex: 0 0 auto;
}

.live-sub-arrows i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 18px;
    border-radius: 999px;
    color: var(--white);
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.live-sub-arrows .sub-arrow-out {
    background: linear-gradient(135deg, var(--red-deep), var(--red));
}

.live-sub-arrows .sub-arrow-in {
    background: linear-gradient(135deg, #0f6f42, #27a35f);
}

@media (max-width: 640px) {
    .match-detail-page .live-match-panel {
        padding: 10px;
    }

    .match-detail-page .live-match-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .match-detail-page .live-match-event {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 7px;
        padding: 7px;
    }

    .match-detail-page .live-match-event > div {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 2px 7px;
    }

    .match-detail-page .live-match-minute {
        width: 31px;
        height: 31px;
        font-size: 11px;
    }

    .match-detail-page .live-event-icon {
        width: 31px;
        height: 31px;
    }

    .match-detail-page .live-event-icon img {
        width: 20px;
        height: 20px;
    }

    .match-detail-page .live-event-player {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .match-detail-page .live-match-event strong {
        font-size: 13px;
    }

    .match-detail-page .live-match-event small,
    .match-detail-page .live-match-event p {
        font-size: 11px;
    }

    .match-detail-page .live-match-substitution > div {
        grid-template-columns: 31px minmax(0, 1fr);
    }

    .live-substitution-compact {
        gap: 4px;
    }

    .live-sub-player {
        max-width: calc((100% - 32px) / 2);
        padding: 4px 5px;
        gap: 4px;
    }

    .live-sub-player img {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .live-sub-player small {
        display: none;
    }

    .live-sub-player strong {
        font-size: 11px !important;
    }

    .live-sub-player b {
        min-width: 20px;
        height: 16px;
        padding: 0 4px;
        font-size: 9px;
    }

    .live-sub-arrows i {
        width: 20px;
        height: 16px;
        font-size: 12px;
    }
}

/* EOF override: premium red team icons on club teams page. */
.teams-list-page .club-team-card {
    position: relative !important;
    isolation: isolate;
    min-height: 150px !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 10px !important;
    padding: 22px 18px 18px !important;
    border: 1px solid rgba(255, 231, 171, .42) !important;
    border-radius: 24px !important;
    text-align: center !important;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 231, 171, .22), transparent 28%),
        linear-gradient(145deg, #410611 0%, #7f0b1d 42%, #c92737 72%, #e23849 100%) !important;
    box-shadow:
        0 22px 48px rgba(95, 15, 26, .22),
        inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}

.teams-list-page .club-team-card::before {
    content: "" !important;
    position: relative !important;
    inset: auto !important;
    z-index: 1;
    display: block;
    width: 58px !important;
    height: 58px !important;
    margin: 0 auto 2px;
    border: 1px solid rgba(255, 231, 171, .44);
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .34), transparent 25%),
        linear-gradient(135deg, #e23b4f 0%, #b80f28 48%, #5f0f1a 100%) !important;
    box-shadow:
        0 14px 26px rgba(65, 6, 17, .24),
        inset 0 1px 0 rgba(255, 255, 255, .24),
        inset 0 0 0 14px rgba(255, 255, 255, .055);
}

.teams-list-page .club-team-card::after {
    content: "";
    position: absolute;
    inset-inline-end: -34px;
    bottom: -46px;
    z-index: -1;
    width: 132px;
    height: 132px;
    border: 16px solid rgba(255, 255, 255, .1);
    border-top-color: rgba(255, 231, 171, .28);
    border-radius: 50%;
    pointer-events: none;
}

.teams-list-page .club-team-card h2 {
    color: #ffe7ab !important;
    font-size: clamp(18px, 2vw, 22px) !important;
    text-shadow: 0 2px 12px rgba(65, 6, 17, .36) !important;
}

.teams-list-page .club-team-kicker {
    color: #5f0f1a !important;
    background: linear-gradient(135deg, #fff4c9, #d9b469) !important;
}

.teams-list-page .club-team-card small {
    color: #fff !important;
    background: rgba(255, 255, 255, .13) !important;
    border-color: rgba(255, 231, 171, .28) !important;
}

.teams-list-page .club-team-card:hover {
    transform: translateY(-6px) scale(1.01) !important;
    border-color: rgba(255, 231, 171, .72) !important;
    box-shadow:
        0 28px 62px rgba(95, 15, 26, .28),
        inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

@media (max-width: 720px) {
    .teams-list-page .club-team-card {
        min-height: 132px !important;
        padding: 18px 14px !important;
        border-radius: 20px !important;
    }

    .teams-list-page .club-team-card::before {
        width: 50px !important;
        height: 50px !important;
        border-radius: 17px !important;
    }
}
/* Absolute final override: homepage advanced stats layout. */
.advanced-stats-shell .stats-showcase {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.05fr) minmax(0, 1fr) minmax(0, .88fr) !important;
    grid-auto-rows: minmax(132px, auto) !important;
    gap: 14px !important;
}

.advanced-stats-shell .stats-chart-card {
    grid-row: span 2 !important;
    min-height: 300px !important;
    border-radius: 20px !important;
}

.advanced-stats-shell .win-rate-card {
    min-height: 150px !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
}

.advanced-stats-shell .player-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

@media (max-width: 980px) {
    .advanced-stats-shell .stats-showcase {
        grid-template-columns: 1fr 1fr !important;
    }

    .advanced-stats-shell .stats-chart-card,
    .advanced-stats-shell .win-rate-card {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }

    .advanced-stats-shell .player-stat-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .advanced-stats-shell .stats-showcase {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .advanced-stats-shell .stats-chart-card {
        min-height: 224px !important;
        padding: 10px !important;
    }

    .advanced-stats-shell .win-rate-card {
        grid-template-columns: 82px minmax(0, 1fr) !important;
        min-height: 112px !important;
        padding: 10px !important;
    }
}

/* Stable advanced stats component: isolated from older shared stat classes. */
.advanced-stats-section .team-stats-panel {
    display: grid !important;
    gap: 16px !important;
    padding: clamp(12px, 2vw, 22px) !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 8% 2%, rgba(255, 236, 190, .32), transparent 26%),
        radial-gradient(circle at 96% 8%, rgba(201, 39, 55, .12), transparent 28%),
        linear-gradient(145deg, #fffdf8 0%, #fff4e6 46%, #fff9f1 100%) !important;
}

.team-stats-panel .team-stats-summary {
    display: grid !important;
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
}

.team-stats-panel .team-stat-tile {
    display: grid !important;
    align-content: center !important;
    gap: 7px !important;
    min-height: 112px !important;
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(217, 180, 105, .34) !important;
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 255, 255, .86), transparent 34%),
        linear-gradient(145deg, #fffefa 0%, #fff4e0 100%) !important;
    box-shadow:
        0 12px 28px rgba(95, 15, 26, .07),
        inset 0 1px 0 rgba(255, 255, 255, .88) !important;
}

.team-stats-panel .team-stat-main {
    color: #fff !important;
    background:
        radial-gradient(circle at 16% 14%, rgba(255, 232, 174, .34), transparent 30%),
        linear-gradient(145deg, #5c0b16 0%, #98172a 58%, #d1273d 100%) !important;
    box-shadow:
        0 16px 34px rgba(128, 15, 29, .16),
        inset 0 1px 0 rgba(255, 255, 255, .2) !important;
}

.team-stats-panel .team-stat-tile::after {
    display: none !important;
}

.team-stats-panel .team-stat-tile span {
    color: #7c1724 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.team-stats-panel .team-stat-main span,
.team-stats-panel .team-stat-main small {
    color: rgba(255, 255, 255, .84) !important;
}

.team-stats-panel .team-stat-tile strong {
    color: #68101d !important;
    font-size: clamp(28px, 3vw, 42px) !important;
    line-height: 1 !important;
}

.team-stats-panel .team-stat-main strong {
    color: #fff !important;
}

.team-stats-panel .team-stat-tile small {
    color: #74606a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
}

.team-stats-panel .team-stats-grid {
    display: grid !important;
    grid-template-columns: minmax(300px, 1.05fr) minmax(280px, .95fr) !important;
    grid-auto-flow: row !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.team-stats-panel .team-results-card,
.team-stats-panel .team-win-card,
.team-stats-panel .team-form-card,
.team-stats-panel .team-big-card {
    margin: 0 !important;
    border-radius: 20px !important;
    border: 1px solid rgba(217, 180, 105, .34) !important;
    box-shadow:
        0 14px 32px rgba(95, 15, 26, .08),
        inset 0 1px 0 rgba(255, 255, 255, .75) !important;
}

.team-stats-panel .team-results-card {
    grid-row: span 3 !important;
    min-height: 320px !important;
    padding: 16px !important;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 239, 197, .24), transparent 30%),
        radial-gradient(circle at 86% 78%, rgba(255, 255, 255, .12), transparent 28%),
        linear-gradient(145deg, #5c0b16 0%, #911728 52%, #cf263b 100%) !important;
}

.team-results-visual {
    display: grid;
    grid-template-rows: 1fr auto;
    align-content: center;
    justify-items: center;
    gap: 18px;
    width: 100%;
    height: 100%;
    min-height: 288px;
    color: #fff;
    text-align: center;
}

.team-apex-results {
    display: none;
    width: min(320px, 100%);
    min-height: 268px;
    margin: -4px auto -10px;
    direction: ltr;
}

.team-results-card.has-apex-chart .team-apex-results {
    display: block;
}

.team-results-card.has-apex-chart .team-results-donut {
    display: none;
}

.team-apex-results .apexcharts-tooltip {
    border: 1px solid rgba(244, 201, 93, .36) !important;
    border-radius: 14px !important;
    background: rgba(76, 8, 18, .96) !important;
    box-shadow: 0 14px 34px rgba(38, 0, 8, .28) !important;
    color: #fff !important;
    direction: rtl;
}

.team-apex-results .apexcharts-tooltip * {
    font-family: var(--font-sans) !important;
}

.team-apex-results .apexcharts-radialbar-area {
    filter: drop-shadow(0 12px 18px rgba(39, 0, 8, .16));
}

.team-results-donut {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    width: min(220px, 70%);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, #8c1728 0 55%, transparent 56%),
        conic-gradient(#f0c96f 0 var(--wins-deg), #fff1bd var(--wins-deg) var(--draws-deg), #4d0711 var(--draws-deg) 360deg);
    box-shadow:
        0 22px 44px rgba(42, 0, 8, .24),
        inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.team-results-donut::before {
    content: "";
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 1px solid rgba(255, 231, 171, .28);
}

.team-results-donut strong {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 900;
    line-height: 1;
}

.team-results-donut span {
    position: relative;
    z-index: 1;
    margin-top: 7px;
    color: rgba(255, 244, 207, .88);
    font-size: 13px;
    font-weight: 900;
}

.team-results-copy {
    display: grid;
    gap: 5px;
    max-width: 360px;
}

.team-results-copy span {
    color: #ffe7ab;
    font-size: 13px;
    font-weight: 900;
}

.team-results-copy h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.2;
}

.team-results-copy p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.7;
}

.team-results-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.team-results-legend b {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 900;
}

.team-results-legend i {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.team-results-legend .is-win i {
    background: #f0c96f;
}

.team-results-legend .is-draw i {
    background: #fff1bd;
}

.team-results-legend .is-loss i {
    background: #4d0711;
}

.team-stats-lottie {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-inline-end: 8px;
    vertical-align: middle;
}

.team-stats-lottie:not(.is-lottie-loaded)::before,
.team-stats-lottie:not(.is-lottie-loaded)::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
}

.team-stats-lottie:not(.is-lottie-loaded)::before {
    border: 3px solid #d9b469;
    border-top-color: #c92737;
    animation: statsIconSpin 1.2s linear infinite;
}

.team-stats-lottie:not(.is-lottie-loaded)::after {
    inset: 13px;
    background: #c92737;
    animation: statsIconPulse 1.35s ease-in-out infinite;
}

.team-stats-panel .team-stat-tile,
.team-stats-panel .team-results-card,
.team-stats-panel .team-win-card,
.team-stats-panel .team-form-card,
.team-stats-panel .team-big-card,
.team-stats-panel .team-player-card {
    animation: statsCardRise .7s ease both;
}

.team-stats-panel .team-stat-tile:nth-child(2),
.team-stats-panel .team-form-card {
    animation-delay: .06s;
}

.team-stats-panel .team-stat-tile:nth-child(3),
.team-stats-panel .team-big-card {
    animation-delay: .12s;
}

.team-stats-panel .team-stat-tile:nth-child(4),
.team-stats-panel .team-player-card {
    animation-delay: .18s;
}

.team-results-donut {
    animation: statsDonutGlow 2.4s ease-in-out infinite;
}

.shabab-flip-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(46px, 1fr));
    gap: 8px;
    width: min(100%, 420px);
    margin: 12px auto 0;
    direction: rtl;
}

.match-card .shabab-flip-countdown.compact,
.shabab-flip-countdown.compact {
    grid-template-columns: repeat(4, minmax(38px, 1fr));
    gap: 5px;
    width: 100%;
    margin: 8px 0 0;
}

.flip-unit {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 58px;
    padding: 7px 5px;
    border: 1px solid rgba(217, 180, 105, .26);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 244, 225, .88));
    box-shadow: 0 10px 22px rgba(95, 15, 26, .08);
}

.flip-unit b {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 34px;
    min-height: 30px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(145deg, #5c0b16, #c92737);
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .18);
}

.flip-unit b.is-flipping {
    animation: flipTick .34s ease;
}

.flip-unit small {
    color: #68101d;
    font-size: 10px;
    font-weight: 900;
}

.shabab-flip-countdown.compact .flip-unit {
    min-height: 48px;
    padding: 5px 3px;
    border-radius: 12px;
}

.shabab-flip-countdown.compact .flip-unit b {
    min-width: 30px;
    min-height: 26px;
    font-size: 15px;
}

@keyframes flipTick {
    0% {
        transform: rotateX(0deg);
    }

    50% {
        transform: rotateX(-72deg);
    }

    100% {
        transform: rotateX(0deg);
    }
}

@keyframes statsCardRise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes statsDonutGlow {
    0%,
    100% {
        box-shadow:
            0 22px 44px rgba(42, 0, 8, .24),
            inset 0 0 0 1px rgba(255, 255, 255, .18);
    }

    50% {
        box-shadow:
            0 24px 52px rgba(217, 180, 105, .22),
            inset 0 0 0 1px rgba(255, 255, 255, .28);
    }
}

@keyframes statsIconSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes statsIconPulse {
    0%,
    100% {
        transform: scale(.82);
        opacity: .78;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.team-stats-panel .team-win-card {
    display: grid !important;
    grid-template-columns: 98px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 138px !important;
    padding: 14px !important;
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 255, 255, .84), transparent 34%),
        linear-gradient(145deg, #fffefa 0%, #fff4e1 100%) !important;
}

.team-stats-panel .team-win-card .rate-ring {
    width: 88px !important;
    height: 88px !important;
    box-shadow: 0 10px 24px rgba(95, 15, 26, .12) !important;
}

.team-stats-panel .team-win-card .rate-ring strong {
    font-size: 20px !important;
}

.team-stats-panel .team-win-card .rate-ring span {
    margin-top: -18px !important;
    font-size: 9px !important;
}

.team-stats-panel .team-win-card h3 {
    margin: 0 0 5px !important;
    color: #68101d !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
}

.team-stats-panel .team-win-card p {
    margin: 0 !important;
    color: #74606a !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

.team-stats-panel .team-form-card,
.team-stats-panel .team-big-card {
    display: grid !important;
    align-content: center !important;
    gap: 10px !important;
    min-height: 120px !important;
    padding: 14px !important;
}

.team-stats-panel .team-form-card {
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 255, 255, .84), transparent 34%),
        linear-gradient(145deg, #fffefa 0%, #fff4e1 100%) !important;
}

.team-stats-panel .team-form-card span,
.team-stats-panel .team-big-card span {
    font-size: 12px !important;
    font-weight: 900 !important;
}

.team-stats-panel .team-form-card strong,
.team-stats-panel .team-big-card strong {
    font-size: 21px !important;
    line-height: 1.25 !important;
}

.team-stats-panel .form-dots {
    gap: 6px !important;
}

.team-stats-panel .form-dot {
    width: 32px !important;
    height: 32px !important;
    border-radius: 11px !important;
    font-size: 12px !important;
}

.team-stats-panel .team-big-card {
    color: #fff !important;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 236, 190, .3), transparent 30%),
        linear-gradient(145deg, #5c0b16 0%, #911728 56%, #cf263b 100%) !important;
}

.team-stats-panel .team-big-card * {
    color: #fff !important;
}

.team-stats-panel .team-player-highlights {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
}

.team-stats-panel .team-player-card {
    display: grid !important;
    grid-template-columns: 70px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 104px !important;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(217, 180, 105, .3) !important;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, .86), transparent 34%),
        linear-gradient(145deg, #fffefa 0%, #fff4e1 100%) !important;
}

.team-stats-panel .team-player-card .player-stat-photo {
    width: 70px !important;
    height: 78px !important;
    border-radius: 16px !important;
}

.team-stats-panel .team-player-card h3 {
    margin: 0 0 6px !important;
    color: #68101d !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
}

.team-stats-panel .team-player-card strong {
    min-height: 26px !important;
    padding: 0 9px !important;
    color: #fff !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #c92737, #6b0e1c) !important;
    font-size: 12px !important;
}

@media (max-width: 900px) {
    .team-stats-panel .team-stats-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .team-stats-panel .team-stat-main {
        grid-column: 1 / -1 !important;
    }

    .team-stats-panel .team-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .team-stats-panel .team-results-card {
        grid-row: auto !important;
        min-height: 260px !important;
    }

    .team-results-visual {
        min-height: 230px;
    }

    .team-stats-panel .team-player-highlights {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 560px) {
    .advanced-stats-section .team-stats-panel {
        gap: 9px !important;
        padding: 9px !important;
        border-radius: 20px !important;
    }

    .team-stats-panel .team-stats-summary {
        gap: 7px !important;
    }

    .team-stats-panel .team-stat-tile {
        min-height: 88px !important;
        padding: 10px !important;
        border-radius: 15px !important;
    }

    .team-stats-panel .team-stat-tile strong {
        font-size: 25px !important;
    }

    .team-stats-panel .team-stat-tile span,
    .team-stats-panel .team-stat-tile small {
        font-size: 10px !important;
    }

    .team-stats-panel .team-results-card {
        min-height: 210px !important;
        padding: 8px !important;
        border-radius: 16px !important;
    }

    .team-results-visual {
        min-height: 192px;
        gap: 10px;
    }

    .team-results-donut {
        width: min(150px, 58%);
    }

    .team-results-copy p {
        display: none;
    }

    .team-results-legend {
        gap: 5px;
    }

    .team-results-legend b {
        min-height: 28px;
        padding-inline: 8px;
        font-size: 10px;
    }

    .team-stats-lottie {
        width: 28px;
        height: 28px;
        margin-inline-end: 5px;
    }

    .shabab-flip-countdown {
        grid-template-columns: repeat(4, minmax(38px, 1fr));
        gap: 5px;
    }

    .flip-unit {
        min-height: 48px;
        border-radius: 12px;
    }

    .team-stats-panel .team-win-card {
        grid-template-columns: 72px minmax(0, 1fr) !important;
        min-height: 104px !important;
        padding: 9px !important;
        border-radius: 16px !important;
    }

    .team-stats-panel .team-win-card .rate-ring {
        width: 68px !important;
        height: 68px !important;
    }

    .team-stats-panel .team-win-card .rate-ring strong {
        font-size: 16px !important;
    }

    .team-stats-panel .team-win-card .rate-ring span {
        display: none !important;
    }

    .team-stats-panel .team-win-card h3 {
        font-size: 15px !important;
    }

    .team-stats-panel .team-win-card p {
        font-size: 11px !important;
        line-height: 1.55 !important;
    }

    .team-stats-panel .team-form-card,
    .team-stats-panel .team-big-card {
        min-height: 92px !important;
        padding: 10px !important;
        border-radius: 16px !important;
    }

    .team-stats-panel .team-form-card strong,
    .team-stats-panel .team-big-card strong {
        font-size: 17px !important;
    }

    .team-stats-panel .team-player-card {
        grid-template-columns: 58px minmax(0, 1fr) !important;
        min-height: 82px !important;
        padding: 8px !important;
        border-radius: 16px !important;
    }

    .team-stats-panel .team-player-card .player-stat-photo {
        width: 58px !important;
        height: 64px !important;
        border-radius: 14px !important;
    }
}

/* Compact premium match cards for the home page only. */
.home-matches-section .match-section {
    gap: 16px;
}

.home-matches-section .match-card {
    border-radius: 20px;
    border-color: rgba(201, 39, 55, .2);
    background:
        radial-gradient(circle at 50% 120%, rgba(217, 180, 105, .18), transparent 40%),
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 248, 231, .72)),
        var(--white);
    box-shadow: 0 18px 42px rgba(95, 15, 26, .12);
}

.home-matches-section .match-card::before {
    height: 4px;
}

.home-matches-section .match-card::after {
    opacity: .34;
}

.home-matches-section .card-heading {
    min-height: 0;
    padding: 12px 14px 10px;
    gap: 10px;
    border-bottom-color: rgba(217, 180, 105, .22);
    background:
        linear-gradient(135deg, rgba(95, 15, 26, .96), rgba(159, 14, 32, .94) 55%, rgba(203, 28, 49, .92));
}

.home-matches-section .match-card .card-heading::after {
    display: none;
}

.home-matches-section .card-heading .match-status-badge {
    min-width: 72px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 12px;
    box-shadow: none;
}

.home-matches-section .card-heading .match-status-badge.finished {
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, #f2d58d);
}

.home-matches-section .card-heading .match-status-badge.scheduled {
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, #f2d58d);
}

.home-matches-section .card-heading strong {
    max-width: 58%;
    padding: 6px 12px;
    border: 1px solid rgba(255, 249, 223, .78);
    color: var(--red-deep);
    background:
        linear-gradient(135deg, #fff8dc 0%, #f3d17a 48%, #c89531 100%);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.45;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        0 8px 18px rgba(217, 180, 105, .22);
}

.home-matches-section .match-teams {
    grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 14px 10px;
}

.home-matches-section .match-teams::before {
    display: none;
}

.home-matches-section .team {
    min-height: 94px;
    gap: 7px;
    padding: 10px 8px 8px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 50% -8%, rgba(217, 180, 105, .22), transparent 54%),
        rgba(255, 255, 255, .76);
}

.home-matches-section .team::before,
.home-matches-section .team::after {
    display: none;
}

.home-matches-section .team-logo {
    width: 58px;
    height: 54px;
    padding: 7px;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(95, 15, 26, .1), inset 0 0 0 4px rgba(255, 248, 231, .5);
}

.home-matches-section .team b {
    min-height: 34px;
    font-size: 13px;
    line-height: 1.35;
}

.home-matches-section .team-score-badge {
    min-width: 34px;
    min-height: 28px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 15px;
}

.home-matches-section .score-box {
    min-width: 88px;
    min-height: 82px;
    padding: 8px;
    border-width: 1px;
    border-radius: 16px;
    box-shadow: 0 14px 24px rgba(95, 15, 26, .16), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.home-matches-section .score-box::before {
    inset: 5px;
    border-radius: 12px;
}

.home-matches-section .score-box::after {
    display: none;
}

.home-matches-section .score-box strong {
    font-size: 24px;
}

.home-matches-section .score-box .match-result-vs-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.home-matches-section .score-box small {
    margin-top: 5px;
    padding: 3px 7px;
    font-size: 11px;
    line-height: 1.35;
}

.home-matches-section .score-box.upcoming strong {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
}

.home-matches-section .score-box.upcoming strong::before {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.home-matches-section .meta-row {
    min-height: 34px;
    margin: 0 14px 10px;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.home-matches-section .meta-row::before {
    display: none;
}

.home-matches-section .meta-row span {
    gap: 6px;
}

.home-matches-section .meta-row span::before {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.home-matches-section .match-card-action {
    align-self: center;
    min-height: 32px;
    margin: 0 14px 14px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 12px;
}

.home-matches-section .match-card .shabab-flip-countdown.compact {
    margin: 0 14px 10px;
}

/* Match-day gold text accents requested for the home hero card. */
.match-day-kicker,
.match-day-center strong,
.match-day-center small,
.match-day-meta a {
    color: var(--gold) !important;
}

.match-day-meta a {
    border: 1px solid rgba(217, 180, 105, .42);
    text-shadow: 0 1px 0 rgba(60, 6, 14, .28);
}

@media (max-width: 760px) {
    .home-matches-section .match-section {
        gap: 12px;
    }

    .home-matches-section .match-card {
        border-radius: 18px;
    }

    .home-matches-section .card-heading {
        padding: 10px 12px 8px;
    }

    .home-matches-section .card-heading strong {
        max-width: 54%;
        font-size: 11px;
    }

    .home-matches-section .card-heading .match-status-badge {
        min-width: 66px;
        min-height: 26px;
        font-size: 11px;
    }

    .home-matches-section .match-teams {
        grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
        gap: 7px;
        padding: 11px 10px 8px;
    }

    .home-matches-section .team {
        min-height: 82px;
        gap: 5px;
        padding: 8px 5px 7px;
        border-radius: 14px;
    }

    .home-matches-section .team-logo {
        width: 48px;
        height: 46px;
        padding: 6px;
        border-radius: 12px;
    }

    .home-matches-section .team b {
        min-height: 30px;
        font-size: 11.5px;
        line-height: 1.3;
    }

    .home-matches-section .team-score-badge {
        min-width: 30px;
        min-height: 24px;
        font-size: 13px;
    }

    .home-matches-section .score-box {
        min-width: 72px;
        min-height: 72px;
        padding: 7px 5px;
        border-radius: 14px;
    }

    .home-matches-section .score-box .match-result-vs-icon {
        width: 34px;
        height: 34px;
    }

    .home-matches-section .score-box small {
        max-width: 66px;
        padding: 2px 5px;
        font-size: 10px;
    }

    .home-matches-section .score-box.upcoming strong,
    .home-matches-section .score-box.upcoming strong::before {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .home-matches-section .meta-row {
        min-height: 30px;
        margin: 0 10px 8px;
        padding: 6px 8px;
        font-size: 11px;
    }

    .home-matches-section .match-card-action {
        min-height: 30px;
        margin-bottom: 10px;
        font-size: 11px;
    }
}

/* Last override: standings must fit mobile without horizontal drift. */
@media (max-width: 640px) {
    .competition-table-card .table-wrap,
    .league-section > .table-wrap {
        overflow: hidden !important;
    }

    .league-table {
        min-width: 0 !important;
        width: 100% !important;
        table-layout: fixed !important;
    }

    .league-table .standing-col-rank { width: 34px !important; }
    .league-table .standing-col-team { width: auto !important; }
    .league-table .standing-col-stat { width: 31px !important; }
    .league-table .standing-col-points { width: 38px !important; }

    .league-table th,
    .league-table td {
        padding-inline: 2px !important;
    }

    .team-cell {
        grid-template-columns: 25px minmax(0, 1fr) !important;
        width: 100% !important;
    }
}

/* Final standings redesign: clean global football table. */
.competition-table-card {
    border: 1px solid #ece4d4 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(54, 18, 24, .08) !important;
}

.competition-table-card::before {
    height: 3px !important;
    background: #c92737 !important;
}

.competition-table-head {
    min-height: 64px !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #eee5d7 !important;
    background: #fff !important;
}

.competition-table-head::after {
    display: none !important;
}

.competition-table-head p {
    min-height: 30px !important;
    padding: 0 12px !important;
    border: 1px solid rgba(217, 180, 105, .42) !important;
    border-radius: 999px !important;
    color: #6b4509 !important;
    background: #fff7df !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

.competition-table-head img {
    width: 46px !important;
    height: 46px !important;
    padding: 5px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.competition-table-card .table-wrap,
.league-section > .table-wrap {
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 0 18px 18px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.league-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

.league-table .standing-col-rank { width: 56px !important; }
.league-table .standing-col-team { width: auto !important; }
.league-table .standing-col-stat { width: 58px !important; }
.league-table .standing-col-points { width: 68px !important; }

.league-table th,
.league-table td {
    height: 52px !important;
    padding: 8px 8px !important;
    border-bottom: 1px solid #f0e8dc !important;
    color: #2f1b20 !important;
    background: #fff !important;
    font-size: 13px !important;
    font-weight: 850 !important;
}

.league-table th {
    height: 38px !important;
    color: #87747b !important;
    background: #faf8f5 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
}

.league-table tbody tr:hover td {
    background: #fffaf2 !important;
}

.league-table tbody tr.is-club-team td {
    background: #fff7e9 !important;
}

.league-table tbody tr.is-club-team td:nth-child(2) {
    box-shadow: inset -3px 0 #c92737 !important;
}

.rank-badge {
    min-width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    color: #5b4b50 !important;
    background: #f6f2eb !important;
    box-shadow: none !important;
    font-size: 13px !important;
}

.standing-rank-1 .rank-badge {
    color: #6b4509 !important;
    background: #ffe8a6 !important;
}

.standing-rank-2 .rank-badge,
.standing-rank-3 .rank-badge {
    color: #fff !important;
    background: #8f1724 !important;
}

.team-cell {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 9px !important;
}

.team-cell span {
    color: #241417 !important;
    font-size: 14px !important;
}

.table-logo {
    width: 34px !important;
    height: 34px !important;
    padding: 3px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.goal-diff {
    color: #5b4b50 !important;
}

.goal-diff.positive {
    color: #138a55 !important;
}

.goal-diff.negative {
    color: #c92737 !important;
}

.points {
    min-width: 34px !important;
    height: 30px !important;
    border-radius: 10px !important;
    color: #fff !important;
    background: #8f1724 !important;
    box-shadow: none !important;
    font-size: 13px !important;
}

@media (max-width: 640px) {
    .competition-table-card {
        border-radius: 16px !important;
    }

    .competition-table-head {
        min-height: 54px !important;
        padding: 10px 12px !important;
    }

    .competition-table-head p {
        min-height: 28px !important;
        font-size: 12px !important;
    }

    .competition-table-head img {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }

    .league-table .standing-col-rank { width: 30px !important; }
    .league-table .standing-col-team { width: auto !important; }
    .league-table .standing-col-stat { width: 28px !important; }
    .league-table .standing-col-points { width: 34px !important; }

    .league-table th,
    .league-table td {
        height: 44px !important;
        padding: 5px 1px !important;
        font-size: 10.5px !important;
        line-height: 1.2 !important;
    }

    .league-table th {
        height: 30px !important;
        font-size: 0 !important;
    }

    .league-table th::after {
        font-size: 9.5px !important;
    }

    .league-table th:nth-child(1)::after { content: "#"; }
    .league-table th:nth-child(2)::after { content: "الفريق"; }
    .league-table th:nth-child(3)::after { content: "ل"; }
    .league-table th:nth-child(4)::after { content: "ف"; }
    .league-table th:nth-child(5)::after { content: "ت"; }
    .league-table th:nth-child(6)::after { content: "خ"; }
    .league-table th:nth-child(7)::after { content: "له"; }
    .league-table th:nth-child(8)::after { content: "ع"; }
    .league-table th:nth-child(9)::after { content: "+/-"; }
    .league-table th:nth-child(10)::after { content: "ن"; }

    .rank-badge {
        min-width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }

    .team-cell {
        grid-template-columns: 22px minmax(0, 1fr) !important;
        gap: 4px !important;
    }

    .team-cell span {
        font-size: 10.5px !important;
    }

    .table-logo {
        width: 22px !important;
        height: 22px !important;
        padding: 1px !important;
        border-radius: 7px !important;
    }

    .points {
        min-width: 24px !important;
        height: 22px !important;
        border-radius: 7px !important;
        font-size: 10.5px !important;
    }
}

/* Last requested refinement: only first rank is highlighted, standings are larger and clearer. */
.competition-table-head {
    min-height: 72px !important;
    padding: 16px 18px !important;
}

.competition-table-head p {
    min-height: 36px !important;
    padding: 0 15px !important;
    font-size: 16px !important;
    font-weight: 950 !important;
}

.competition-table-head img {
    width: 52px !important;
    height: 52px !important;
}

.league-table .standing-col-rank { width: 62px !important; }
.league-table .standing-col-stat { width: 64px !important; }
.league-table .standing-col-points { width: 76px !important; }

.league-table th,
.league-table td {
    height: 60px !important;
    padding: 10px 9px !important;
    font-size: 15px !important;
}

.league-table th {
    height: 44px !important;
    font-size: 13px !important;
}

.rank-badge,
.standing-rank-2 .rank-badge,
.standing-rank-3 .rank-badge {
    min-width: 32px !important;
    height: 32px !important;
    color: #5b4b50 !important;
    background: #f6f2eb !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

.standing-rank-1 .rank-badge {
    color: #5f3d06 !important;
    background: #ffe2a0 !important;
    box-shadow: inset 0 0 0 1px rgba(156, 103, 18, .18) !important;
}

.team-cell {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 11px !important;
}

.team-cell span {
    font-size: 15.5px !important;
}

.table-logo {
    width: 40px !important;
    height: 40px !important;
}

.points {
    min-width: 40px !important;
    height: 34px !important;
    font-size: 15px !important;
}

@media (max-width: 640px) {
    .competition-table-head {
        min-height: 58px !important;
        padding: 11px 12px !important;
    }

    .competition-table-head p {
        min-height: 31px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }

    .competition-table-head img {
        width: 40px !important;
        height: 40px !important;
    }

    .league-table .standing-col-rank { width: 32px !important; }
    .league-table .standing-col-stat { width: 30px !important; }
    .league-table .standing-col-points { width: 36px !important; }

    .league-table th,
    .league-table td {
        height: 48px !important;
        padding: 5px 1px !important;
        font-size: 11.2px !important;
    }

    .league-table th {
        height: 32px !important;
        font-size: 0 !important;
    }

    .league-table th::after {
        font-size: 10px !important;
    }

    .rank-badge,
    .standing-rank-2 .rank-badge,
    .standing-rank-3 .rank-badge {
        min-width: 23px !important;
        height: 23px !important;
        font-size: 10.5px !important;
    }

    .team-cell {
        grid-template-columns: 24px minmax(0, 1fr) !important;
        gap: 5px !important;
    }

    .team-cell span {
        font-size: 11.2px !important;
    }

    .table-logo {
        width: 24px !important;
        height: 24px !important;
    }

    .points {
        min-width: 26px !important;
        height: 24px !important;
        font-size: 11.2px !important;
    }
}

/* Final alignment: team header sits above team names. */
.league-table th:nth-child(2),
.league-table td:nth-child(2) {
    text-align: start !important;
}

.league-table th:nth-child(2) {
    padding-inline-start: 60px !important;
}

.league-table th:nth-child(2)::after {
    content: "فريق" !important;
}

@media (max-width: 640px) {
    .league-table th:nth-child(2) {
        padding-inline-start: 31px !important;
    }

    .league-table th:nth-child(2)::after {
        content: "فريق" !important;
    }
}

/* Interactive standings stat hover menus. */
.competition-table-card,
.competitions-stack,
.league-section,
.competition-table-card .table-wrap,
.league-section > .table-wrap,
.league-table,
.league-table tbody,
.league-table tr,
.league-table td {
    overflow: visible !important;
}

.standing-stat-cell {
    position: relative !important;
    z-index: 1;
}

.league-table tbody tr:hover .standing-stat-cell {
    z-index: 8;
}

.standing-stat-trigger {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 30px;
    border-radius: 10px;
    cursor: default;
    outline: none;
}

.standing-stat-trigger::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 14px;
}

.standing-stat-value {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 28px;
    border-radius: 9px;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.standing-stat-trigger:hover .standing-stat-value,
.standing-stat-trigger:focus-visible .standing-stat-value {
    color: #fff;
    background: linear-gradient(135deg, #7c1020, #c92737);
    box-shadow: 0 9px 20px rgba(143, 23, 36, .22);
    transform: translateY(-1px);
}

.standing-hover-menu {
    position: absolute;
    right: 50%;
    top: calc(100% + 10px);
    z-index: 50;
    display: grid;
    gap: 9px;
    width: 190px;
    max-width: min(190px, 78vw);
    padding: 12px;
    border: 1px solid rgba(217, 180, 105, .46);
    border-radius: 16px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 0, rgba(217, 180, 105, .22), transparent 34%),
        linear-gradient(145deg, #4a0b14, #8f1724 55%, #c92737);
    box-shadow: 0 18px 42px rgba(72, 16, 24, .24);
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 6px) scale(.96);
    transform-origin: top center;
    transition: opacity .16s ease, transform .16s ease;
}

.standing-hover-menu::before {
    content: "";
    position: absolute;
    right: 50%;
    top: -7px;
    width: 13px;
    height: 13px;
    border-top: 1px solid rgba(217, 180, 105, .46);
    border-right: 1px solid rgba(217, 180, 105, .46);
    background: #5f0f1a;
    transform: translateX(50%) rotate(-45deg);
}

.standing-hover-menu strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    color: #5f0f1a;
    background: linear-gradient(135deg, #fff3cf, #d9b469);
    font-size: 12px;
    font-weight: 950;
}

.standing-hover-list {
    display: grid;
    gap: 6px;
}

.standing-hover-list > span {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
    text-align: start;
}

.standing-hover-list em {
    min-width: 0;
    overflow: hidden;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standing-hover-list b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    color: #5f0f1a;
    background: linear-gradient(135deg, #fff3cf, #d9b469);
    font-size: 11px;
    font-weight: 950;
    direction: ltr;
}

.standing-hover-list i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d9b469;
    box-shadow: 0 0 0 3px rgba(217, 180, 105, .15);
}

.standing-goals-for .standing-stat-trigger:hover .standing-stat-value,
.standing-goals-for .standing-stat-trigger:focus-visible .standing-stat-value {
    background: linear-gradient(135deg, #116d43, #19a764);
}

.standing-goals-against .standing-stat-trigger:hover .standing-stat-value,
.standing-goals-against .standing-stat-trigger:focus-visible .standing-stat-value {
    background: linear-gradient(135deg, #7c1020, #c92737);
}

.standing-stat-trigger:hover .standing-hover-menu,
.standing-stat-trigger:focus-visible .standing-hover-menu,
.standing-stat-trigger:focus-within .standing-hover-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(50%, 0) scale(1);
}

@media (max-width: 640px) {
    .standing-stat-trigger {
        min-width: 24px;
        min-height: 24px;
    }

    .standing-stat-value {
        min-width: 22px;
        min-height: 22px;
        border-radius: 7px;
    }

    .standing-hover-menu {
        width: 148px;
        gap: 7px;
        padding: 9px;
        border-radius: 13px;
    }

    .standing-hover-menu strong {
        min-height: 24px;
        font-size: 10.5px;
    }

    .standing-hover-list > span {
        min-height: 23px;
        padding: 3px 6px;
        gap: 5px;
        font-size: 10.5px;
    }

    .standing-hover-list b {
        min-width: 20px;
        height: 19px;
        padding: 0 5px;
        font-size: 9.5px;
    }
}

/* Final hover-layer fix: keep standings menus above table rows. */
.league-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.league-table tbody tr,
.league-table td {
    position: relative !important;
}

.league-table tbody tr {
    z-index: 1;
}

.league-table tbody tr:hover,
.league-table tbody tr:focus-within,
.league-table tbody tr:has(.standing-stat-trigger:hover),
.league-table tbody tr:has(.standing-stat-trigger:focus-visible) {
    z-index: 1000 !important;
}

.standing-stat-cell:hover,
.standing-stat-cell:focus-within {
    z-index: 1100 !important;
}

.standing-stat-trigger {
    z-index: 2;
}

.standing-hover-menu {
    z-index: 3000 !important;
    clip-path: inset(-18px -18px -18px -18px round 16px);
}

.league-table tbody tr:nth-last-child(-n+2) .standing-hover-menu {
    top: auto;
    bottom: calc(100% + 10px);
    transform: translate(50%, -6px) scale(.96);
    transform-origin: bottom center;
}

.league-table tbody tr:nth-last-child(-n+2) .standing-hover-menu::before {
    top: auto;
    bottom: -7px;
    transform: translateX(50%) rotate(135deg);
}

.league-table tbody tr:nth-last-child(-n+2) .standing-stat-trigger:hover .standing-hover-menu,
.league-table tbody tr:nth-last-child(-n+2) .standing-stat-trigger:focus-visible .standing-hover-menu,
    .league-table tbody tr:nth-last-child(-n+2) .standing-stat-trigger:focus-within .standing-hover-menu {
    transform: translate(50%, 0) scale(1);
}

/* Final fix: standings title gold and no duplicated team heading. */
.competition-table-card .competition-table-head p {
    color: #f8d77c !important;
    text-shadow: 0 1px 0 rgba(95, 15, 26, .35) !important;
}

.league-table th:nth-child(2)::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 640px) {
    .league-table th:nth-child(2) {
        padding-inline-start: 30px !important;
    }

    .league-table th:nth-child(2)::after {
        content: "\0641\0631\064A\0642" !important;
        display: inline-flex !important;
    }
}

/* Premium home standings cards: cleaner football-app visual system. */
.competitions-section {
    --standings-card-bg: #fffdf8;
    --standings-line: rgba(143, 23, 36, .11);
    --standings-muted: #7c6870;
    --standings-ink: #32151b;
    --standings-red: #b70f2d;
    --standings-deep: #65101d;
    --standings-gold: #d8ae57;
}

.competitions-stack {
    gap: 26px !important;
}

.competition-table-card {
    isolation: isolate;
    border: 1px solid rgba(217, 180, 105, .42) !important;
    border-radius: 26px !important;
    background:
        radial-gradient(circle at 88% 0, rgba(217, 180, 105, .18), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 248, 236, .92)) !important;
    box-shadow:
        0 22px 55px rgba(70, 12, 22, .12),
        inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

.competition-table-card::before {
    height: 5px !important;
    background: linear-gradient(90deg, #7d111f, #d51c37 42%, #f0cf86 72%, transparent) !important;
}

.competition-table-card::after {
    content: "";
    position: absolute;
    inset: 5px 0 auto 0;
    height: 96px;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(143, 23, 36, .06), transparent 48%),
        radial-gradient(circle at 14% 50%, rgba(217, 180, 105, .16), transparent 34%);
    z-index: -1;
}

.competition-table-head {
    min-height: 76px !important;
    padding: 17px 20px 15px !important;
    border-bottom: 1px solid rgba(217, 180, 105, .26) !important;
    background: transparent !important;
}

.competition-table-head > div {
    display: flex;
    align-items: center;
    min-width: 0;
}

.competition-table-head p {
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 1px solid rgba(217, 180, 105, .55) !important;
    border-radius: 999px !important;
    color: #f8d77c !important;
    background:
        linear-gradient(135deg, rgba(101, 16, 29, .98), rgba(183, 15, 45, .96) 58%, rgba(217, 180, 105, .92)) !important;
    box-shadow:
        0 12px 26px rgba(143, 23, 36, .18),
        inset 0 1px 0 rgba(255, 255, 255, .24) !important;
    font-size: 17px !important;
    letter-spacing: 0 !important;
}

.competition-table-head img {
    width: 54px !important;
    height: 54px !important;
    padding: 6px !important;
    border: 1px solid rgba(217, 180, 105, .46) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: 0 14px 28px rgba(70, 12, 22, .13) !important;
    object-fit: contain !important;
}

.competition-table-card .table-wrap {
    margin: 0 12px 14px !important;
    overflow: visible !important;
    border: 1px solid rgba(217, 180, 105, .18) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, .88) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

.league-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.league-table .standing-col-rank { width: 66px !important; }
.league-table .standing-col-stat { width: 66px !important; }
.league-table .standing-col-points { width: 78px !important; }

.league-table th,
.league-table td {
    height: 62px !important;
    padding: 9px 10px !important;
    border-bottom: 1px solid rgba(143, 23, 36, .08) !important;
    color: var(--standings-ink) !important;
    background: rgba(255, 255, 255, .82) !important;
    font-size: 15px !important;
}

.league-table th {
    height: 46px !important;
    color: #7e656c !important;
    background:
        linear-gradient(180deg, rgba(255, 247, 231, .96), rgba(255, 255, 255, .9)) !important;
    font-size: 12.5px !important;
    font-weight: 950 !important;
}

.league-table tbody tr:nth-child(even) td {
    background: rgba(255, 250, 243, .72) !important;
}

.league-table tbody tr:hover td {
    background: #fff4e2 !important;
    box-shadow: inset 0 1px 0 rgba(217, 180, 105, .24), inset 0 -1px 0 rgba(217, 180, 105, .2) !important;
}

.league-table tbody tr.is-club-team td {
    background:
        linear-gradient(90deg, rgba(255, 241, 210, .96), rgba(255, 255, 255, .88) 62%) !important;
}

.league-table tbody tr.is-club-team td:nth-child(2) {
    box-shadow: inset -5px 0 0 var(--standings-red) !important;
}

.rank-badge,
.standing-rank-2 .rank-badge,
.standing-rank-3 .rank-badge {
    min-width: 34px !important;
    height: 34px !important;
    border: 1px solid rgba(143, 23, 36, .08) !important;
    color: #674e55 !important;
    background: #f5efe6 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
    font-size: 14px !important;
}

.standing-rank-1 .rank-badge {
    color: #5f3200 !important;
    background: linear-gradient(135deg, #fff1bd, #d9ad56) !important;
    box-shadow: 0 8px 18px rgba(217, 180, 105, .28), inset 0 1px 0 rgba(255, 255, 255, .7) !important;
}

.team-cell {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 12px !important;
}

.team-cell span {
    color: #2d1419 !important;
    font-size: 16px !important;
    font-weight: 950 !important;
}

.table-logo {
    width: 42px !important;
    height: 42px !important;
    padding: 4px !important;
    border: 1px solid rgba(217, 180, 105, .26) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 9px 18px rgba(70, 12, 22, .1) !important;
}

.standing-stat-value {
    border: 1px solid transparent;
    font-weight: 950;
}

.standing-stat-trigger:hover .standing-stat-value,
.standing-stat-trigger:focus-visible .standing-stat-value {
    border-color: rgba(255, 255, 255, .34);
    box-shadow: 0 8px 16px rgba(143, 23, 36, .18);
}

.goal-diff {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    border-radius: 999px;
    background: #f7f1e8;
    font-weight: 950;
}

.goal-diff.positive {
    color: #0f7d4b !important;
    background: rgba(25, 167, 100, .11);
}

.goal-diff.negative {
    color: #b70f2d !important;
    background: rgba(183, 15, 45, .1);
}

.points {
    min-width: 42px !important;
    height: 36px !important;
    border-radius: 13px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #65101d, #c91735) !important;
    box-shadow: 0 10px 20px rgba(143, 23, 36, .2), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
    font-size: 15px !important;
}

@media (max-width: 640px) {
    .competitions-stack {
        gap: 18px !important;
    }

    .competition-table-card {
        border-radius: 22px !important;
        box-shadow: 0 16px 34px rgba(70, 12, 22, .1) !important;
    }

    .competition-table-head {
        min-height: 62px !important;
        padding: 12px 12px 10px !important;
    }

    .competition-table-head p {
        min-height: 32px !important;
        max-width: 100%;
        padding: 0 12px !important;
        font-size: 13px !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .competition-table-head img {
        width: 40px !important;
        height: 40px !important;
        border-radius: 13px !important;
    }

    .competition-table-card .table-wrap {
        margin: 0 6px 8px !important;
        border-radius: 16px !important;
    }

    .league-table .standing-col-rank { width: 32px !important; }
    .league-table .standing-col-team { width: auto !important; }
    .league-table .standing-col-stat { width: 29px !important; }
    .league-table .standing-col-points { width: 35px !important; }

    .league-table th,
    .league-table td {
        height: 48px !important;
        padding: 5px 1px !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
    }

    .league-table th {
        height: 32px !important;
        font-size: 0 !important;
    }

    .league-table th::after {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 22px;
        color: #7d656c;
        font-size: 9.6px !important;
        font-weight: 950 !important;
    }

    .league-table th:nth-child(1)::after { content: "#"; }
    .league-table th:nth-child(2)::after { content: "فريق"; }
    .league-table th:nth-child(3)::after { content: "ل"; }
    .league-table th:nth-child(4)::after { content: "ف"; }
    .league-table th:nth-child(5)::after { content: "ت"; }
    .league-table th:nth-child(6)::after { content: "خ"; }
    .league-table th:nth-child(7)::after { content: "له"; }
    .league-table th:nth-child(8)::after { content: "ع"; }
    .league-table th:nth-child(9)::after { content: "+/-"; }
    .league-table th:nth-child(10)::after { content: "ن"; }

    .league-table th:nth-child(2) {
        padding-inline-start: 30px !important;
    }

    .rank-badge,
    .standing-rank-2 .rank-badge,
    .standing-rank-3 .rank-badge {
        min-width: 23px !important;
        height: 23px !important;
        font-size: 10px !important;
    }

    .team-cell {
        grid-template-columns: 24px minmax(0, 1fr) !important;
        gap: 5px !important;
    }

    .team-cell span {
        font-size: 11px !important;
        line-height: 1.15 !important;
    }

    .table-logo {
        width: 24px !important;
        height: 24px !important;
        padding: 2px !important;
        border-radius: 8px !important;
    }

    .goal-diff {
        min-width: 24px;
        height: 22px;
        font-size: 10.5px;
    }

    .points {
        min-width: 26px !important;
        height: 24px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 1100px) {
    .team-roster-page .roster-player-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .team-roster-page .roster-player-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
}

@media (max-width: 480px) {
    .team-roster-page .roster-player-grid {
        grid-template-columns: 1fr;
        width: min(310px, 100%);
        margin-inline: auto;
    }
}

/* Final home standings watermark. */
.competition-table-card .table-wrap,
.league-section > .table-wrap {
    position: relative !important;
    isolation: isolate;
}

.standings-watermark {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 92%;
    pointer-events: none;
    color: rgba(95, 15, 26, .105);
    font-family: var(--font-display);
    font-size: clamp(28px, 5.6vw, 76px);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    text-transform: lowercase;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, .42),
        0 8px 24px rgba(95, 15, 26, .08);
    transform: translate(-50%, -50%) rotate(-11deg);
    user-select: none;
    white-space: nowrap;
}

.standings-watermark::before,
.standings-watermark::after {
    content: "";
    width: 42px;
    height: 2px;
    margin-inline: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(217, 180, 105, .22), transparent);
}

.league-table {
    position: relative;
    z-index: 2;
}

.standing-hover-menu {
    z-index: 60;
}

@media (max-width: 640px) {
    .standings-watermark {
        font-size: clamp(19px, 7vw, 34px);
        color: rgba(95, 15, 26, .09);
        transform: translate(-50%, -50%) rotate(-10deg);
    }

    .standings-watermark::before,
    .standings-watermark::after {
        width: 22px;
        margin-inline: 7px;
    }
}

/* Premium Club Store. */
.store-page {
    background:
        radial-gradient(circle at 82% 4%, rgba(201, 39, 55, .1), transparent 30%),
        radial-gradient(circle at 8% 18%, rgba(217, 180, 105, .16), transparent 28%),
        #f5f5f5;
}

.store-hero,
.store-inner-header {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .15), transparent 30%),
        radial-gradient(circle at 86% 12%, rgba(217, 180, 105, .22), transparent 32%),
        linear-gradient(135deg, #4a0711, #8f1724 52%, #d01935);
}

.store-hero {
    min-height: 620px;
}

.store-hero .topbar,
.store-inner-header .topbar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 18px;
}

.store-hero .nav-links a.active,
.store-cart-link b {
    color: #5f0f1a;
    background: linear-gradient(145deg, #fff5c5, var(--gold));
}

.store-cart-link b {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    margin-inline-start: 5px;
    border-radius: 999px;
    font-size: 12px;
}

.store-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .58fr);
    align-items: center;
    gap: 42px;
    width: min(1180px, calc(100% - 32px));
    min-height: 520px;
    margin: 0 auto;
}

.store-kicker,
.store-section-head span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    color: #6a4208;
    background: linear-gradient(145deg, #fff5c5, var(--gold));
    font-size: 13px;
    font-weight: 950;
}

.store-hero h1 {
    max-width: 760px;
    margin: 16px 0 14px;
    color: #fff;
    font-size: clamp(38px, 5.5vw, 76px);
    font-weight: 950;
    line-height: 1.05;
}

.store-hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    font-weight: 800;
}

.store-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.store-hero-actions a,
.checkout-button,
.whatsapp-order,
.checkout-success a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(145deg, var(--red-deep), var(--red));
    font-weight: 950;
    box-shadow: 0 16px 32px rgba(95, 15, 26, .18);
}

.store-hero-actions a:first-child,
.checkout-button {
    color: #5f0f1a;
    background: linear-gradient(145deg, #fff5c5, var(--gold));
}

.store-hero-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: 410px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 28px;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 28px 60px rgba(31, 4, 10, .18);
    backdrop-filter: blur(14px);
}

.store-hero-card strong {
    color: #ffe8ad;
    font-size: 18px;
}

.store-hero-card span {
    color: #fff;
    font-size: 32px;
    font-weight: 950;
}

.store-hero-card img {
    width: min(78%, 320px);
    height: 280px;
    object-fit: contain;
    padding: 18px;
    border-radius: 26px;
    background: #fff;
}

.store-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.store-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: -74px;
    margin-bottom: 32px;
}

.store-strip span {
    display: grid;
    place-items: center;
    min-height: 82px;
    border: 1px solid rgba(217, 180, 105, .35);
    border-radius: 18px;
    color: var(--red-deep);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 42px rgba(95, 15, 26, .1);
    font-weight: 950;
}

.store-section {
    margin-top: 42px;
}

.store-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.store-section-head h1,
.store-section-head h2 {
    margin: 8px 0 0;
    color: var(--red-deep);
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 950;
}

.store-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 42px;
}

.store-filters,
.cart-summary,
.checkout-form,
.store-product-card,
.product-tabs article,
.product-reviews,
.checkout-success {
    border: 1px solid rgba(217, 180, 105, .32);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 42px rgba(78, 10, 22, .08);
}

.store-filters {
    position: sticky;
    top: 18px;
    padding: 18px;
}

.store-filters form,
.checkout-form,
.cart-summary,
.store-filters label {
    display: grid;
    gap: 10px;
}

.store-filters h2,
.cart-summary h2 {
    margin: 0;
    color: var(--red-deep);
    font-size: 22px;
}

.store-filters input,
.store-filters select,
.product-buy-box input,
.product-buy-box select,
.coupon-form input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.cart-item input {
    min-height: 44px;
    border: 1px solid rgba(143, 23, 36, .16);
    border-radius: 12px;
    padding: 0 12px;
    color: var(--ink);
    background: #fff;
}

.store-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.store-filters button,
.store-add-cart button,
.product-actions button,
.checkout-form button,
.coupon-form button,
.cart-item button {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, var(--red-deep), var(--red));
    font-weight: 950;
    cursor: pointer;
}

.store-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.store-products-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.store-product-card {
    position: relative;
    overflow: hidden;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.store-product-card:hover {
    border-color: rgba(201, 39, 55, .28);
    box-shadow: 0 26px 62px rgba(95, 15, 26, .14);
    transform: translateY(-4px);
}

.store-product-image {
    position: relative;
    display: grid;
    place-items: center;
    height: 260px;
    padding: 18px;
    background:
        radial-gradient(circle at 50% 15%, rgba(217, 180, 105, .22), transparent 38%),
        linear-gradient(135deg, #fff, #fff8ea);
}

.store-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .28s ease;
}

.store-product-card:hover .store-product-image img {
    transform: scale(1.06) rotate(-1deg);
}

.store-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-size: 12px;
    font-weight: 950;
}

.store-badge.sale { right: 12px; }
.store-badge.new { left: 12px; background: linear-gradient(145deg, #6a4208, var(--gold)); }

.store-product-body {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 16px;
}

.store-favorite {
    position: absolute;
    top: -24px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(217, 180, 105, .35);
    border-radius: 50%;
    color: var(--red);
    background: #fff;
    box-shadow: 0 12px 24px rgba(95, 15, 26, .14);
}

.store-favorite.is-active {
    color: #fff;
    background: var(--red);
}

.store-product-body small {
    color: var(--muted);
    font-weight: 900;
}

.store-product-body h3 {
    min-height: 52px;
    margin: 0;
    color: var(--red-deep);
    font-size: 18px;
    font-weight: 950;
}

.store-rating {
    color: var(--gold);
    font-weight: 950;
}

.store-rating span {
    color: var(--muted);
    font-size: 13px;
}

.store-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-price strong,
.product-price strong {
    color: var(--red);
    font-size: 20px;
    font-weight: 950;
}

.store-price del,
.product-price del {
    color: var(--muted);
    font-size: 14px;
}

.store-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.store-sizes span {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    min-height: 26px;
    border-radius: 8px;
    color: var(--red-deep);
    background: #fff2d0;
    font-size: 12px;
    font-weight: 950;
}

.store-add-cart {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.store-quick-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--red-deep);
    background: #fff1f3;
    font-weight: 950;
}

.store-sticky-cart {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(145deg, var(--red-deep), var(--red));
    box-shadow: 0 18px 38px rgba(95, 15, 26, .28);
    font-weight: 950;
}

.store-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 130;
    padding: 12px 18px;
    border-radius: 999px;
    color: #fff;
    background: #4a0711;
    box-shadow: 0 18px 38px rgba(31, 4, 10, .24);
    opacity: 0;
    transform: translate(-50%, 16px);
    transition: .24s ease;
}

.store-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.store-inner-header {
    min-height: 106px;
}

.store-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 900;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
    gap: 24px;
}

.product-gallery,
.product-info {
    border: 1px solid rgba(217, 180, 105, .32);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 42px rgba(78, 10, 22, .08);
}

.product-gallery {
    padding: 18px;
}

.product-main-image {
    display: grid;
    place-items: center;
    overflow: hidden;
    height: 520px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff, #fff4dc);
}

.product-main-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform .2s ease;
}

.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.product-thumbs button {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(217, 180, 105, .36);
    border-radius: 14px;
    background: #fff;
}

.product-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-preview-360 {
    display: inline-flex;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.product-info {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 26px;
}

.product-info h1 {
    margin: 0;
    color: var(--red-deep);
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 950;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price strong {
    font-size: 34px;
}

.product-meta {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-meta li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff8e8;
}

.product-buy-box {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(201, 39, 55, .12);
    border-radius: 18px;
    background: #fff;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.product-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.product-share a {
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--red-deep);
    background: #fff2d0;
    font-weight: 900;
}

.product-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.product-tabs article,
.product-reviews {
    padding: 18px;
}

.product-tabs h2,
.product-reviews h2 {
    color: var(--red-deep);
}

.product-reviews {
    margin-top: 24px;
}

.product-reviews article {
    padding: 12px 0;
    border-bottom: 1px solid rgba(143, 23, 36, .1);
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 90px auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(217, 180, 105, .32);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(78, 10, 22, .06);
}

.cart-item img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    padding: 8px;
    border-radius: 16px;
    background: #fff8e8;
}

.cart-item h2 {
    margin: 0 0 5px;
    color: var(--red-deep);
    font-size: 19px;
}

.store-remove {
    background: #6f6b72 !important;
}

.cart-summary {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.coupon-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.cart-summary dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.cart-summary dl div,
.checkout-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(143, 23, 36, .1);
}

.cart-summary .total {
    color: var(--red-deep);
    font-size: 20px;
    font-weight: 950;
}

.whatsapp-order {
    color: var(--red-deep);
    background: linear-gradient(145deg, #fff5c5, var(--gold));
}

.checkout-form {
    padding: 22px;
}

.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.checkout-steps span {
    display: grid;
    place-items: center;
    min-height: 42px;
    border-radius: 999px;
    color: var(--red-deep);
    background: #fff2d0;
    font-weight: 950;
}

.checkout-success {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 52px;
    text-align: center;
}

.checkout-success h1 {
    color: var(--red-deep);
    font-size: 42px;
}

.checkout-simple-note {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(217, 180, 105, .34);
    border-radius: 18px;
    color: #5f0f1a;
    background:
        radial-gradient(circle at 8% 0%, rgba(217, 180, 105, .22), transparent 34%),
        linear-gradient(145deg, #fffaf0, #fff4dd);
}

.checkout-simple-note strong {
    font-size: 18px;
    font-weight: 950;
}

.checkout-simple-note span {
    color: #7b6b55;
    font-size: 14px;
    font-weight: 800;
}

.checkout-simple-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-simple-grid label {
    color: #5f0f1a;
    font-weight: 950;
}

.checkout-simple-grid select,
.checkout-simple-grid input {
    background: #fffdf8;
}

.store-empty,
.store-alert {
    padding: 22px;
    border: 1px solid rgba(217, 180, 105, .36);
    border-radius: 18px;
    background: #fff;
}

.store-alert,
.store-error {
    color: var(--red);
    font-weight: 950;
}

@media (max-width: 1020px) {
    .store-hero-grid,
    .store-layout,
    .product-detail,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .store-strip,
    .store-products-grid,
    .store-products-grid.compact,
    .product-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-filters,
    .cart-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .store-hero {
        min-height: 0;
    }

    .store-hero .topbar,
    .store-inner-header .topbar,
    .store-main,
    .store-hero-grid {
        width: min(100% - 24px, 100%);
    }

    .store-hero-grid {
        min-height: 0;
        padding: 34px 0 96px;
    }

    .store-hero h1 {
        font-size: 34px;
    }

    .store-hero-card {
        min-height: 300px;
    }

    .store-strip,
    .store-products-grid,
    .store-products-grid.compact,
    .product-tabs,
    .checkout-steps {
        grid-template-columns: 1fr;
    }

    .store-layout {
        gap: 16px;
    }

    .store-product-image {
        height: 230px;
    }

    .product-main-image {
        height: 360px;
    }

    .product-actions,
    .store-add-cart {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .cart-item img {
        width: 76px;
        height: 76px;
    }

    .cart-item input,
    .cart-item button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Club Store visual refinement. */
body.store-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% -4%, rgba(201, 39, 55, .16), transparent 32%),
        radial-gradient(circle at 10% 10%, rgba(217, 180, 105, .18), transparent 28%),
        linear-gradient(180deg, #fff8ef 0%, #fffdf8 46%, #fff7ef 100%);
}

.store-page a {
    text-decoration: none;
}

.store-hero,
.store-inner-header {
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .18), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(246, 207, 128, .28), transparent 30%),
        linear-gradient(135deg, #4f0711 0%, #7d0d1d 42%, #c81731 100%);
}

.store-hero {
    min-height: 490px;
}

.store-hero::before {
    content: "";
    position: absolute;
    inset: auto -10% -38% -10%;
    height: 260px;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 255, 255, .18), transparent 62%),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent);
    pointer-events: none;
}

.store-hero .topbar,
.store-inner-header .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 18px 42px rgba(29, 2, 8, .16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.store-hero .brand,
.store-inner-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: #fff;
    font-weight: 950;
}

.store-hero .brand-logo,
.store-inner-header .brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    padding: 4px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
}

.store-hero .nav-links,
.store-inner-header .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.store-hero .nav-links a,
.store-inner-header .nav-links a {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .08);
    font-size: 14px;
    font-weight: 900;
}

.store-hero .nav-links a:hover,
.store-inner-header .nav-links a:hover {
    color: #fff8df;
    border-color: rgba(245, 204, 122, .52);
    background: rgba(255, 255, 255, .14);
}

.store-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
    min-height: 392px;
    gap: 30px;
    padding: 26px 0 58px;
}

.store-kicker,
.store-section-head span {
    min-height: 30px;
    padding: 0 13px;
    color: #5f0f1a;
    background: linear-gradient(135deg, #fff6d5, #d9b469);
    box-shadow: 0 10px 22px rgba(95, 15, 26, .12);
}

.store-hero h1 {
    max-width: 640px;
    margin: 14px 0 12px;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.12;
}

.store-hero p {
    max-width: 610px;
    color: rgba(255, 255, 255, .84);
    font-size: 16px;
    line-height: 1.9;
}

.store-hero-actions {
    gap: 10px;
    margin-top: 20px;
}

.store-hero-actions a {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .14);
}

.store-hero-card {
    min-height: 325px;
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)),
        radial-gradient(circle at 50% 16%, rgba(217, 180, 105, .28), transparent 44%);
}

.store-hero-card img {
    width: min(82%, 280px);
    height: 220px;
    border-radius: 24px;
    box-shadow: 0 24px 46px rgba(29, 2, 8, .2);
}

.store-hero-card span {
    max-width: 100%;
    font-size: clamp(22px, 2.4vw, 30px);
    text-align: center;
}

.store-main {
    padding: 34px 0 72px;
}

.store-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: -54px;
    margin-bottom: 26px;
}

.store-strip span {
    position: relative;
    min-height: 68px;
    padding: 12px;
    border-radius: 18px;
    color: #5f0f1a;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 247, 229, .9)),
        #fff;
    font-size: 14px;
}

.store-strip span::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-inline-end: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(217, 180, 105, .16);
}

.store-section {
    margin-top: 34px;
}

.store-section-head {
    align-items: center;
    margin-bottom: 14px;
}

.store-section-head h1,
.store-section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.25;
}

.store-catalog-head strong {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff8df;
    background: linear-gradient(135deg, #7d0d1d, #c81731);
    box-shadow: 0 12px 24px rgba(95, 15, 26, .16);
    font-weight: 950;
}

.store-layout {
    grid-template-columns: 288px minmax(0, 1fr);
    gap: 18px;
    margin-top: 36px;
}

.store-filters,
.store-product-card,
.store-empty-state {
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(255, 249, 238, .92)),
        #fff;
    box-shadow: 0 20px 48px rgba(78, 10, 22, .08), inset 0 1px 0 rgba(255, 255, 255, .86);
}

.store-filters {
    top: 16px;
    padding: 16px;
}

.store-filters h2 {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(143, 23, 36, .1);
    font-size: 20px;
}

.store-filters label {
    color: #5f0f1a;
    font-size: 13px;
    font-weight: 950;
}

.store-filters input,
.store-filters select {
    min-height: 42px;
    border-radius: 14px;
    background: #fffdf8;
}

.store-filters button {
    min-height: 46px;
    border-radius: 16px;
}

.store-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 16px;
}

.store-category-pills a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(143, 23, 36, .12);
    border-radius: 999px;
    color: #6d2630;
    background: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 950;
}

.store-category-pills a.active,
.store-category-pills a:hover {
    color: #fff8df;
    border-color: transparent;
    background: linear-gradient(135deg, #7d0d1d, #c81731);
}

.store-products-grid,
.store-products-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.store-product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
}

.store-product-image {
    height: 222px;
    padding: 16px;
    border-bottom: 1px solid rgba(143, 23, 36, .08);
    background:
        radial-gradient(circle at 50% 8%, rgba(217, 180, 105, .2), transparent 42%),
        linear-gradient(145deg, #fff, #fff6e8);
}

.store-product-body {
    align-content: start;
    gap: 7px;
    padding: 15px;
}

.store-product-body h3 {
    min-height: 48px;
    font-size: 17px;
    line-height: 1.45;
}

.store-product-body h3 a {
    color: inherit;
}

.store-product-body small {
    color: #8b4b54;
    font-size: 12px;
}

.store-rating {
    color: #d9a43b;
    font-size: 13px;
    letter-spacing: 0;
}

.store-rating span {
    color: #7b6b55;
    font-weight: 950;
}

.store-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.store-price strong {
    color: #7d0d1d;
    font-size: 18px;
}

.store-price del {
    color: #9b8d7a;
    font-size: 13px;
}

.store-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 26px;
}

.store-sizes span {
    display: inline-grid;
    place-items: center;
    min-width: 27px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    color: #5f0f1a;
    background: #fff3d6;
    font-size: 11px;
    font-weight: 950;
}

.store-add-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 5px;
}

.store-add-cart button,
.store-quick-view {
    min-height: 42px;
    border-radius: 14px;
}

.store-quick-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(143, 23, 36, .14);
    color: #5f0f1a;
    background: #fff9ed;
    font-size: 13px;
    font-weight: 950;
}

.store-favorite {
    color: #c81731;
    font-size: 21px;
}

.store-empty-state {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 230px;
    padding: 36px 20px;
    text-align: center;
}

.store-empty-state strong {
    color: #5f0f1a;
    font-size: 22px;
}

.store-empty-state p {
    margin: 0;
    color: #6d7280;
    font-weight: 800;
}

.store-empty-state a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff8df;
    background: linear-gradient(135deg, #7d0d1d, #c81731);
    font-weight: 950;
}

.store-sticky-cart {
    left: 22px;
    right: auto;
    bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .34);
    background: linear-gradient(135deg, #7d0d1d, #c81731);
}

@media (max-width: 1180px) {
    .store-products-grid,
    .store-products-grid.compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .store-hero {
        min-height: 0;
    }

    .store-hero .topbar,
    .store-inner-header .topbar {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 22px;
    }

    .store-hero .nav-links,
    .store-inner-header .nav-links {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .store-hero .nav-links a,
    .store-inner-header .nav-links a {
        white-space: nowrap;
    }

    .store-hero-grid,
    .store-layout {
        grid-template-columns: 1fr;
    }

    .store-hero-grid {
        min-height: 0;
        padding: 28px 0 72px;
    }

    .store-hero-card {
        min-height: 270px;
    }

    .store-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -44px;
    }

    .store-filters {
        position: static;
    }

    .store-filters form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
    }

    .store-filters h2,
    .store-filters button {
        grid-column: 1 / -1;
    }

    .store-products-grid,
    .store-products-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .store-hero .topbar,
    .store-inner-header .topbar,
    .store-main,
    .store-hero-grid {
        width: min(100% - 22px, 100%);
    }

    .store-hero h1 {
        font-size: 30px;
    }

    .store-hero p {
        font-size: 14px;
    }

    .store-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .store-strip {
        gap: 8px;
    }

    .store-strip span {
        min-height: 56px;
        font-size: 12px;
    }

    .store-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .store-catalog-head strong {
        min-height: 32px;
        font-size: 13px;
    }

    .store-filters form {
        grid-template-columns: 1fr;
    }

    .store-product-image {
        height: 154px;
        padding: 10px;
    }

    .store-product-body {
        padding: 11px;
    }

    .store-product-body h3 {
        min-height: 42px;
        font-size: 14px;
    }

    .store-rating,
    .store-product-body small,
    .store-quick-view {
        font-size: 11px;
    }

    .store-price {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .store-price strong {
        font-size: 15px;
    }

    .store-add-cart {
        grid-template-columns: 1fr;
    }

    .store-add-cart button,
    .store-quick-view {
        min-height: 38px;
    }

    .store-sticky-cart {
        left: 12px;
        bottom: 12px;
    }
}

/* Store layout hardening: prevents filter/product overlap. */
.store-page .store-main,
.store-page .store-hero-grid,
.store-page .store-hero .topbar {
    box-sizing: border-box;
}

.store-page .store-layout {
    direction: ltr;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 316px !important;
    grid-template-areas: "catalog filters";
    align-items: start;
    gap: 22px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.store-page .store-filters {
    grid-area: filters;
    direction: rtl;
    width: 100%;
    max-width: 316px;
    min-width: 0;
    overflow: hidden;
    z-index: 1;
}

.store-page .store-catalog-panel {
    grid-area: catalog;
    direction: rtl;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.store-page .store-filters form {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
}

.store-page .store-filters label,
.store-page .store-filter-row,
.store-page .store-filter-row label {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.store-page .store-filter-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.store-page .store-filters input,
.store-page .store-filters select {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

.store-page .store-catalog-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.store-page .store-category-pills {
    max-width: 100%;
    overflow: hidden;
}

.store-page .store-products-grid,
.store-page .store-products-grid.compact {
    direction: rtl;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.store-page .store-product-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    z-index: 0;
}

.store-page .store-product-image,
.store-page .store-product-body,
.store-page .store-add-cart {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.store-page .store-add-cart {
    grid-template-columns: 1fr;
}

.store-page .store-quick-view {
    width: 100%;
}

@media (min-width: 1181px) {
    .store-page .store-section > .store-products-grid {
        grid-template-columns: repeat(4, minmax(220px, 1fr)) !important;
    }

    .store-page .store-catalog-panel .store-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    .store-page .store-layout {
        direction: rtl;
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "filters"
            "catalog";
    }

    .store-page .store-filters {
        max-width: none;
        position: static;
    }

    .store-page .store-filters form {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-page .store-filters h2,
    .store-page .store-filters button {
        grid-column: 1 / -1;
    }

    .store-page .store-filter-row {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .store-page .store-filters form {
        display: flex !important;
    }

    .store-page .store-products-grid,
    .store-page .store-products-grid.compact,
    .store-page .store-section > .store-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .store-page .store-product-image {
        height: 148px;
    }

    .store-page .store-catalog-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Premium product card polish. */
.store-page .store-product-card {
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(217, 180, 105, .34);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 249, 237, .96) 100%),
        #fffaf0;
    box-shadow:
        0 24px 58px rgba(95, 15, 26, .11),
        inset 0 1px 0 rgba(255, 255, 255, .92);
}

.store-page .store-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 0%, rgba(217, 180, 105, .28), transparent 34%),
        radial-gradient(circle at 92% 38%, rgba(201, 39, 55, .12), transparent 38%);
    pointer-events: none;
}

.store-page .store-product-card:hover {
    border-color: rgba(217, 180, 105, .58);
    box-shadow:
        0 30px 72px rgba(95, 15, 26, .17),
        inset 0 1px 0 rgba(255, 255, 255, .96);
}

.store-page .store-product-image {
    height: 250px;
    margin: 16px 16px 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(95, 15, 26, .08);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .68), rgba(255, 245, 221, .24)),
        radial-gradient(circle at 50% 18%, rgba(217, 180, 105, .18), transparent 42%),
        #f8f4ef;
}

.store-page .store-product-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 250, 240, .72) 64%, rgba(255, 250, 240, .96) 100%);
    pointer-events: none;
}

.store-page .store-product-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 24px rgba(95, 15, 26, .12));
}

.store-page .store-product-body {
    position: relative;
    margin: -4px 0 0;
    padding: 14px 16px 16px;
    border-radius: 0 0 26px 26px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, .98), rgba(255, 246, 228, .96));
}

.store-page .store-favorite {
    top: -46px;
    left: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(217, 180, 105, .52);
    color: #c81731;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(255, 241, 212, .94));
    box-shadow: 0 14px 26px rgba(95, 15, 26, .16);
}

.store-page .store-favorite.is-active {
    color: #fff8df;
    background: linear-gradient(135deg, #7d0d1d, #c81731);
}

.store-page .store-product-body small {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(217, 180, 105, .34);
    border-radius: 999px;
    color: #7a2631;
    background: rgba(255, 246, 220, .86);
    font-size: 11px;
    font-weight: 950;
}

.store-page .store-product-body h3 {
    min-height: auto;
    margin-top: 2px;
    color: #4f0711;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: 0;
}

.store-page .store-rating {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    color: #d59b2a;
    font-size: 13px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .75);
}

.store-page .store-rating span {
    order: -1;
    color: #8a5a16;
    font-size: 12px;
}

.store-page .store-price {
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding-top: 4px;
}

.store-page .store-price strong {
    color: #8f1022;
    font-size: 21px;
    font-weight: 950;
}

.store-page .store-price del {
    color: rgba(95, 15, 26, .46);
    font-weight: 800;
}

.store-page .store-sizes {
    justify-content: center;
    gap: 7px;
    padding: 2px 0 4px;
}

.store-page .store-sizes span {
    min-width: 31px;
    height: 28px;
    border: 1px solid rgba(217, 180, 105, .28);
    color: #6d1723;
    background:
        linear-gradient(145deg, #fff8e8, #f7dfac);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86);
    font-size: 11px;
}

.store-page .store-add-cart {
    gap: 10px;
    margin-top: 8px;
}

.store-page .store-add-cart button {
    min-height: 48px;
    border-radius: 999px;
    color: #fff8df;
    background:
        linear-gradient(135deg, #6f0b18 0%, #a51228 46%, #d4203a 100%);
    box-shadow: 0 16px 28px rgba(143, 16, 34, .22);
}

.store-page .store-add-cart button:hover {
    background:
        linear-gradient(135deg, #7d0d1d 0%, #c81731 60%, #e0354d 100%);
}

.store-page .store-quick-view {
    min-height: 44px;
    border: 1px solid rgba(217, 180, 105, .38);
    border-radius: 18px;
    color: #6f0b18;
    background:
        linear-gradient(145deg, rgba(255, 251, 242, .98), rgba(255, 244, 224, .92));
}

@media (max-width: 620px) {
    .store-page .store-product-card {
        border-radius: 20px;
    }

    .store-page .store-product-image {
        height: 178px;
        margin: 10px 10px 0;
        border-radius: 16px;
    }

    .store-page .store-product-body {
        padding: 11px 11px 12px;
        border-radius: 0 0 20px 20px;
    }

    .store-page .store-favorite {
        top: -38px;
        left: 12px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .store-page .store-product-body small {
        min-height: 22px;
        padding: 0 8px;
        font-size: 10px;
    }

    .store-page .store-product-body h3 {
        font-size: 14px;
    }

    .store-page .store-price strong {
        font-size: 17px;
    }

.store-page .store-sizes span {
    min-width: 27px;
    height: 24px;
    font-size: 10px;
}
}

/* Compact store cards: size chips replace the old rating/select block. */
.store-page .store-rating {
    display: none !important;
}

.store-page .store-product-card {
    border-radius: 24px;
}

.store-page .store-product-image {
    height: 232px;
    margin: 14px 14px 0;
}

.store-page .store-product-body {
    padding: 12px 15px 15px;
}

.store-page .store-product-body h3 {
    margin: 4px 0 2px;
}

.store-page .store-price {
    padding-top: 0;
}

.store-page .store-size-picker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 4px 0 2px;
}

.store-page .store-size-chip {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.store-page .store-size-chip input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.store-page .store-size-chip span {
    min-width: 34px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid rgba(217, 180, 105, .42);
    border-radius: 999px;
    color: #71101e;
    background:
        linear-gradient(145deg, rgba(255, 253, 246, .98), rgba(250, 226, 170, .68));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .9),
        0 8px 16px rgba(95, 15, 26, .08);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.store-page .store-size-chip input:checked + span {
    border-color: rgba(255, 237, 179, .78);
    color: #fff8df;
    background:
        linear-gradient(135deg, #6f0b18 0%, #a51228 52%, #d4203a 100%);
    box-shadow:
        0 12px 22px rgba(143, 16, 34, .22),
        inset 0 1px 0 rgba(255, 255, 255, .2);
    transform: translateY(-1px);
}

.store-page .store-size-chip input:focus-visible + span {
    outline: 3px solid rgba(217, 180, 105, .34);
    outline-offset: 2px;
}

.store-page .store-add-cart {
    gap: 8px;
    margin-top: 6px;
}

.store-page .store-add-cart button {
    min-height: 46px;
}

.store-page .store-quick-view {
    min-height: 42px;
}

.store-page .product-size-picker {
    justify-content: flex-start;
    margin: 2px 0 4px;
}

@media (max-width: 620px) {
    .store-page .store-product-image {
        height: 164px;
        margin: 9px 9px 0;
    }

    .store-page .store-product-body {
        padding: 9px 10px 11px;
    }

    .store-page .store-product-body h3 {
        margin-top: 2px;
    }

    .store-page .store-size-picker {
        gap: 5px;
        margin-block: 2px;
    }

    .store-page .store-size-chip span {
        min-width: 29px;
        height: 26px;
        padding: 0 7px;
        font-size: 10px;
    }

    .store-page .store-add-cart {
        margin-top: 4px;
    }

    .store-page .store-add-cart button {
        min-height: 42px;
    }

    .store-page .store-quick-view {
        min-height: 38px;
    }
}

/* Store catalog after removing the filter sidebar. */
.store-page .store-layout-no-filters {
    direction: rtl;
    display: block !important;
    margin-top: 34px;
}

.store-page .store-layout-no-filters .store-catalog-panel {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 24px;
    border: 1px solid rgba(217, 180, 105, .28);
    border-radius: 30px;
    background:
        radial-gradient(circle at 4% 12%, rgba(217, 180, 105, .14), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(255, 248, 235, .72));
    box-shadow: 0 22px 58px rgba(95, 15, 26, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
    overflow: visible;
}

.store-page .store-layout-no-filters .store-catalog-head {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(143, 23, 36, .08);
}

.store-page .store-layout-no-filters .store-catalog-head h2 {
    font-size: clamp(30px, 3vw, 44px);
}

.store-page .store-layout-no-filters .store-category-pills {
    justify-content: center;
    margin: 0 0 22px;
    padding: 8px;
    border: 1px solid rgba(217, 180, 105, .2);
    border-radius: 22px;
    background: rgba(255, 255, 255, .54);
}

.store-page .store-layout-no-filters .store-category-pills a {
    min-height: 38px;
    padding: 0 16px;
    background: rgba(255, 255, 255, .84);
}

.store-page .store-layout-no-filters .store-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)) !important;
    gap: 20px;
}

@media (min-width: 1181px) {
    .store-page .store-layout-no-filters .store-products-grid {
        grid-template-columns: repeat(4, minmax(230px, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .store-page .store-layout-no-filters .store-catalog-panel {
        padding: 16px;
        border-radius: 24px;
    }

    .store-page .store-layout-no-filters .store-catalog-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .store-page .store-layout-no-filters .store-products-grid {
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .store-page .store-layout-no-filters .store-catalog-panel {
        padding: 10px;
    }

    .store-page .store-layout-no-filters .store-category-pills {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 6px;
    }

    .store-page .store-layout-no-filters .store-category-pills a {
        white-space: nowrap;
    }
}

/* Checkout polish. */
.store-page .checkout-layout {
    direction: rtl;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    margin-top: 18px;
}

.store-page .checkout-form,
.store-page .checkout-layout .cart-summary {
    border-radius: 30px;
    background:
        radial-gradient(circle at 10% 0%, rgba(217, 180, 105, .16), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(255, 249, 238, .86));
    box-shadow: 0 22px 60px rgba(95, 15, 26, .08), inset 0 1px 0 rgba(255, 255, 255, .88);
}

.store-page .checkout-form {
    padding: 28px;
    overflow: hidden;
}

.store-page .checkout-form .store-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(143, 23, 36, .08);
}

.store-page .checkout-form .store-section-head h1 {
    margin: 0;
    color: #5f0f1a;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.12;
}

.store-page .checkout-form .store-section-head span {
    flex: 0 0 auto;
    color: #5f0f1a;
    background: linear-gradient(135deg, #fff3cb, #d9b469);
    box-shadow: 0 12px 28px rgba(217, 180, 105, .22);
}

.store-page .checkout-simple-note {
    position: relative;
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
    padding: 20px 22px 20px 64px;
    border-radius: 22px;
    border-color: rgba(217, 180, 105, .45);
    background:
        radial-gradient(circle at 5% 0%, rgba(217, 180, 105, .25), transparent 32%),
        linear-gradient(135deg, #fffaf0, #fff3d9);
}

.store-page .checkout-simple-note::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 22%, transparent 24%),
        linear-gradient(135deg, #d9b469, #fff0be);
    box-shadow: 0 0 0 8px rgba(217, 180, 105, .16);
    transform: translateY(-50%);
}

.store-page .checkout-simple-note strong {
    color: #5f0f1a;
    font-size: 20px;
    line-height: 1.45;
}

.store-page .checkout-simple-note span {
    color: #705b52;
    font-size: 15px;
    line-height: 1.8;
}

.store-page .checkout-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.store-page .checkout-fields-grid label {
    display: grid;
    gap: 10px;
    margin: 0;
    color: #5f0f1a;
    font-size: 15px;
    font-weight: 950;
}

.store-page .checkout-fields-grid input {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 20px;
    border: 1px solid rgba(143, 23, 36, .11);
    color: #4d1018;
    background: rgba(255, 255, 255, .92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 12px 30px rgba(95, 15, 26, .05);
}

.store-page .checkout-fields-grid input:focus {
    border-color: rgba(199, 39, 55, .55);
    box-shadow: 0 0 0 4px rgba(199, 39, 55, .08), 0 12px 30px rgba(95, 15, 26, .07);
    outline: none;
}

.store-page .checkout-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.checkout-field-title {
    grid-column: 1 / -1;
    color: #5f0f1a;
    font-size: 15px;
    font-weight: 950;
}

.store-page .checkout-payment-card {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid rgba(217, 180, 105, .34);
    border-radius: 20px;
    color: #5f0f1a;
    background:
        radial-gradient(circle at 0% 0%, rgba(217, 180, 105, .16), transparent 34%),
        rgba(255, 253, 248, .94);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.store-page .checkout-payment-card:hover,
.store-page .checkout-payment-card:has(input:checked) {
    border-color: rgba(199, 39, 55, .36);
    background:
        radial-gradient(circle at 0% 0%, rgba(217, 180, 105, .24), transparent 34%),
        linear-gradient(135deg, #fff7e7, #fff);
    box-shadow: 0 14px 34px rgba(95, 15, 26, .08);
    transform: translateY(-1px);
}

.store-page .checkout-payment-card input[type="radio"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    padding: 0;
    margin: 0 0 0 12px;
    border-radius: 50%;
    accent-color: #c92737;
    box-shadow: none;
}

.store-page .checkout-payment-card span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.store-page .checkout-payment-card strong {
    font-size: 16px;
    line-height: 1.35;
}

.store-page .checkout-payment-card small {
    color: #806a60;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}

.store-page .checkout-submit-button {
    width: 100%;
    min-height: 58px;
    margin-top: 22px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 950;
    background: linear-gradient(135deg, #7b0f1b, #c92737 72%, #df3444);
    box-shadow: 0 16px 34px rgba(180, 24, 41, .24);
}

.store-page .checkout-submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(180, 24, 41, .3);
}

.store-page .checkout-submit-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.store-page .checkout-layout .cart-summary {
    padding: 22px;
}

.store-page .checkout-layout .cart-summary h2 {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(143, 23, 36, .08);
}

@media (max-width: 1020px) {
    .store-page .checkout-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .store-page .checkout-layout {
        gap: 14px;
        margin-top: 10px;
    }

    .store-page .checkout-form,
    .store-page .checkout-layout .cart-summary {
        border-radius: 24px;
    }

    .store-page .checkout-form {
        padding: 18px;
    }

    .store-page .checkout-form .store-section-head {
        align-items: stretch;
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .store-page .checkout-form .store-section-head h1 {
        font-size: 30px;
    }

    .store-page .checkout-simple-note {
        padding: 16px 18px;
    }

    .store-page .checkout-simple-note::before {
        display: none;
    }

    .store-page .checkout-fields-grid,
    .store-page .checkout-payment-options {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .store-page .checkout-payment-card {
        min-height: 70px;
    }

    .store-page .checkout-submit-button {
        min-height: 56px;
        margin-top: 18px;
    }
}

/* Cart summary containment and spacing. */
.store-page .cart-layout {
    direction: rtl;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.store-page .cart-layout .cart-summary {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 0% 0%, rgba(217, 180, 105, .15), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, .95), rgba(255, 249, 238, .9));
    box-shadow: 0 18px 46px rgba(95, 15, 26, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.store-page .cart-layout .cart-summary > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.store-page .cart-layout .cart-summary h2 {
    margin: 0 0 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(143, 23, 36, .09);
    color: #5f0f1a;
    font-size: 26px;
    line-height: 1.3;
}

.store-page .cart-layout .coupon-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.store-page .cart-layout .coupon-form input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
}

.store-page .cart-layout .coupon-form button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 18px;
    font-size: 15px;
    white-space: nowrap;
}

.store-page .cart-layout .cart-summary dl {
    gap: 0;
    width: 100%;
}

.store-page .cart-layout .cart-summary dl div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 0;
}

.store-page .cart-layout .cart-summary dt,
.store-page .cart-layout .cart-summary dd {
    margin: 0;
    min-width: 0;
    color: #5f0f1a;
    font-weight: 900;
}

.store-page .cart-layout .cart-summary dd {
    text-align: left;
    white-space: nowrap;
}

.store-page .checkout-line span {
    display: grid;
    gap: 4px;
}

.store-page .checkout-line small {
    color: #8a6c43;
    font-size: 12px;
    font-weight: 900;
}

.store-page .cart-layout .cart-summary .total {
    margin-top: 2px;
    padding-top: 16px;
    color: #5f0f1a;
    font-size: 20px;
}

.store-page .cart-layout .checkout-button,
.store-page .cart-layout .whatsapp-order {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 999px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 950;
    text-align: center;
    white-space: normal;
}

.store-page .cart-layout .checkout-button {
    color: #fff8df;
    background: linear-gradient(135deg, #7b0f1b, #bd1f32 68%, #e03345);
    box-shadow: 0 14px 30px rgba(180, 24, 41, .22);
}

.store-page .cart-layout .whatsapp-order {
    color: #5f0f1a;
    background: linear-gradient(135deg, #fff4bd, #d9b469);
    box-shadow: 0 14px 30px rgba(217, 180, 105, .18);
}

@media (max-width: 1020px) {
    .store-page .cart-layout {
        grid-template-columns: 1fr;
    }

    .store-page .cart-layout .cart-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 560px) {
    .store-page .cart-layout .cart-summary {
        padding: 18px;
        border-radius: 24px;
    }

    .store-page .cart-layout .cart-summary h2 {
        font-size: 24px;
    }

    .store-page .cart-layout .coupon-form {
        grid-template-columns: 1fr;
    }

    .store-page .cart-layout .coupon-form button,
    .store-page .cart-layout .checkout-button,
    .store-page .cart-layout .whatsapp-order {
        min-height: 50px;
    }
}

/* Store size selection. */
.store-page .store-card-size,
.store-page .cart-size-select {
    display: grid;
    gap: 7px;
    color: #5f0f1a;
    font-size: 13px;
    font-weight: 950;
}

.store-page .store-card-size select,
.store-page .cart-size-select select {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(217, 180, 105, .34);
    border-radius: 15px;
    color: #5f0f1a;
    font-weight: 900;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 248, 232, .9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.store-page .store-card-size select:focus,
.store-page .cart-size-select select:focus {
    border-color: rgba(199, 39, 55, .5);
    box-shadow: 0 0 0 4px rgba(199, 39, 55, .08);
    outline: none;
}

.store-page .cart-size-select {
    max-width: 190px;
    margin-top: 8px;
}

.store-page .cart-size-select select {
    min-height: 40px;
}

@media (max-width: 640px) {
    .store-page .cart-size-select {
        max-width: 100%;
    }
}
