:root {
  --ink: #0e1a12;
  --pitch: #1a5c34;
  --pitch-deep: #0f3d22;
  --pitch-line: rgba(255, 255, 255, 0.22);
  --cream: #f2efe6;
  --sand: #e4ddcf;
  --accent: #e8a317;
  --danger: #c0392b;
  --ok: #1f7a45;
  --muted: #5c6b60;
  --card: #ffffff;
  --radius: 10px;
  --font: "DM Sans", sans-serif;
  --display: "Bebas Neue", sans-serif;
  --pitch-ui: "Plus Jakarta Sans", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 0%, #d8e8d4 0%, transparent 50%),
    radial-gradient(ellipse at 90% 10%, #f0e4c4 0%, transparent 40%),
    linear-gradient(180deg, #eef3ea 0%, var(--cream) 40%, var(--sand) 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--pitch); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(14, 26, 18, 0.92);
  color: #f5f2ea;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}
.brand {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.nav { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; font-size: 0.92rem; }
.nav a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.container { width: min(1120px, 94%); margin: 1.5rem auto 3rem; }
.site-footer { text-align: center; padding: 2rem; color: var(--muted); font-size: 0.85rem; }

.hero {
  min-height: calc(100vh - 70px);
  padding: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(14,26,18,0.75) 100%),
    radial-gradient(circle at 70% 40%, rgba(26,92,52,0.45), transparent 55%),
    linear-gradient(135deg, #0f3d22, #1a5c34 45%, #0e1a12);
  color: #f7f3ea;
  margin: -1.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  pointer-events: none;
}
.hero-art {
  position: absolute;
  top: 50%;
  right: 9%;
  transform: translateY(-50%);
  width: min(52%, 560px);
  height: auto;
  max-height: min(62%, 420px);
  object-fit: contain;
  object-position: center right;
  pointer-events: none;
  animation: hero-art-in 1s 0.12s ease-out both;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}
.hero-copy {
  position: absolute;
  inset: 12% 8%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.6rem clamp(1.2rem, 3vw, 2rem);
  padding-right: min(48%, 20rem);
  text-align: left;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.9;
  margin: 0 0 0.4rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  animation: rise 0.8s ease-out both;
}
.hero p {
  max-width: 32rem;
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
  animation: rise 0.9s 0.1s ease-out both;
}
.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  animation: rise 1s 0.2s ease-out both;
}

@keyframes hero-art-in {
  from { opacity: 0; transform: translateY(calc(-50% + 22px)); }
  to { opacity: 1; transform: translateY(-50%); }
}

@media (max-width: 860px) {
  .hero {
    min-height: calc(100svh - 64px);
  }
  .hero-art {
    top: 12%;
    right: 9%;
    left: auto;
    transform: none;
    width: min(78%, 320px);
    max-height: 28vh;
    height: auto;
    animation: rise 0.9s 0.1s ease-out both;
  }
  .hero-copy {
    justify-content: flex-end;
    padding: 1rem 1.1rem 1.2rem;
    padding-right: 1.1rem;
  }
  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.6rem);
  }
  .hero p {
    font-size: 0.98rem;
    max-width: 22rem;
  }
  .hero-actions {
    margin-top: 1rem;
    gap: 0.55rem;
  }
  .hero-actions .btn {
    padding: 0.62rem 0.95rem;
    font-size: 0.92rem;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.05); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }

.section-title {
  font-family: var(--display);
  font-size: 2.2rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.35rem;
}
.muted { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .site-header {
    flex-direction: row;
    align-items: center;
    padding: 0.65rem 0.9rem;
  }
  .brand { font-size: 1.55rem; }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: rgba(14, 26, 18, 0.98);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 14px 24px rgba(0,0,0,0.22);
    transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.25s;
  }
  .nav a {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav a.btn {
    border-radius: 0;
    text-align: left;
  }
  .nav-open .nav {
    max-height: calc(100dvh - 58px);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(14,26,18,0.06);
}

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid #e6e0d4; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

.flash-wrap { width: min(1120px, 94%); margin: 0.8rem auto 0; }
.flash { padding: 0.7rem 1rem; border-radius: 8px; margin-bottom: 0.4rem; }
.flash-success { background: #d8f0e0; }
.flash-danger { background: #f8d7d4; }
.flash-warning { background: #f7e8c4; }
.flash-info { background: #d9e8f5; }

.form-row { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.8rem; }
.form-row label { font-size: 0.85rem; font-weight: 600; }
input, select, textarea {
  padding: 0.55rem 0.7rem;
  border: 1px solid #cfc7b8;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 120px; }

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #eee;
}
.team-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Skor tahmin */
.pred-rules { margin-top: 1rem; }
.pred-table { width: 100%; }
.pred-table td, .pred-table th { vertical-align: middle; }
.pred-table .team-dot { margin-right: 0.15rem; }
.pred-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid #cfc7b8;
  cursor: pointer;
  font-weight: 700;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pred-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pred-pick:hover { border-color: var(--accent); }
.pred-pick:has(input:checked) {
  background: var(--pitch);
  border-color: var(--pitch);
  color: #fff;
}
.pred-pick:has(input:disabled) { cursor: default; opacity: 0.85; }
.pred-pick-outcome { outline: 2px solid var(--accent); outline-offset: 1px; }
.pred-correct { background: rgba(31, 122, 69, 0.08); }
.pred-wrong { background: rgba(192, 57, 43, 0.07); }
.pred-badge {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.25rem;
  vertical-align: middle;
}
.pred-badge-ok { background: #d8f0e0; color: #1f7a45; }
.pred-badge-no { background: #f0e0e0; color: #c0392b; }
.pred-badge-surprise { background: #f7e8c4; color: #8a6d1a; }
.pred-badge-hit { background: var(--accent); color: #1a1a1a; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem; }
.admin-nav a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.2rem;
}
.admin-nav a:hover, .admin-nav a.active { background: var(--ink); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.8rem; }
.stat {
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 1rem;
}
.stat strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--accent); }

/* Lineup pitch */
.lineup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 1.1rem;
  align-items: start;
}
@media (max-width: 960px) {
  .lineup-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 1rem;
}
.toolbar .form-row { margin: 0; min-width: 140px; }

.pitch-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.pitch-toolbar {
  margin: 0;
  padding: 0.85rem 1rem;
}
.pitch-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: end;
  margin-bottom: 0.65rem;
}
.pitch-formation .form-row {
  margin: 0;
  max-width: 220px;
}
.pitch-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.pitch-toolbar--share-only {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.75rem;
}
.pitch-toolbar--share-only .pitch-toolbar-actions {
  justify-content: flex-end;
}
.pitch.is-capturing .ad-layer {
  animation: none !important;
  transition: none !important;
}
.pitch.is-capturing .ad-layer--a {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 2 !important;
}
.pitch.is-capturing .ad-layer--b {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}
/* html2canvas 3D/rotate panoları bozar — paylaşımda gerçek panoları gizle */
.pitch.is-capturing .pitch-ads {
  display: none !important;
}
.pitch-share-ads {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.pitch.is-capturing .pitch-share-ads {
  display: block;
}
.pitch-share-ads__band {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 5.8%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.42);
  box-sizing: border-box;
}
.pitch-share-ads__band--top { top: 1.2%; }
.pitch-share-ads__band--bottom { bottom: 1.2%; }
.pitch-share-ads__band img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pitch.is-capturing .slot-target.is-selected {
  outline: none;
  box-shadow: none;
}
.lineup-help-list {
  margin: 0 0 0.55rem;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.45;
}
.lineup-help-list li {
  margin: 0.15rem 0;
}
@media (pointer: coarse), (max-width: 860px) {
  .lineup-help-list .lineup-help-desk { display: none; }
}

.pitch-wrap {
  position: relative;
  border-radius: 18px;
  padding: 3px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.35), rgba(255,255,255,0.05) 40%, rgba(0,0,0,0.2));
  box-shadow:
    0 24px 48px rgba(14, 26, 18, 0.28),
    0 2px 0 rgba(255,255,255,0.2) inset;
}

.pitch {
  --pitch-grass: #1c7843;
  --pitch-grass-deep: #147038;
  --pitch-mark: rgba(255, 255, 255, 0.38);
  --slot-w: clamp(77px, 15.1vw, 121px);
  --mark-y: 7.2%;
  --mark-x: 10.6%;
  --ad-side-w: 10.2%;
  --ad-side-h: 42.5%;
  --ad-band-h: 6.2%;
  --ad-band-inset: 4.5%;
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  max-height: 820px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  container-type: size;
  container-name: pitch;
  background:
    /* stadyum ışığı */
    radial-gradient(ellipse 72% 48% at 50% 38%, rgba(180, 230, 190, 0.14) 0%, transparent 58%),
    /* kenar derinliği */
    radial-gradient(ellipse 100% 92% at 50% 52%, transparent 42%, rgba(6, 22, 12, 0.38) 100%),
    /* yatay biçim şeritleri */
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.05) 0 5.5%,
      rgba(0, 0, 0, 0.075) 5.5% 11%
    ),
    /* yumuşak yeşil derinlik */
    linear-gradient(
      165deg,
      #1f8248 0%,
      var(--pitch-grass) 38%,
      var(--pitch-grass-deep) 72%,
      #0f5a30 100%
    );
  border: 1px solid rgba(255,255,255,0.18);
}

.pitch-markings {
  position: absolute;
  inset: var(--mark-y) var(--mark-x);
  border: 2px solid var(--pitch-mark);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

/* Stadyum kenar LED reklam panoları (demo) */
.pitch-ads {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.pitch-ad-rail {
  position: absolute;
  display: flex;
  gap: 3px;
}

/*
  Yan panolar: dik cam şerit, logo 90° döndürülmüş.
  Üst yarı saha merkezi ≈ %25, alt yarı saha merkezi ≈ %75.
  Perspektif: stadyum kenar LED panosu gibi (ilk hâle dönüş).

  GERİ DÖNÜŞ (perspektifsiz düz yan pano):
  Aşağıdaki .pitch-ad-rail--side-* kurallarında
    transform: translateY(-50%) perspective(...) rotateY(...);
  satırını şununla değiştir:
    transform: translateY(-50%);
  ve transform-origin satırlarını sil.
*/
.pitch-ad-rail--img.pitch-ad-rail--rotated {
  /* oran ≈ 0.24 */
  width: var(--ad-side-w);
  height: var(--ad-side-h);
  padding: 0.5% 0.4%;
  flex-direction: column;
}
.pitch-ad-rail--side-lt {
  left: 0.2%;
  top: 28%;
  transform: translateY(-50%) perspective(520px) rotateY(38deg);
  transform-origin: left center;
}
.pitch-ad-rail--side-lb {
  left: 0.2%;
  top: 72%;
  transform: translateY(-50%) perspective(520px) rotateY(38deg);
  transform-origin: left center;
}
.pitch-ad-rail--side-rt {
  right: 0.2%;
  left: auto;
  top: 28%;
  transform: translateY(-50%) perspective(520px) rotateY(-38deg);
  transform-origin: right center;
}
.pitch-ad-rail--side-rb {
  right: 0.2%;
  left: auto;
  top: 72%;
  transform: translateY(-50%) perspective(520px) rotateY(-38deg);
  transform-origin: right center;
}
.pitch-ad-rail--rotated .pitch-ad-slot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  container-type: size;
}
.pitch-ad-rail--rotated .pitch-ad-slot .ad-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Döndürmeden önce: genişlik = slot yüksekliği, yükseklik = slot genişliği */
  width: 100cqh;
  height: 100cqw;
  max-width: none;
  transform-origin: center center;
  display: block;
}
.pitch-ad-rail--rotated .pitch-ad-slot .ad-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.pitch-ad-rail--side-lt .pitch-ad-slot .ad-layer,
.pitch-ad-rail--side-lb .pitch-ad-slot .ad-layer {
  transform: translate(-50%, -50%) rotate(-90deg);
}
.pitch-ad-rail--side-rt .pitch-ad-slot .ad-layer,
.pitch-ad-rail--side-rb .pitch-ad-slot .ad-layer {
  transform: translate(-50%, -50%) rotate(90deg);
}

.pitch-ad-rail--topband {
  left: 50%;
  transform: translateX(-50%) perspective(520px) rotateX(-32deg);
  transform-origin: center top;
  /* logo 1920×330 ≈ 5.82 — cam yatayda taşmasın */
  width: calc(var(--ad-band-h) * 5.7);
  top: 0.35%;
  height: var(--ad-band-h);
  flex-direction: row;
}
.pitch-ad-rail--bottom {
  left: 50%;
  transform: translateX(-50%) perspective(520px) rotateX(32deg);
  transform-origin: center bottom;
  width: calc(var(--ad-band-h) * 5.7);
  bottom: 0.35%;
  height: var(--ad-band-h);
  flex-direction: row;
}

/* Üst/alt bant: logo cam kutuyu doldursun */
.pitch-ad-rail--swap {
  position: absolute;
}
.pitch-ad-rail--topband.pitch-ad-rail--img,
.pitch-ad-rail--bottom.pitch-ad-rail--img {
  padding: 1px 2px;
}
.pitch-ad-rail--swap .ad-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  display: block;
}
.pitch-ad-rail--swap .ad-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  transform: none;
  transform-origin: center center;
}

/*
  LED pano geçişi: her 10 sn'de bir, 1.5 sn crossfade.
  Döngü 20 sn = 8.5s bekle + 1.5s geçiş + 8.5s bekle + 1.5s geçiş.
  Görünür katman tıklanabilir.
*/
.ad-layer {
  pointer-events: none;
  cursor: pointer;
}
.ad-layer--a {
  animation: pitch-ad-fade-a 20s ease-in-out infinite;
}
.ad-layer--b {
  animation: pitch-ad-fade-b 20s ease-in-out infinite;
}
@keyframes pitch-ad-fade-a {
  0%, 42.5% { opacity: 1; pointer-events: auto; z-index: 2; }
  50%, 92.5% { opacity: 0; pointer-events: none; z-index: 1; }
  100% { opacity: 1; pointer-events: auto; z-index: 2; }
}
@keyframes pitch-ad-fade-b {
  0%, 42.5% { opacity: 0; pointer-events: none; z-index: 1; }
  50%, 92.5% { opacity: 1; pointer-events: auto; z-index: 2; }
  100% { opacity: 0; pointer-events: none; z-index: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ad-layer--a,
  .ad-layer--b {
    animation: none;
  }
  .ad-layer--a { opacity: 1; pointer-events: auto; z-index: 2; }
  .ad-layer--b { opacity: 0; pointer-events: none; z-index: 1; }
}

/* PNG reklam panosu: okunabilir cam zemin */
.pitch-ad-rail--img {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5%;
  padding: 0.2% 1%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(4px);
  box-shadow: none;
}
.pitch-ad-rail--img > img {
  width: 49%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 1;
  filter: none;
}
.pitch-halfway {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--pitch-mark);
  transform: translateY(-50%);
}
.pitch-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(28%, 120px);
  aspect-ratio: 1;
  border: 2px solid var(--pitch-mark);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pitch-spot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pitch-mark);
  transform: translate(-50%, -50%);
}
.pitch-box {
  position: absolute;
  left: 50%;
  width: 56%;
  height: 16%;
  border: 2px solid var(--pitch-mark);
  transform: translateX(-50%);
}
.pitch-box--own {
  bottom: 0;
  border-bottom: none;
}
.pitch-box--opp {
  top: 0;
  border-top: none;
}
.pitch-six {
  position: absolute;
  left: 50%;
  width: 28%;
  height: 7%;
  border: 2px solid var(--pitch-mark);
  transform: translateX(-50%);
}
.pitch-six--own {
  bottom: 0;
  border-bottom: none;
}
.pitch-six--opp {
  top: 0;
  border-top: none;
}

.slot {
  position: absolute;
  width: var(--slot-w, clamp(77px, 15.1vw, 121px));
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  touch-action: manipulation;
  transform-style: preserve-3d;
}
/* FL/FR: DL/DR ile aynı x (kenar taşmasını önle) */
.slot:has(.slot-target[data-position="FL"]) { left: 20% !important; }
.slot:has(.slot-target[data-position="FR"]) { left: 80% !important; }

.slot-target {
  min-height: calc(var(--slot-w, 80px) * 0.82);
  border: 1.5px dashed rgba(255,255,255,0.4);
  border-radius: 16px;
  background: rgba(8, 22, 14, 0.2);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--pitch-ui);
  font-size: 0.72rem;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: default;
  /* perspective() transform içinde olmalı — parent translate ezmesin */
  transform: perspective(340px) rotateX(20deg);
  transform-origin: center bottom;
  transform-style: preserve-3d;
}
.slot-target:not(.filled) .slot-pos {
  font-family: var(--pitch-ui);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.slot-target.drag-over {
  background: rgba(232, 163, 23, 0.42);
  border-color: var(--accent);
  border-style: solid;
  transform: perspective(340px) rotateX(20deg) scale(1.06);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.25);
}
.slot-target.is-selected {
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
  z-index: 4;
}
.slot-target.filled.is-selected .slot-chip {
  transform: perspective(340px) translateY(-2px) scale(1.04) rotateX(20deg);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.55) inset,
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 0 0 3px #fbbf24;
}
.slot-target.filled {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  min-height: 0;
  cursor: grab;
  transform: none;
}
/* Sahaya düşen gölge — perspektifli kartın altına */
.slot-target.filled::after {
  content: "";
  position: absolute;
  left: 4%;
  width: 92%;
  top: 100%;
  height: 42%;
  min-height: 28px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.4) 32%,
    rgba(0, 0, 0, 0.14) 62%,
    transparent 100%
  );
  border-radius: 0 0 50% 50% / 0 0 40% 40%;
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
  transform: none;
  transition: height 0.15s, opacity 0.15s;
}
.slot-target.filled:hover::after,
.slot-target.filled.is-selected::after {
  height: 52%;
  opacity: 0.85;
}
.slot-target.filled:active { cursor: grabbing; }

.slot-chip {
  --team: #1f7a45;
  --team2: #1f7a45;
  font-family: var(--pitch-ui);
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  color: #0c1210;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.55) inset,
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 3px 8px rgba(0, 0, 0, 0.16);
  text-align: left;
  transition: transform 0.15s, box-shadow 0.15s;
  transform: perspective(340px) rotateX(20deg);
  transform-origin: center bottom;
}
.slot-target.filled:hover .slot-chip {
  transform: perspective(340px) translateY(-3px) scale(1.03) rotateX(16deg);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.55) inset,
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 4px 10px rgba(0, 0, 0, 0.18);
}
.slot-chip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.32rem 0.4rem;
  background: linear-gradient(
    105deg,
    var(--team) 0%,
    var(--team) 46%,
    var(--team2) 54%,
    var(--team2) 100%
  );
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.slot-chip-pos {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.98;
}
.slot-chip-score {
  flex-shrink: 0;
  min-width: 1.4rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 999px;
  padding: 0.14rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}
.slot-chip-score.penalized {
  background: #fff;
  color: #9a3412;
}
.slot-chip-body {
  padding: 0.38rem 0.45rem 0.42rem;
  background: #fff;
}
.slot-chip-name {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0c1210;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-chip-team {
  display: inline-block;
  margin-top: 0.18rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--team) 0%,
    var(--team) 50%,
    var(--team2) 50%,
    var(--team2) 100%
  );
}
.slot-locked .slot-chip {
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.32),
    0 0 0 2px #e11d48;
}
.slot-locked .slot-chip-score {
  background: #e11d48;
  color: #fff;
}

/* legacy empty-slot label */
.slot-pos { opacity: 0.8; letter-spacing: 0.04em; }
.slot-name { font-size: 0.7rem; line-height: 1.15; margin-top: 0.15rem; }
.slot-score {
  display: inline-block;
  margin-top: 0.2rem;
  background: var(--accent);
  color: var(--ink);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
}
.slot-score.penalized { background: #f0c14b; }
.slot-locked { outline: none; }

.pool-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

/* —— Lineup mobil uyumluluk —— */
@media (max-width: 960px) {
  .lineup-layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .container { width: min(1120px, 96%); margin: 1rem auto 2rem; }
  .pool-col {
    max-height: none;
  }
  .pool-panel {
    overflow: visible;
  }
  .pool-list {
    max-height: none !important;
    min-height: 0;
    overflow: visible !important;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: auto;
    touch-action: auto;
  }
  .pool-panel .player-card {
    touch-action: manipulation;
  }
  .pitch-wrap {
    border-radius: 14px;
    padding: 2px;
  }
}

@media (max-width: 720px) {
  .pitch {
    --slot-w: clamp(58px, 13.3vw, 83px);
    /* Üst/alt saha dışı şerit + bant; yan panolara dokunulmadı */
    --mark-y: 14.4%;
    --mark-x: 9.2%;
    --ad-side-w: 8.4%;
    --ad-side-h: 35%;
    --ad-band-h: 12.6%;
    --ad-band-inset: 3.5%;
    border-radius: 12px;
    max-height: min(78dvh, 680px);
  }
  /* Forvet hattını biraz geri çek (üst taşma / reklam şeridi) */
  .slot:has(.slot-target[data-position="FL"]),
  .slot:has(.slot-target[data-position="FR"]),
  .slot:has(.slot-target[data-position="FC"]) {
    transform: translate(-50%, calc(-50% + 5cqh));
  }
  .slot:has(.slot-target[data-position="GK"]) {
    transform: translate(-50%, calc(-50% - 3.5cqh));
  }
  .pitch-ad-rail--img {
    border-radius: 4px;
    padding: 0.12% 0.35%;
  }
  .pitch-ad-rail--topband {
    width: calc(var(--ad-band-h) * 5.7);
    top: 0.45%;
    transform: translateX(-50%) perspective(480px) rotateX(-32deg);
    transform-origin: center top;
  }
  .pitch-ad-rail--bottom {
    width: calc(var(--ad-band-h) * 5.7);
    bottom: 0.45%;
    transform: translateX(-50%) perspective(480px) rotateX(32deg);
    transform-origin: center bottom;
  }
  .pitch-ad-rail--topband.pitch-ad-rail--img,
  .pitch-ad-rail--bottom.pitch-ad-rail--img {
    padding: 1px 2px;
  }
  .pitch-ad-rail--swap .ad-layer {
    width: 100%;
    height: 100%;
  }
  .pitch-ad-rail--swap .ad-layer img {
    transform: none;
  }
  .slot-target {
    border-radius: 12px;
  }
  .slot-target:not(.filled) .slot-pos {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }
  .slot-chip {
    border-radius: 10px;
  }
  .slot-chip-head {
    padding: 0.16rem 0.25rem;
  }
  .slot-chip-pos {
    font-size: 0.58rem;
  }
  .slot-chip-score {
    min-width: 1.2rem;
    font-size: 0.58rem;
    padding: 0.1rem 0.25rem;
  }
  .slot-chip-body {
    padding: 0.22rem 0.26rem 0.25rem;
  }
  .slot-chip-name {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    white-space: nowrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .slot-chip-team {
    font-size: 0.5rem;
    margin-top: 0.1rem;
    padding: 0.08rem 0.28rem;
  }
  .toolbar {
    gap: 0.45rem;
  }
  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
}

@media (max-width: 480px) {
  .pitch {
    --slot-w: clamp(48px, 13.9vw, 63px);
    --mark-y: 13.1%;
    --mark-x: 8%;
    --ad-side-w: 7%;
    --ad-side-h: 30%;
    --ad-band-h: 11.7%;
    --ad-band-inset: 2.8%;
    max-height: min(72dvh, 560px);
    border-radius: 10px;
  }
  .pitch-ad-rail--topband {
    width: calc(var(--ad-band-h) * 5.7);
    transform: translateX(-50%) perspective(420px) rotateX(-30deg);
    transform-origin: center top;
  }
  .pitch-ad-rail--bottom {
    width: calc(var(--ad-band-h) * 5.7);
    transform: translateX(-50%) perspective(420px) rotateX(30deg);
    transform-origin: center bottom;
  }
  .pitch-markings {
    border-width: 1.5px;
  }
  .pitch-box,
  .pitch-six,
  .pitch-circle {
    border-width: 1.5px;
  }
  .slot-chip-team {
    display: none;
  }
  .slot-chip-name {
    font-size: 0.55rem;
    white-space: nowrap;
    display: block;
  }
  .slot-target:not(.filled) .slot-pos {
    font-size: 0.68rem;
  }
  .pool-filters select,
  .pool-filters input {
    font-size: 0.85rem;
    max-width: 100%;
  }
  .pool-head {
    flex-wrap: wrap;
  }
  .pool-head h2 {
    font-size: 1.05rem;
  }
}

@media (max-width: 360px) {
  .pitch {
    --slot-w: clamp(46px, 13.3vw, 56px);
    --ad-side-w: 6.2%;
    --ad-side-h: 28%;
    --mark-x: 7.2%;
  }
  .slot-chip-head {
    padding: 0.12rem 0.22rem;
  }
  .slot-chip-body {
    padding: 0.2rem 0.24rem 0.22rem;
  }
  .slot-chip-score {
    display: none;
  }
}

.pool-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  flex: 1 1 auto;
  padding: 0;
  overflow: hidden;
}
.pool-controls {
  flex: 0 0 auto;
  margin: 0;
  padding: 1.1rem 1.2rem 0.9rem;
}
.pool-list {
  flex: 1 1 auto;
  min-height: 180px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  margin: 0;
  padding: 0.85rem 1.2rem 1.1rem;
  border-top: 1px solid #e6e0d4;
}
.pool-section {
  margin-bottom: 0.55rem;
}
.pool-section:last-child {
  margin-bottom: 0;
}
.pool-section-body {
  margin-top: 0.35rem;
}
.pool-section.is-collapsed .pool-section-body {
  display: none;
}
.pool-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink, #1a1f1c);
  background: rgba(26, 31, 28, 0.06);
  border: none;
  border-left: 3px solid var(--accent, #c9a227);
  border-radius: 6px;
  cursor: pointer;
  touch-action: manipulation;
  font-family: inherit;
}
.pool-category::before {
  content: "▾";
  margin-right: 0.15rem;
  font-size: 0.7rem;
  opacity: 0.7;
}
.pool-section.is-collapsed .pool-category::before {
  content: "▸";
}
.pool-category:hover {
  background: rgba(26, 31, 28, 0.1);
}
.pool-category-label {
  flex: 1;
}
.pool-category-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}
.pool-category:first-child {
  margin-top: 0.15rem;
}
.pool-subhead {
  margin: 0.5rem 0 0.3rem;
  padding: 0 0.15rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
  border-bottom: 1px solid rgba(26, 31, 28, 0.12);
  padding-bottom: 0.2rem;
}
.pool-subhead:first-child {
  margin-top: 0.2rem;
}

/* Kaydırırken ortadaki mevki göstergesi */
.pool-pos-hud {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.7rem 1.15rem;
  border-radius: 14px;
  background: rgba(14, 26, 18, 0.42);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-align: center;
  min-width: 5.5rem;
}
.pool-pos-hud.is-visible {
  opacity: 1;
  visibility: visible;
  animation: pool-pos-pulse 2.2s ease-in-out infinite;
}
.pool-pos-hud-code {
  font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.pool-pos-hud-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
@keyframes pool-pos-pulse {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 0.78; }
}
@media (prefers-reduced-motion: reduce) {
  .pool-pos-hud.is-visible {
    animation: none;
    opacity: 0.65;
  }
}
@media (min-width: 961px) {
  .pool-pos-hud {
    /* Masaüstü: JS ile oyuncu listesi ortasına hizalanır */
    padding: 0.5rem 0.9rem;
  }
  .pool-pos-hud-code {
    font-size: 1.25rem;
  }
}
.pool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.pool-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.pool-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.55rem; align-items: center; }
.pool-pos-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0;
  font-size: 0.82rem;
}
.pool-pos-groups label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  user-select: none;
}
.player-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #f7f4ec;
  border: 1px solid #e4ddd0;
  margin-bottom: 0.45rem;
  cursor: pointer;
  touch-action: pan-y;
  transition: transform 0.12s, box-shadow 0.12s;
}
.player-card:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.08); }
.player-card.locked { opacity: 0.55; cursor: not-allowed; }
.player-card.in-squad { opacity: 0.55; cursor: pointer; }
.player-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
}
.player-card strong { font-size: 0.9rem; }
.pool-team-badge {
  display: inline-block;
  padding: 0.12rem 0.42rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--team) 0%,
    var(--team) 50%,
    var(--team2) 50%,
    var(--team2) 100%
  );
  vertical-align: middle;
}
.player-meta { font-size: 0.75rem; color: var(--muted); }
.player-stats { font-size: 0.72rem; font-weight: 700; }

.toast {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  z-index: 100;
  max-width: 320px;
  animation: rise 0.25s ease-out;
}
.toast.error { background: var(--danger); }
.toast.warn { background: #8a6d1d; }
.club-limit-hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.pitch-toolbar .club-limit-hint {
  margin-top: 0.15rem;
}
.club-limit-hint.is-warn {
  color: #8a6d1d;
}
.club-limit-hint.is-over {
  color: #b42318;
  font-weight: 600;
}

.checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.9rem;
}
.checkboxes label {
  font-size: 0.85rem;
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}
.checkboxes .pos {
  color: var(--muted, #6b7280);
  font-size: 0.78rem;
  white-space: nowrap;
}

/* ---- Maç sonucu (admin) ---- */
.match-admin { padding-bottom: 4.5rem; }
.match-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  background: #f7f4ec;
  border-radius: 10px;
}
.match-score-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.match-score-box input[type="number"] {
  width: 4.2rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  padding: 0.35rem 0.4rem;
}
.match-score-box label { font-weight: 700; letter-spacing: 0.02em; }
.match-score-sep { font-size: 1.4rem; font-weight: 700; color: var(--muted); }
.team-tag {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.match-squads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 960px) {
  .match-squads { grid-template-columns: 1fr; }
}
.squad-panel {
  border: 1px solid #e4ddd0;
  border-radius: 10px;
  padding: 0.75rem 0.85rem 0.9rem;
  background: #fff;
}
.squad-panel.muted-panel { background: #f7f4ec; }
.squad-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.squad-head h3 { margin: 0; font-size: 1rem; }
.squad-counts strong.ok { color: #1f7a3f; }
.squad-counts strong.warn { color: #b42318; }
.squad-filter {
  width: 100%;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  font-size: 0.9rem;
}
.squad-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.squad-table th, .squad-table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid #eee8dc;
  text-align: left;
  vertical-align: middle;
}
.squad-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.squad-table .col-check { width: 3.4rem; text-align: center; }
.squad-table td.col-check { text-align: center; }
.squad-table .name { font-weight: 600; }
.squad-table tr.is-xi { background: #eaf5ea; }
.squad-table tr.is-sub { background: #f5f0e2; }
.squad-table input[type="checkbox"] { width: 1.05rem; height: 1.05rem; cursor: pointer; }

.pos-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: #1c2b22;
  color: #f4f0e6;
}
.pos-sec {
  margin-left: 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.goals-panel {
  margin-top: 1.25rem;
  border: 1px solid #e4ddd0;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}
.goals-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.goals-table th, .goals-table td {
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid #eee8dc;
  text-align: left;
}
.goals-table input[type="number"] { width: 4rem; }
.goals-empty { margin: 0.4rem 0 0; }

.match-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding: 0.75rem 0.85rem;
  background: rgba(247, 244, 236, 0.96);
  border: 1px solid #e4ddd0;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.match-actions-right { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.rescore-form { margin-top: 0.65rem; }
