/* ==== Design tokens — from the club's brand mockup ==== */
:root {
    --color-accent: #0EFF36;
    --color-accent-dim: #0BC72B;
    --color-black: #000000;
    --color-surface: #0D0D0D;
    --color-surface-raised: #161616;
    --color-white: #FFFFFF;
    --color-muted: #9A9A9A;
    --color-border: rgba(255, 255, 255, 0.08);

    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Page width. The site fills the whole screen at any size: there is no upper limit, only a side gutter that
       grows a little with the screen (never below 1.25rem on a phone, never above 3rem). Header, content and
       footer share both. To cap the width again, set --site-max-width to a length, e.g. 1840px. */
    --site-max-width: none;
    --site-gutter: clamp(1.25rem, 2vw, 3rem);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    color-scheme: dark; /* native controls and the default scrollbar come out dark, not white */
}

/* ==== Scrollbars — the same dark look everywhere (page, modal windows, bracket, tables) ==== */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

/* Browsers that do not know scrollbar-color (older Safari). */
@supports not (scrollbar-color: auto) {
    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        border: 2px solid var(--color-black);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--color-accent-dim);
    }

    ::-webkit-scrollbar-corner {
        background: transparent;
    }
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-gutter);
}

@media (max-width: 900px) {
    .site-container {
        padding: 0 1.25rem;
    }
}

/* ==== Site header ==== */

.site-header {
    position: relative;
    z-index: 100;
    background: var(--color-black);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 1rem var(--site-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-brand img {
    width: auto;
    height: 65px; /* 1.5 x the former 43px */
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex: 1;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
    white-space: nowrap;
    transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--color-accent);
}

.site-header__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-search-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.05rem;
    color: var(--color-white);
    transition: color 0.15s ease;
}

.site-search-link:hover {
    color: var(--color-accent);
}

/* Mobile nav toggle — hidden above the breakpoint, header collapses to a hamburger below it */
.site-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.4rem;
    padding: 0.25rem;
}

@media (max-width: 900px) {
    .site-header__inner {
        padding: 0.85rem 1.25rem;
    }

    .site-brand img {
        height: 48px;
    }

    .site-nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--color-black);
        border-bottom: 1px solid var(--color-border);
        padding: 0.5rem 1.25rem 1rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav li {
        width: 100%;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--color-border);
    }
}

/* ==== Site footer ==== */

.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
}

.site-footer__inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 2.25rem var(--site-gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem 2.5rem;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-footer__brand img {
    width: 100%;
    height: 41px;
}

.site-footer__col {
    font-size: 0.85rem;
    color: var(--color-white);
    line-height: 1.9;
}

.site-footer__col-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.6rem;
}

.site-footer__social {
    display: flex;
    gap: 0.6rem;
}

.site-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--color-surface-raised);
    color: var(--color-white);
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-footer__social a:hover {
    background: var(--color-accent);
    color: var(--color-black);
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.site-footer__links a:hover {
    color: var(--color-white);
}

.site-footer__copyright {
    font-size: 0.8rem;
    color: var(--color-muted);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .site-footer__inner {
        flex-direction: column;
    }
}

/* ==== Shared placeholder + utility patterns ==== */

.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
    background: repeating-linear-gradient(45deg, var(--color-surface-raised), var(--color-surface-raised) 10px, var(--color-surface) 10px, var(--color-surface) 20px);
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    color: var(--color-muted);
    font-size: 1.4rem;
    text-align: center;
}

.img-placeholder span {
    font-size: 0.7rem;
    max-width: 70%;
}

/* The "fillable" variant is a real placeholder, not just decorative text: it holds a
   conventionally-named <img> pointing at a wwwroot/img/ path that doesn't exist yet. Today
   the file 404s, onerror hides the broken img, and the diagonal pattern + icon underneath
   show through. The moment a real file lands at that exact path, it covers the placeholder
   automatically — no further code changes needed. */
.img-placeholder--fillable {
    position: relative;
    overflow: hidden;
}

.img-placeholder--fillable img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-placeholder--sm {
    min-height: 56px;
    width: 70px;
    flex-shrink: 0;
}

.img-placeholder--tall {
    min-height: 220px;
}

.crest-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    flex-shrink: 0;
}

.crest-placeholder--sm {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
}

.section-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Bootstrap's own .text-muted is !important and dark grey — unreadable on the black page, so this has to be too. */
.text-muted {
    color: var(--color-muted) !important;
}

/* ==== Hero ==== */

.hero {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.hero__image-col {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 420px;
    overflow: hidden;
    border-radius: 14px;
}

.hero__bg-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 14px;
    min-height: 100%;
}

.hero__content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.hero__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.hero__title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 0.95;
    margin: 0 0 0.75rem;
}

.hero__title-accent {
    color: var(--color-accent);
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    margin: 0 0 1.25rem;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border: 1px solid var(--color-white);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    transition: background 0.15s ease, color 0.15s ease;
    align-self: flex-start;
}

.hero__cta:hover {
    background: var(--color-white);
    color: var(--color-black);
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
    }

    .next-match-card {
        width: 100%;
    }
}

/* ==== Next match card ==== */

.next-match-card {
    flex-shrink: 0;
    width: 300px;
    background: rgba(13, 13, 13, 0.92);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
}

.next-match-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.6rem;
}

.next-match-card__date {
    text-align: center;
    margin-bottom: 0.6rem;
}

.next-match-card__day {
    font-size: 1.3rem;
    font-weight: 800;
}

.next-match-card__time {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.next-match-card__teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.next-match-card__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    width: 80px;
}

.next-match-card__team img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.next-match-card__vs {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.next-match-card__venue {
    text-align: center;
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 0.9rem;
}

.next-match-card__cta,
.home-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem;
    background: var(--color-accent);
    color: var(--color-black);
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.next-match-card__body--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0 0.25rem;
}

.next-match-card__body--empty i {
    font-size: 1.6rem;
    color: var(--color-muted);
}

.next-match-card__body--empty p {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0 0 0.5rem;
}

/* ==== Standings section ==== */

.standings-section {
    margin: 3rem 0;
}

.standings-filters {
    display: flex;
    gap: 0.75rem;
}

.standings-filters select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--color-surface-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%239A9A9A' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 1rem center;
    background-size: 11px 7px;
    color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.standings-filters select:hover {
    border-color: var(--color-accent);
}

.standings-table__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.standings-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.standings-table {
    min-width: 640px;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.standings-table th {
    text-align: left;
    color: var(--color-muted);
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.standings-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.standings-table tr.is-top td:first-child {
    box-shadow: inset 3px 0 0 var(--color-accent);
}

.standings-table tr.is-own-club {
    background: rgba(14, 255, 54, 0.08);
}

.standings-table__team {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.standings-table__team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.standings-table__points {
    font-weight: 800;
}

.standings-table .is-positive { color: var(--color-accent); }
.standings-table .is-negative { color: #ff5c5c; }

/* ==== Home content grid ==== */

.home-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin: 3rem 0;
}

.home-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    color: var(--color-white);
}

.home-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.home-card__header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.home-card__header a {
    font-size: 0.72rem;
    color: var(--color-accent);
    font-weight: 700;
    white-space: nowrap;
}

.home-card__video-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    margin-bottom: 0.6rem;
}

.home-card__video-main img,
.home-card__video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-card__video-strip {
    display: flex;
    gap: 0.5rem;
}

.home-card__video-thumb {
    position: relative;
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
}

.home-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: var(--color-white);
    font-size: 1.6rem;
}

.home-card__play--sm {
    font-size: 0.95rem;
}

.home-card--promo {
    padding: 0;
    overflow: hidden;
    position: relative;
    justify-content: flex-end;
    min-height: 260px;
}

.home-card--promo .img-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 0;
    z-index: 0;
}

.home-card__promo-top {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    z-index: 1;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
}

.home-card__promo-body {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 60%);
    padding: 2rem 1.1rem 1.1rem;
}

.home-card__promo-body p {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin: 0 0 0.6rem;
}

.last-match__teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.last-match__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    width: 62px;
    min-width: 0;
}

.last-match__team img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.last-match__score {
    font-size: 1.3rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.last-match__meta {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.home-card__news-list {
    list-style: none;
    margin: 0 0 0.9rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-card__news-list li {
    display: flex;
    gap: 0.6rem;
}

.home-card__news-list img {
    width: 70px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.home-card__news-date {
    font-size: 0.68rem;
    color: var(--color-muted);
    margin-bottom: 0.15rem;
}

.home-card__news-list a {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    display: block;
}

.home-card__news-category {
    font-size: 0.68rem;
    color: var(--color-accent);
    margin-top: 0.2rem;
}

@media (max-width: 1200px) {
    .home-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
}

/* ==== Partners ==== */

.partners-section {
    margin: 3rem 0;
}

.partners-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.partner-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    width: 220px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-weight: 700;
}

.partner-card img {
    max-width: 70%;
    max-height: 50%;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.15s ease;
}

.partner-card:hover img {
    filter: grayscale(0);
}

@media (max-width: 700px) {
    .partner-card {
        width: calc(50% - 0.5rem);
    }
}

/* ==== Instagram ==== */

.instagram-section {
    margin: 3rem 0;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
}

.instagram-grid .img-placeholder {
    aspect-ratio: 1;
    min-height: 0;
    border-radius: 8px;
}

.green-text {
    color: var(--color-accent);
}

@media (max-width: 900px) {
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==== News page ==== */

.news-page-header {
    margin: 2rem 0 1.5rem;
}

.news-page-header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 0.4rem;
}

.news-page-header p {
    color: var(--color-muted);
    margin: 0;
}

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-tab {
    display: inline-block;
    background: none;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-muted);
    transition: background 0.15s ease, color 0.15s ease;
}

.news-tab:hover {
    color: var(--color-white);
}

.news-tab.is-active {
    background: var(--color-accent);
    color: var(--color-black);
}

.news-sort select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--color-surface-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%239A9A9A' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 1rem center;
    background-size: 11px 7px;
    color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.55rem 2.5rem 0.55rem 1rem;
    font-size: 0.82rem;
    cursor: pointer;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--color-accent);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
    width: fit-content;
}

/* ==== News hero ==== */

.news-hero {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.news-hero .img-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    min-height: 100%;
}

/* The text block is in the flow (the picture is the absolute one), so the card grows with the title and the
   lead instead of squeezing the lead into a thin strip; the gradient is dense enough to read it on any photo. */
.news-hero__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.6rem;
    min-height: 340px;
    padding: 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 35%, rgba(0, 0, 0, 0.92) 100%);
}

.news-hero__body > * {
    flex-shrink: 0;
}

.news-hero__date {
    font-size: 0.78rem;
    color: var(--color-muted);
}

.news-hero__body h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    max-width: 26ch;
}

.news-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding: 0.6rem 1.1rem;
    background: var(--color-surface-raised);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==== News grid ==== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    color: var(--color-white);
}

.news-card__image {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.news-card__date {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.news-card__title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-page-header h1 {
        font-size: 1.9rem;
    }

    .news-hero__body h2 {
        font-size: 1.4rem;
        max-width: 100%;
    }
}

.news-load-more {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.news-load-more a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.news-load-more a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ==== News details ==== */

.news-details__back {
    display: inline-flex;
    margin: 1.5rem 0;
}

.news-details {
    max-width: 760px;
    margin: 0 auto 3rem;
}

.news-details h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0.6rem 0 1.5rem;
}

.news-details__image {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.news-details__body {
    font-size: 1rem;
    line-height: 1.75;
    color: #d4d4d4;
    overflow-wrap: anywhere;
}

/* The article text is HTML from the admin's editor (cleaned by NewsBodyHtml): paragraphs, headings,
   lists, quotes, links, and the size / alignment / indent classes the editor writes. */
.news-details__body > :first-child { margin-top: 0; }
.news-details__body > :last-child { margin-bottom: 0; }

.news-details__body p,
.news-details__body ul,
.news-details__body ol,
.news-details__body blockquote {
    margin: 0 0 1em;
}

.news-details__body h2,
.news-details__body h3,
.news-details__body h4 {
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.6em 0 0.6em;
}

.news-details__body h2 { font-size: 1.6rem; }
.news-details__body h3 { font-size: 1.3rem; }
.news-details__body h4 { font-size: 1.1rem; }

.news-details__body strong { color: #fff; font-weight: 700; }

.news-details__body ul,
.news-details__body ol { padding-left: 1.6rem; }

.news-details__body li { margin: 0.25em 0; }

.news-details__body blockquote {
    padding: 0.4em 0 0.4em 1.1rem;
    border-left: 3px solid var(--color-accent);
    color: #bdbdbd;
    font-style: italic;
}

.news-details__body a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-details__body a:hover { text-decoration: none; }

/* Editor formats: the class names are Quill's, the sanitizer only lets these through. */
.news-details__body .ql-size-small { font-size: 0.8em; }
.news-details__body .ql-size-large { font-size: 1.4em; }
.news-details__body .ql-size-huge { font-size: 2em; line-height: 1.3; }

.news-details__body .ql-align-center { text-align: center; }
.news-details__body .ql-align-right { text-align: right; }
.news-details__body .ql-align-justify { text-align: justify; }

.news-details__body .ql-indent-1 { padding-left: 3em; }
.news-details__body .ql-indent-2 { padding-left: 6em; }
.news-details__body .ql-indent-3 { padding-left: 9em; }
.news-details__body .ql-indent-4 { padding-left: 12em; }
.news-details__body .ql-indent-5 { padding-left: 15em; }
.news-details__body .ql-indent-6 { padding-left: 18em; }
.news-details__body .ql-indent-7 { padding-left: 21em; }
.news-details__body .ql-indent-8 { padding-left: 24em; }

@media (max-width: 600px) {
    /* deep indents would squeeze the text into a sliver on a phone */
    .news-details__body .ql-indent-3 { padding-left: 6em; }
    .news-details__body .ql-indent-4,
    .news-details__body .ql-indent-5,
    .news-details__body .ql-indent-6,
    .news-details__body .ql-indent-7,
    .news-details__body .ql-indent-8 { padding-left: 7.5em; }
}

/* ==== Club page ==== */

.btn-outline-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline-pill:hover {
    background: var(--color-accent);
    color: var(--color-black);
}

/* ---- Intro: text / crest / facts ---- */

.club-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.2fr;
    align-items: center;
    gap: 2rem;
    margin: 2.5rem 0;
}

.club-intro__label {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.club-intro__text h1 {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1rem;
}

.club-intro__text p {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.club-intro__crest {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.club-intro__crest i {
    font-size: 4.5rem;
    color: var(--color-border);
}

.club-intro__crest img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.club-intro__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.club-fact {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
}

.club-fact__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
}

.club-fact__value {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .club-intro {
        grid-template-columns: 1fr;
    }

    .club-intro__crest {
        max-width: 280px;
        min-height: 0;
        aspect-ratio: 3 / 4;
        margin: 0 auto;
    }
}

/* ---- Timeline ---- */

.club-timeline {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.club-timeline h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
}

.club-timeline__subtitle {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0 0 2rem;
}

.timeline {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    padding-top: 0.6rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 1.1rem;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
}

.timeline__item {
    position: relative;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    margin-bottom: 0.9rem;
    z-index: 1;
}

.timeline__dot--future {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 0.7rem;
    margin-top: -6px;
}

.timeline__year {
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.timeline__item--future .timeline__year {
    color: var(--color-accent);
}

.timeline__desc {
    font-size: 0.72rem;
    color: var(--color-muted);
    line-height: 1.4;
    max-width: 16ch;
}

@media (max-width: 900px) {
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .timeline::before {
        top: 0;
        bottom: 0;
        left: 5px;
        right: auto;
        width: 1px;
        height: auto;
    }

    .timeline__item {
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .timeline__dot {
        margin-bottom: 0;
        margin-top: 0.3rem;
        flex-shrink: 0;
    }

    .timeline__desc {
        max-width: none;
    }
}

/* ---- Leadership ---- */

.club-leadership {
    margin: 2.5rem 0;
}

.club-leadership h2 {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}

.leader-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.leader-card__photo {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.leader-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card__name {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.leader-card__role {
    font-size: 0.78rem;
    color: var(--color-muted);
}

.club-leadership__footer {
    display: flex;
    justify-content: center;
}

.club-leadership__footer .btn-outline-pill {
    border-color: var(--color-border);
    color: var(--color-white);
}

.club-leadership__footer .btn-outline-pill:hover {
    border-color: var(--color-accent);
    background: transparent;
    color: var(--color-accent);
}

@media (max-width: 1100px) {
    .leader-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .leader-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Partner CTA card (extends .partner-card from the home page) ---- */

.partner-card--cta {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.3rem;
    background: var(--color-surface-raised);
    border-color: var(--color-accent);
    padding: 0 1.25rem;
    text-align: left;
}

.partner-card__cta-title {
    font-weight: 800;
    color: var(--color-white);
}

.partner-card__cta-sub {
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* ==== Team page ==== */

.team-hero {
    position: relative;
    min-height: 300px;
    border-radius: 14px;
    overflow: hidden;
    margin: 1.5rem 0 2rem;
}

.team-hero .img-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    min-height: 100%;
}

.team-hero__body {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.team-hero__body h1 {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 0.4rem;
}

.team-hero__body > p {
    color: var(--color-muted);
    margin: 0 0 1.25rem;
}

.team-hero__stats {
    display: flex;
    gap: 2rem;
}

.team-stat__value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-accent);
}

.team-stat__label {
    font-size: 0.68rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
    position: relative;
    padding-top: 0.5rem;
}

.team-stat__label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1.5rem;
    height: 2px;
    background: var(--color-accent);
}

.team-tabs {
    margin-bottom: 1.5rem;
}

/* ---- Player grid ---- */

.player-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.player-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.player-card__photo {
    aspect-ratio: 3 / 4;
}

.player-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.player-card__body .home-card__cta {
    margin-top: auto;
}

.player-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-card__number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
}

.player-card__name {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.player-card__captain {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-black);
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
}

.player-card__age {
    font-size: 0.75rem;
    color: var(--color-muted);
}

@media (max-width: 1300px) {
    .player-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .player-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .player-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Coaching staff ---- */

.coach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.coach-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.1rem;
    position: relative;
}

.coach-card__photo {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.coach-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.news-badge--muted {
    border-color: var(--color-border);
    color: var(--color-muted);
}

.coach-card__name {
    font-size: 0.9rem;
    font-weight: 800;
    margin: 0.9rem 0 0.3rem;
}

.coach-card__age {
    font-size: 0.78rem;
    color: var(--color-muted);
    padding-top: 0.6rem;
    position: relative;
}

.coach-card__age::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1.5rem;
    height: 2px;
    background: var(--color-accent);
}

@media (max-width: 1100px) {
    .coach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .coach-grid {
        grid-template-columns: 1fr;
    }
}

/* ==== Player detail page ==== */

.player-hero {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1fr;
    align-items: center;
    gap: 1.5rem;
    background: radial-gradient(ellipse at 50% 100%, rgba(14, 255, 54, 0.1) 0%, transparent 65%), var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 2rem 2rem 0 2rem;
    margin: 1.5rem 0 2rem;
    overflow: hidden;
}

.player-hero__number {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.player-hero__name h1 {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0.5rem 0 0.75rem;
}

.player-hero__position {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.player-hero__position-en {
    font-size: 0.7rem;
    color: var(--color-muted);
    letter-spacing: 0.05em;
}

.player-hero__photo {
    justify-self: center;
    align-self: end;
    max-width: 220px;
    max-height: 260px;
}

.player-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

.player-hero__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

@media (max-width: 1000px) {
    .player-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .player-hero__position {
        justify-content: center;
    }

    .player-hero__facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Stats bar ---- */

.player-stats-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.player-stat__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
}

.player-stat__label {
    font-size: 0.72rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.card-dot {
    width: 8px;
    height: 11px;
    border-radius: 2px;
    display: inline-block;
}

.card-dot--yellow {
    background: #f2c94c;
}

.card-dot--red {
    background: #e05c5c;
}

@media (max-width: 700px) {
    .player-stats-bar {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 1.25rem;
    }
}

/* ---- About / recent matches ---- */

.player-detail-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.player-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.player-panel h3 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin: 0 0 1rem;
}

.player-panel p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #d4d4d4;
    margin: 0 0 0.9rem;
}

.player-panel p:last-child {
    margin-bottom: 0;
}

.recent-match-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-match-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
}

.recent-match-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-match-list__date {
    color: var(--color-muted);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.recent-match-list__opponent {
    flex: 1;
    font-weight: 600;
}

.recent-match-list__score {
    font-weight: 800;
    color: var(--color-white);
}

.recent-match-list__score.is-win {
    color: var(--color-accent);
}

@media (max-width: 900px) {
    .player-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Gallery ---- */

.player-gallery {
    margin-bottom: 3rem;
}

.player-gallery__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.player-gallery__item {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
}

.player-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1000px) {
    .player-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .player-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==== Academy page ==== */

.academy-hero {
    position: relative;
    min-height: 220px;
    border-radius: 14px;
    overflow: hidden;
    margin: 1.5rem 0 2rem;
}

.academy-hero .img-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    min-height: 100%;
}

.academy-hero__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    min-height: 220px;
    padding: 1.75rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.academy-hero__label {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: var(--color-accent);
    color: var(--color-black);
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.academy-hero__top h1 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.academy-hero__top p {
    color: var(--color-muted);
    max-width: 42ch;
    margin: 0 0 1.1rem;
    font-size: 0.88rem;
}

.academy-hero__stats {
    display: flex;
    gap: 1.75rem;
}

/* ---- Section title with a left green bar accent ---- */

.section-title-bar {
    position: relative;
    font-size: 1.3rem;
    font-weight: 800;
    padding-left: 0.9rem;
    margin: 2.5rem 0 1.25rem;
}

.section-title-bar::before {
    content: '';
    position: absolute;
    top: 0.1rem;
    bottom: 0.1rem;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: var(--color-accent);
}

.section-title-bar--flush {
    margin: 0;
}

/* ---- Age groups ---- */

.age-group-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.age-group-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.age-group-card .news-badge {
    width: fit-content;
}

.age-group-card__name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 0.4rem;
}

.age-group-card__age {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--color-muted);
}

.age-group-card .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    flex-shrink: 0;
}

.age-group-card p {
    font-size: 0.76rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin: 0.2rem 0 0;
}

@media (max-width: 1300px) {
    .age-group-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .age-group-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Why us ---- */

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.why-us-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.1rem;
}

.why-us-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.why-us-card__icon--blue { background: #3b7ce0; }
.why-us-card__icon--green { background: #1fae4a; }
.why-us-card__icon--orange { background: #e08a2e; }
.why-us-card__icon--purple { background: #8b5ce0; }
.why-us-card__icon--pink { background: #e05c9d; }

.why-us-card__title {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.why-us-card p {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 1300px) {
    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Coaches + sign-up ---- */

.academy-bottom {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: start;
}

.academy-coaches .section-header {
    margin-bottom: 1.25rem;
}

.academy-signup {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem;
}

.academy-signup h3 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 1.1rem;
}

.academy-signup form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.academy-signup input,
.academy-signup select {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    color: var(--color-white);
    font-size: 0.85rem;
    font-family: inherit;
}

.academy-signup select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%239A9A9A' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 11px 7px;
    padding-right: 2.5rem;
}

.academy-signup input::placeholder {
    color: var(--color-muted);
}

.academy-signup button {
    margin-top: 0.4rem;
    padding: 0.7rem;
    background: var(--color-accent);
    color: var(--color-black);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .academy-bottom {
        grid-template-columns: 1fr;
    }
}

/* ==== Match Center (Match Details) page ==== */

.match-hero {
    position: relative;
    min-height: 260px;
    border-radius: 14px;
    overflow: hidden;
    margin: 1.5rem 0 2rem;
}

.match-hero .img-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    min-height: 100%;
}

.match-hero__body {
    position: relative;
    z-index: 1;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.match-hero__body h1 {
    font-size: 1.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
}

.match-hero__subtitle {
    font-size: 0.78rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.25rem;
}

.match-hero__matchup {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.match-hero__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    width: 90px;
}

.match-hero__team img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.match-hero__vs {
    font-size: 1.2rem;
    color: var(--color-muted);
    font-weight: 700;
}

.match-hero__score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
}

.match-countdown {
    display: flex;
    gap: 1.25rem;
}

.match-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-countdown__unit span {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}

.match-countdown__unit small {
    font-size: 0.62rem;
    color: var(--color-muted);
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.match-hero__meta {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--color-muted);
}

@media (max-width: 700px) {
    .match-hero__matchup {
        gap: 1.25rem;
    }
}

/* ---- Form + weather ---- */

.match-info-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.match-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.4rem;
}

.match-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-panel__header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin: 0;
}

.team-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.team-form-row__name {
    font-weight: 700;
    font-size: 0.9rem;
}

.form-dots {
    display: flex;
    gap: 0.4rem;
}

.form-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--color-white);
}

.form-dot--win { background: #1fae4a; }
.form-dot--draw { background: #e0a52e; }
.form-dot--loss { background: #d94f4f; }

.team-form-row__meta {
    font-size: 0.72rem;
    color: var(--color-muted);
    margin-top: 0.4rem;
}

.weather-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    padding: 1.5rem 0.5rem;
    color: var(--color-muted);
}

.weather-placeholder i {
    font-size: 1.8rem;
}

.weather-placeholder p {
    font-size: 0.78rem;
    margin: 0;
}

.weather-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.weather-card__main {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.weather-card__main > i {
    font-size: 2.1rem;
    color: var(--color-accent);
}

.weather-card__temp {
    font-size: 2rem;
    font-weight: 800;
}

.weather-card__label {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.weather-card__details {
    display: flex;
    gap: 1rem;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #cfcfcf;
}

.weather-card__details i {
    color: var(--color-muted);
    margin-right: 0.25rem;
}

.weather-card__credit {
    margin-top: 0.6rem;
    font-size: 0.68rem;
    color: var(--color-muted);
}

.weather-card__credit a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .match-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Stadium ---- */

.stadium-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.stadium-card__hero {
    position: relative;
    min-height: 260px;
    border-radius: 0;
}

.stadium-card__title {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 2.5rem 1.75rem 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    /* This block sits inside .img-placeholder, which centers text and tints it muted — reset both. */
    text-align: left;
    color: var(--color-white);
}

.stadium-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.stadium-card__title h2 {
    font-size: 1.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0.25rem 0 0;
}

.stadium-card__pin {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.15rem;
    transition: color 0.15s ease;
}

.stadium-card__pin:hover {
    color: var(--color-accent);
}

.stadium-card__body {
    padding: 1.5rem 1.75rem 1.75rem;
}

/* Two columns filled top-to-bottom: --rows is set inline to ceil(facts / 2). */
.stadium-facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(var(--rows, 3), auto);
    grid-auto-flow: column;
    column-gap: 3rem;
    row-gap: 0.85rem;
    margin: 0;
}

.stadium-fact {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

.stadium-fact dt {
    color: var(--color-muted);
    font-weight: 400;
}

.stadium-fact dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.stadium-card__address {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.stadium-card__address-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.4rem;
}

.stadium-card__quote {
    margin: 1.25rem 0 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-muted);
}

.stadium-card__quote::before { content: "«"; }
.stadium-card__quote::after { content: "»"; }

@media (max-width: 700px) {
    .stadium-facts-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
    }

    .stadium-card__title {
        padding: 2rem 1.25rem 1.25rem;
    }

    .stadium-card__body {
        padding: 1.25rem;
    }
}

/* ---- Head to head ---- */

.h2h-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.4rem;
    margin-bottom: 3rem;
}

.h2h-summary {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.h2h-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.h2h-list li {
    display: grid;
    grid-template-columns: 5rem 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.85rem;
}

.h2h-list li:last-child {
    border-bottom: none;
}

.h2h-list__date {
    color: var(--color-muted);
    font-size: 0.75rem;
}

.h2h-list__home {
    text-align: left;
}

.h2h-list__away {
    text-align: right;
}

.h2h-list__score {
    font-weight: 800;
    color: var(--color-accent);
}

.h2h-panel__footer {
    display: flex;
    justify-content: center;
    margin-top: 1.1rem;
}

@media (max-width: 600px) {
    .h2h-list li {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.25rem;
    }

    .h2h-list__home,
    .h2h-list__away {
        text-align: center;
    }
}

/* ==== Matches list page ==== */

.match-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.match-row {
    display: grid;
    grid-template-columns: 90px 1fr auto 1fr 160px;
    align-items: center;
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--color-white);
    transition: border-color 0.15s ease;
}

.match-row:hover {
    border-color: var(--color-accent);
}

.match-row__day {
    font-size: 0.8rem;
    font-weight: 700;
}

.match-row__time {
    font-size: 0.72rem;
    color: var(--color-muted);
}

.match-row__team {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.88rem;
    min-width: 0;
}

.match-row__team span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-row__team img,
.match-row__team .crest-placeholder {
    flex-shrink: 0;
}

.match-row__team img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.match-row__team--away {
    flex-direction: row-reverse;
    justify-content: flex-start;
    text-align: right;
}

.match-row__center {
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    min-width: 3.5rem;
}

.match-row__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    font-size: 0.7rem;
    color: var(--color-muted);
    text-align: right;
}

@media (max-width: 900px) {
    .match-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.6rem;
    }

    .match-row__date {
        order: -1;
    }

    .match-row__team,
    .match-row__team--away {
        flex-direction: row;
        justify-content: center;
        text-align: center;
    }

    .match-row__meta {
        align-items: center;
        text-align: center;
    }
}

/* ---- Pagination ---- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 1.5rem 0 3rem;
}

.pagination__page,
.pagination__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-white);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.pagination__page:hover,
.pagination__arrow:hover {
    border-color: var(--color-accent);
}

.pagination__page.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-black);
}

.pagination__arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.pagination__ellipsis {
    color: var(--color-muted);
    padding: 0 0.25rem;
}

/* ==== Media page ==== */

.media-hero {
    position: relative;
    min-height: 280px;
    border-radius: 14px;
    overflow: hidden;
    margin: 1.5rem 0 2.5rem;
    display: flex;
    align-items: center;
}

.media-hero .img-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    min-height: 100%;
}

.media-hero .img-placeholder img {
    filter: brightness(0.75);
}

.media-hero__main {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 600px;
}

.media-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.media-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.media-hero__label .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
}

.media-hero__main h1 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 0 1rem;
    max-width: 20ch;
}

.media-hero__main p {
    color: var(--color-muted);
    max-width: 48ch;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 700px) {
    .media-hero__main {
        padding: 1.5rem;
    }
}

/* ---- Video grids ---- */

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-bottom: 1rem;
}

.video-grid--wide {
    grid-template-columns: repeat(3, 1fr);
}

.video-card {
    display: flex;
    flex-direction: column;
    color: var(--color-white);
}

.video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.video-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    font-size: 1.6rem;
    transition: background 0.15s ease;
}

.video-card:hover .video-card__play {
    background: rgba(14, 255, 54, 0.25);
}

.video-card__title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 1200px) {
    .video-grid,
    .video-grid--wide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid,
    .video-grid--wide {
        grid-template-columns: 1fr;
    }
}

/* ---- Gallery categories ---- */

.gallery-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-bottom: 1rem;
}

.gallery-cat-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    color: var(--color-white);
}

.gallery-cat-card .img-placeholder {
    position: absolute;
    inset: 0;
    border-radius: 0;
}

.gallery-cat-card__body {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 75%);
}

.gallery-cat-card__title {
    font-weight: 800;
    font-size: 0.95rem;
}

.gallery-cat-card__count {
    font-size: 0.72rem;
    color: var(--color-muted);
}

@media (max-width: 900px) {
    .gallery-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- YouTube banner ---- */

.youtube-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin: 2.5rem 0;
    color: var(--color-white);
}

.youtube-banner i.bi-youtube {
    font-size: 2rem;
    color: #ff0000;
    flex-shrink: 0;
}

.youtube-banner__title {
    font-weight: 800;
    font-size: 0.95rem;
}

.youtube-banner__sub {
    font-size: 0.78rem;
    color: var(--color-muted);
}

.youtube-banner .btn-outline-pill {
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .youtube-banner {
        flex-wrap: wrap;
    }

    .youtube-banner .btn-outline-pill {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

/* ---- UGC callout ---- */

.ugc-callout {
    text-align: center;
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
}

.ugc-callout h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
}

.ugc-callout p {
    color: var(--color-muted);
    margin: 0 0 1.5rem;
}

.ugc-callout__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

/* ==== Contacts page ==== */

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
    margin: 2rem 0;
}

.contacts-left h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 0.3rem 0 0.9rem;
}

.contacts-intro__text {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 42ch;
}

.contacts-form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.contacts-form-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.3rem;
}

.contacts-form-card form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contacts-form-card label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-muted);
    margin: 0.5rem 0 0.1rem;
}

.contacts-form-card input[type="text"],
.contacts-form-card input[type="email"],
.contacts-form-card textarea {
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    color: var(--color-white);
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
}

.contacts-form-card input::placeholder,
.contacts-form-card textarea::placeholder {
    color: var(--color-muted);
}

.contacts-form-card__consent {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    color: var(--color-muted) !important;
    margin-top: 0.75rem !important;
}

.contacts-form-card__consent input {
    width: auto;
    accent-color: var(--color-accent);
}

.contacts-form-card button {
    margin-top: 0.9rem;
    padding: 0.75rem;
    background: var(--color-accent);
    color: var(--color-black);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
}

.contacts-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 16 / 10;
    margin-bottom: 1.25rem;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.3) invert(0.92) contrast(0.9);
}

.contacts-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 1000px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .contacts-facts-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Bottom CTA row ---- */

.contacts-cta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 3rem 0;
}

.contacts-cta-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.4rem;
}

.contacts-cta-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.contacts-cta-card p {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin: 0 0 0.9rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .contacts-cta-row {
        grid-template-columns: 1fr;
    }
}

/* ==== Search page ==== */

.search-page {
    margin: 1.5rem 0 3rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.5rem 0.5rem 0.5rem 1.1rem;
    margin-bottom: 1.5rem;
}

.search-bar i.bi-search {
    color: var(--color-muted);
}

.search-bar input[type="search"] {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--color-white);
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0.6rem 0;
}

.search-bar input[type="search"]::placeholder {
    color: var(--color-muted);
}

.search-bar button {
    padding: 0.65rem 1.5rem;
    background: var(--color-accent);
    color: var(--color-black);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0;
}

.search-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.search-tabs {
    margin-bottom: 1.75rem;
}

.search-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin: 2rem 0 1rem;
}

.search-section-title:first-of-type {
    margin-top: 0;
}

.search-page-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-page-list a {
    display: inline-flex;
    padding: 0.6rem 0.9rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.search-page-list a:hover {
    border-color: var(--color-accent);
}

/* ---- Player result cards ---- */

.search-player-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}

.search-player-card {
    display: flex;
    flex-direction: column;
    color: var(--color-white);
}

.search-player-card__photo {
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.search-player-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-player-card__year {
    font-size: 0.7rem;
    color: var(--color-muted);
}

.search-player-card__pos {
    font-size: 0.7rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.search-player-card__name {
    font-size: 0.85rem;
    font-weight: 800;
}

@media (max-width: 700px) {
    .search-player-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Sidebar ---- */

.search-sidebar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.4rem;
    margin-bottom: 1.25rem;
}

.search-sidebar-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.search-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-suggestions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
}

.search-suggestions a:hover {
    color: var(--color-accent);
}

.search-suggestions i {
    font-size: 0.7rem;
    color: var(--color-accent);
}

.search-sidebar-card--cta {
    border-color: var(--color-accent);
}

.search-sidebar-card--cta p {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.search-sidebar-card--cta .btn-outline-pill {
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .search-layout {
        grid-template-columns: 1fr;
    }
}

/* ==== Generic modal ==== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.75);
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 1180px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--color-black);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
}

.modal-box__close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    color: var(--color-white);
    cursor: pointer;
}

.modal-box__close:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ==== Tournament detail modal content ==== */

.tstats__header {
    margin-bottom: 1.25rem;
    padding-right: 2.5rem;
}

.tstats__header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0.2rem 0 0;
}

.tstats__tabs {
    margin-bottom: 1.5rem;
}

.tstats-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
}

.tstats-group h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 0.9rem;
}

.tstats-group .standings-table {
    min-width: 0;
    width: 100%;
    font-size: 0.82rem;
}

.tstats-group .standings-table th,
.tstats-group .standings-table td {
    padding: 0.6rem 0.7rem;
}

@media (max-width: 700px) {
    .tstats-groups {
        grid-template-columns: 1fr;
    }
}

/* ---- Bracket ---- */

.bracket {
    --bracket-gap: 2.5rem;
    --bracket-line: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: stretch;
    gap: var(--bracket-gap);
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.bracket-round {
    flex: 1 0 210px;
    min-width: 210px;
    display: flex;
    flex-direction: column;
}

.bracket-round__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: 0.6rem;
}

/* All columns stretch to the tallest one (the round with the most cells). Each cell takes an
   equal share of its column, so a card centred in its cell sits halfway between the two cards
   of the previous round that feed it. */
.bracket-round__cells {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bracket-cell {
    flex: 1 1 0;
    min-height: var(--bracket-cell-min, 5.9rem); /* set by _Bracket: room for the tallest card (two legs, shoot-out) */
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
    position: relative;
}

.bracket-cell > .bracket-match {
    width: 100%;
}

/* Connector lines: a stub out of the card, a vertical bar joining a pair, a stub into the next card. */
.bracket-link {
    position: absolute;
    pointer-events: none;
}

.bracket-link--in,
.bracket-link--out {
    top: 50%;
    width: calc(var(--bracket-gap) / 2);
    border-top: 2px solid var(--bracket-line);
}

.bracket-link--in {
    left: calc(var(--bracket-gap) / -2);
}

.bracket-link--out {
    right: calc(var(--bracket-gap) / -2);
}

/* Drawn by the even cell of a pair: from its centre down to the centre of the odd one. */
.bracket-link--join {
    top: 50%;
    height: 100%;
    right: calc(var(--bracket-gap) / -2);
    border-right: 2px solid var(--bracket-line);
}

/* A cell without a match is not drawn at all; it only holds the place so the other cards stay aligned. */
.bracket-match--tbd {
    visibility: hidden;
    min-height: 5rem;
}

.bracket-match {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

.bracket-match__team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
}

.bracket-match__team:last-child {
    border-bottom: none;
}

/* The team that goes through to the next round. */
.bracket-match__team--advances {
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 2px 0 0 rgba(14, 255, 54, 0.45);
}

.bracket-match__logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.bracket-match__name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bracket-match__score {
    font-weight: 800;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* One score per leg, side by side (first leg, second leg), the same way for both teams. The columns have a fixed
   width so the "1-й / 2-й" header sits exactly over its scores. */
.bracket-match__scores {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.bracket-match__scores .bracket-match__score {
    position: relative;
    min-width: 2.1rem;
    text-align: center;
}

/* Header row over the score columns of a two-legged tie. */
.bracket-match__head {
    display: flex;
    justify-content: flex-end;
    padding: 0.4rem 0.75rem 0;
}

.bracket-match__score--head {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.bracket-match__note {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.6rem;
    padding: 0.3rem 0.75rem 0.4rem;
    border-top: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
}

.bracket-match__note-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.bracket-match__note-leg {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-muted);
}

.bracket-match__note .match-status {
    margin: 0;
}

/* The shoot-out, printed small after the score of the match that had one: "0⁽⁵⁾". It hangs to the right of the
   centred digit, so the digit stays under its "1-й / 2-й" header. */
.bracket-match__pen {
    position: absolute;
    top: 0;
    left: calc(50% + 0.5em);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: var(--color-muted);
}

/* Status of a match that is not an ordinary "scheduled / finished": Перенесено, Зупинено, Догравання. */
.match-status {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0.3rem auto 0;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.match-status--postponed { color: #f5b942; }
.match-status--suspended { color: #ff6b6b; }
.match-status--resumption { color: #5bc0ff; }

/* Shoot-out result under a match score ("2 : 2" and below it "(4 : 2)"). */
.score-penalties {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
    color: var(--color-muted);
}


/* ==== Utilities ==== */

[hidden] {
    display: none !important;
}

/* ==== Form feedback + spam trap ==== */

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    margin: 0 0 1rem;
    border: 1px solid;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.form-alert > i {
    font-size: 1.1rem;
    margin-top: 1px;
}

.form-alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.form-alert--success {
    background: rgba(14, 255, 54, 0.08);
    border-color: rgba(14, 255, 54, 0.4);
    color: var(--color-white);
}

.form-alert--success > i {
    color: var(--color-accent);
}

.form-alert--error {
    background: rgba(255, 82, 82, 0.09);
    border-color: rgba(255, 82, 82, 0.45);
    color: var(--color-white);
}

.form-alert--error > i {
    color: #ff5252;
}

/* Honeypot: off-screen rather than display:none, so naive bots still "see" and fill it. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.academy-signup__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--color-muted);
}

.academy-signup__consent input[type="checkbox"] {
    width: auto;
    flex: none;
    margin-top: 0.15rem;
}

/* ==== Error pages ==== */

.error-panel {
    max-width: 640px;
    margin: 0 auto;
    padding: 5rem 1rem 6rem;
    text-align: center;
}

.error-panel__code {
    font-size: clamp(5rem, 20vw, 9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-accent);
}

.error-panel h1 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
}

.error-panel p {
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0 0 2rem;
}

.error-panel__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.error-panel__request {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* ==== News lead paragraphs ==== */

.news-hero__lead {
    margin: 0.25rem 0 0.5rem;
    max-width: 70ch;
    color: #e6e6e6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-details__lead {
    margin: 0 0 1.75rem;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
    color: #d9d9d9;
}

/* ==== Album page ==== */

.album-header {
    margin: 1rem 0 2rem;
}

.album-header h1 {
    margin: 0;
}

.album-header__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.album-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--color-white);
}

a.album-chip:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.album-chip--muted {
    color: var(--color-muted);
}

.album-header__description {
    max-width: 70ch;
    margin: 1.1rem 0 0;
    color: #cfcfcf;
    line-height: 1.65;
}

.album-tabs {
    margin-bottom: 1.75rem;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.album-grid__item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: var(--color-surface);
    cursor: zoom-in;
}

.album-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-grid__item:hover img {
    transform: scale(1.04);
}

.album-grid__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.6rem 0.85rem 0.7rem;
    font-size: 0.78rem;
    color: var(--color-white);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}

/* ==== Lightbox (site.js builds it on demand for a[data-lightbox]) ==== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 3.5rem 1rem 2rem;
    background: rgba(0, 0, 0, 0.94);
}

.lightbox__img {
    max-width: min(94vw, 1400px);
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox__caption {
    max-width: 70ch;
    min-height: 1.2em;
    text-align: center;
    font-size: 0.9rem;
    color: #d9d9d9;
}

.lightbox__counter {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.lightbox__btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    font-size: 1.1rem;
    cursor: pointer;
}

.lightbox__btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-black);
}

.lightbox__btn--close {
    top: 0.9rem;
    right: 0.9rem;
}

.lightbox__btn--prev,
.lightbox__btn--next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__btn--prev {
    left: 0.9rem;
}

.lightbox__btn--next {
    right: 0.9rem;
}

@media (max-width: 640px) {
    .lightbox__btn--prev,
    .lightbox__btn--next {
        top: auto;
        bottom: 0.9rem;
        transform: none;
    }
}

/* ==== Player page: captain badge + Instagram ==== */

.player-hero__captain {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-black);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.player-hero__social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--color-white);
}

.player-hero__social:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ==== Head-to-head filter banner (Matches list) ==== */

.h2h-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    font-size: 0.9rem;
}

.h2h-filter > i {
    color: var(--color-accent);
}

.h2h-filter__reset {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.h2h-filter__reset:hover {
    color: var(--color-accent);
}

/* ==== Small link/button fixes ==== */

a.home-card__video-main,
a.home-card__video-thumb {
    display: block;
    color: inherit;
}

a.player-gallery__item {
    display: block;
}

button.btn-outline-pill {
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

/* ==== Home: the club's own match of a play-off tournament (instead of a table) ==== */

.own-match {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.own-match--live {
    border-color: rgba(14, 255, 54, 0.45);
}

.own-match__label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.own-match__body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
}

.own-match__team {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 0;
}

.own-match__team img,
.own-match__team .crest-placeholder {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.own-match__team--away {
    flex-direction: row-reverse;
    text-align: right;
}

.own-match__center {
    text-align: center;
}

.own-match__score {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
}

.own-match__score span {
    margin: 0 0.35rem;
    color: var(--color-muted);
}

.own-match__vs {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-muted);
}

.own-match__pen,
.own-match__when {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.own-match__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.own-match__cta {
    color: var(--color-accent);
    font-weight: 700;
}

.match-status--live { color: var(--color-accent); }

@media (max-width: 640px) {
    .own-match__body {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        justify-items: center;
    }

    .own-match__team,
    .own-match__team--away {
        flex-direction: column;
        text-align: center;
    }
}
