/*
Theme Name: FanUnics
Theme URI: https://fanunics.ru/
Author: FanUnics
Description: Современная тема сайта болельщиков БК УНИКС: матч-центр, новости, состав, история.
Version: 0.1.0
Requires at least: 7.0
Requires PHP: 7.4
Text Domain: fanunics
*/

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #006b36;
  --green-dark: #053d25;
  --green-deep: #032b18;
  --green-soft: #e8f3ec;
  --orange: #f28c28;
  --orange-dark: #d96f12;
  --ink: #142018;
  --muted: #66746b;
  --line: #dce5df;
  --paper: #ffffff;
  --bg: #f2f5f1;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(5, 61, 37, .07);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.home { background: #eef3ee; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--orange-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Header */
.site-header { position: relative; z-index: 50; }
.topbar {
  background: var(--green-deep);
  color: #b8d6c3;
  font-size: 12px;
  letter-spacing: .04em;
}
.topbar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar a { color: #d9ecdf; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar-date { color: #8fb9a1; }
.masthead {
  background:
    radial-gradient(circle at 72% -40%, rgba(242, 140, 40, .24), transparent 38%),
    linear-gradient(135deg, #06462a 0%, #006b36 58%, #07522f 100%);
  color: #fff;
  padding: 22px 0 24px;
  border-bottom: 4px solid var(--orange);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 54px; height: 54px; flex: 0 0 54px;
  border-radius: 50%;
  background: var(--orange);
  position: relative;
  box-shadow: inset -6px -8px 0 rgba(0,0,0,.08);
  transform: rotate(-12deg);
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute; inset: 6px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
}
.brand-mark::after {
  inset: 6px 23px;
  border-left: 0; border-right: 0;
  border-radius: 0;
  transform: rotate(90deg);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 34px; font-weight: 700; letter-spacing: .08em; }
.brand-sub {
  margin-top: 5px;
  color: #bfe0ca;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  color: #fff;
  font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.06);
}
.header-action:hover { background: #fff; color: var(--green-dark); }
.header-action.accent { background: var(--orange); border-color: var(--orange); color: #24170a; }
.header-action.accent:hover { background: #fff; border-color: #fff; color: var(--green-dark); }

.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(5,61,37,.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-list {
  display: flex; align-items: center; gap: 2px;
  margin: 0; padding: 0; list-style: none;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: inline-flex; align-items: center;
  min-height: 50px; padding: 0 13px;
  color: #234333;
  font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current-menu-ancestor > a {
  color: var(--green);
  border-bottom-color: var(--orange);
}
.nav-search {
  border: 0; background: var(--green-soft); color: var(--green);
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
}
.nav-search:hover { background: var(--green); color: #fff; }
.mobile-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #234333; margin: 5px 0; }
.search-panel { display: none; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; }
.search-panel.open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] {
  flex: 1; min-height: 46px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #f8faf8;
}
.search-form button {
  border: 0; border-radius: 10px; padding: 0 22px;
  background: var(--green); color: #fff; font-weight: 700;
}

/* Common */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange);
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700;
  transition: .18s ease;
}
.btn-primary { background: var(--orange); color: #24170a; }
.btn-primary:hover { background: #fff; color: var(--green-dark); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--green-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.section { padding: 30px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-title { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.03em; }
.section-title .accent { color: var(--green); }
.section-link { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.section-link:hover { color: var(--green); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }

/* Hero */
.hero { padding: 28px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: stretch; }
.next-match {
  position: relative; overflow: hidden;
  min-height: 390px; padding: 32px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(242,140,40,.35), transparent 30%),
    linear-gradient(145deg, #053d25, #006b36 72%, #07522f);
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
}
.next-match::after {
  content: ""; position: absolute; right: -80px; bottom: -130px;
  width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.04), 0 0 0 70px rgba(255,255,255,.03);
}
.next-match .eyebrow { color: #ffd29c; }
.match-kicker { color: #b9ddc7; font-size: 13px; font-weight: 600; letter-spacing: .05em; }
.match-date { margin-top: 12px; font-size: clamp(28px, 4.4vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.match-time { color: #ffd29c; font-weight: 700; }
.match-teams { display: flex; align-items: center; gap: 16px; margin: 26px 0 14px; }
.match-team { display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 2.8vw, 26px); font-weight: 700; }
.team-badge {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.match-vs { color: rgba(255,255,255,.55); font-size: 12px; font-weight: 700; }
.match-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; position: relative; z-index: 1; }
.match-venue { color: #c9e4d2; font-size: 13px; }
.match-venue strong { color: #fff; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.lead-news {
  overflow: hidden; min-height: 0; flex: 1;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow);
}
.lead-news-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #dfeae1; }
.lead-news-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lead-news .category { color: var(--orange-dark); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lead-news h1, .lead-news h2 { margin: 0; font-size: clamp(23px, 2.8vw, 31px); line-height: 1.13; letter-spacing: -.03em; }
.lead-news p { margin: 0; color: var(--muted); font-size: 14px; }
.news-meta { color: #8a978f; font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* News + standings */
.news-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 22px; align-items: start; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card-image { aspect-ratio: 16 / 10; overflow: hidden; background: #dfeae1; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 17px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card .category { color: var(--orange-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
.news-card p { margin: 0; color: var(--muted); font-size: 13px; }
.news-card .news-meta { margin-top: auto; padding-top: 6px; }
.news-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; }
.news-card.featured .news-card-image { height: 100%; aspect-ratio: auto; min-height: 230px; }
.news-card.featured .news-card-body { padding: 24px; }
.news-card.featured h3 { font-size: clamp(23px, 2.6vw, 30px); }
.news-card.featured p { font-size: 14px; }
.standings-card { padding: 20px; position: sticky; top: 16px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-heading h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.card-heading span { color: var(--muted); font-size: 12px; }
.standings { width: 100%; border-collapse: collapse; font-size: 13px; }
.standings th { color: #8b998f; font-size: 11px; font-weight: 600; text-align: right; padding: 0 4px 8px; }
.standings th:first-child { text-align: left; width: 26px; }
.standings th:nth-child(2) { text-align: left; }
.standings td { padding: 9px 4px; border-top: 1px solid #eef3ef; text-align: right; }
.standings td:first-child { width: 26px; text-align: left; }
.standings td:nth-child(2) { text-align: left; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.standings tr.is-unics td { color: var(--green); background: #f0f8f2; }
.standings tr.is-unics td:first-child { border-radius: 6px 0 0 6px; padding-left: 6px; }
.standings tr.is-unics td:last-child { border-radius: 0 6px 6px 0; padding-right: 6px; }
.standings .pos { color: #8b998f; width: 26px; }
.standings .pts { font-weight: 700; }
.standings-note { margin-top: 12px; color: var(--muted); font-size: 11px; }

/* Results */
.results-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.result-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.result-date { color: var(--muted); font-size: 11px; font-weight: 600; }
.result-teams { margin-top: 3px; font-size: 14px; font-weight: 600; }
.result-score { font-size: 20px; font-weight: 700; color: var(--green); white-space: nowrap; }
.result-score.loss { color: #a33b2b; }

/* Roster */
.roster-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.player-card {
  position: relative; overflow: hidden;
  border-radius: 16px; background: #fff; border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.player-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.player-photo { aspect-ratio: 4 / 5; background: #e8f3ec; overflow: hidden; }
.player-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-number {
  position: absolute; top: 10px; left: 10px;
  min-width: 34px; height: 34px; padding: 0 7px;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--orange); color: #24170a;
  font-size: 13px; font-weight: 700;
}
.player-body { padding: 13px 14px 15px; }
.player-name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.player-role { margin-top: 3px; color: var(--muted); font-size: 12px; }
.player-country { margin-top: 7px; color: #8b998f; font-size: 11px; }
.roster-actions { margin-top: 16px; display: flex; justify-content: center; }

/* Blogs / photo */
.split-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.blog-list { display: flex; flex-direction: column; gap: 10px; }
.blog-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px;
  padding: 15px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.blog-date { color: var(--orange-dark); font-size: 13px; font-weight: 700; }
.blog-item h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.3; }
.blog-item p { margin: 0; color: var(--muted); font-size: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.photo-card { position: relative; display: block; overflow: hidden; border-radius: 14px; background: #dce9df; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.photo-card:hover img { transform: scale(1.04); }
.photo-caption {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px;
  color: #fff; font-size: 12px; font-weight: 600;
  background: linear-gradient(transparent, rgba(3,43,24,.86));
}
.fan-cta {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: center;
  padding: 28px 30px; border-radius: 20px; color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(242,140,40,.3), transparent 30%),
    linear-gradient(135deg, #053d25, #006b36);
}
.fan-cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.fan-cta p { margin: 0; color: #c4dfcd; font-size: 14px; }
.fan-cta-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Footer */
.site-footer { margin-top: 42px; background: var(--green-deep); color: #b9d5c3; }
.footer-main { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 28px; padding: 40px 0 30px; }
.footer-brand .brand-name { font-size: 28px; }
.footer-brand p { max-width: 340px; margin: 12px 0 0; color: #8fb5a0; font-size: 13px; }
.footer-title { margin: 0 0 12px; color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.footer-links a { color: #c4dfcd; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 15px 0 22px; color: #7fa58d; font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Page / archive */
.page-wrap { padding: 30px 0 0; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .5fr); gap: 22px; align-items: start; }
.page-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.page-card h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -.04em; }
.page-content { color: #34453a; font-size: 15px; }
.page-content p { margin: 0 0 14px; }
.page-content h2 { margin: 26px 0 10px; font-size: 24px; letter-spacing: -.02em; }
.page-content h3 { margin: 20px 0 8px; font-size: 19px; }
.page-content ul, .page-content ol { padding-left: 22px; }
.page-content blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--orange); background: #f7faf7; }
.breadcrumbs { margin-bottom: 14px; color: #7b8a81; font-size: 12px; }
.breadcrumbs a { color: #7b8a81; }
.breadcrumbs a:hover { color: var(--green); }
.archive-head { padding: 28px 0 20px; }
.archive-head h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.archive-head p { margin: 8px 0 0; color: var(--muted); max-width: 700px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.single-hero { padding: 28px 0 0; }
.single-hero .page-card { padding: 0; overflow: hidden; }
.single-cover { height: clamp(220px, 30vw, 380px); background: #dfeae1; overflow: hidden; }
.single-cover img { width: 100%; height: 100%; object-fit: cover; }
.single-body { padding: 28px 32px 34px; }
.single-body h1 { margin: 0 0 10px; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.07; letter-spacing: -.045em; }
.single-meta { color: var(--muted); font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.single-body .page-content { font-size: 16px; line-height: 1.7; }
.single-body .page-content p:first-child { font-size: 18px; color: #1f3327; }
.player-single { display: grid; grid-template-columns: 320px 1fr; gap: 26px; padding: 28px; }
.player-single-photo { overflow: hidden; border-radius: 16px; background: #e8f3ec; }
.player-single-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-single h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.player-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.player-fact { padding: 10px 12px; background: #f5f8f5; border-radius: 10px; }
.player-fact span { display: block; color: var(--muted); font-size: 11px; }
.player-fact strong { display: block; margin-top: 2px; font-size: 14px; }
.match-single { padding: 28px; }
.match-single-score { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 22px; background: #f5f8f5; border-radius: 16px; }
.match-single-score .team { font-size: 20px; font-weight: 700; }
.match-single-score .score { font-size: 38px; font-weight: 700; color: var(--green); }
.empty-state { padding: 34px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #cbd9ce; border-radius: 16px; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; }
.pagination .current, .pagination a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.comments-area { margin-top: 24px; }
.comments-title { font-size: 22px; }

/* Tables */
.schedule-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.schedule-table th { background: #eef5ef; color: #526358; font-size: 11px; text-align: left; padding: 12px; text-transform: uppercase; letter-spacing: .06em; }
.schedule-table td { padding: 13px 12px; border-top: 1px solid #edf2ee; font-size: 13px; vertical-align: middle; }
.schedule-table tr:hover td { background: #f8fbf8; }
.schedule-table .score { font-weight: 700; color: var(--green); white-space: nowrap; }
.schedule-table .score.loss { color: #a33b2b; }
.schedule-table .muted { color: var(--muted); }
.table-wrap { overflow-x: auto; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; }
  .news-layout, .page-grid { grid-template-columns: 1fr; }
  .standings-card { position: static; }
  .roster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1.2fr .8fr .8fr; }
}
@media (max-width: 820px) {
  .topbar-links { gap: 10px; }
  .topbar-date { display: none; }
  .masthead { padding: 18px 0; }
  .brand-name { font-size: 27px; }
  .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-sub { font-size: 10px; }
  .header-action { min-height: 38px; padding: 0 13px; font-size: 12px; }
  .mobile-toggle { display: block; }
  .nav-inner { min-height: 48px; }
  .nav-list {
    display: none; position: absolute; left: 20px; right: 20px;
    top: 100%; z-index: 60; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 34px rgba(5,61,37,.12); flex-direction: column; align-items: stretch;
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a { min-height: 42px; border-bottom: 0; border-radius: 8px; padding: 0 12px; }
  .nav-list > li > a:hover { background: var(--green-soft); }
  .main-nav .nav-inner { position: relative; }
  .nav-search { display: grid; }
  .nav-search { width: 36px; height: 36px; }
  .hero-side { grid-template-columns: 1fr; }
  .next-match { min-height: 340px; padding: 24px; }
  .match-teams { gap: 8px; }
  .match-team { font-size: 18px; gap: 7px; }
  .team-badge { width: 38px; height: 38px; font-size: 10px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { display: flex; }
  .news-card.featured .news-card-image { min-height: 180px; aspect-ratio: 16/9; }
  .roster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .results-strip { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid, .fan-cta { grid-template-columns: 1fr; }
  .fan-cta-actions { justify-content: flex-start; }
  .player-single { grid-template-columns: 1fr; padding: 20px; }
  .player-single-photo { max-width: 320px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .single-body { padding: 22px; }
}
@media (max-width: 520px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .header-actions .header-action:not(.accent) { display: none; }
  .brand-name { font-size: 23px; }
  .brand-sub { letter-spacing: .1em; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .hero { padding-top: 18px; }
  .match-date { font-size: 30px; }
  .match-teams { flex-wrap: wrap; }
  .match-bottom { align-items: flex-start; flex-direction: column; }
  .section { padding-top: 24px; }
  .section-head { align-items: start; flex-direction: column; gap: 6px; }
  .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-grid { grid-template-columns: 1fr; }
  .page-card { padding: 20px; }
  .single-body { padding: 18px; }
  .single-body h1 { font-size: 30px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .player-facts { grid-template-columns: 1fr; }
}
