:root {
    --red: #c92737;
    --red-dark: #8f1724;
    --red-deep: #5f0f1a;
    --red-soft: #fff0f2;
    --gold: #d9b469;
    --ink: #481018;
    --muted: #6d7280;
    --line: #e8e1d2;
    --paper: #fffaf0;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff 0%, #fbf7ec 48%, #ffffff 100%);
    overflow-x: hidden;
}

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

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

.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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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: 11.5px;
    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;
}

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

.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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 42px rgba(30, 5, 9, .16);
}

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

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

.teams-page-hero .admin-link {
    min-height: 38px;
    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);
}

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

.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;
}

.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;
}

.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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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-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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 22px;
    line-height: 1.25;
}

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

.profile-stat {
    min-height: 132px;
    place-items: center;
    text-align: center;
}

.profile-stat strong {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--red-dark), var(--red-deep));
    font-size: 34px;
    box-shadow: 0 14px 28px rgba(95, 15, 26, .16);
}

.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: "Cairo", Tahoma, Arial, sans-serif;
    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-item b {
    grid-column: 4;
    grid-row: 1 / span 2;
    justify-self: end;
    min-width: 118px;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    font-size: 12px;
    text-align: center;
}

.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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(95, 15, 26, .22);
}

.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: "Cairo", Tahoma, Arial, sans-serif;
    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: "Cairo", Tahoma, Arial, sans-serif;
    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;
}

.schedule-month-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(201, 39, 55, .16);
    border-radius: 8px;
    background:
        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-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 {
    color: var(--red-deep);
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 22px;
}

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

.schedule-subtitle {
    margin: 22px 0 12px;
    color: var(--red-deep);
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 22px;
}

.schedule-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) minmax(180px, .4fr) auto;
    align-items: center;
    gap: 16px;
    min-width: 0;
    overflow: hidden;
    padding: 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, .64)),
        var(--white);
    box-shadow: 0 18px 44px rgba(42, 31, 21, .08);
}

.schedule-date {
    display: grid;
    place-items: center;
    min-height: 86px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red-dark), var(--red));
}

.schedule-date span {
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.schedule-date small {
    color: rgba(255, 255, 255, .78);
    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: 72px;
    height: 62px;
    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: 38px;
    color: var(--red-deep);
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    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: 86px;
    min-height: 62px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--red-deep);
    background: linear-gradient(135deg, #fff8e7, var(--gold));
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 24px;
    font-weight: 900;
}

.schedule-meta {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.schedule-meta span {
    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: 18px;
    padding: 22px;
    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 24px 58px rgba(42, 31, 21, .1);
}

.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: 12px;
    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: 10px;
    min-height: 190px;
    padding: 18px;
    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: 28px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--red-deep);
    background: #fff0f2;
    font-size: 12px;
    font-weight: 900;
}

.detail-team-logo {
    width: 116px;
    height: 100px;
    padding: 10px;
    border-color: rgba(217, 180, 105, .58);
}

.detail-team h2 {
    margin: 0;
    color: var(--red-deep);
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 21px;
    line-height: 1.35;
}

.detail-score {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-width: 180px;
    min-height: 174px;
    padding: 18px 20px;
    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 22px 46px rgba(95, 15, 26, .24);
}

.match-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    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: 8px 0 5px;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    font-size: 48px;
    line-height: 1;
}

.detail-competition {
    margin-top: 8px;
}

.detail-datetime {
    max-width: 190px;
    line-height: 1.7;
}

.match-info-grid,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.match-info-grid article,
.detail-panel {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(201, 39, 55, .16);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(42, 31, 21, .08);
}

.match-info-grid article {
    min-height: 116px;
    padding: 18px 18px 18px 104px;
    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: 18px;
    left: 18px;
    display: grid;
    place-items: center;
    min-width: 64px;
    height: 42px;
    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: 8px;
    color: var(--muted);
    font-weight: 800;
}

.match-info-grid strong,
.detail-panel h2 {
    color: var(--red-deep);
    font-family: "Cairo", Tahoma, Arial, sans-serif;
}

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

.match-lineup-section {
    grid-template-columns: 1fr;
}

.lineup-panel {
    position: relative;
    overflow: hidden;
    padding: 22px;
    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: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 39, 55, .12);
}

.lineup-panel-head > div:first-child {
    display: grid;
    gap: 8px;
}

.lineup-panel-head span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 12px;
    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: 34px;
    padding: 0 12px;
    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 14px;
    font-size: 20px;
}

.lineup-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lineup;
}

.lineup-list li {
    counter-increment: lineup;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff8e7;
    color: var(--ink);
    font-weight: 800;
}

.lineup-list li::before {
    content: counter(lineup);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--white);
    background: var(--red);
    font-size: 12px;
}

.lineup-list-linked li {
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    border: 1px solid transparent;
}

.lineup-list-linked li.lineup-substitute {
    border-color: rgba(217, 180, 105, .5);
    background: linear-gradient(135deg, #fff8e7, #fffdf5);
}

.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, .22);
    background: linear-gradient(135deg, #fff1f2, #fff8e7);
}

.lineup-player-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.lineup-player-main a {
    color: inherit;
    text-decoration: none;
}

.lineup-player-main small {
    color: var(--muted);
}

.lineup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-inline-start: auto;
}

.lineup-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.lineup-badge.in {
    color: #7b5409;
    background: #fff0bf;
}

.lineup-badge.out {
    color: var(--red-deep);
    background: #ffe6e9;
}

.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: 16px;
}

.live-match-head > div {
    display: grid;
    gap: 6px;
}

.live-match-head small {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 11px;
    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: 30px;
    padding: 5px 12px;
    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: 12px;
}

.live-match-timeline::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    right: 23px;
    width: 2px;
    background: linear-gradient(180deg, var(--red), var(--gold));
    opacity: .28;
}

.live-match-event {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    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: 116px 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: 8px;
    min-width: 0;
}

.live-event-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    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: 32px;
    height: 32px;
    object-fit: contain;
}

.live-event-player {
    position: relative;
    display: block;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.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: 34px;
    height: 24px;
    padding: 0 7px;
    border: 2px solid var(--white);
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    font-size: 11px;
    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: 46px;
    height: 46px;
    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: "Cairo", Tahoma, Arial, sans-serif;
}

.live-match-event small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-weight: 900;
}

.live-match-event p {
    margin: 8px 0 0;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.8;
}

.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: "Cairo", Tahoma, Arial, sans-serif;
}

.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,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .match-detail-hero {
        gap: 12px;
        padding: 16px;
    }

    .detail-team {
        min-height: 0;
    }

    .schedule-card {
        align-items: stretch;
    }

    .schedule-date {
        min-height: 70px;
    }

    .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-item b {
        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;
    }

    .teams-page-hero .topbar {
        width: min(100% - 24px, 100%);
        padding: 9px 10px;
    }

    .brand span {
        max-width: 160px;
        line-height: 1.5;
    }

    .teams-page-hero .brand span {
        max-width: 52vw;
        font-size: 13px;
    }

    .teams-page-title {
        width: min(100% - 24px, 100%);
        gap: 10px;
        padding: 26px 0 36px;
    }

    .teams-page-title::before,
    .roster-page-title::before {
        width: 56px;
        height: 4px;
    }

    .teams-page-title h1 {
        font-size: 26px;
        line-height: 1.25;
    }

    .teams-page-title p {
        padding: 7px 10px;
        font-size: 13px;
        line-height: 1.75;
    }

    .site-nav {
        gap: 6px;
        padding: 2px 0 3px;
    }

    .schedule-month-bar {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .home-schedule-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-schedule-title span {
        line-height: 1.7;
    }

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

    .schedule-score {
        width: 100%;
    }

    .schedule-details-link {
        width: 100%;
    }

    .schedule-team-logo,
    .detail-team-logo {
        width: 68px;
        height: 58px;
    }

    .match-detail-hero {
        padding: 14px;
    }

    .detail-team-logo {
        width: 86px;
        height: 76px;
    }

    .detail-team h2 {
        font-size: 17px;
    }

    .detail-score {
        min-height: 112px;
    }

    .detail-score strong {
        font-size: 34px;
    }

    .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: 11px;
        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: 11px;
    }

    .club-achievements li b {
        font-size: 12px;
    }

    .club-achievements li small {
        font-size: 11px;
    }

    .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: 1fr;
        gap: 16px;
        padding: 20px 16px 18px;
    }

    .match-teams::before {
        display: none;
    }

    .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: 14px 10px 12px;
    }

    .card-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 18px 16px 15px;
    }

    .card-heading strong {
        max-width: 100%;
    }

    .team-logo {
        width: 88px;
        height: 74px;
        padding: 9px;
    }

    .score-box {
        width: 100%;
        min-height: 92px;
    }

    .score-box strong {
        font-size: 32px;
    }

    .meta-row {
        margin: 0 16px 18px;
    }

    .match-card-action {
        width: calc(100% - 32px);
        margin: 0 16px 18px;
    }

    .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: calc(100% - 110px);
        gap: 0;
    }

    .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;
    }

    .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-item b {
        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;
    }

    .lineup-badges {
        width: 100%;
        margin-inline-start: 0;
    }

    .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: 11px;
    }

    .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: 420px) {
    .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: 1fr;
        width: min(270px, 100%);
        margin-inline: auto;
    }

    .scorer-photo {
        height: 250px;
    }

    .goals-circle {
        top: 207px;
    }

    .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: 720px;
    }

    .league-table th,
    .league-table td {
        padding: 12px 9px;
    }
}
