/* =========================================================================
   Club template - sports club site (Persian / RTL)
   Deep violet / purple / magenta palette taken from the club kit and crest.
   Shares class names with site.js so every template uses the same script.
   ========================================================================= */

/* ---- Fonts (self-hosted) ------------------------------------------------ */
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn-latin.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ------------------------------------------------------------- */
:root {
    --bg: #f8f4fc;
    --surface: #ffffff;
    --surface-2: #f1e9f9;
    --ink: #2a1446;
    --ink-2: #44335a;
    --muted: #6f5e82;
    --line: #e7dcf2;

    --night: #1e0b3a;
    --violet: #2e1065;
    --brand: #6d28d9;
    --brand-dark: #5b21b6;
    --brand-400: #c084fc;
    --brand-soft: #f1e8fd;
    --pink: #db2777;
    --pink-dark: #be185d;
    --magenta: #c026d3;
    --pink-soft: #fce7f3;
    --win: #15803d;
    --win-soft: #dcfce7;
    --danger: #b91c1c;
    --grad: linear-gradient(120deg, var(--magenta), var(--pink));
    --grad-deep: linear-gradient(135deg, var(--night) 0%, var(--violet) 45%, #4c1d95 100%);

    --font-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(42, 20, 70, .05), 0 10px 26px -18px rgba(42, 20, 70, .3);
    --shadow: 0 18px 40px -24px rgba(42, 20, 70, .4);
    --shadow-lg: 0 30px 60px -30px rgba(42, 20, 70, .5);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --container: 1240px;
    --header-h: 84px;
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
    margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.9;
    color: var(--ink-2); background: var(--bg); overflow-x: hidden;
    text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.5; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--pink-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
main:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 820px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; right: 1rem; z-index: 200; background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 10px 10px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 0; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 48px; padding: .5rem 1.4rem .5rem .55rem;
    border: 1.5px solid transparent; border-radius: 999px;
    font-weight: 700; font-size: .95rem; line-height: 1.4; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; flex: none; transition: transform .3s var(--ease); }
.btn-icon .icon { width: 1rem; height: 1rem; }
.btn:hover .btn-icon { transform: translateX(-3px); }
.btn-primary { background: var(--pink-dark); background-image: var(--grad); color: #fff; }
.btn-primary .btn-icon { background: rgba(255, 255, 255, .2); }
.btn-primary:hover { filter: brightness(.94) saturate(1.1); box-shadow: 0 16px 30px -16px rgba(219, 39, 119, .65); }
.btn-dark { background: var(--violet); color: #fff; }
.btn-dark .btn-icon { background: rgba(255, 255, 255, .16); color: var(--brand-400); }
.btn-dark:hover { background: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light .btn-icon { background: var(--brand-soft); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline .btn-icon { background: var(--surface-2); color: var(--brand); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: transparent; box-shadow: var(--shadow-sm); }
.btn-ghost .btn-icon { background: var(--brand-soft); color: var(--brand); }
.btn-sm { min-height: 42px; font-size: .88rem; padding-inline-end: 1.1rem; gap: .5rem; }
.btn-sm .btn-icon { width: 1.7rem; height: 1.7rem; }
.btn-lg { min-height: 54px; font-size: 1rem; padding-inline-end: 1.75rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn-row-center { justify-content: center; }
.icon-button {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.icon-button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.link-arrow, .link-more { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.link-arrow .icon, .link-more .icon { width: 1.05rem; height: 1.05rem; transition: transform .25s var(--ease); }
.link-arrow:hover .icon, .link-more:hover .icon { transform: translateX(-5px); }
.link-more { font-size: .9rem; color: var(--pink-dark); }

/* ---- Sections ----------------------------------------------------------- */
.section { position: relative; padding-block: clamp(2rem, 1.3rem + 2.2vw, 3.5rem); }
.section-alt { background: var(--surface-2); }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.section-title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); line-height: 1.5; margin-bottom: .4em; }
.section-head .section-title::after { content: ""; display: block; width: 62px; height: 4px; margin: .7rem auto 0; border-radius: 4px; background: var(--grad); }
.section-sub { color: var(--muted); font-size: 1.03rem; margin: 0; }
.lead { font-size: 1.08rem; color: var(--muted); line-height: 2.05; }
.media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 180px; background: var(--surface-2); color: var(--muted); }
.media-placeholder .icon { width: 42px; height: 42px; opacity: .6; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- Header ------------------------------------------------------------- */
.club-header { position: sticky; top: 0; z-index: 50; background: var(--grad-deep); color: #fff; transition: box-shadow .3s; }
.club-header.is-scrolled { box-shadow: 0 12px 30px -18px rgba(30, 11, 58, .9); }
.club-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.club-brand { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; color: #fff; text-decoration: none; }
.club-brand-crest { width: auto; height: 62px; flex: none; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)); transition: transform .5s var(--ease); }
.club-brand:hover .club-brand-crest { transform: rotate(-6deg) scale(1.04); }
.club-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.club-brand-name { font-weight: 800; font-size: 1rem; max-width: 17rem; color: #fff; }
.club-brand-en { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f0abfc; }
.main-nav { display: none; }
.nav-list { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .8rem;
    color: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 999px; transition: color .2s, background-color .2s;
}
.club-header .nav-link { color: rgba(255, 255, 255, .88); }
.club-header .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.club-header .nav-link.is-active { color: #fff; background: var(--grad); box-shadow: 0 8px 20px -10px rgba(219, 39, 119, .9); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.club-header .icon-button, .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
}
.club-header .icon-button:hover, .club-header .icon-button[aria-expanded="true"], .nav-toggle:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }
.social-list.social-list-header { display: none; gap: .3rem; }
.social-list.social-list-header a { width: 36px; height: 36px; border-radius: 50%; border-color: rgba(255, 255, 255, .22); color: #fff; }
.social-list.social-list-header a .icon { width: 16px; height: 16px; }
.social-list.social-list-header a:hover { background: var(--pink); border-color: var(--pink); }
.club-search { background: rgba(14, 4, 30, .35); border-top: 1px solid rgba(255, 255, 255, .1); }
.club-search-form { display: flex; gap: .6rem; padding-block: .85rem; }
.club-search-form .input { flex: 1; min-width: 0; background: #fff; border-color: transparent; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(30, 11, 58, .6); opacity: 0; transition: opacity .35s; }
.drawer-panel {
    position: absolute; top: 0; bottom: 0; right: 0; width: min(360px, 88vw);
    display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem;
    background: var(--bg); overflow-y: auto; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .38s var(--ease);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.drawer-head .club-brand { color: var(--ink); }
.drawer-head .club-brand-name { color: var(--ink); }
.drawer-head .club-brand-crest { height: 54px; filter: none; }
.drawer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.drawer-list .nav-link { display: flex; min-height: 50px; padding: .7rem 1rem; border-radius: 12px; font-size: 1.05rem; color: var(--ink); }
.drawer-list .nav-link:hover { background: var(--surface-2); }
.drawer-list .nav-link.is-active { background: var(--brand-soft); color: var(--brand-dark); }
.drawer-foot { margin-top: auto; display: grid; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.drawer-phone { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; text-decoration: none; min-height: 44px; }

/* ---- Hero: crest + slide text + photo ------------------------------------ */
.club-hero { position: relative; overflow: hidden; background: var(--grad-deep); color: #fff; isolation: isolate; }
.club-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
    background:
        linear-gradient(115deg, transparent 0 38%, rgba(192, 38, 211, .22) 38% 52%, transparent 52%),
        linear-gradient(65deg, transparent 0 60%, rgba(219, 39, 119, .18) 60% 72%, transparent 72%);
}
.club-hero-shape { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.club-hero-shape-1 { width: 420px; height: 420px; inset-inline-end: -140px; top: -170px; background: radial-gradient(circle, rgba(192, 132, 252, .35), transparent 70%); }
.club-hero-shape-2 { width: 360px; height: 360px; inset-inline-start: 30%; bottom: -220px; background: radial-gradient(circle, rgba(219, 39, 119, .35), transparent 70%); }
.club-hero-grid { display: grid; gap: 1.75rem; align-items: center; padding-block: clamp(1.75rem, 1rem + 3vw, 3.25rem) clamp(4.5rem, 3.5rem + 3vw, 6rem); }
.club-hero-grid > * { min-width: 0; }
.club-hero-crest { display: none; text-align: center; }
.club-hero-crest img { width: min(100%, 230px); margin-inline: auto; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .45)); animation: float 6s ease-in-out infinite; }
.club-hero-name { margin: 1rem 0 0; font-weight: 800; font-size: 1.05rem; line-height: 1.7; color: #fff; }
.club-hero-en { margin: .2rem 0 0; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f0abfc; }
.club-hero-copy { position: relative; }
.hero-texts { display: grid; }
.hero-text {
    grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease), visibility 0s linear .7s;
}
.hero-text.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
.hero-title { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1.45; color: #fff; margin: 0 0 1rem; }
.hero-title::after { content: ""; display: block; width: 72px; height: 5px; margin-top: .9rem; border-radius: 5px; background: var(--grad); }
.hero-sub { font-size: 1.05rem; line-height: 2; color: rgba(255, 255, 255, .86); margin: 0 0 1.5rem; max-width: 34rem; }
.hero-controls { display: flex; align-items: center; gap: .6rem; margin-top: clamp(1.5rem, 1rem + 2vw, 2.25rem); }
.slider-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.slider-btn .icon { width: 20px; height: 20px; }
.slider-btn:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }
.slider-btn:active { transform: scale(.94); }
.hero-counter { display: inline-flex; align-items: center; gap: .7rem; padding-inline: .5rem; font-weight: 800; color: #fff; }
.hero-total { color: rgba(255, 255, 255, .6); }
.hero-progress { position: relative; width: 78px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero-progress > span { position: absolute; inset: 0; background: var(--pink); transform: scaleX(0); transform-origin: right center; }
.hero-progress > span.is-running { animation: progress linear forwards; }
.hero.is-paused .hero-progress > span { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.slider-toggle .when-paused { display: none; }
.hero.is-paused .slider-toggle .when-playing { display: none; }
.hero.is-paused .slider-toggle .when-paused { display: inline-flex; }
.slider-toggle span { display: inline-flex; }
.club-hero-media {
    position: relative; aspect-ratio: 6 / 5; border-radius: 28px 28px 28px 90px; overflow: hidden;
    background: var(--violet); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); border: 4px solid rgba(255, 255, 255, .14);
}
.club-hero-media .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.club-hero-media .hero-img.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }

/* ---- Highlights: intro, last result, next match --------------------------- */
.club-highlights { padding-top: 0; }
.club-highlight-grid { position: relative; z-index: 2; display: grid; gap: 1.25rem; margin-top: -3.25rem; }
.club-highlight-grid > * { min-width: 0; }
.club-intro-card, .match-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.club-intro-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.club-intro-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 1.25rem 1.4rem 1.4rem; }
.club-intro-body h2 { font-size: 1.15rem; margin-bottom: .4rem; }
.club-intro-body p { flex: 1; color: var(--muted); font-size: .93rem; line-height: 1.95; }
.match-card { align-items: center; text-align: center; padding: 1.25rem 1.25rem 1.4rem; gap: .9rem; }
.match-card-head { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.match-card-head h2 { margin: 0; font-size: 1.15rem; }
.match-card-head h2::after { content: ""; display: block; width: 40px; height: 3px; margin: .45rem auto 0; border-radius: 3px; background: var(--grad); }
.match-comp { display: inline-block; padding: .15rem .75rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .78rem; font-weight: 700; }
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .75rem; width: 100%; }
.match-team { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 0; }
.match-crest { width: 64px; height: 64px; object-fit: contain; }
.match-crest-empty { display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--brand); }
.match-crest-empty .icon { width: 30px; height: 30px; }
.match-team-name { font-weight: 700; color: var(--ink); font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.match-score { display: flex; align-items: center; gap: .35rem; padding: .35rem .9rem; border-radius: 14px; background: var(--grad-deep); color: #fff; font-weight: 800; font-size: 1.6rem; line-height: 1.3; }
.match-dash { opacity: .6; }
.match-vs { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; letter-spacing: .04em; box-shadow: 0 10px 20px -10px rgba(219, 39, 119, .8); }
.match-meta { list-style: none; margin: 0; padding: .75rem 0 0; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.1rem; border-top: 1px dashed var(--line); color: var(--muted); font-size: .86rem; }
.match-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.match-meta .icon { width: 16px; height: 16px; color: var(--magenta); }
.match-date { margin: 0; color: var(--muted); font-size: .9rem; display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.match-card .btn { margin-top: auto; }
.result-badge { display: inline-flex; align-items: center; padding: .15rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.result-win { background: var(--win-soft); color: var(--win); }
.result-loss { background: #fee2e2; color: var(--danger); }
.result-draw { background: #fef3c7; color: #92400e; }
.result-upcoming { background: var(--brand-soft); color: var(--brand-dark); }

/* ---- Quick tiles ---------------------------------------------------------- */
.club-tiles { padding-bottom: clamp(1rem, .6rem + 1vw, 1.75rem); }
.club-tiles-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.club-tiles-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.club-tile {
    position: relative; display: flex; align-items: center; gap: .8rem; min-height: 76px; padding: .9rem 1rem;
    border-radius: var(--radius); background: var(--grad-deep); color: #fff; text-decoration: none; overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.club-tile::after { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .35s var(--ease); }
.club-tile > * { position: relative; z-index: 1; }
.club-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.club-tile:hover::after { opacity: 1; }
.club-tile-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, .14); color: #f5d0fe; }
.club-tile:hover .club-tile-icon { color: #fff; background: rgba(255, 255, 255, .22); }
.club-tile-icon .icon { width: 24px; height: 24px; }
.club-tile-label { flex: 1; min-width: 0; font-weight: 800; font-size: .95rem; line-height: 1.6; }
.club-tile-arrow .icon { width: 18px; height: 18px; opacity: .7; transition: transform .3s var(--ease); }
.club-tile:hover .club-tile-arrow .icon { transform: translateX(-4px); opacity: 1; }

/* ---- Panels (news, gallery) ----------------------------------------------- */
.club-panel { padding: clamp(1.1rem, .8rem + 1vw, 1.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.club-panel-head, .club-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.club-panel-head h2, .club-strip-head h2 { position: relative; margin: 0; padding-inline-start: .9rem; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
.club-panel-head h2::before, .club-strip-head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 5px; border-radius: 5px; background: var(--grad); }
.club-news { padding-top: clamp(.5rem, .25rem + 1vw, 1.25rem); }
.club-news .post-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1.1rem; }
.club-news .post-card { box-shadow: none; }
.club-block-title { position: relative; margin: 0 0 1.25rem; padding-inline-start: .9rem; font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); }
.club-block-title::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; bottom: .3em; width: 5px; border-radius: 5px; background: var(--grad); }
* + .club-block-title { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }

/* ---- Gallery -------------------------------------------------------------- */
.club-bottom { padding-top: 0; }
.club-bottom-grid { display: grid; gap: 1.25rem; align-items: stretch; }
.club-bottom-grid > * { min-width: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.gallery-grid-page { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.1rem; }
.gallery-item { position: relative; margin: 0; border-radius: var(--radius); }
.gallery-item.project-card { border: 0; }
.gallery-thumb { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; overflow: hidden; border-radius: inherit; aspect-ratio: 3 / 2; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(46, 16, 101, .7), transparent 60%); opacity: 0; transition: opacity .35s; }
.gallery-zoom { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--brand-dark); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s var(--ease); }
.gallery-zoom .icon { width: 20px; height: 20px; }
.gallery-thumb:hover img, .gallery-thumb:focus-visible img { transform: scale(1.07); }
.gallery-thumb:hover::after, .gallery-thumb:focus-visible::after { opacity: 1; }
.gallery-thumb:hover .gallery-zoom, .gallery-thumb:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery-caption { padding: .6rem .25rem 0; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.7; }
.gallery-grid-home .gallery-caption { display: none; }
.gallery-item[hidden] { display: none !important; }

/* ---- Academy banner (home) and page --------------------------------------- */
.club-academy-banner { position: relative; display: flex; min-height: 100%; border-radius: var(--radius-lg); overflow: hidden; background: var(--grad-deep); color: #fff; box-shadow: var(--shadow); isolation: isolate; }
.club-academy-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.club-academy-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(30, 11, 58, .94) 0%, rgba(46, 16, 101, .82) 55%, rgba(192, 38, 211, .35) 100%); }
.club-academy-body { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem); max-width: 30rem; }
.club-academy-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--grad); margin-bottom: .6rem; }
.club-academy-icon .icon { width: 28px; height: 28px; }
.club-academy-body h2 { color: #fff; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); margin: 0 0 .25rem; }
.club-academy-sub { color: #f5d0fe; font-weight: 700; margin: 0 0 .5rem; }
.club-academy-list { margin-bottom: 1.25rem; }
.club-academy-list p { margin: 0 0 .5rem; }
.club-academy-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.club-academy-list li { position: relative; padding-inline-start: 1.75rem; line-height: 1.8; }
.club-academy-list li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
    background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.club-academy-list-dark { margin: 1.5rem 0 1.75rem; padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.club-academy-page { display: grid; gap: 2rem; align-items: center; }
.club-academy-page > * { min-width: 0; }
.club-academy-figure { margin: 0; border-radius: 28px 28px 28px 90px; overflow: hidden; box-shadow: var(--shadow-lg); }
.club-academy-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---- Sponsors ------------------------------------------------------------- */
.club-sponsors-strip { padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); background: var(--surface); border-block: 1px solid var(--line); }
.sponsor-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 1rem; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 1.25rem; }
.sponsor-card {
    display: grid; place-items: center; min-height: 104px; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.sponsor-grid .sponsor-card { min-height: 150px; box-shadow: var(--shadow-sm); }
.sponsor-card img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.sponsor-grid .sponsor-card img { max-height: 84px; }
.sponsor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-400); }
.sponsor-card:hover img { filter: none; opacity: 1; }
.sponsor-name { font-weight: 800; font-size: 1.05rem; text-align: center; }
.club-cta-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
    margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); border-radius: var(--radius-lg);
    background: var(--grad-deep); color: #fff; box-shadow: var(--shadow);
}
.club-cta-band h2 { color: #fff; margin: 0 0 .3rem; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem); }
.club-cta-band p { margin: 0; color: rgba(255, 255, 255, .82); }

/* ---- Team ----------------------------------------------------------------- */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 1.25rem; }
.player-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.player-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.player-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--grad-deep); }
.player-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.player-card:hover .player-media img { transform: scale(1.05); }
.player-ph { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, .35); }
.player-ph .icon { width: 42%; height: 42%; }
.player-number {
    position: absolute; top: .8rem; inset-inline-start: .8rem; display: grid; place-items: center; min-width: 46px; height: 46px; padding-inline: .4rem;
    border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.2rem; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6);
}
.player-body { flex: 1; padding: 1rem 1.15rem 1.2rem; }
.player-name { font-size: 1.05rem; margin: 0 0 .15rem; }
.player-pos { margin: 0; color: var(--pink-dark); font-weight: 700; font-size: .88rem; }
.player-bio { margin: .5rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.85; }
.player-grid-staff .player-media { aspect-ratio: 1 / 1; }

/* ---- Matches page --------------------------------------------------------- */
.club-match-feature { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.club-match-feature > * { min-width: 0; }
.match-list { display: grid; gap: .9rem; }
.match-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.match-row-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; padding: .5rem; border-radius: 14px; background: var(--grad-deep); color: #fff; line-height: 1.4; text-align: center; }
.match-row-date strong { font-size: 1.6rem; font-weight: 800; }
.match-row-date span { font-size: .82rem; font-weight: 700; color: #f5d0fe; }
.match-row-date small { font-size: .75rem; opacity: .75; }
.match-row-body { display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: 0; }
.match-row .match-crest { width: 48px; height: 48px; }
.match-row .match-score { font-size: 1.3rem; }
.match-row .match-vs { width: 46px; height: 46px; font-size: .85rem; }
.match-venue { display: inline-flex; align-items: center; gap: .35rem; margin: 0; color: var(--muted); font-size: .85rem; }
.match-venue .icon { width: 15px; height: 15px; color: var(--magenta); }
.match-row-side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .6rem; border-top: 1px dashed var(--line); }

/* ---- Prose ---------------------------------------------------------------- */
.prose { color: var(--ink-2); line-height: 2; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 1.4rem; margin: 1.8em 0 .55em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--pink); }
.prose a { color: var(--brand-dark); text-underline-offset: 4px; }
.prose strong { color: var(--ink); }
.prose blockquote {
    margin: 2rem 0; padding: 1.25rem 1.5rem; border-inline-start: 4px solid var(--pink);
    background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.15rem; font-weight: 600; line-height: 1.9; color: var(--ink);
}
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose code { background: var(--surface-2); padding: .1rem .4rem; border-radius: 6px; font-size: .9em; }
.prose-lg { font-size: 1.08rem; line-height: 2.1; }

/* ---- Filters, cards, modal (shared with site.js) ---------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 2rem; }
.filter {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem 1.2rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2);
    font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--brand); color: var(--brand-dark); }
.filter.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-count { font-size: .78rem; opacity: .75; }
.project-card { display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.project-card.is-entering { animation: fade-up .5s var(--ease) both; }
.chip { position: absolute; top: 1rem; inset-inline-end: 1rem; padding: .25rem .8rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; }

.modal { width: min(960px, 100% - 2rem); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; }
.modal::backdrop { background: rgba(30, 11, 58, .75); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] .modal-card { animation: fade-up .4s var(--ease); }
.modal-card { position: relative; max-height: calc(100dvh - 2rem); overflow: auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 1rem; inset-inline-start: 1rem; z-index: 3; }
.modal-content { display: grid; }
.modal-media { background: var(--surface-2); }
.modal-media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.modal-media-full { background: var(--night); }
.modal-media-full img { height: auto; min-height: 0; max-height: calc(100dvh - 9rem); object-fit: contain; margin-inline: auto; }
.modal-body { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.modal-body-compact { padding: 1rem 1.4rem 1.2rem; }
.modal-body-compact .modal-title { font-size: 1.1rem; margin: 0; }
.modal-body-compact .muted { margin: .15rem 0 0; font-size: .88rem; }
.modal-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.modal-body .btn { margin-top: 1.5rem; }

/* ---- Blog cards ------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-media { display: block; aspect-ratio: 25 / 16; overflow: hidden; background: var(--surface-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.06); }
.post-body { flex: 1; display: flex; flex-direction: column; gap: .55rem; padding: 1.2rem 1.3rem 1.35rem; }
.post-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.date-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: .8rem; font-weight: 700; }
.date-badge .icon { width: 14px; height: 14px; }
.post-cat { font-size: .82rem; font-weight: 700; color: var(--pink-dark); }
.post-title { font-size: 1.05rem; line-height: 1.75; margin: 0; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--brand-dark); }
.post-excerpt { flex: 1; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Contact ---------------------------------------------------------------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.contact-card { padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-align: center; }
.contact-card h2 { font-size: 1.05rem; margin: .9rem 0 .4rem; }
.contact-card p { margin: 0 0 .25rem; color: var(--muted); }
.contact-card a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-card a:hover { color: var(--brand-dark); }
.contact-card-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; }
.contact-card-icon .icon { width: 24px; height: 24px; }
.contact-grid { display: grid; gap: 1.5rem; }
.contact-grid > * { min-width: 0; }
.contact-info { position: relative; overflow: hidden; padding: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--grad-deep); color: #e9ddf7; }
.contact-info-title { color: #fff; font-size: 1.4rem; margin-bottom: .4rem; }
.contact-info-text { color: rgba(255, 255, 255, .75); margin-bottom: 0; }
.contact-list { list-style: none; margin: 1.75rem 0; padding: 0; display: grid; gap: 1.3rem; position: relative; z-index: 1; }
.contact-list li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; background: rgba(240, 171, 252, .16); color: #f0abfc; }
.contact-icon .icon { width: 20px; height: 20px; }
.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-size: .8rem; color: rgba(255, 255, 255, .62); }
.contact-value { color: #fff; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.contact-value a { display: inline-block; padding-block: .3rem; color: inherit; text-decoration: none; }
.contact-value a:hover { color: #f0abfc; }
.contact-value .sep { margin-inline: .5rem; color: rgba(255, 255, 255, .35); }
.contact-info-deco { position: absolute; inset-inline-start: -90px; bottom: -90px; width: 250px; height: 250px; border-radius: 50%; border: 40px solid rgba(219, 39, 119, .16); pointer-events: none; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; position: relative; z-index: 1; }
.social-list a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.social-list a .icon { width: 18px; height: 18px; }
.social-list a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.social-list.social-list-light a { border-color: rgba(255, 255, 255, .2); color: #fff; }
.social-list.social-list-light a:hover { background: var(--pink); border-color: var(--pink); color: #fff; }

.contact-form { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: 1.1rem 1.25rem; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.req { color: var(--pink-dark); }
.input {
    width: 100%; min-height: 50px; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
    background: #fdfbff; color: var(--ink); line-height: 1.7; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input:hover { border-color: #d6c3ee; }
.input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(109, 40, 217, .16); }
textarea.input { min-height: 150px; resize: vertical; }
.field.is-invalid .input { border-color: #dc2626; background: #fffafa; }
.field-error { margin: .35rem 0 0; color: var(--danger); font-size: .85rem; font-weight: 600; }
.field-error:empty { display: none; }
.form-hint { margin: 1rem 0 1.25rem; font-size: .85rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { font-weight: 700; font-size: .95rem; }
.form-status.is-success { color: var(--win); }
.form-status.is-error { color: var(--danger); }
.form-alert { margin-bottom: 1.25rem; padding: .9rem 1.1rem; border-radius: 12px; font-weight: 600; }
.form-alert-success { background: var(--win-soft); color: #14532d; }
.form-alert-error { background: #fee2e2; color: #991b1b; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-icon { display: none; }
.hp-field { position: absolute !important; top: 0; right: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.map-frame { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8; min-height: 280px; box-shadow: var(--shadow-sm); background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Inner page hero (club pages, shared contact, blog / post) --------------- */
.club-page-hero, .corp-page-hero, .page-hero {
    position: relative; overflow: hidden; padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem);
    background: var(--grad-deep); color: #fff; isolation: isolate;
}
.club-page-hero::before, .corp-page-hero::before, .page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
    background: linear-gradient(115deg, transparent 0 55%, rgba(192, 38, 211, .25) 55% 68%, transparent 68%);
}
.club-page-hero::after, .corp-page-hero::after { content: ""; position: absolute; z-index: -1; inset-inline-start: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(219, 39, 119, .35), transparent 70%); }
.club-page-hero .container, .corp-page-hero .container, .page-hero .container { position: relative; z-index: 1; }
.page-hero { padding-bottom: clamp(1rem, .75rem + 1vw, 1.5rem); }
.page-title { color: #fff; font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem); line-height: 1.5; margin: .2rem 0 .4rem; }
.page-sub { color: rgba(255, 255, 255, .82); margin: 0; max-width: 52rem; }
.page-hero .page-title, .page-hero .section-sub { color: #fff; }
.page-hero .section-sub { color: rgba(255, 255, 255, .82); }
.page-hero-deco { position: absolute; inset: 0; z-index: -1; }
.page-hero-deco::before { content: ""; position: absolute; inset-inline-start: -90px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(219, 39, 119, .35), transparent 70%); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .4rem; padding: 0; font-size: .88rem; color: rgba(255, 255, 255, .72); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: .4rem; color: rgba(255, 255, 255, .45); }
.breadcrumb a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-center ol { justify-content: center; }
.post-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .75rem 0 0; padding: 0; color: rgba(255, 255, 255, .82); font-size: .92rem; }
.post-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.post-meta .icon { width: 17px; height: 17px; color: #f0abfc; }
.post-meta a { color: inherit; text-decoration: none; }
.post-meta a:hover { color: #fff; }
.post-layout { padding-block: 2rem; }
.post-cover { margin: 0 0 2.5rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.post-cover img { width: 100%; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 2.5rem 0 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.post-share-label { font-weight: 700; color: var(--ink); margin-inline-end: .5rem; }
.share-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.share-btn .icon { width: 18px; height: 18px; }
.share-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.copy-status { font-size: .85rem; font-weight: 600; color: var(--brand-dark); }
.back-link .icon { transform: none; }
.back-link:hover .icon { transform: translateX(5px); }
.related { padding-top: 1rem; }
.blog-archive { padding-top: 2rem; }
.search-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; margin: 0 0 1.75rem; color: var(--muted); }
.search-note strong { color: var(--ink); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.pager-btn { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .75rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none; }
.pager-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.pager-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-btn .icon { width: 18px; height: 18px; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state .icon { width: 48px; height: 48px; margin-bottom: 1rem; opacity: .6; }
.not-found { min-height: 60vh; display: grid; align-items: center; }
.not-found-code { margin: 0; font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Footer ------------------------------------------------------------------ */
.club-footer { position: relative; margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); background: var(--grad-deep); color: #d8c8ec; overflow: hidden; isolation: isolate; }
.club-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: linear-gradient(115deg, transparent 0 62%, rgba(192, 38, 211, .2) 62% 74%, transparent 74%); }
.club-footer-grid { display: grid; gap: 2.25rem; padding-top: clamp(2.25rem, 1.75rem + 2vw, 3.25rem); }
.club-footer-grid > * { min-width: 0; }
.club-footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.club-footer-crest { width: 84px; height: auto; flex: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .4)); }
.club-footer-name { margin: 0 0 .2rem; color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.7; }
.club-footer-tagline { margin: 0 0 .6rem; color: #f0abfc; font-weight: 700; font-size: .9rem; }
.club-footer-about { margin: 0; font-size: .9rem; line-height: 2; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; position: relative; padding-bottom: .6rem; }
.footer-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--grad); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer-links .nav-link { padding: .3rem 0; min-height: 40px; color: #d8c8ec; font-weight: 500; font-size: .93rem; border-radius: 0; }
.footer-links .nav-link:hover { color: #fff; }
.footer-links .nav-link::before { content: ""; width: 6px; height: 6px; margin-inline-end: .6rem; border-radius: 50%; background: var(--pink); }
.footer-contact { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .7rem; font-size: .92rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.9; }
.footer-contact .icon { color: #f0abfc; width: 18px; height: 18px; margin-top: .35rem; }
.footer-contact a { display: inline-block; padding-block: .3rem; color: #d8c8ec; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .87rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline-block; padding-block: .4rem; color: #d8c8ec; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.to-top {
    position: fixed; inset-inline-start: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--pink-dark); background-image: var(--grad); color: #fff; cursor: pointer; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---- Responsive ---------------------------------------------------------------- */
@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .field-full { grid-column: 1 / -1; }
    .club-footer-grid { grid-template-columns: 1fr 1fr; }
    .club-tiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .club-tiles-grid > li:last-child:nth-child(odd) { grid-column: auto; }
    .gallery-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .club-match-feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .match-row { grid-template-columns: auto minmax(0, 1fr) auto; padding: 1rem 1.25rem; }
    .match-row-side { grid-column: auto; flex-direction: column; justify-content: center; padding-top: 0; border-top: 0; min-width: 7.5rem; }
}
@media (min-width: 900px) {
    .club-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; }
    .club-highlight-grid { grid-template-columns: 1.15fr 1fr 1fr; }
    .club-bottom-grid { grid-template-columns: 1.5fr 1fr; }
    .club-bottom-grid.is-single { grid-template-columns: 1fr; }
    .club-academy-page { grid-template-columns: .85fr 1.15fr; gap: 3rem; }
    .contact-grid { grid-template-columns: .9fr 1.1fr; }
    .modal-content { grid-template-columns: 1fr 1.1fr; }
    .modal-media img { min-height: 100%; }
    .modal-content:has(.modal-media-full) { grid-template-columns: 1fr; }
    .modal-media-full img { min-height: 0; }
}
@media (min-width: 1100px) {
    .main-nav { display: block; }
    .nav-toggle { display: none; }
    .club-hero-grid { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.5rem; }
    .club-hero-crest { display: block; }
    .club-tiles-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .club-footer-grid { grid-template-columns: 1.6fr .8fr .8fr 1.2fr; gap: 2.75rem; }
}
@media (min-width: 1360px) {
    .social-list.social-list-header { display: flex; }
}
@media (max-width: 1099px) {
    .club-hero-copy { order: 2; }
    .club-hero-media { order: 1; max-height: 420px; aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
    :root { --header-h: 70px; }
    .club-brand-crest { height: 50px; }
    .club-brand-name { font-size: .88rem; max-width: 12rem; }
    .club-brand-en { display: none; }
    .btn-row .btn { flex: 1 1 100%; }
    .hero-counter { gap: .5rem; padding-inline: .15rem; }
    .hero-progress { width: 46px; }
    .club-tile { min-height: 66px; padding: .75rem; gap: .6rem; }
    .club-tile-icon { width: 40px; height: 40px; }
    .club-tile-arrow { display: none; }
    .club-tile-label { font-size: .88rem; }
    .club-footer-brand { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .club-hero-media .hero-img.is-active, .club-hero-crest img { animation: none; }
}
