@font-face {
  font-family: "Sora";
  src: url("assets/fonts/Sora/Sora-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("assets/fonts/Sora/Sora-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Sora";
  src: url("assets/fonts/Sora/Sora-Bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("assets/fonts/Sora/Sora-ExtraBold.ttf") format("truetype");
  font-weight: 900 950;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("assets/fonts/Lato/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("assets/fonts/Lato/Lato-Bold.ttf") format("truetype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("assets/fonts/Lato/Lato-Black.ttf") format("truetype");
  font-weight: 900 950;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("assets/fonts/Lato/Lato-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Platypi";
  src: url("assets/fonts/Platypi/Platypi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Platypi";
  src: url("assets/fonts/Platypi/Platypi-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Platypi";
  src: url("assets/fonts/Platypi/Platypi-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Platypi";
  src: url("assets/fonts/Platypi/Platypi-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Platypi";
  src: url("assets/fonts/Platypi/Platypi-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #667085;
  --line: #d9dee8;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --green: #147d64;
  --green-dark: #0f604d;
  --blue: #1d5f9f;
  --club-blue: rgb(0, 86, 184);
  --club-gold: rgb(208, 184, 136);
  --navy: rgb(8, 32, 70);
  --navy-dark: rgb(4, 20, 48);
  --red: #c73737;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 28px rgba(8, 32, 70, 0.06);
  --surface-border: #dbe3ef;
  --surface-subtle: #f7f9fd;
  --radius: 8px;
  --radius-panel: 10px;
  --font-primary: "Sora", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-secondary: "Lato", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: "Platypi", Georgia, serif;
  font-family: var(--font-secondary);
}

.public-shell {
  --content-top-gap: clamp(22px, 2.6vw, 36px);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  padding: 12px clamp(16px, 4vw, 44px);
  background: var(--club-blue);
  color: #fff;
  border-bottom: 4px solid var(--club-gold);
  box-shadow: 0 12px 28px rgba(8, 32, 70, 0.18), 0 3px 10px rgba(8, 32, 70, 0.1);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-header > .brand-block {
  display: none;
}

.brand-block picture {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-block > div {
  display: grid;
  gap: 6px;
  justify-items: start;
  min-width: 0;
}

.club-logo {
  width: 210px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-header .eyebrow {
  color: var(--club-gold);
}

.app-header h1,
.section-heading h2,
.auth-card h2 {
  margin: 0;
  letter-spacing: 0;
  font-family: var(--font-primary);
}

.app-header h1 {
  display: none;
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  line-height: 1.05;
}

.header-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.header-actions {
  justify-content: flex-end;
}

.header-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.site-menu-toggle {
  display: none;
}

.site-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2.6vw, 38px);
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-nav-group {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.site-nav-group-left {
  justify-content: flex-end;
}

.site-nav-group-right {
  justify-content: flex-start;
}

.site-nav-logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-bottom: -34px;
}

.site-nav-logo img {
  width: auto;
  height: clamp(104px, 9vw, 132px);
  max-width: 92px;
  object-fit: contain;
  display: block;
}

.site-nav-item {
  position: relative;
  min-width: 0;
}

.site-nav-group > a,
.site-nav-trigger {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-radius 0.16s ease;
}

.site-nav-trigger {
  appearance: none;
}

.site-nav-group > a:hover,
.site-nav-group > a:focus-visible,
.site-nav-trigger:hover,
.site-nav-trigger:focus-visible,
.site-nav-item:hover .site-nav-trigger {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.site-subnav {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1005;
  display: grid;
  gap: 3px;
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(217, 222, 232, 0.95);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 40px rgba(8, 32, 70, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.site-nav-item:hover .site-subnav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.site-subnav::after {
  content: "";
  position: absolute;
  left: 27px;
  top: -5px;
  width: 14px;
  height: 14px;
  border-left: 1px solid rgba(217, 222, 232, 0.95);
  border-top: 1px solid rgba(217, 222, 232, 0.95);
  background: #fff;
  transform: rotate(45deg);
}

.site-subnav a,
.site-subnav-group strong {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
}

.site-subnav a:hover,
.site-subnav a:focus-visible {
  background: var(--surface-subtle);
  color: var(--club-blue);
  outline: none;
}

.site-subnav-wide {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  min-width: 360px;
  align-items: start;
}

.site-subnav-group {
  display: grid;
  gap: 2px;
}

.site-subnav-group strong {
  min-height: auto;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.app-shell {
  --shell-x: clamp(12px, 3vw, 32px);
  width: 100%;
  margin: 0 auto;
  padding: 18px var(--shell-x) 32px;
}

.public-shell {
  padding-top: 0;
}

.public-shell,
.admin-shell {
  display: grid;
  gap: 14px;
}

.site-section {
  display: grid;
  gap: 14px;
}

.site-section:not([data-site-section="accueil"]) {
  padding-top: var(--content-top-gap);
}

.site-section[data-site-section="accueil"] {
  gap: 0;
}

.home-hero {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4672 / 2044;
  width: 100%;
  max-height: min(500px, 39vw);
  min-height: 0;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-panel);
  background: url("assets/hero/accueil.jpg") center / cover no-repeat;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 701px) {
  .home-hero {
    width: calc(100% + (var(--shell-x) * 2));
    max-height: min(430px, 32vw);
    margin-right: calc(var(--shell-x) * -1);
    margin-left: calc(var(--shell-x) * -1);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .home-content-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  }

  .home-standings-section {
    max-width: 360px;
    overflow: hidden;
  }
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 20, 48, 0.84), rgba(4, 20, 48, 0.36) 48%, rgba(4, 20, 48, 0.08)),
    linear-gradient(0deg, rgba(4, 20, 48, 0.6), rgba(4, 20, 48, 0.04) 55%);
}

.home-hero-content {
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 64px);
  color: #fff;
}

.home-kicker {
  margin: 0 0 12px;
  color: var(--club-gold);
  font-family: var(--font-primary);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 950;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-hero h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-hero h2 span {
  display: block;
  font-style: italic;
}

.home-title-light {
  font-weight: 300;
}

.home-title-medium {
  font-weight: 500;
}

.home-title-bold {
  font-weight: 700;
}

.home-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
  padding-top: clamp(18px, 2vw, 30px);
}

.home-news-section,
.home-sidebar,
.home-side-card,
.home-standings-section {
  min-width: 0;
}

.home-section-heading {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.home-section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 950;
  line-height: 1.05;
}

.home-section-heading h2::before {
  width: 8px;
  height: 22px;
  border-radius: 999px;
  background: var(--club-gold);
  content: "";
}

.home-section-heading::after {
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(210, 219, 234, 0.95), rgba(210, 219, 234, 0.18));
  content: "";
}

.home-news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-news-stack {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.home-news-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.home-news-carousel-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(8, 32, 70, 0.06);
  cursor: pointer;
}

.home-news-carousel-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.home-news-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 60px;
}

.home-news-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8d2e1;
  cursor: pointer;
  transition: width 0.18s ease, background 0.18s ease;
}

.home-news-dots button.is-active {
  width: 28px;
  background: var(--club-blue);
}

.home-news-card {
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-panel);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-news-media {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  min-height: 0;
  align-self: start;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--club-blue);
}

.home-news-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-news-date {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 10px;
  color: var(--club-blue);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.home-news-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: clamp(1.28rem, 1.85vw, 1.7rem);
  font-weight: 950;
  line-height: 1.04;
}

.home-news-title-link {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}

.home-news-title-link:hover,
.home-news-title-link:focus-visible {
  text-decoration: underline;
}

.home-news-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.38;
}

.home-news-copy {
  min-width: 0;
  max-width: 100%;
  align-self: center;
  overflow-wrap: anywhere;
}

.home-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
}

.home-news-meta .home-news-date {
  margin: 0;
}

.home-news-category,
.news-detail-meta span,
.news-preview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 88, 191, 0.16);
  border-radius: 999px;
  background: rgba(0, 88, 191, 0.07);
  color: var(--club-blue);
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.home-news-more {
  margin-top: 14px;
}

.home-news-footer {
  display: flex;
  justify-content: flex-start;
}

.home-news-all {
  width: fit-content;
  justify-self: center;
}

.news-archive-section {
  padding-top: clamp(20px, 3vw, 34px);
}

.news-archive-filters,
.news-admin-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) repeat(2, minmax(150px, 0.8fr)) auto;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.news-admin-filters {
  grid-template-columns: minmax(130px, 0.75fr) minmax(170px, 1fr) repeat(2, minmax(140px, 0.75fr)) auto;
}

.news-filter-reset {
  align-self: end;
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--club-blue);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.news-filter-reset:hover {
  color: var(--club-blue-dark);
}

.news-archive-filters label,
.news-admin-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.news-archive-filters span,
.news-admin-filters span,
.news-archive-count {
  color: var(--muted);
  font-family: var(--font-primary);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.news-archive-filters select,
.news-archive-filters input,
.news-admin-filters select,
.news-admin-filters input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-secondary);
  font-size: 0.96rem;
  font-weight: 700;
}

.news-archive-count {
  margin: 0 0 8px;
}

.news-archive-pagination,
.news-admin-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.news-archive-pagination button,
.news-admin-pagination button {
  min-width: 42px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 0.86rem;
  font-weight: 850;
}

.news-archive-pagination button.is-active,
.news-admin-pagination button.is-active {
  border-color: var(--club-blue);
  background: var(--club-blue);
  color: #fff;
}

.news-archive-pagination button:disabled,
.news-admin-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.site-section.news-detail-section {
  width: min(100%, 1120px);
  max-width: none;
  margin: 0 auto;
  padding-top: var(--content-top-gap);
}

.news-detail-panel {
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-panel);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.news-back-link {
  margin-bottom: 18px;
}

.news-detail-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-panel);
  margin: 22px 0 0;
}

.news-detail-meta,
.news-preview-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
}

.news-detail-meta time,
.news-preview-meta time {
  color: var(--club-blue);
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.news-share > span {
  color: var(--muted);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-share-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--club-blue);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(8, 32, 70, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.news-share-button svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.news-share-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
}

.news-share-facebook .news-share-glyph {
  font-size: 1.75rem;
  transform: translateY(2px);
}

.news-share-linkedin .news-share-glyph {
  font-size: 1.18rem;
  letter-spacing: -0.06em;
  transform: translateY(0.5px);
}

.news-share-facebook {
  background: #1877f2;
}

.news-share-x {
  background: #0f1419;
}

.news-share-linkedin {
  background: #0a66c2;
}

.news-share-button:hover,
.news-share-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(8, 32, 70, 0.18);
  filter: brightness(1.04);
}

.news-detail-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 950;
  line-height: 1.04;
}

.news-detail-excerpt {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.45;
}

.news-detail-body {
  margin-top: 24px;
  color: var(--ink);
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

.news-detail-body p {
  margin: 0 0 1em;
}

.score-box,
.match-timing,
.team,
.waiting-kicker,
.waiting-match,
.waiting-details dt,
.countdown,
.calendar-season-pill,
.calendar-hero-heading h2,
.team-dashboard-heading h2,
.team-dashboard-block h3,
.team-section-tabs,
.team-admin-tabs,
.fixture-meta strong,
.fixture-team-name,
.fixture-score,
.standings-table th,
.standings-table tr.is-cnsf td {
  font-family: var(--font-primary);
}

.home-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
  min-width: 0;
}

.home-side-card,
.home-standings-section {
  display: grid;
  gap: 12px;
}

.home-side-card .section-heading,
.home-standings-section .section-heading {
  margin-bottom: 0;
}

.scoreboard,
.workspace-panel,
.auth-card,
.timeline-panel,
.key-panel,
.stats-panel,
.site-panel,
.waiting-page {
  background: var(--paper);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-soft);
}

.site-panel {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.4vw, 24px);
}

.waiting-page {
  --waiting-content-width: 760px;
  display: grid;
  gap: 22px;
  min-height: 480px;
  align-content: center;
  justify-items: center;
  padding: clamp(22px, 5vw, 52px);
  text-align: center;
}

.waiting-page[data-density="balanced"] {
  --waiting-content-width: 900px;
}

.waiting-page[data-density="compact"] {
  --waiting-content-width: 980px;
}

.waiting-page[data-density="dense"] {
  --waiting-content-width: 1060px;
}

.waiting-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.waiting-match {
  --waiting-team-size: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  width: min(var(--waiting-content-width), 100%);
  color: var(--navy);
  font-weight: 950;
  line-height: 0.98;
}

.waiting-match[data-density="balanced"] {
  --waiting-team-size: 3.15rem;
}

.waiting-match[data-density="compact"] {
  --waiting-team-size: 2.85rem;
}

.waiting-match[data-density="dense"] {
  --waiting-team-size: 2.4rem;
}

.waiting-team-card {
  display: grid;
  grid-template-rows: 104px minmax(0, auto);
  align-items: center;
  justify-items: center;
  min-width: 0;
  gap: 14px;
}

.waiting-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.waiting-logo[hidden] {
  display: block !important;
  visibility: hidden;
}

.waiting-team {
  display: block;
  align-items: center;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  padding: 0 12px;
  font-size: var(--waiting-team-size);
  text-align: center;
  text-wrap: balance;
  white-space: pre-line;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.waiting-versus {
  align-self: center;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(208, 184, 136, 0.5);
  border-radius: 999px;
  background: #fff;
  color: var(--club-gold);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.waiting-details,
.countdown {
  display: grid;
  gap: 10px;
  width: min(var(--waiting-content-width), 100%);
  margin: 0;
}

.waiting-details {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.waiting-details div,
.countdown div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.waiting-details div {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
}

.waiting-details dt,
.countdown span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.waiting-details dd {
  margin: 5px 0 0;
  font-size: 1rem;
  font-weight: 900;
}

.countdown {
  grid-template-columns: repeat(4, 1fr);
}

.countdown strong {
  display: block;
  color: var(--club-blue);
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1;
}

.scoreboard {
  display: grid;
  gap: 0;
  padding: clamp(16px, 3vw, 24px);
}

.match-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.match-meta {
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
  line-height: 1.25;
}

.match-meta span {
  display: block;
}

.match-meta span:empty {
  display: none;
}

.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #9aa4b2;
}

.live-dot.is-live {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(199, 55, 55, 0.12);
}

.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(10px, 2vw, 20px);
  align-items: start;
  justify-self: center;
  width: min(100%, 980px);
}

.team {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  align-self: start;
  min-width: 0;
  min-height: 84px;
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-weight: 950;
  line-height: 1.08;
}

.team-home {
  justify-content: center;
  text-align: center;
}

.team-away {
  justify-content: center;
  text-align: center;
}

.team > span {
  min-width: 0;
  text-wrap: balance;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.team-logo {
  flex: 0 0 auto;
  width: clamp(54px, 6vw, 74px);
  height: clamp(54px, 6vw, 74px);
  object-fit: contain;
}

.score-center {
  display: grid;
  justify-items: center;
  align-self: start;
  gap: 8px;
}

.score-box {
  display: inline-grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-width: 176px;
  min-height: 88px;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.score-box strong {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1;
}

.score-box span {
  color: var(--club-gold);
  font-size: 2rem;
  font-weight: 900;
}

.team-scorers {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  margin: -6px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  font-weight: 750;
  line-height: 1.2;
  list-style: none;
  text-align: center;
}

.team-scorers[hidden] {
  display: none;
}

.team-scorers li {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.team-scorers li > span {
  color: var(--ink);
  font-weight: 600;
}

.team-scorers em {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--club-blue);
  font-style: normal;
  font-weight: 850;
}

.team-scorers em span + span::before {
  content: "•";
  margin-right: 4px;
  color: var(--club-gold);
}

.match-headline {
  margin: 0;
  color: #344054;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
}

.match-headline:empty {
  display: none;
}

.match-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.match-details div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.match-details dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.match-details dd {
  margin: 4px 0 0;
  font-size: 0.98rem;
  font-weight: 900;
}

.match-timing {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: 0;
  color: var(--navy);
  text-align: center;
}

.scoreboard[data-status="avant-match"] .match-timing {
  margin-top: 0;
}

.scoreboard[data-status="avant-match"] .score-row {
  margin-top: 18px;
}

.match-timing strong {
  color: var(--club-blue);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 950;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.match-timing p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 900;
  line-height: 1.2;
}

.match-timing p:empty {
  display: none;
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.5fr);
  gap: 14px;
  align-items: start;
}

.side-panel-stack {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.admin-workspace {
  display: block;
}

.admin-page {
  width: 100%;
}

.admin-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  grid-template-areas:
    "match event"
    "compositions event"
    "stats event"
    "feed event";
  gap: 14px;
  align-items: start;
}

.live-match-panel {
  grid-area: match;
}

.live-event-panel {
  grid-area: event;
}

.live-compositions-panel {
  grid-area: compositions;
}

.manual-stats-panel {
  grid-area: stats;
}

.live-admin-feed-panel {
  grid-area: feed;
}

.events-admin-panel,
.prepared-matches-panel,
.archives-panel,
.analytics-panel {
  grid-column: 1 / -1;
}

.key-panel,
.timeline-panel,
.stats-panel,
.workspace-panel {
  padding: 14px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.timeline-heading {
  align-items: flex-start;
}

.section-heading h2 {
  font-size: 1.05rem;
}

.calendar-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.calendar-hero-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 94px;
  margin: -4px 0 10px;
  padding: clamp(16px, 2.2vw, 24px);
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 86, 184, 0.11), rgba(255, 255, 255, 0) 58%),
    #f8fafc;
  border: 1px solid #d7deea;
}

.calendar-hero-heading::before {
  content: none;
}

.calendar-hero-heading > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.calendar-season-pill {
  justify-self: start;
  padding: 7px 12px;
  border: 1px solid rgba(0, 86, 184, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--club-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-hero-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.calendar-hero-heading h2 span {
  color: var(--club-gold);
}

.team-dashboard-panel {
  gap: 15px;
}

.team-dashboard-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 0;
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.team-dashboard-heading::before {
  content: none;
}

.team-dashboard-heading::after {
  content: none;
}

.team-dashboard-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
}

.team-dashboard-heading .calendar-season-pill {
  align-self: center;
  margin-left: 0;
  padding: 5px 10px;
  border-color: rgba(0, 86, 184, 0.18);
  background: #fff;
  font-size: 0.68rem;
}

.season-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 6px;
  padding: 6px;
  border: 1px solid #d7deea;
  border-radius: 999px;
  background: rgba(247, 250, 253, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.season-summary-item {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  background: #fff;
}

.season-summary-item-main {
  border-color: var(--navy);
  background: var(--navy);
}

.season-summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.season-summary-item strong {
  display: block;
  margin: 0;
  color: var(--club-blue);
  font-size: 1rem;
  line-height: 1;
}

.season-summary-item-main span,
.season-summary-item-main strong {
  color: #fff;
}

.season-summary-record {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 7px;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  background: #fff;
}

.season-summary-goals {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 5px;
  border: 1px solid #dce4ef;
  border-radius: 999px;
  background: #fff;
}

.season-summary-goals .season-summary-item {
  grid-template-columns: 20px 14px;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  background: #eef3f9;
}

.season-summary-item-main {
  grid-template-columns: auto 18px;
}

.season-record-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 38px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef3f9;
}

.season-record-chip strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
}

.season-record-chip span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.season-record-win strong {
  color: var(--club-blue);
}

.season-record-loss strong {
  color: #c53a3a;
}

.team-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(330px, 0.82fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.team-dashboard-block {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.team-dashboard-block .section-heading {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 2px 0 2px;
}

.team-dashboard-block h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  font-weight: 900;
  line-height: 1.1;
}

.team-dashboard-block h3::before {
  width: 7px;
  height: 18px;
  border-radius: 999px;
  background: var(--club-gold);
  box-shadow: none;
  content: "";
}

.team-dashboard-block .section-heading::after {
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(210, 219, 234, 0.9), rgba(210, 219, 234, 0.18));
  content: "";
}

.team-dashboard-block .fixture-card {
  justify-self: stretch;
  width: 100%;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  gap: 14px;
}

.team-dashboard-block .fixture-teams {
  grid-template-columns: 38px minmax(105px, 1fr) 70px minmax(125px, 1fr) 38px;
  gap: 7px;
}

.team-dashboard-block .fixture-score {
  min-width: 70px;
}

.team-dashboard-block .standings-table {
  width: 100%;
  min-width: 0;
}

.squad-page-panel {
  gap: clamp(18px, 2.4vw, 28px);
}

.squad-sections {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.squad-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.squad-section-heading {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.squad-section-heading h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  font-weight: 900;
  line-height: 1.1;
}

.squad-section-heading h3::before {
  width: 7px;
  height: 18px;
  border-radius: 999px;
  background: var(--club-gold);
  content: "";
}

.squad-section-heading::after {
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(210, 219, 234, 0.9), rgba(210, 219, 234, 0.18));
  content: "";
}

.squad-slider {
  position: relative;
  min-width: 0;
}

.squad-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  width: 44px;
  height: 72px;
  padding: 0 0 4px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(9, 37, 82, 0.88);
  color: #fff;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 18px 34px rgba(9, 37, 82, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
}

.has-squad-overflow .squad-slider-arrow {
  display: grid;
}

.squad-slider-prev {
  left: 0;
}

.squad-slider-next {
  right: 0;
}

.squad-slider-arrow:hover,
.squad-slider-arrow:focus-visible {
  background: var(--club-blue);
  box-shadow: 0 20px 40px rgba(0, 88, 191, 0.22);
}

.squad-grid {
  display: flex;
  gap: clamp(12px, 1.7vw, 18px);
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 88, 191, 0.45) rgba(210, 219, 234, 0.5);
  -webkit-overflow-scrolling: touch;
}

.squad-grid::-webkit-scrollbar {
  height: 8px;
}

.squad-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(210, 219, 234, 0.5);
}

.squad-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 88, 191, 0.45);
}

.squad-card {
  display: grid;
  flex: 0 0 calc((100% - (clamp(12px, 1.7vw, 18px) * 3)) / 4);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-panel);
  background: #fff;
  box-shadow: none;
  scroll-snap-align: start;
}

.squad-photo {
  display: grid;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 88, 191, 0.16), rgba(9, 37, 82, 0.08));
}

.squad-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.squad-photo span {
  color: var(--club-blue);
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.squad-card-body {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.squad-firstname,
.squad-position,
.squad-meta {
  margin: 0;
}

.squad-firstname {
  margin-bottom: -4px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.squad-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.squad-position {
  color: var(--club-blue);
  font-weight: 850;
}

.squad-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.squad-meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.squad-meta dt {
  color: var(--muted);
  font-weight: 800;
}

.squad-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.squad-empty {
  flex: 1 0 100%;
}

.team-section-tabs,
.team-admin-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid #d2dbea;
  border-radius: 999px;
  background: #eef3f9;
}

.team-section-tabs button,
.team-admin-tabs button {
  min-height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.team-section-tabs button.is-active,
.team-admin-tabs button.is-active {
  background: var(--club-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 86, 184, 0.18);
}

.fixtures-list {
  display: grid;
  gap: 8px;
}

.fixture-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  justify-self: center;
  width: min(100%, 1080px);
  padding: 12px 13px;
  border: 1px solid var(--surface-border);
  border-left-width: 4px;
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, #fff, var(--surface-subtle));
  box-shadow: 0 8px 22px rgba(8, 32, 70, 0.045);
}

.fixture-card-home {
  border-left-color: rgba(0, 86, 184, 0.68);
}

.fixture-card-away {
  border-left-color: rgba(211, 183, 120, 0.86);
}

.fixture-card-neutral {
  border-left-color: var(--line);
}

.fixture-meta {
  display: grid;
  gap: 3px;
  justify-items: start;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.fixture-meta strong {
  color: var(--club-blue);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.fixture-teams {
  display: grid;
  grid-template-columns: 46px minmax(150px, 200px) 80px minmax(190px, 250px) 46px;
  gap: 9px;
  align-items: center;
  justify-content: start;
  min-width: 0;
}

.fixture-team {
  display: contents;
}

.fixture-team-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  justify-self: center;
}

.fixture-team-name {
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.05;
  white-space: pre-line;
}

.fixture-team-home .fixture-team-name {
  text-align: left;
}

.fixture-team-away .fixture-team-name {
  text-align: right;
}

.fixture-team-fallback {
  width: 38px;
  height: 38px;
}

.fixture-score {
  min-width: 80px;
  padding: 7px 11px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 1.02rem;
  text-align: center;
}

.fixture-card.is-postponed .fixture-score {
  min-width: 80px;
  width: 80px;
  padding-inline: 7px;
  background: #e8edf5;
  color: #59657a;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.standings-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-panel);
  background: #fff;
  box-shadow: 0 8px 22px rgba(8, 32, 70, 0.045);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.standings-table th,
.standings-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.standings-table th:first-child,
.standings-table td:first-child {
  width: 58px;
  padding-inline: 12px;
  text-align: center;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  width: auto;
}

.standings-table th:nth-child(3),
.standings-table td:nth-child(3),
.standings-table th:nth-child(4),
.standings-table td:nth-child(4) {
  width: 52px;
  text-align: center;
}

.standings-table th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.standings-table td {
  font-size: 0.88rem;
  font-weight: 500;
}

.standings-table tbody tr:last-child td {
  border-bottom: 0;
}

.standings-table tr.is-cnsf td {
  background: rgba(0, 91, 187, 0.075);
  font-weight: 800;
}

.home-side-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: -2px 0 12px;
  padding: 4px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: #f3f6fb;
}

.home-side-switch button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.home-side-switch button.is-active {
  background: var(--club-blue);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 88, 191, 0.18);
}

.home-last-match-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, #fff, var(--surface-subtle));
}

.home-last-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.home-last-match-meta strong {
  color: var(--club-blue);
  font-family: var(--font-primary);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.home-last-match-meta span {
  text-transform: uppercase;
}

.home-last-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.home-last-match-team {
  display: grid;
  grid-template-rows: 42px auto;
  gap: 7px;
  align-items: start;
  justify-items: center;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.05;
  text-align: center;
  white-space: pre-line;
}

.home-last-match-logo {
  height: 42px;
  display: grid;
  place-items: center;
}

.home-last-match-name {
  display: grid;
  min-height: 3.15em;
  align-items: center;
}

.home-last-match-team-home {
  justify-items: center;
  text-align: center;
}

.home-last-match-team-away {
  justify-items: center;
  text-align: center;
}

.home-last-match-team img,
.home-last-match-fallback {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.home-last-match-fallback {
  border-radius: 999px;
  background: var(--line);
}

.home-last-match-score {
  min-width: 74px;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 1rem;
  text-align: center;
}

.home-last-match-details {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.home-standings-links {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.home-standings-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.home-standings-links a::after {
  content: "→";
  color: var(--club-blue);
  font-size: 1rem;
  font-weight: 850;
}

.standings-table tr.is-cnsf td:first-child {
  position: relative;
  padding-inline: 12px;
  text-align: center;
}

.standings-table tr.is-cnsf td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 7px;
  background: var(--club-gold);
}

.standings-team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.standings-team-cell img,
.standings-logo-fallback {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.standings-logo-fallback {
  border-radius: 50%;
  background: #e3e9f2;
}

.standings-team-cell span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed #bdc6d3;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.timeline,
.key-events,
.compositions,
.admin-events {
  display: grid;
  gap: 12px;
}

.timeline {
  position: relative;
  gap: 0;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 34px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 88, 191, 0), rgba(0, 88, 191, 0.34) 12%, rgba(0, 88, 191, 0.18) 88%, rgba(0, 88, 191, 0));
  content: "";
}

.visual-timeline {
  margin: -4px 0 14px;
  padding: 14px 16px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.96)),
    radial-gradient(circle at top left, rgba(0, 88, 191, 0.12), transparent 34%);
}

.visual-timeline:empty {
  display: none;
}

.visual-timeline-track {
  position: relative;
  height: 72px;
}

.visual-timeline-track::before {
  position: absolute;
  top: 24px;
  right: 0;
  left: 0;
  height: 8px;
  border-radius: 999px;
  background: #e4ebf5;
  content: "";
}

.visual-timeline-track::after {
  position: absolute;
  top: 26px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 88, 191, 0.12), rgba(0, 88, 191, 0.42), rgba(211, 183, 122, 0.38));
  content: "";
}

.visual-timeline-tick {
  position: absolute;
  top: 58px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-50%);
}

.visual-timeline-tick::before {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 1px;
  height: 28px;
  background: rgba(102, 112, 133, 0.35);
  content: "";
}

.visual-timeline-marker {
  position: absolute;
  z-index: 2;
  top: 16px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--club-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 32, 70, 0.18);
  transform: translateX(-50%);
}

.visual-timeline-marker i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.visual-timeline-marker b {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
}

.visual-timeline-tooltip {
  position: absolute;
  z-index: 100;
  box-sizing: border-box;
  width: max-content;
  min-width: min(120px, calc(100vw - 20px));
  max-width: min(420px, calc(100vw - 20px));
  max-height: 220px;
  overflow: auto;
  padding: 9px 11px;
  border: 1px solid rgba(8, 32, 70, 0.12);
  border-radius: 8px;
  background: #082046;
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 32, 70, 0.28);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: pre-line;
}

.visual-timeline-tooltip::before {
  position: absolute;
  top: -5px;
  left: var(--tooltip-arrow-left, 50%);
  width: 10px;
  height: 10px;
  background: #082046;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.visual-timeline-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.visual-timeline-marker.is-goal {
  width: 30px;
  height: 30px;
  top: 13px;
  background: var(--club-blue);
  box-shadow: 0 0 0 5px rgba(0, 88, 191, 0.1), 0 8px 18px rgba(8, 32, 70, 0.2);
}

.visual-timeline-marker.is-goal i {
  font-size: 0.82rem;
}

.visual-timeline-marker.is-yellow-card {
  background: #f5c542;
  color: var(--ink);
}

.visual-timeline-marker.is-red-card {
  background: var(--red);
}

.visual-timeline-marker.is-white-card {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(102, 112, 133, 0.32), 0 8px 18px rgba(8, 32, 70, 0.14);
}

.visual-timeline-marker.is-substitution {
  background: #7b4fd8;
}

.visual-timeline-marker.is-photos {
  background: var(--club-gold);
  color: var(--ink);
}

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

.compositions.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.match-stats {
  --home-stat-color: var(--club-blue);
  --away-stat-color: #d13d3d;
  display: grid;
  gap: 12px;
  margin: 0;
}

.match-stats-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.match-stats-header > strong {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
}

.match-stats-team {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.match-stats-team-away {
  justify-content: flex-end;
}

.match-stats-team img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
}

.match-stats-team span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.05;
  white-space: pre-line;
}

.match-stats-team-away span {
  text-align: right;
}

.match-stat-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
}

.match-stat-value {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
  text-align: center;
}

.match-stat-main {
  display: grid;
  gap: 6px;
}

.match-stat-main > span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 720;
  text-align: center;
}

.match-stat-bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  height: 7px;
}

.match-stat-bars i {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: 999px;
  background: #e2e8f0;
}

.home-stat-bar {
  justify-self: end;
  background: var(--home-stat-color) !important;
}

.away-stat-bar {
  justify-self: start;
  background: var(--away-stat-color) !important;
}

.match-stat-row.is-empty .home-stat-bar,
.match-stat-row.is-empty .away-stat-bar {
  background: #e2e8f0 !important;
}

.composition-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.composition-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.composition-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.composition-card h3 {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
  white-space: pre-line;
}

.composition-section {
  display: grid;
  gap: 5px;
}

.composition-section h4 {
  margin: 0;
  color: var(--club-blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.composition-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.composition-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--soft);
}

.composition-coach {
  margin-top: 4px;
}

.composition-coach-name {
  padding: 7px 9px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
}

.composition-number {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  border-radius: 5px;
  background: #fff;
  color: var(--club-blue);
  font-size: 0.74rem;
  font-weight: 950;
}

.composition-player-markers {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.composition-goal-marker,
.composition-card-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
  white-space: nowrap;
}

.composition-goal-marker {
  min-width: 24px;
  min-height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0, 86, 184, 0.1);
  color: var(--club-blue);
  font-size: 0.72rem;
  font-weight: 950;
}

.composition-card-marker {
  width: 11px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  font-size: 0.52rem;
  font-weight: 950;
}

.composition-card-marker.is-yellow {
  background: #facc15;
}

.composition-card-marker.is-red {
  background: #dc2626;
  color: #fff;
}

.composition-card-marker.is-white {
  background: #fff;
}

.compact-empty {
  padding: 10px;
}

.lineup-editor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.lineup-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 12px;
  align-items: start;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.prepared-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  grid-column: 1;
}

.opponent-editor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: end;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.opponent-editor h3 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1;
}

.match-side-switch {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.side-label {
  color: #354052;
  font-size: 0.95rem;
  font-weight: 850;
  white-space: nowrap;
}

.side-switch-button {
  position: relative;
  width: 54px;
  min-width: 54px;
  min-height: 30px;
  border: 1px solid #b8c1cf;
  border-radius: 999px;
  background: #fff;
  padding: 0;
}

.side-switch-button span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--club-blue);
  transition: transform 0.16s ease;
}

.side-switch-button[data-side="away"] span {
  transform: translateX(24px);
}

.prepared-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.lineup-editor h3,
.lineup-group h4 {
  margin: 0;
  color: var(--ink);
}

.lineup-editor h3 {
  grid-column: 1 / -1;
  font-size: 0.96rem;
  line-height: 1.12;
}

.lineup-group {
  display: grid;
  gap: 4px;
}

.lineup-coach-row {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.lineup-coach-row span {
  color: #354052;
  font-size: 0.78rem;
  font-weight: 800;
}

.lineup-coach-row input {
  height: 36px;
  min-height: 36px;
  padding: 0 10px;
}

.lineup-group + .lineup-group {
  margin-top: 12px;
}

.lineup-group h4 {
  color: var(--club-blue);
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.lineup-rows {
  display: grid;
  gap: 3px;
}

.lineup-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
}

.lineup-row label span {
  margin-bottom: 2px;
  font-size: 0.68rem;
}

.lineup-row input,
.lineup-row select {
  height: 34px;
  min-height: 34px;
  padding: 0 8px;
}

.lineup-row select {
  border-color: #bfc8d6;
  background:
    linear-gradient(45deg, transparent 50%, var(--club-blue) 50%) calc(100% - 16px) 13px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--club-blue) 50%, transparent 50%) calc(100% - 10px) 13px / 6px 6px no-repeat,
    #fff;
  padding-right: 28px;
  font-weight: 500;
  line-height: 34px;
}

.lineup-row select:focus {
  border-color: var(--club-blue);
  box-shadow: 0 0 0 3px rgba(0, 91, 187, 0.12);
}

.opponent-editor .team-name-input {
  min-height: 54px;
  padding: 7px 8px;
}

.opponent-editor .logo-picker {
  grid-template-columns: 84px 82px;
  grid-template-rows: repeat(2, 39px);
  justify-content: start;
  min-height: 90px;
  padding: 6px;
  gap: 6px;
}

.opponent-editor .logo-picker img {
  grid-row: 1 / -1;
  width: 80px;
  height: 80px;
}

.opponent-editor .compact-button,
.opponent-editor .danger-button {
  min-height: 39px;
  padding: 0 7px;
  width: 82px;
  justify-content: center;
}

.prepared-info-grid input {
  min-height: 36px;
  padding: 6px 8px;
}

.prepared-info-grid select {
  min-height: 36px;
  padding: 6px 34px 6px 8px;
  background-position:
    calc(100% - 17px) 15px,
    calc(100% - 11px) 15px,
    0 0;
}

.match-form .score-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.score-form-grid input,
.score-form-grid select {
  min-height: 54px;
  font-size: 1.08rem;
}

.score-form-grid select {
  background-position:
    calc(100% - 22px) 22px,
    calc(100% - 14px) 22px,
    0 0;
}

.live-clock-panel {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.clock-display-block {
  display: grid;
  justify-items: center;
  gap: 10px;
  align-content: start;
  min-height: 100%;
  padding: 12px;
  border: 1px solid #d9dee8;
  border-radius: var(--radius);
  background: #fff;
}

.live-clock-panel span {
  color: #354052;
  font-size: 0.84rem;
  font-weight: 850;
  text-align: center;
}

.live-clock-panel strong {
  color: var(--club-blue);
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.clock-correction {
  display: grid;
  gap: 7px;
  width: 100%;
}

.clock-correction label {
  display: grid;
  gap: 4px;
}

.clock-correction label span {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.clock-correction input {
  min-height: 34px;
  padding: 6px 8px;
  text-align: center;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.clock-correction .compact-button {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
}

.clock-controls {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.clock-actions {
  display: grid;
  gap: 8px;
}

.clock-actions-regular {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.live-clock-panel.is-regular-only .clock-actions-regular {
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  height: 100%;
  min-height: 198px;
}

.live-clock-panel.is-regular-only .clock-actions-regular .compact-button {
  min-height: 0;
}

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

.clock-actions .compact-button {
  width: 100%;
  min-height: 42px;
  padding: 0 8px;
  font-size: 0.9rem;
  line-height: 1.08;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
}

.live-compositions-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.live-compositions-tools h3,
.live-compositions-tools p {
  margin: 0;
}

.live-compositions-tools h3 {
  font-size: 0.95rem;
  line-height: 1.2;
}

.live-compositions-tools p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.live-compositions-tools .secondary-button {
  flex: 0 0 auto;
  min-height: 40px;
  white-space: nowrap;
}

.live-compositions-actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 320px;
  max-width: 100%;
}

.live-compositions-actions .waiting-toggle {
  justify-content: space-between;
  width: 100%;
}

.live-compositions-actions .secondary-button {
  width: 100%;
}

.manual-stats-panel {
  display: grid;
  gap: 12px;
}

.manual-stats-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.manual-stats-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.manual-stats-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
}

.stats-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}

.manual-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.manual-stat-stepper {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.manual-stat-stepper > span {
  color: #354052;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.15;
}

.manual-stat-control {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}

.manual-stat-control button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cdd4df;
  border-radius: 8px;
  background: #fff;
  color: var(--club-blue);
  font-size: 1.3rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.manual-stat-control button:hover,
.manual-stat-control button:focus-visible {
  border-color: var(--club-blue);
  outline: none;
}

.manual-stat-control strong {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
}

@media (max-width: 1200px) {
  .live-clock-panel {
    grid-template-columns: 1fr;
  }

  .clock-display-block {
    grid-template-columns: 1fr;
  }

  .clock-actions-regular,
  .clock-extra-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-clock-panel.is-regular-only .clock-actions-regular {
    grid-template-columns: 1fr;
  }

  .live-compositions-tools {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }

  .live-compositions-tools .secondary-button {
    width: 100%;
  }

  .live-compositions-actions {
    align-items: stretch;
    flex-direction: column;
    flex: 0 0 auto;
  }
}

.prepared-match-form,
.calendar-fixture-form,
.player-form {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.prepared-match-form {
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
}

.prepared-match-form > .form-actions {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  justify-content: flex-start;
  padding-top: 12px;
}

.prepared-matches-panel > .match-management-section {
  margin-top: 22px;
}

.calendar-fixture-form {
  gap: 16px;
}

.calendar-top-grid {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(300px, 0.95fr) minmax(300px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.calendar-side-switch {
  min-height: 100%;
}

.calendar-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calendar-info-grid > label,
.segmented-field {
  min-width: 0;
}

.segmented-field {
  display: grid;
  align-content: start;
}

.segmented-field > span {
  display: block;
  margin-bottom: 8px;
  color: #354052;
  font-size: 0.9rem;
  font-weight: 800;
}

.segmented-control {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-height: 44px;
  padding-right: 44px;
  border: 1px solid #cdd4df;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.segmented-control::after {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  width: 44px;
  height: 100%;
  place-items: center;
  border-left: 1px solid #d6dce6;
  background: #f8fafc;
  color: #667085;
  font-size: 1rem;
  pointer-events: none;
}

.date-control::after {
  content: "▦";
}

.time-control::after {
  content: "◷";
}

.segmented-inputs {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
}

.segmented-inputs span {
  color: #6b7387;
  font-weight: 800;
}

.segmented-inputs.time-segments {
  max-width: 132px;
}

.segmented-inputs input {
  width: 3ch;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font: inherit;
  font-weight: 650;
  outline: 0;
}

.segmented-inputs input[id$="YearInput"] {
  width: 5ch;
}

.segmented-inputs input:focus {
  color: var(--club-blue);
}

.native-picker-input {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 100%;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  opacity: 0;
}

.native-picker-input::-webkit-datetime-edit,
.native-picker-input::-webkit-datetime-edit-fields-wrapper,
.native-picker-input::-webkit-datetime-edit-text,
.native-picker-input::-webkit-datetime-edit-month-field,
.native-picker-input::-webkit-datetime-edit-day-field,
.native-picker-input::-webkit-datetime-edit-year-field,
.native-picker-input::-webkit-datetime-edit-hour-field,
.native-picker-input::-webkit-datetime-edit-minute-field,
.native-picker-input::-webkit-datetime-edit-ampm-field {
  color: transparent;
}

.native-picker-input::-webkit-calendar-picker-indicator {
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 1;
  cursor: pointer;
}

.segmented-control:focus-within {
  border-color: var(--club-blue);
  box-shadow: 0 0 0 3px rgba(0, 91, 187, 0.12);
}

.calendar-result-row {
  display: flex;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
}

.calendar-status-field {
  width: min(100%, 220px);
}

.calendar-score-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 160px));
  gap: 12px;
}

.calendar-score-fields[hidden] {
  display: none;
}

.match-management-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.match-management-section,
.prepared-matches-list,
.archived-matches-list,
.players-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.match-management-section h3 {
  margin: 0;
  font-size: 1rem;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.archived-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  background: var(--soft);
}

.match-row-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.match-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.match-row h3 {
  margin: 0;
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

.match-row h3 span {
  color: var(--club-gold);
}

.match-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.match-row-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.player-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.player-row-thumbnail {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
}

.squad-form-grid {
  grid-template-columns: minmax(150px, 0.9fr) minmax(190px, 1.1fr) repeat(3, minmax(160px, 1fr));
}

.squad-row-fallback {
  background: #eef3f9;
  color: var(--club-blue);
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.squad-row-photo {
  object-fit: cover;
}

.squad-member-row .player-row-main > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.squad-member-row .player-row-main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.squad-photo-picker img {
  width: 76px;
  height: 92px;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .squad-card {
    flex-basis: calc((100% - (clamp(12px, 1.7vw, 18px) * 2)) / 3);
  }

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

@media (max-width: 700px) {
  .squad-section-heading {
    grid-template-columns: 1fr;
  }

  .squad-section-heading::after {
    display: none;
  }

  .squad-slider-arrow {
    width: 38px;
    height: 58px;
    font-size: 1.8rem;
  }

  .squad-grid {
    gap: 12px;
    padding-bottom: 10px;
  }

  .squad-card {
    flex-basis: calc((100% - 12px) / 2);
  }

  .squad-card-body {
    padding: 12px;
  }

  .squad-firstname {
    font-size: 0.92rem;
  }

  .squad-card h3 {
    font-size: 1.12rem;
  }

  .squad-meta div {
    display: grid;
    gap: 2px;
  }

  .squad-meta dd {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .squad-form-grid {
    grid-template-columns: 1fr;
  }

  .squad-card {
    flex-basis: min(82vw, 320px);
  }
}

.match-row-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.news-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(90deg, rgba(0, 88, 191, 0.09), rgba(255, 255, 255, 0.94) 58%),
    #fff;
}

.news-admin-hero h2 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 0.98;
}

.news-admin-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.news-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.news-admin-actions .primary-button,
.news-admin-actions .secondary-button {
  width: min(100%, 300px);
  min-height: 54px;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.96rem;
}

.news-admin-actions .secondary-button {
  border-color: var(--club-blue);
  color: var(--club-blue);
}

.news-admin-actions .secondary-button:hover {
  background: rgba(0, 88, 191, 0.08);
}

.news-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.news-list-heading h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 900;
}

.news-list-heading h3 {
  margin: 0;
}

.news-form,
.news-category-form {
  display: grid;
  gap: 14px;
}

.news-title-field {
  display: grid;
  gap: 7px;
}

.news-publication-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.news-publication-fields {
  display: grid;
  gap: 12px;
}

.news-publication-fields label {
  display: grid;
  gap: 7px;
}

.news-category-field {
  display: grid;
  gap: 7px;
}

.news-photo-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: center;
}

.news-photo-actions .compact-button,
.news-photo-actions button {
  width: 100%;
  min-height: 46px;
  padding-inline: 12px;
}

.rich-editor-field {
  display: grid;
  gap: 7px;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #eef3fa;
  overflow: visible;
}

.rich-editor-toolbar select,
.rich-editor-toolbar button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.rich-editor-toolbar button:hover,
.rich-editor-toolbar button.is-active {
  border-color: rgba(0, 88, 191, 0.3);
  background: rgba(0, 88, 191, 0.08);
  color: var(--club-blue);
}

.rich-editor-toolbar button.is-active {
  box-shadow: inset 0 0 0 1px rgba(0, 88, 191, 0.22);
}

.rich-editor-toolbar select {
  width: 128px;
  min-width: 128px;
  background-color: #fff;
}

.rich-editor-surface {
  height: 360px;
  margin: 12px;
  padding: 22px;
  border: 1px solid rgba(205, 215, 230, 0.85);
  border-radius: calc(var(--radius-panel) - 4px);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.62;
  outline: none;
  overflow-y: auto;
}

.rich-editor-surface:focus {
  border-color: rgba(0, 88, 191, 0.28);
  box-shadow: 0 0 0 4px rgba(0, 88, 191, 0.08);
}

.rich-editor-surface:empty::before {
  color: #9aa3b2;
  content: attr(data-placeholder);
}

.rich-editor-surface h2,
.article-content h2 {
  margin: 1.1em 0 0.45em;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.08;
}

.rich-editor-surface h3,
.article-content h3 {
  margin: 1em 0 0.35em;
  color: var(--club-blue);
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.15;
}

.rich-editor-surface p,
.article-content p {
  margin: 0 0 1em;
}

.rich-editor-surface .article-lead,
.article-content .article-lead {
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.45;
}

.rich-editor-surface blockquote,
.article-content blockquote {
  position: relative;
  clear: both;
  margin: 1.4em 0;
  padding: 22px 24px 22px 72px;
  border-radius: var(--radius-panel);
  background: linear-gradient(135deg, rgba(0, 88, 191, 0.08), rgba(211, 183, 120, 0.13));
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 760;
  line-height: 1.45;
}

.rich-editor-surface blockquote::before,
.article-content blockquote::before {
  position: absolute;
  top: 8px;
  left: 20px;
  color: var(--club-gold);
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  content: "“";
}

.rich-editor-surface ul,
.article-content ul {
  margin: 0 0 1em 1.3em;
  padding: 0;
}

.rich-editor-surface li,
.article-content li {
  margin: 0.35em 0;
}

.rich-editor-surface figure,
.article-content figure {
  margin: 1.3em 0;
}

.rich-editor-surface figure {
  cursor: pointer;
}

.rich-editor-surface figure.is-selected {
  outline: 3px solid rgba(0, 88, 191, 0.28);
  outline-offset: 5px;
}

.rich-editor-surface figure img,
.article-content figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius-panel);
}

.rich-editor-surface figure.article-image-left,
.article-content figure.article-image-left,
.rich-editor-surface figure.article-image-right,
.article-content figure.article-image-right {
  margin-top: 0.35em;
}

.rich-editor-surface figure.article-image-small,
.article-content figure.article-image-small {
  width: min(30%, 240px);
}

.rich-editor-surface figure.article-image-medium,
.article-content figure.article-image-medium {
  width: min(42%, 340px);
}

.rich-editor-surface figure.article-image-large,
.article-content figure.article-image-large {
  width: min(55%, 460px);
}

.rich-editor-surface figure.article-image-wide,
.article-content figure.article-image-wide,
.rich-editor-surface figure.article-image-wide-size,
.article-content figure.article-image-wide-size {
  width: 100%;
}

.rich-editor-surface figure.article-image-left,
.article-content figure.article-image-left {
  float: left;
  margin-right: 1.2em;
}

.rich-editor-surface figure.article-image-right,
.article-content figure.article-image-right {
  float: right;
  margin-left: 1.2em;
}

.rich-editor-surface figure figcaption,
.article-content figure figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}

.rich-editor-surface .article-clear,
.article-content .article-clear {
  display: block;
  clear: both;
}

.rich-editor-surface .article-clear {
  position: relative;
  height: 18px;
  margin: 0.4em 0;
}

.rich-editor-surface .article-clear::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1px dashed rgba(0, 88, 191, 0.25);
  content: "";
}

.rich-editor-surface::after,
.article-content::after {
  display: block;
  clear: both;
  content: "";
}

@media (max-width: 700px) {
  .news-publication-layout {
    max-width: none;
    grid-template-columns: 1fr;
  }

  .news-photo-picker {
    height: auto;
    grid-template-columns: 1fr;
  }

  .news-photo-picker img {
    width: 100%;
    min-height: 0;
  }

  .news-photo-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .rich-editor-toolbar select,
  .rich-editor-toolbar button {
    flex: 0 0 auto;
  }

  .rich-editor-surface figure.article-image-left,
  .article-content figure.article-image-left,
  .rich-editor-surface figure.article-image-right,
  .article-content figure.article-image-right {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

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

.news-admin-filters {
  margin-bottom: 14px;
  background: var(--surface-muted);
  box-shadow: none;
}

.news-admin-pagination {
  margin-top: 14px;
}

.news-admin-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-panel);
  background: #fff;
  box-shadow: 0 14px 34px rgba(10, 31, 68, 0.06);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.news-admin-row:hover {
  border-color: rgba(0, 88, 191, 0.22);
  box-shadow: 0 18px 42px rgba(10, 31, 68, 0.09);
  transform: translateY(-1px);
}

.news-admin-row:focus-visible {
  outline: 3px solid rgba(0, 88, 191, 0.22);
  outline-offset: 2px;
}

.news-admin-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--club-blue), #3d73c5);
}

.news-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-admin-thumb span {
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.news-admin-row-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.news-admin-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.news-admin-row-meta time,
.news-admin-row-meta span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.news-admin-row-meta span {
  padding: 3px 9px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--club-blue);
  font-family: var(--font-primary);
  font-size: 0.76rem;
  font-weight: 750;
}

.news-admin-row-meta .news-read-count {
  border-color: rgba(0, 88, 191, 0.2);
  background: rgba(0, 88, 191, 0.08);
  color: var(--ink);
}

.news-admin-row-meta .news-status-pill {
  border-color: rgba(18, 134, 83, 0.22);
  background: rgba(18, 134, 83, 0.1);
  color: #127447;
}

.news-admin-row-meta .news-status-pill.is-unpublished {
  border-color: rgba(109, 119, 139, 0.22);
  background: rgba(109, 119, 139, 0.12);
  color: var(--muted);
}

.news-admin-row h3 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: 1.05rem;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-admin-row p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-admin-row-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.news-editor-modal,
.news-categories-modal {
  max-width: 880px;
}

.news-categories-modal {
  max-width: 680px;
}

.news-preview-modal {
  max-width: 880px;
}

.news-preview-content {
  display: grid;
  gap: 14px;
}

.news-preview-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-panel);
}

.news-preview-content > h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 950;
  line-height: 1;
}

.news-preview-content .article-content h3 {
  margin: 1em 0 0.35em;
  color: var(--club-blue);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.15;
}

.news-preview-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.45;
}

.news-preview-body p {
  margin: 0 0 0.8em;
  color: var(--ink);
  font-weight: 550;
  line-height: 1.55;
}

.standings-admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(520px, 1.45fr);
  gap: 16px;
  align-items: start;
}

.standing-clubs-panel,
.standings-editor-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.standing-clubs-panel > h3,
.standings-editor-panel > h3,
.standing-clubs-panel > p {
  margin: 0;
}

.standing-clubs-panel > p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.standing-club-form {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.standing-logo-picker {
  grid-template-columns: 82px 96px 96px;
  justify-content: start;
}

.standing-logo-picker img {
  width: 74px;
  height: 74px;
}

.standings-rows-editor {
  display: grid;
  gap: 8px;
}

.standings-row-editor {
  display: grid;
  grid-template-columns: 42px minmax(220px, 1fr) 90px 90px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.standings-row-editor > strong {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 1.05rem;
}

.standings-row-editor label {
  display: grid;
  gap: 4px;
}

.standings-row-editor label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.standings-row-editor input,
.standings-row-editor select {
  min-height: 44px;
  padding: 9px 10px;
}

.standings-row-editor select {
  padding-right: 32px;
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px,
    0 0;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.archive-select {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.archive-select input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--navy);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: start center;
  overflow: auto;
  padding: clamp(28px, 5vh, 52px) 18px;
  background: rgba(8, 32, 70, 0.42);
}

.modal-backdrop.is-editor-preview {
  z-index: 1400;
}

.modal-panel {
  display: grid;
  gap: 14px;
  width: min(1180px, 100%);
  max-height: calc(100vh - clamp(56px, 10vh, 104px));
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-heading h2 {
  margin: 0;
  font-size: 1.12rem;
}

.live-lineup-modal form {
  display: grid;
  gap: 14px;
}

.live-lineup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.event-card {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 84px;
  overflow: hidden;
  padding: 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
}

.event-card[data-type="but"] {
  border-left-color: var(--green);
}

.event-card[data-type="but-csc"] {
  border-left-color: #0e8a74;
}

.event-card[data-type="tir"],
.event-card[data-type="tir-cadre"] {
  border-left-color: #e36b73;
}

.event-card[data-type="occasion"] {
  border-left-color: #e36b73;
}

.event-card[data-type="carton"],
.event-card[data-type="carton-jaune"],
.event-card[data-type="carton-blanc"] {
  border-left-color: #d6a018;
}

.event-card[data-type="carton-rouge"] {
  border-left-color: var(--red);
}

.event-card[data-type="remplacement"],
.event-card[data-type="changement"] {
  border-left-color: #7b4fd8;
}

.event-card[data-type="photos"] {
  border-left-color: var(--line);
}

.event-card[data-type] {
  border-left-color: var(--line);
}

.event-card[data-draft="true"] {
  background: var(--soft);
  opacity: 0.78;
}

.event-card:hover {
  border-color: var(--line);
  box-shadow: none;
}

.event-topline,
.event-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.event-topline {
  justify-content: space-between;
}

.event-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-left: 38px;
}

.event-team-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.event-copy {
  display: grid;
  gap: 4px;
  align-self: center;
  min-width: 0;
}

.event-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.event-card h3 .composition-card-marker {
  width: 12px;
  height: 17px;
}

.event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.substitution-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.substitution-player {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
}

.substitution-player i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #fff;
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1;
}

.substitution-player.is-out i {
  background: #dc2626;
}

.substitution-player.is-in i {
  background: #16a34a;
}

.event-card .admin-event-scorer {
  color: var(--ink);
  font-weight: 900;
}

.social-copy-snippet {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #cdd8e8;
  border-radius: 8px;
  background: #f7f9fc;
}

.social-copy-snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.social-copy-snippet-header span {
  color: var(--club-blue);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.social-copy-snippet pre {
  margin: 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.4;
  white-space: pre-wrap;
}

.event-photos-field {
  display: grid;
  gap: 10px;
}

.event-photo-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.event-photo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.event-photo-panel-header span {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.event-photo-panel-header small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.event-photo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.event-photo-add {
  position: relative;
  overflow: hidden;
}

.event-photo-add input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.event-photo-progress {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid #c9d4e4;
  border-radius: 8px;
  background: #fff;
}

.event-photo-progress[hidden] {
  display: none;
}

.event-photo-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.event-photo-progress-meta strong {
  color: var(--club-blue);
  font-weight: 950;
}

.event-photo-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf6;
}

.event-photo-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--club-blue);
  transition: width 0.18s ease;
}

.event-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  min-width: 0;
}

.admin-event-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.event-photo-preview.is-empty {
  min-height: 72px;
  padding: 14px;
  align-items: center;
  justify-items: start;
  border: 1px dashed #bdc6d3;
  border-radius: 8px;
  background: #fff;
}

.event-photo-preview span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.25;
}

.event-poll-field {
  display: grid;
}

.event-poll-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.event-poll-panel span {
  display: block;
  color: #354052;
  font-weight: 900;
}

.event-poll-panel small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.event-poll-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.event-photo-preview figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: grab;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.event-photo-preview figure:active {
  cursor: grabbing;
}

.event-photo-preview figure.is-dragging {
  opacity: 0.58;
  transform: scale(0.98);
}

.event-photo-preview figure.is-drop-target {
  border-color: var(--club-blue);
  box-shadow: 0 0 0 3px rgba(0, 95, 191, 0.14);
}

.event-photo-preview img {
  display: block;
  width: 100%;
  height: 76px;
  object-fit: cover;
}

.event-photo-preview figcaption {
  position: absolute;
  top: 5px;
  left: 5px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(10, 36, 74, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.event-photo-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: block;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid var(--danger);
  border-radius: 999px;
  background: #fff;
  color: var(--danger);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(10, 36, 74, 0.12);
}

.event-photo-remove::before,
.event-photo-remove::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.event-photo-remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.event-photo-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.event-photo-remove:hover,
.event-photo-remove:focus-visible {
  background: #fff3f3;
  outline: none;
}

.admin-event-photo-preview img {
  width: 74px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  object-fit: cover;
}

.admin-event-poll-preview {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #d6deea;
  border-radius: 10px;
  background: #f7f9fc;
}

.admin-event-poll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-event-poll-header strong {
  color: var(--club-blue);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-event-poll-header span {
  color: #59657a;
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-event-poll-results {
  display: grid;
  gap: 8px;
}

.admin-event-poll-result {
  position: relative;
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid #dce4f0;
  border-radius: 8px;
  background: #fff;
}

.admin-event-poll-result div {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-event-poll-result span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-event-poll-result strong {
  color: var(--club-blue);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-event-poll-result i {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  display: block;
  border-radius: inherit;
  background: rgba(0, 88, 191, 0.12);
}

.event-minute {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: start;
  width: 34px;
  height: 34px;
  padding: 8px 0 0 8px;
  border-bottom-right-radius: 34px;
  background: var(--club-blue);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 950;
  line-height: 1;
}

.public-event-item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 6px 0 16px;
}

.public-event-item::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 55px;
  width: 25px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 88, 191, 0.4), rgba(0, 88, 191, 0.12));
  content: "";
  transform: translateY(-50%);
}

.public-event-card {
  position: relative;
  z-index: 1;
  grid-column: 2;
  width: 100%;
  margin-left: 0;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(8, 32, 70, 0.04);
}

.public-event-card .event-main {
  padding-left: 0;
}

.public-event-item > .event-minute {
  position: relative;
  z-index: 2;
  grid-column: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: auto;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(0, 88, 191, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--club-blue);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(8, 32, 70, 0.08);
}

.public-event-item > .event-minute.is-pregame {
  min-width: 46px;
  font-size: 1rem;
}

.public-event-item:first-child > .event-minute {
  background: var(--club-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 32, 70, 0.12);
}

.public-event-item.is-new-public-event .public-event-card {
  animation: new-public-event 1.5s ease;
}

.public-poll-card .event-copy {
  gap: 12px;
}

.poll-options {
  display: grid;
  gap: 8px;
}

.poll-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 44px;
  overflow: hidden;
  padding: 9px 11px;
  border: 1px solid #cfd8e6;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.poll-option:hover,
.poll-option:focus-visible {
  border-color: var(--club-blue);
  outline: none;
}

.poll-option.has-result {
  cursor: pointer;
}

.poll-option.is-selected {
  border-color: var(--club-blue);
  border-width: 2px;
  background: #fff;
}

.poll-option.is-selected::before {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--club-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
  content: "✓";
}

.poll-option.is-selected .poll-option-label {
  grid-column: 1;
  grid-row: 1;
  padding-left: 32px;
  color: var(--club-blue);
  font-weight: 900;
}

.poll-option-label,
.poll-option-percent {
  position: relative;
  z-index: 1;
}

.poll-option-percent {
  grid-column: 2;
  justify-self: end;
  color: var(--club-blue);
  font-weight: 900;
}

.poll-option-bar {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(0, 88, 191, 0.12);
}

.poll-option.is-selected .poll-option-bar {
  background: rgba(0, 88, 191, 0.2);
}

@keyframes new-public-event {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 88, 191, 0);
    transform: translateY(0);
  }
  22% {
    box-shadow: 0 0 0 5px rgba(0, 88, 191, 0.12), 0 18px 34px rgba(8, 32, 70, 0.1);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: 0 8px 18px rgba(8, 32, 70, 0.04);
    transform: translateY(0);
  }
}

.event-push-layer {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: grid;
  pointer-events: none;
}

.event-push-layer[hidden] {
  display: none;
}

.event-push-layer.is-goal-push {
  place-items: center;
  padding: 18px;
  background: rgba(4, 20, 48, 0.58);
}

.event-push-layer.is-banner-push {
  place-items: start center;
  padding: 18px;
}

.event-push {
  position: relative;
  pointer-events: auto;
  overflow: hidden;
  border: 1px solid rgba(217, 222, 232, 0.9);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 22px 60px rgba(4, 20, 48, 0.22);
}

.event-push-layer.is-goal-push .event-push {
  animation: event-push-pop 0.28s ease both;
}

.event-push-layer.is-banner-push .event-push {
  animation: event-push-drop 0.28s ease both;
}

.event-push-layer.is-leaving .event-push {
  animation: event-push-leave 0.2s ease both;
}

.event-push-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.event-push-goal {
  width: min(780px, calc(100vw - 28px));
}

.event-push-goal-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(18px, 4vw, 42px);
  min-height: 230px;
  padding: 20px clamp(24px, 5vw, 54px) 0;
  background: var(--club-blue);
  color: #fff;
}

.event-push-goal-top > div {
  align-self: center;
  min-width: 0;
  padding: 28px 42px 30px 0;
}

.event-push-goal-top.no-player {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.event-push-goal-top.no-player > div {
  padding-right: 42px;
  padding-left: 42px;
}

.event-push-goal-top p,
.event-push-goal-top span,
.event-push-goal-top strong,
.event-push-body h3,
.event-push-body p,
.event-push-banner p,
.event-push-banner strong,
.event-push-banner span {
  margin: 0;
}

.event-push-goal-top p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-push-goal-top span {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 900;
  text-transform: uppercase;
}

.event-push-goal-top strong {
  display: block;
  color: #fff;
  font-size: clamp(4.2rem, 13vw, 8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
}

.event-push-player {
  align-self: end;
  width: clamp(150px, 28vw, 260px);
  max-height: 250px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.36));
}

.event-push-body {
  display: grid;
  gap: 8px;
  padding: 22px clamp(24px, 5vw, 54px);
}

.event-push-body h3 {
  font-size: clamp(1.1rem, 2.8vw, 1.55rem);
}

.event-push-body p {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.event-push-banner {
  width: min(680px, calc(100vw - 28px));
}

.event-push-banner .event-push-close {
  border-color: rgba(8, 32, 70, 0.16);
  background: #fff;
  color: var(--ink);
}

.event-push-banner-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 96px;
  padding: 18px 58px 18px 20px;
}

.event-push-banner-main img,
.event-push-symbol {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.event-push-symbol {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--club-blue);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 950;
}

.event-push-banner p {
  color: var(--club-blue);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.event-push-banner strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.05;
}

.event-push-banner span:not(.event-push-symbol) {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}

@keyframes event-push-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes event-push-drop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes event-push-leave {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

.public-photo-card {
  grid-column: 2;
  width: 100%;
  margin-left: 0;
  overflow: visible;
  contain: layout paint;
}

.public-photo-card .event-copy {
  gap: 12px;
}

.photo-thumb-shell {
  --photo-thumb-height: clamp(142px, 20vw, 208px);
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: calc(var(--photo-thumb-height) + 22px);
  overflow: visible;
  contain: layout paint;
}

.photo-thumb-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-height: calc(var(--photo-thumb-height) + 22px);
  min-width: 0;
  overflow-x: scroll;
  overflow-y: hidden;
  padding: 4px 4px 10px;
  scrollbar-gutter: stable;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: auto;
}

.photo-scroll-hint {
  position: absolute;
  top: 10px;
  right: 9px;
  z-index: 1;
  display: none;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(8, 32, 70, 0.12);
  border-radius: 999px;
  background: rgba(8, 32, 70, 0.86);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.photo-thumb-grid::-webkit-scrollbar {
  height: 8px;
}

.photo-thumb-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e8eef6;
}

.photo-thumb-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b7c3d4;
}

.photo-thumb {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: var(--photo-thumb-height);
  min-width: calc(var(--photo-thumb-height) * 0.68);
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-sizing: border-box;
  cursor: pointer;
  outline: none;
  scroll-snap-align: start;
  touch-action: manipulation;
}

.photo-thumb img {
  display: block;
  width: auto;
  height: var(--photo-thumb-height);
  max-width: 360px;
  border-radius: 8px;
  object-fit: contain;
  transform: scale(0.94);
  transform-origin: center;
  transition: transform 0.18s ease;
  will-change: transform;
}

.photo-thumb:hover img,
.photo-thumb:focus-visible img {
  transform: scale(1);
}

.photo-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 16, 34, 0.82);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  touch-action: pan-y;
}

.photo-preview-modal[hidden] {
  display: none;
}

.photo-preview-modal img {
  display: block;
  align-self: center;
  justify-self: center;
  max-width: min(1040px, 94vw);
  max-height: 86vh;
  max-height: 86dvh;
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.has-photo-preview {
  overflow: hidden;
}

.photo-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.photo-preview-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: block;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  background: rgba(8, 32, 70, 0.62);
  color: #fff;
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
  box-shadow: 0 12px 28px rgba(5, 16, 34, 0.3);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.photo-preview-nav[hidden] {
  display: none;
}

.photo-preview-nav::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 25px;
  height: 25px;
  background: currentColor;
  content: "";
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.photo-preview-prev {
  left: 18px;
}

.photo-preview-prev::before {
  transform: translate(-50%, -50%);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M15 6 9 12l6 6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M15 6 9 12l6 6'/%3E%3C/svg%3E");
}

.photo-preview-next {
  right: 18px;
}

.photo-preview-next::before {
  transform: translate(-50%, -50%);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='m9 6 6 6-6 6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='m9 6 6 6-6 6'/%3E%3C/svg%3E");
}

@media (max-width: 700px) {
  .photo-scroll-hint {
    display: inline-flex;
  }

  .photo-thumb-shell.has-photo-scroll-hint .photo-thumb-grid {
    padding-right: 76px;
  }

  .photo-preview-modal {
    padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .photo-preview-modal img {
    max-width: calc(100vw - 24px);
    max-width: calc(100dvw - 24px);
    max-height: calc(100vh - 128px);
    max-height: calc(100dvh - 128px);
  }

  .photo-preview-close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 50px;
    height: 50px;
    background: rgba(8, 32, 70, 0.76);
    box-shadow: 0 10px 26px rgba(5, 16, 34, 0.28);
  }

  .photo-preview-nav {
    width: 54px;
    height: 54px;
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(8, 32, 70, 0.78);
    box-shadow: 0 10px 26px rgba(5, 16, 34, 0.28);
  }

  .photo-preview-prev {
    left: max(8px, env(safe-area-inset-left));
  }

  .photo-preview-next {
    right: max(8px, env(safe-area-inset-right));
  }
}

@media (orientation: landscape) and (max-width: 1000px) {
  .app-header {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    padding-block: 12px;
  }

  .brand-block {
    flex: 1 1 auto;
  }

  .club-logo {
    width: 48px;
    height: 58px;
  }

  .app-header h1 {
    font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  }

  .site-nav {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: auto;
    max-width: 68%;
  }
}

.public-goal-card {
  gap: 0;
  padding: 0;
}

.goal-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(12px, 2.4vw, 24px);
  align-items: stretch;
  min-height: 108px;
  padding: 2px clamp(18px, 4vw, 42px) 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--club-blue);
  color: #fff;
  overflow: hidden;
}

.public-goal-card .goal-banner:last-child {
  border-bottom-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.public-goal-card.no-goal-thumbnail .goal-banner {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 8px;
}

.public-goal-card.no-goal-thumbnail .goal-banner-text {
  transform: translateY(2px);
}

.goal-player-thumbnail {
  align-self: end;
  width: clamp(102px, 19vw, 180px);
  height: clamp(94px, 18vw, 172px);
  margin-bottom: -1px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.34));
  transform: translateY(8px);
}

.goal-banner-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  padding-bottom: 2px;
  transform: translateY(-2px);
}

.public-goal-card .goal-player-name {
  margin: 0;
  color: #fff;
  font-size: clamp(0.9rem, 2.2vw, 1.25rem);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.public-goal-card .goal-player-name strong {
  color: #fff;
  font-weight: 950;
}

.goal-banner-text > strong {
  display: block;
  margin-left: -0.025em;
  color: #fff;
  font-size: clamp(2.3rem, 8vw, 5rem);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

.goal-event-body {
  display: grid;
  gap: 10px;
  padding: 18px clamp(18px, 4vw, 42px);
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
}

.goal-event-body h3,
.goal-event-body p {
  margin: 0;
}

.goal-event-body h3 {
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  line-height: 1.25;
}

.goal-event-body p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
}

.event-time {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.pill,
.event-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill {
  background: rgba(8, 32, 70, 0.1);
  color: var(--club-blue);
}

.event-chip {
  border: 1px solid #c9d0da;
  background: #f1f3f6;
  color: #111827;
}

.event-chip[data-type="but"] {
  border-color: #b7e3c8;
  background: #e8f6ef;
  color: var(--green-dark);
}

.event-chip[data-type="but-csc"] {
  border-color: #a9ded3;
  background: #e7f7f3;
  color: #0d6d5c;
}

.event-chip[data-type="tir"],
.event-chip[data-type="tir-cadre"] {
  border-color: #f1b9b9;
  background: #fdecee;
  color: #bb2f3a;
}

.event-chip[data-type="occasion"] {
  border-color: #f1b9b9;
  background: #fdecee;
  color: #bb2f3a;
}

.event-chip[data-type="carton"],
.event-chip[data-type="carton-jaune"],
.event-chip[data-type="carton-blanc"] {
  border-color: #eed28b;
  background: #fff8df;
  color: #8a5c00;
}

.event-chip[data-type="carton-rouge"] {
  border-color: #f1b9b9;
  background: #fdecee;
  color: var(--red);
}

.event-chip[data-type="remplacement"],
.event-chip[data-type="changement"] {
  border-color: #d6bcfa;
  background: #f4edff;
  color: #7442b8;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 18px;
  border: 1px dashed #bdc6d3;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

label,
fieldset {
  min-width: 0;
}

label span,
legend {
  display: block;
  margin-bottom: 6px;
  color: #354052;
  font-size: 0.83rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9d2df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(16, 24, 40, 0.03);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #344054 50%) calc(100% - 20px) 19px / 7px 7px no-repeat,
    linear-gradient(135deg, #344054 50%, transparent 50%) calc(100% - 13px) 19px / 7px 7px no-repeat,
    #fff;
  padding-right: 42px;
}

input[type="number"] {
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

.team-name-input {
  min-height: 58px;
  resize: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--club-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 184, 0.14), 0 6px 16px rgba(16, 24, 40, 0.06);
}

fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-grid,
.score-form-grid {
  display: grid;
  gap: 10px;
}

.form-grid {
  grid-template-columns: 1fr 1fr;
}

.waiting-admin-panel .section-heading {
  margin-bottom: 20px;
}

.waiting-form {
  display: grid;
  gap: 20px;
}

.waiting-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-height: 34px;
  color: #354052;
  font-size: 0.9rem;
  font-weight: 850;
}

.waiting-toggle span {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.waiting-toggle input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.waiting-toggle i {
  position: relative;
  width: 54px;
  height: 30px;
  border: 1px solid #b8c1cf;
  border-radius: 999px;
  background: #fff;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.waiting-toggle i::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #98a2b3;
  transition: transform 0.16s ease, background 0.16s ease;
}

.waiting-toggle input:checked + i {
  border-color: var(--club-blue);
  background: rgba(0, 86, 184, 0.12);
}

.waiting-toggle input:checked + i::before {
  transform: translateX(24px);
  background: var(--club-blue);
}

.waiting-toggle input:focus-visible + i {
  box-shadow: 0 0 0 3px rgba(0, 91, 187, 0.14);
}

.waiting-form .form-grid {
  gap: 16px;
}

.waiting-form > label > span,
.waiting-form .form-grid > label > span {
  margin-bottom: 10px;
}

.waiting-form .form-actions {
  padding-top: 6px;
}

.score-form-grid {
  grid-template-columns: repeat(4, 1fr);
}

.match-form,
.event-form,
.auth-card form {
  display: grid;
  gap: 14px;
}

.event-quick-grid {
  display: grid;
  grid-template-columns: minmax(90px, 0.55fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: end;
}

.event-type-native {
  display: none;
}

.event-type-cockpit {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.event-type-cockpit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #354052;
  font-size: 0.83rem;
  font-weight: 850;
}

.event-type-cockpit-header strong {
  color: var(--club-blue);
  font-weight: 950;
  text-align: right;
}

.event-type-buttons {
  display: grid;
  gap: 9px;
}

.event-type-row {
  display: grid;
  grid-template-columns: repeat(var(--event-type-columns, 4), minmax(0, 1fr));
  gap: 8px;
}

.event-type-row:nth-child(1) {
  --event-type-columns: 4;
}

.event-type-row:nth-child(2) {
  --event-type-columns: 4;
}

.event-type-row:nth-child(3) {
  --event-type-columns: 4;
}

.event-type-row:nth-child(4) {
  --event-type-columns: 4;
}

.event-type-row:nth-child(5) {
  --event-type-columns: 3;
}

.event-type-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid #cdd4df;
  border-left-width: 5px;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.08;
  text-align: center;
  cursor: pointer;
  min-width: 0;
}

.event-type-button[data-kind="phase"] {
  border-left-color: var(--club-blue);
}

.event-type-button[data-kind="goal"] {
  border-left-color: var(--green);
}

.event-type-button[data-kind="shot"] {
  border-left-color: #e36b73;
}

.event-type-button[data-kind="card"] {
  border-left-color: #d6a018;
}

.event-type-button[data-event-type="carton-rouge"] {
  border-left-color: var(--red);
}

.event-type-button[data-kind="media"] {
  border-left-color: #7b4fd8;
}

.event-type-button:hover,
.event-type-button:focus-visible {
  border-color: var(--club-blue);
  border-left-color: var(--club-blue);
  outline: none;
}

.event-type-button.is-active {
  border-color: var(--navy);
  border-left-color: var(--club-gold);
  background: var(--navy);
  color: #fff;
}

.event-substitution-field {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.event-substitution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.event-team-selector > span {
  display: block;
  margin-bottom: 6px;
  color: #354052;
  font-size: 0.83rem;
  font-weight: 750;
}

.event-team-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-team-buttons .secondary-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  min-height: 52px;
  padding: 6px 10px;
  color: #354052;
  line-height: 1.15;
  white-space: pre-line;
}

.event-team-button-logo {
  align-self: center;
  justify-self: center;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.event-team-button-logo.is-empty {
  display: block;
}

.event-team-buttons .secondary-button > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-team-buttons .secondary-button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #344054;
  font-size: 0.88rem;
}

.checkbox-grid input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--navy);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.form-note.warning {
  color: var(--red);
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  width: 100%;
  background: var(--navy);
  color: #fff;
}

.primary-button:hover {
  background: var(--navy-dark);
}

.secondary-button {
  padding: 0 12px;
  background: #fff;
  border-color: #cdd4df;
  color: #263345;
}

.danger-button {
  padding: 0 12px;
  background: #fff;
  border-color: #f1b9b9;
  color: var(--red);
}

.compact-button {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  gap: 7px;
}

.submit-dialog-button {
  width: auto;
  min-width: 150px;
  padding: 0 16px;
}

.icon-button {
  width: 38px;
  flex: 0 0 38px;
  background: #fff;
  border-color: #cdd4df;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.privacy-footer {
  display: flex;
  justify-content: center;
  padding: 6px 16px 28px;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

.privacy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.privacy-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(720px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.privacy-banner strong,
.privacy-panel h2,
.privacy-list dt {
  color: var(--ink);
}

.privacy-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
}

.privacy-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.privacy-modal-toggle {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.privacy-link,
.privacy-close,
#privacyDetailsButton {
  cursor: pointer;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(8, 32, 70, 0.42);
}

.privacy-modal.is-open,
.privacy-modal:target,
.privacy-modal-toggle:checked ~ .privacy-modal {
  display: grid;
}

.privacy-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.privacy-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.privacy-panel-header {
  display: grid;
  gap: 4px;
  padding-right: 44px;
}

.privacy-panel-header .eyebrow {
  color: var(--club-blue);
}

.privacy-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.privacy-panel p {
  margin: 18px 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.privacy-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.privacy-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.privacy-list dt,
.privacy-list dd {
  margin: 0;
}

.privacy-list dt {
  font-weight: 850;
}

.privacy-list dd {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.45;
}

.privacy-modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.app-header .icon-button,
.header-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-menu-button {
  font-size: 1.15rem;
  font-weight: 900;
}

.admin-nav-menu {
  position: fixed;
  top: 82px;
  right: clamp(12px, 4vw, 44px);
  z-index: 40;
  display: grid;
  gap: 4px;
  width: min(260px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgba(8, 32, 70, 0.18);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-nav-menu button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-align: left;
}

.admin-nav-menu button:hover,
.admin-nav-menu button.is-active {
  background: rgba(8, 32, 70, 0.08);
  color: var(--club-blue);
}

.admin-nav-section {
  display: grid;
  gap: 4px;
  padding-top: 5px;
  border-top: 1px solid rgba(8, 32, 70, 0.1);
}

.admin-nav-section summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.admin-nav-section summary::-webkit-details-marker {
  display: none;
}

.admin-nav-section summary::after {
  content: "→";
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.16s ease;
}

.admin-nav-section[open] summary::after {
  transform: rotate(90deg);
}

.admin-nav-submenu {
  display: grid;
  gap: 4px;
  padding-left: 10px;
}

.admin-nav-submenu button {
  min-height: 36px;
  font-size: 0.92rem;
  font-weight: 760;
}

.analytics-panel {
  display: grid;
  gap: 16px;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.analytics-kpi {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.analytics-kpi span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.analytics-kpi strong {
  color: var(--club-blue);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.analytics-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.analytics-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.analytics-card-wide {
  grid-column: span 2;
}

.analytics-timeline {
  display: grid;
  min-height: 186px;
}

.analytics-chart {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  min-height: 176px;
}

.analytics-y-axis {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 142px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 550;
  line-height: 1;
  text-align: right;
}

.analytics-y-axis span:nth-child(2) {
  align-self: center;
}

.analytics-y-axis span:last-child {
  align-self: end;
}

.analytics-plot {
  display: grid;
  grid-template-rows: 142px auto;
  min-width: 0;
}

.analytics-bars-row,
.analytics-x-axis {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
}

.analytics-bars-row {
  position: relative;
  align-items: end;
  border-bottom: 1px solid rgba(102, 112, 133, 0.28);
}

.analytics-bars-row::before,
.analytics-bars-row::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(102, 112, 133, 0.16);
  content: "";
}

.analytics-bars-row::before {
  top: 20px;
}

.analytics-bars-row::after {
  top: calc(20px + (100% - 20px) / 2);
}

.analytics-bar {
  display: grid;
  grid-template-rows: 18px 1fr;
  align-items: end;
  justify-items: center;
  min-width: 0;
  height: 100%;
}

.analytics-bar strong {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1;
}

.analytics-bar span {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.analytics-bar i {
  display: block;
  width: 7px;
  min-height: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--club-blue);
}

.analytics-x-axis {
  padding-top: 6px;
}

.analytics-x-axis small {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 550;
  text-align: center;
  white-space: nowrap;
}

.analytics-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.analytics-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
}

.analytics-list-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-list-row strong {
  color: var(--club-blue);
  font-weight: 750;
}

.analytics-list-row i {
  grid-column: 1 / -1;
  display: block;
  height: 5px;
  min-width: 6px;
  border-radius: 999px;
  background: var(--club-blue);
}

.login-panel {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
}

.auth-card {
  width: min(430px, 100%);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-card header {
  padding: 20px;
  background: var(--club-blue);
  border-bottom: 5px solid var(--club-gold);
  color: #fff;
}

.auth-card header .eyebrow {
  color: var(--club-gold);
}

.auth-card form {
  padding: 20px;
}

.logo-field > span {
  display: block;
  margin-bottom: 6px;
  color: #354052;
  font-size: 0.83rem;
  font-weight: 750;
}

.logo-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.logo-field-header > span {
  color: #354052;
  font-size: 0.83rem;
  font-weight: 750;
}

.cnsf-logo-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #cdd4df;
  border-radius: 999px;
  background: #fff;
  color: #354052;
  font-size: 0.78rem;
  font-weight: 850;
}

.cnsf-logo-check input {
  width: 15px;
  min-height: 15px;
  accent-color: var(--club-blue);
}

.logo-picker {
  display: grid;
  grid-template-columns: 64px auto auto;
  gap: 8px;
  align-items: center;
  min-height: 74px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.logo-picker img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.news-photo-field {
  height: 100%;
}

.news-photo-field .logo-field-header {
  margin-bottom: 7px;
}

.news-photo-picker {
  height: calc(100% - 34px);
  min-height: 0;
  grid-template-columns: minmax(150px, 1fr) 108px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  overflow: hidden;
}

.news-photo-picker img {
  width: 100%;
  height: auto;
  max-height: 168px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.news-photo-picker img[hidden] {
  display: none;
}

.news-photo-actions {
  align-self: center;
  width: 100%;
}

.news-photo-picker:has(img[hidden]) {
  grid-template-columns: minmax(0, 1fr) 108px;
}

@media (max-width: 700px) {
  .news-publication-layout {
    grid-template-columns: 1fr;
  }

  .news-photo-picker {
    height: auto;
    grid-template-columns: minmax(0, 1fr) 108px;
  }

  .news-photo-picker img {
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 9;
  }
}

.player-thumbnail-picker {
  grid-template-columns: 96px 120px 120px;
  justify-content: start;
  min-height: 108px;
}

.player-thumbnail-picker img {
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
}

.logo-picker img[hidden] {
  display: block !important;
  visibility: hidden;
}

.logo-picker input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.waiting-form .logo-picker {
  grid-template-columns: 104px 96px minmax(92px, 1fr);
  grid-template-rows: repeat(2, 44px);
  justify-content: start;
  min-height: 104px;
  gap: 8px;
}

.waiting-form .logo-picker img {
  grid-row: 1 / -1;
  width: 96px;
  height: 96px;
}

.waiting-form .logo-picker .compact-button,
.waiting-form .logo-picker .danger-button {
  grid-column: 2;
  width: 96px;
  min-height: 44px;
  justify-content: center;
}

.waiting-form .logo-picker .cnsf-logo-check {
  grid-column: 3;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: start;
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.admin-events .event-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.admin-event-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.event-actions {
  display: grid;
  gap: 8px;
  justify-content: stretch;
  min-width: 150px;
}

.event-actions .secondary-button,
.event-actions .danger-button {
  width: 100%;
}

@media (max-width: 1000px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: max-content;
    max-width: 100%;
  }

  .fixture-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .live-layout,
  .home-content-grid,
  .team-dashboard-grid,
  .admin-page-grid,
  .analytics-grid,
  .prepared-match-form,
  .news-admin-layout,
  .calendar-top-grid,
  .calendar-info-grid,
  .standings-admin-grid,
  .lineup-setup-grid,
  .opponent-editor,
  .prepared-top-grid,
  .prepared-info-grid {
    grid-template-columns: 1fr;
  }

  .admin-page-grid {
    grid-template-areas:
      "match"
      "event"
      "compositions"
      "stats"
      "feed";
  }

  .news-admin-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .news-admin-actions {
    justify-content: stretch;
  }

  .news-admin-actions > * {
    flex: 1 1 100%;
  }

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

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

  .news-admin-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .news-admin-thumb {
    max-width: 320px;
  }

  .news-admin-row-actions {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .lineup-setup-grid,
  .prepared-top-grid,
  .prepared-match-form > .form-actions {
    grid-column: auto;
    grid-row: auto;
  }

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

  .calendar-result-row {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-score-fields {
    grid-template-columns: 1fr 1fr;
  }

  .event-quick-grid {
    grid-template-columns: 1fr;
  }

  .event-substitution-grid {
    grid-template-columns: 1fr;
  }

  .event-type-row,
  .event-type-row:nth-child(n) {
    --event-type-columns: 2;
  }

  .score-form-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 700px) {
  .standings-row-editor {
    grid-template-columns: 38px minmax(0, 1fr) 78px 78px;
    gap: 8px;
    padding: 8px;
  }

  .standings-row-editor > strong,
  .standings-row-editor input,
  .standings-row-editor select {
    min-height: 40px;
    height: 40px;
  }

  .privacy-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .privacy-actions {
    flex-wrap: wrap;
  }

  .privacy-actions .compact-button {
    flex: 1 1 120px;
  }

  .privacy-panel {
    padding: 22px 16px 18px;
  }

  .privacy-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .event-push-layer.is-goal-push,
  .event-push-layer.is-banner-push {
    padding: 12px;
  }

  .event-push-goal-top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0;
    min-height: 0;
    padding: 18px 18px 0;
    text-align: center;
  }

  .event-push-goal-top > div {
    order: 1;
    padding: 0 34px 16px;
  }

  .event-push-player {
    order: 2;
    width: min(210px, 58vw);
    max-height: 210px;
  }

  .event-push-goal-top strong {
    font-size: clamp(3.7rem, 19vw, 5.6rem);
  }

  .event-push-body {
    padding: 18px;
  }

  .event-push-banner-main {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-height: 84px;
    padding: 14px 50px 14px 14px;
  }

  .event-push-banner-main img,
  .event-push-symbol {
    width: 44px;
    height: 44px;
  }

  .match-timing {
    margin-top: -38px;
  }

  .scoreboard[data-status="avant-match"] .match-timing {
    margin-top: 8px;
  }

  .analytics-kpis,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-card-wide {
    grid-column: auto;
  }

  .analytics-timeline {
    min-height: 150px;
  }

  .match-stats {
    gap: 10px;
    padding: 8px;
  }

  .match-stats-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }

  .match-stats-header > strong {
    font-size: 0.62rem;
  }

  .match-stats-team {
    gap: 5px;
  }

  .match-stats-team img {
    width: 24px;
    height: 24px;
  }

  .match-stats-team span {
    font-size: 0.65rem;
  }

  .match-stat-row {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    gap: 7px;
  }

  .match-stat-main > span {
    font-size: 0.74rem;
  }

  .compositions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .composition-card {
    gap: 7px;
    padding: 8px;
  }

  .composition-header {
    align-items: start;
    gap: 7px;
  }

  .composition-logo {
    width: 28px;
    height: 28px;
  }

  .composition-card h3 {
    font-size: 0.78rem;
    line-height: 1.18;
  }

  .composition-section h4 {
    font-size: 0.68rem;
  }

  .composition-list {
    font-size: 0.72rem;
  }

  .composition-list li {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 4px;
    padding: 4px 5px;
  }

  .composition-coach-name {
    padding: 5px 7px;
    font-size: 0.72rem;
  }

  .composition-number {
    min-height: 19px;
    font-size: 0.66rem;
  }

  .timeline-panel {
    order: 1;
  }

  .side-panel-stack {
    order: 2;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px 14px;
  }

  .brand-block {
    gap: 11px;
  }

  .club-logo {
    width: min(210px, 64vw);
    height: 58px;
  }

  .app-header h1 {
    display: none;
    font-size: clamp(1.45rem, 8vw, 2rem);
  }

  .score-row,
  .waiting-match,
  .match-context,
  .match-details,
  .waiting-details,
  .form-grid,
  .score-form-grid,
  .checkbox-grid,
  .admin-events .event-card {
    grid-template-columns: 1fr;
  }

  .score-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-items: center;
    align-items: start;
    gap: 8px;
    margin-top: 18px;
  }

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

  .archived-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .match-row-actions {
    justify-content: flex-start;
  }

  .archived-row .match-row-actions {
    grid-column: 2;
  }

  .team,
  .team-home,
  .team-away {
    justify-content: center;
    text-align: center;
  }

  .team {
    gap: 7px;
    width: auto;
    min-height: auto;
    font-size: 0.82rem;
    line-height: 1.12;
  }

  .team-logo {
    width: 48px;
    height: 48px;
  }

  .score-box {
    width: 118px;
    min-width: 0;
    min-height: 58px;
    gap: 7px;
    padding: 8px 10px;
    justify-self: center;
  }

  .score-box strong {
    font-size: 2.05rem;
  }

  .score-box span {
    font-size: 1.35rem;
  }

  .team-scorers {
    align-content: flex-start;
    font-size: 0.7rem;
    line-height: 1.15;
    margin-top: -3px;
  }

  .team-scorers li {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 4px;
  }

  .waiting-page {
    min-height: 420px;
    padding: 18px 10px;
  }

  .waiting-match {
    gap: 8px;
  }

  .waiting-team {
    padding: 0;
    font-size: 2.2rem;
  }

  .waiting-team-card {
    grid-template-rows: auto auto;
    gap: 10px;
  }

  .waiting-logo {
    width: 76px;
    height: 76px;
  }

  .waiting-versus {
    justify-self: center;
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .waiting-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .waiting-details div {
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: center;
    min-width: 0;
    padding: 9px 4px;
  }

  .waiting-details dt {
    font-size: 0.58rem;
    letter-spacing: 0.01em;
  }

  .waiting-details dd {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }

  .countdown div {
    min-width: 0;
    padding: 9px 3px;
  }

  .countdown strong {
    font-size: 1.75rem;
  }

  .countdown span {
    font-size: 0.58rem;
    letter-spacing: 0.01em;
  }

  .match-meta {
    justify-items: start;
    text-align: left;
  }

  .event-actions,
  .form-actions {
    justify-content: flex-start;
  }

  .logo-picker {
    grid-template-columns: 58px 1fr;
  }

  .logo-picker .danger-button {
    grid-column: 2;
  }

  .admin-nav-menu {
    top: 88px;
    left: 12px;
    right: 12px;
    width: auto;
  }
}

@media (orientation: landscape) and (max-width: 1200px) {
  .scoreboard[data-status="avant-match"] .score-row {
    margin-top: 64px;
  }

  .scoreboard[data-status="avant-match"] .match-timing {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .home-hero {
    min-height: 0;
    align-items: end;
    background-position: center;
  }

  .home-hero::before {
    background:
      linear-gradient(0deg, rgba(4, 20, 48, 0.9), rgba(4, 20, 48, 0.18) 68%),
      linear-gradient(90deg, rgba(4, 20, 48, 0.58), rgba(4, 20, 48, 0.1));
  }

  .home-hero-content {
    padding: 24px;
  }

  .home-news-list {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .site-nav > a,
  .site-nav-trigger {
    min-width: 0;
    min-height: 34px;
    padding: 0 11px;
    background: rgba(255, 255, 255, 0.12);
    font-size: clamp(0.66rem, 2.75vw, 0.78rem);
    white-space: nowrap;
  }

  .site-subnav {
    left: 0;
    min-width: min(260px, calc(100vw - 36px));
    transform: translate(0, 8px);
  }

  .site-nav-item:hover .site-subnav {
    transform: translate(0, 0);
  }

  .site-subnav-wide {
    grid-template-columns: 1fr;
    min-width: min(260px, calc(100vw - 36px));
  }

  .team-dashboard-heading {
    min-height: 0;
    padding: 0;
    gap: 8px;
  }

  .team-dashboard-heading h2 {
    font-size: clamp(1.75rem, 7vw, 2.1rem);
  }

  .season-summary {
    width: 100%;
    border-radius: 16px;
  }

  .season-summary-item {
    flex: 1 1 auto;
    min-height: 32px;
    padding: 0 10px;
  }

  .season-summary-item-main {
    flex: 1.35 1 86px;
    grid-template-columns: auto 18px;
  }

  .season-summary-item span {
    font-size: 0.56rem;
  }

  .season-summary-item strong {
    font-size: 0.95rem;
  }

  .season-summary-record {
    flex: 2 1 148px;
    justify-content: center;
    min-height: 32px;
  }

  .season-summary-goals {
    flex: 1 1 104px;
    justify-content: center;
    min-height: 32px;
  }

  .season-summary-goals .season-summary-item {
    grid-template-columns: 20px 14px;
    flex: 0 0 auto;
    padding: 0 7px;
  }

  .season-record-chip {
    min-width: 34px;
    min-height: 22px;
    padding: 0 6px;
  }

  .team-dashboard-block .fixture-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 11px;
    overflow: hidden;
  }

  .team-dashboard-block .fixture-meta {
    min-width: 0;
  }

  .team-dashboard-block .fixture-meta strong {
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .team-dashboard-block .fixture-meta span {
    overflow-wrap: anywhere;
    line-height: 1.2;
  }

  .team-dashboard-block .fixture-teams {
    grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-content: stretch;
    width: 100%;
    gap: 6px 8px;
    text-align: center;
  }

  .team-dashboard-block .fixture-team-logo-home,
  .team-dashboard-block .fixture-team-fallback-home {
    grid-column: 1;
    grid-row: 1;
  }

  .team-dashboard-block .fixture-team-name-home {
    grid-column: 1;
    grid-row: 2;
  }

  .team-dashboard-block .fixture-score {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    min-width: 68px;
    padding: 7px 6px;
    font-size: 0.96rem;
  }

  .team-dashboard-block .fixture-team-logo-away,
  .team-dashboard-block .fixture-team-fallback-away {
    grid-column: 3;
    grid-row: 1;
  }

  .team-dashboard-block .fixture-team-name-away {
    grid-column: 3;
    grid-row: 2;
  }

  .team-dashboard-block .fixture-team-logo,
  .team-dashboard-block .fixture-team-fallback {
    width: 32px;
    height: 32px;
    justify-self: center;
  }

  .team-dashboard-block .fixture-team-name {
    font-size: 0.8rem;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .team-dashboard-block .fixture-card.is-postponed .fixture-score {
    width: 68px;
    min-width: 68px;
    font-size: 0.61rem;
  }

  .event-poll-options {
    grid-template-columns: 1fr;
  }

  .poll-option {
    min-height: 42px;
  }
}

@media (orientation: landscape) and (max-width: 1000px) {
  .app-header {
    align-items: center;
    flex-direction: row;
    gap: 16px;
    padding-block: 12px;
  }

  .brand-block {
    flex: 1 1 auto;
    gap: 10px;
  }

  .club-logo {
    width: min(210px, 64vw);
    height: 58px;
  }

  .app-header h1 {
    display: none;
    font-size: clamp(1.2rem, 3.2vw, 1.7rem);
  }

  .site-nav {
    flex: 0 1 auto;
    flex-wrap: wrap;
    width: auto;
    max-width: 68%;
    margin-left: auto;
  }

  .site-nav > a,
  .site-nav-trigger {
    min-height: 34px;
    padding: 0 9px;
    font-size: clamp(0.62rem, 1.45vw, 0.74rem);
  }
}

@media (max-width: 700px), (orientation: landscape) and (max-width: 1180px) and (max-height: 560px) {
  body.site-menu-open {
    overflow: hidden;
  }

  .app-header {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 5px 16px 7px;
  }

  .app-header > .brand-block {
    display: flex;
    grid-column: 2;
    justify-content: center;
    min-width: 0;
  }

  .brand-block > div {
    display: none;
  }

  .club-logo {
    width: auto;
    height: min(82px, 21vw);
    max-width: 62vw;
    transform: translateY(24px);
  }

  .app-header h1 {
    font-size: clamp(1.28rem, 7.2vw, 1.9rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .site-menu-toggle {
    grid-column: 1;
    grid-row: 1;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    justify-self: start;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(8, 32, 70, 0.22);
    color: #fff;
    z-index: 1210;
  }

  .site-menu-toggle span:not(.visually-hidden) {
    width: 23px;
    height: 4px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.16s ease, opacity 0.16s ease;
  }

  .app-header.is-menu-open .site-menu-toggle {
    position: fixed;
    top: max(24px, env(safe-area-inset-top));
    left: 20px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #050505;
    display: inline-grid;
    place-items: center;
  }

  .app-header.is-menu-open .site-menu-toggle span:not(.visually-hidden) {
    position: absolute;
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: #050505;
    transform-origin: center;
  }

  .app-header.is-menu-open .site-menu-toggle span:not(.visually-hidden):nth-child(1) {
    transform: rotate(45deg);
  }

  .app-header.is-menu-open .site-menu-toggle span:not(.visually-hidden):nth-child(2) {
    opacity: 0;
  }

  .app-header.is-menu-open .site-menu-toggle span:not(.visually-hidden):nth-child(3) {
    transform: rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    margin: 0;
    padding: max(92px, calc(env(safe-area-inset-top) + 82px)) 28px max(34px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav-logo {
    display: none;
  }

  .site-nav-group {
    display: grid;
    gap: 0;
    width: 100%;
    justify-content: stretch;
    justify-items: stretch;
  }

  .site-nav-group-left,
  .site-nav-group-right {
    justify-content: stretch;
  }

  .app-header.is-menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .app-header.is-menu-open::after {
    content: "MENU";
    position: fixed;
    top: max(34px, calc(env(safe-area-inset-top) + 10px));
    left: 72px;
    z-index: 1201;
    color: #050505;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 850;
    letter-spacing: 0;
  }

  .site-nav-group > a,
  .site-nav-trigger {
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    padding: 0;
    border-radius: 0;
    border-bottom: 2px solid rgba(8, 32, 70, 0.08);
    background: transparent;
    color: #050505;
    font-size: clamp(1.02rem, 5.1vw, 1.38rem);
    font-weight: 680;
    line-height: 1.1;
    text-align: left;
    text-transform: none;
    white-space: normal;
  }

  .site-nav-trigger::after {
    content: "→";
    color: currentColor;
    font-size: 1.35em;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.16s ease;
  }

  .site-nav-group > a::after {
    content: none;
  }

  .site-nav-item.is-submenu-open > .site-nav-trigger::after {
    transform: rotate(90deg);
  }

  .site-nav-group > a.is-active,
  .site-nav-group > a:hover,
  .site-nav-group > a:focus-visible,
  .site-nav-trigger:hover,
  .site-nav-trigger:focus-visible,
  .site-nav-item:hover .site-nav-trigger {
    background: transparent;
    color: #050505;
  }

  .site-nav-item {
    position: static;
    display: grid;
    gap: 0;
  }

  .site-subnav,
  .site-subnav-wide {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-width: 0;
    width: 100%;
    margin: 0 0 6px;
    max-height: 0;
    padding: 0 0 0 16px;
    border: 0;
    border-bottom: 0 solid rgba(8, 32, 70, 0.08);
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    overflow: hidden;
    transition: max-height 0.22s ease, padding 0.22s ease, border-bottom-width 0.22s ease;
  }

  .site-nav-item.is-submenu-open > .site-subnav {
    max-height: 760px;
    padding: 5px 0 9px 16px;
    border-bottom-width: 2px;
  }

  .site-subnav::before,
  .site-subnav::after {
    display: none;
  }

  .site-subnav a,
  .site-subnav-group strong {
    min-height: 34px;
    padding: 2px 0;
    border-radius: 0;
    background: transparent;
    color: #050505;
    font-size: clamp(0.9rem, 4.2vw, 1.08rem);
    font-weight: 500;
    line-height: 1.08;
    text-transform: none;
  }

  .site-subnav a:hover,
  .site-subnav a:focus-visible {
    background: transparent;
    color: var(--club-blue);
  }

  .site-subnav-group {
    gap: 0;
  }

  .site-subnav-group + .site-subnav-group {
    margin-top: 5px;
  }

  .site-subnav-group strong {
    min-height: 28px;
    color: var(--muted);
    font-size: clamp(0.74rem, 3.3vw, 0.88rem);
    font-weight: 650;
    letter-spacing: 0.06em;
  }

  .app-shell {
    --shell-x: 12px;
    width: 100%;
    padding: 0 var(--shell-x) 28px;
    overflow: hidden;
  }

  .home-hero {
    width: calc(100% + (var(--shell-x) * 2));
    max-height: min(260px, 62vw);
    min-height: 0;
    margin-right: calc(var(--shell-x) * -1);
    margin-left: calc(var(--shell-x) * -1);
    aspect-ratio: 4672 / 2044;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background-position: center;
  }

  .home-hero-content {
    padding: 18px;
  }

  .home-kicker {
    margin-bottom: 8px;
    font-size: clamp(0.68rem, 3.1vw, 0.84rem);
    letter-spacing: 0.08em;
  }

  .home-hero h2 {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    line-height: 0.96;
  }

  .home-news-card {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .home-news-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .news-archive-filters,
  .news-admin-filters {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .news-archive-pagination,
  .news-admin-pagination {
    justify-content: center;
  }

  .news-archive-pagination button,
  .news-admin-pagination button {
    min-width: 38px;
    min-height: 36px;
    padding: 0 10px;
  }
}
