/* Core */
:root {
  --club-red: #d71920;
  --club-navy: #07152d;
  --club-gold: #f2c94c;
  --ink: #101625;
  --muted: #697386;
  --line: #e7ebf2;
  --soft: #f5f7fb;
  --white: #fff;
  --radius: 26px;
  --shadow: 0 24px 70px rgba(7, 21, 45, .14);
  --container: 1200px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--font); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--club-red); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 850px); }
.screen-reader-text { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 20px; top: 20px; width: auto; height: auto; z-index: 9999; background: var(--white); padding: 12px; border-radius: 10px; }
.button, button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; letter-spacing: .01em; border: 0; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, button:hover { transform: translateY(-2px); }
.button--primary { background: var(--club-red); color: var(--white); box-shadow: 0 18px 34px rgba(215, 25, 32, .25); }
.button--primary:hover { color: var(--white); background: #b9141a; }
.button--ghost { color: var(--white); border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.09); }
.button--light { background: var(--white); color: var(--club-navy); }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--club-red); font-weight: 900; text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; }
.kicker::before { content: ""; width: 32px; height: 3px; background: var(--club-gold); border-radius: 999px; }
.section { padding: 90px 0; }
.section--light { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2, .page-header h1 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.055em; }
.section-head a { font-weight: 900; color: var(--club-red); }
.section-head--dark { color: var(--white); }
.card-grid { display: grid; gap: 24px; }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(7,21,45,.08); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(7,21,45,.09); }
.topline { background: var(--club-navy); color: rgba(255,255,255,.82); font-size: .82rem; }
.topline__inner { min-height: 34px; display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.nav-shell { display: flex; align-items: center; gap: 24px; min-height: 86px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 230px; }
.brand img, .custom-logo { width: 60px; height: 60px; object-fit: contain; }
.brand__copy { display: flex; flex-direction: column; line-height: 1.1; }
.site-title { font-weight: 950; letter-spacing: -.04em; font-size: 1.05rem; color: var(--club-navy); }
.brand__copy span { font-size: .78rem; color: var(--muted); }
.primary-navigation ul { display: flex; list-style: none; padding: 0; margin: 0; gap: 20px; align-items: center; }
.primary-navigation a { font-weight: 800; font-size: .94rem; color: var(--club-navy); }
.header-actions { display: flex; gap: 10px; }
.mini-action { border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; font-weight: 900; font-size: .85rem; }
.mini-action--solid { background: var(--club-navy); color: var(--white); border-color: var(--club-navy); }
.nav-toggle { display: none; width: 48px; height: 48px; background: var(--club-navy); padding: 10px; flex-direction: column; gap: 5px; }
.nav-toggle span:not(.screen-reader-text) { display: block; width: 22px; height: 2px; background: #fff; border-radius: 4px; }

/* Hero */
.hero { color: var(--white); background-size: cover; background-position: center; min-height: 720px; display: flex; align-items: center; padding: 110px 0; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -140px; width: 520px; height: 520px; border: 90px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 6.8rem); line-height: .88; max-width: 900px; margin: 16px 0; letter-spacing: -.075em; }
.hero p { max-width: 700px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: rgba(255,255,255,.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.match-card--hero { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.match-card--hero span { color: var(--club-gold); text-transform: uppercase; font-weight: 900; font-size: .78rem; letter-spacing: .12em; }
.match-card--hero strong { display: block; font-size: 2rem; line-height: 1.05; margin: 12px 0; }
.match-card--hero p { font-size: .96rem; margin: 0 0 18px; color: rgba(255,255,255,.75); }
.match-card--hero a { color: var(--white); font-weight: 900; border-bottom: 2px solid var(--club-gold); }

/* Quick links */
.quick-links { margin-top: -42px; position: relative; z-index: 2; }
.quick-links__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.quick-links a { padding: 28px; border-right: 1px solid var(--line); display: grid; gap: 7px; }
.quick-links a:last-child { border-right: 0; }
.quick-links span { color: var(--club-red); font-weight: 950; }
.quick-links strong { font-size: 1.2rem; color: var(--club-navy); }
.quick-links em { font-style: normal; color: var(--muted); font-size: .92rem; }

/* Cards */
.news-card, .entry-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 34px rgba(7,21,45,.06); }
.news-card__image { aspect-ratio: 16 / 10; background: #dfe5ee; overflow: hidden; display: block; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover img { transform: scale(1.04); }
.news-card__body { padding: 24px; }
.news-card__body span { color: var(--muted); font-size: .82rem; font-weight: 800; }
.news-card h3 { margin: 7px 0 10px; font-size: 1.35rem; line-height: 1.12; letter-spacing: -.03em; }
.news-card p { margin: 0; color: var(--muted); }

/* Matches */
.match-section { background: radial-gradient(circle at top right, rgba(215,25,32,.32), transparent 34%), var(--club-navy); }
.match-list { display: grid; gap: 14px; }
.match-row { display: grid; grid-template-columns: 1.4fr .6fr .22fr .25fr; gap: 20px; align-items: center; background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.12); padding: 22px 24px; border-radius: 20px; }
.match-row span { display: block; color: var(--club-gold); font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 900; }
.match-row strong { font-size: 1.25rem; line-height: 1.1; }
.match-row em { display: block; color: rgba(255,255,255,.72); font-style: normal; }
.match-row time { color: rgba(255,255,255,.78); font-weight: 800; }
.match-score { text-align: center; }
.match-row a { color: var(--white); font-weight: 900; text-align: right; }
.match-list--archive .match-row { background: var(--club-navy); }

/* Team */
.player-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.player-card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 16px 34px rgba(7,21,45,.06); }
.player-card__image { aspect-ratio: 3 / 4; background: linear-gradient(160deg, #e9edf5, #cdd5e2); display: block; overflow: hidden; }
.player-card__image img { width: 100%; height: 100%; object-fit: cover; }
.player-card span { position: absolute; top: 18px; left: 18px; background: var(--club-red); color: var(--white); border-radius: 999px; padding: 7px 12px; font-weight: 950; }
.player-card h3 { margin: 18px 20px 2px; font-size: 1.35rem; line-height: 1; }
.player-card p { margin: 0 20px 22px; color: var(--muted); font-weight: 700; }
.player-card--placeholder .player-card__image { background: url('../img/player-placeholder.svg') center/cover no-repeat; }

/* Academy and sponsors */
.academy-section { background: linear-gradient(135deg, var(--club-red), #891016); color: var(--white); }
.academy-card { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 42px; border-radius: var(--radius); background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2); }
.academy-card h2 { font-size: clamp(2rem, 4vw, 4rem); line-height: .95; margin: 12px 0; letter-spacing: -.05em; max-width: 830px; }
.academy-card p { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 720px; }
.sponsor-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sponsor-logo { min-height: 112px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); display: grid; place-items: center; padding: 18px; font-weight: 900; color: var(--club-navy); text-align: center; }
.sponsor-logo img { max-height: 68px; object-fit: contain; }

/* Inner pages */
.inner-page { padding: 70px 0 90px; }
.page-header { margin-bottom: 34px; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; }
.entry-card { margin-bottom: 28px; }
.entry-content-wrap { padding: 30px; }
.entry-title { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; margin: 0 0 10px; letter-spacing: -.05em; }
.entry-meta { color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.entry-content a { color: var(--club-red); font-weight: 800; text-decoration: underline; }
.entry-content img { border-radius: 18px; }
.widget-area { display: grid; gap: 20px; align-content: start; }
.widget, .no-results, .match-detail__panel, .stats-strip { background: var(--soft); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.widget-title { margin-top: 0; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; }
.search-form button { background: var(--club-red); color: var(--white); }
.player-profile { display: grid; grid-template-columns: .75fr 1fr; gap: 46px; align-items: center; }
.player-profile__photo { border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.stats-strip { display: flex; gap: 16px; margin: 24px 0; }
.stats-strip span { display: grid; flex: 1; color: var(--muted); font-weight: 800; }
.stats-strip strong { color: var(--club-navy); font-size: 2rem; line-height: 1; }
.match-detail__panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.match-detail__panel span { color: var(--muted); font-weight: 800; display: block; }
.match-detail__panel strong { font-size: 1.2rem; }

/* Footer */
.site-footer { background: #050d1d; color: rgba(255,255,255,.78); padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr 1fr; gap: 34px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.footer-brand img { width: 62px; height: 62px; }
.footer-brand strong { display: block; font-size: 1.2rem; }
.site-footer h3 { color: var(--white); margin-top: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.88); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { border: 1px solid rgba(255,255,255,.2); padding: 8px 12px; border-radius: 999px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 20px; display: flex; justify-content: space-between; gap: 18px; }
.footer-bottom ul { display: flex; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1040px) {
  .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .primary-navigation { position: fixed; inset: 120px 20px auto 20px; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; display: none; }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-navigation li { border-bottom: 1px solid var(--line); }
  .primary-navigation a { display: block; padding: 14px; }
  .hero__grid, .academy-card, .layout-with-sidebar, .player-profile { grid-template-columns: 1fr; }
  .quick-links__grid, .player-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--three, .footer-grid { grid-template-columns: 1fr 1fr; }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
  .match-row { grid-template-columns: 1fr; text-align: left; }
  .match-row a, .match-score { text-align: left; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .topline { display: none; }
  .nav-shell { min-height: 76px; }
  .brand__copy span { display: none; }
  .hero { min-height: 640px; padding: 74px 0 100px; }
  .hero h1 { font-size: clamp(2.8rem, 16vw, 4.6rem); }
  .quick-links__grid, .player-grid, .card-grid--three, .footer-grid, .sponsor-grid, .match-detail__panel, .stats-strip { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .section-head { display: block; }
  .academy-card { padding: 28px; }
  .footer-bottom { display: block; }
}
