/* =========================================================
   Batman Tenis Ligi — arayüz
   Renk dili: sert kort yeşili + optik sarı top + kil turuncusu
   ========================================================= */
:root {
  --court: #0e4434;
  --court-2: #145a45;
  --court-3: #1d7358;
  --ball: #d4ee2a;
  --ball-ink: #23300a;
  --clay: #c4572f;
  --ink: #15201b;
  --ink-2: #33433c;
  --muted: #66766f;
  --line: #dfe6e2;
  --line-2: #eef2ef;
  --bg: #f3f5f1;
  --card: #ffffff;
  --win: #127a4d;
  --lose: #9aa6a0;
  --danger: #b4322a;
  --warn-bg: #fff6dc;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(14, 68, 52, .06), 0 6px 20px -12px rgba(14, 68, 52, .25);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--court-3); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--court); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
code { background: var(--line-2); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.inline { display: inline; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }

/* ---------- Üst bar ---------- */
.topbar { background: var(--court); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 0 var(--ball); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--display); font-size: 1.5rem; letter-spacing: .06em; }
.brand-text small { font-size: .78rem; opacity: .75; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a, .mainnav .linklike {
  color: rgba(255,255,255,.85); text-decoration: none; padding: 8px 12px; border-radius: 8px;
  font-weight: 600; font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer;
}
.mainnav a:hover, .mainnav .linklike:hover { background: rgba(255,255,255,.08); color: #fff; }
.mainnav a.active { color: var(--ball-ink); background: var(--ball); }
.mainnav .nav-admin { border: 1px solid rgba(255,255,255,.25); }
.mainnav .nav-admin.on { border-color: var(--ball); }
.nav-sep { width: 1px; height: 22px; background: rgba(255,255,255,.2); margin: 0 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .mainnav {
    display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--court);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; border-bottom: 2px solid var(--ball);
  }
  .mainnav.open { display: flex; }
  .mainnav a, .mainnav .linklike { padding: 12px; text-align: left; width: 100%; }
  .nav-sep { width: 100%; height: 1px; margin: 6px 0; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #fff; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.footer-inner span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff; margin-bottom: 32px;
  background: linear-gradient(135deg, var(--court) 0%, var(--court-2) 60%, var(--court-3) 100%);
  display: grid; grid-template-columns: 1.3fr 1fr; min-height: 300px;
}
.hero-text { padding: clamp(28px, 5vw, 56px); position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 34ch; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.eyebrow.light { color: var(--ball); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-court { position: relative; }
.hero-court::before {
  content: ''; position: absolute; inset: 28px 28px 28px 0; border: 3px solid rgba(255,255,255,.55);
  background:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) center / 3px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) center 22% / 100% 3px no-repeat,
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) center 78% / 100% 3px no-repeat;
  transform: perspective(600px) rotateX(38deg) rotateZ(-8deg); transform-origin: center;
}
.hero-court span {
  position: absolute; width: 54px; height: 54px; border-radius: 50%; right: 22%; top: 30%;
  background: radial-gradient(circle at 35% 30%, #f0ff7a, var(--ball) 55%, #a9c216);
  box-shadow: 0 18px 30px -8px rgba(0,0,0,.45);
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero-court { display: none; }
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--court-3); color: var(--court); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--court); border-color: var(--court); color: #fff; }
.btn-primary:hover { background: var(--court-2); color: #fff; }
.btn-ball { background: var(--ball); border-color: var(--ball); color: var(--ball-ink); }
.btn-ball:hover { background: #e2f75a; color: var(--ball-ink); border-color: #e2f75a; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #962820; color: #fff; border-color: #962820; }
.btn-ghost-danger { color: var(--danger); border-color: transparent; background: transparent; }
.btn-ghost-danger:hover { background: #fbeceb; color: var(--danger); border-color: #f2c9c6; }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: .88rem; }
.btn-xs { padding: 4px 10px; font-size: .8rem; border-radius: 7px; }
.btn .count { background: var(--ball); color: var(--ball-ink); border-radius: 99px; padding: 0 8px; font-size: .8rem; }
.icon-btn { border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { color: var(--danger); background: #fbeceb; }
.linklike { cursor: pointer; }

/* ---------- Kartlar / düzen ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; border: 1px solid var(--line-2); }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .legend { padding: 0 18px 16px; }
.card.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.card.narrow-lg { max-width: 760px; margin-left: auto; margin-right: auto; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-wide-left { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 860px) { .grid-2, .grid-wide-left { grid-template-columns: 1fr; } }
.section { margin-bottom: 30px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; border-bottom: 2px solid var(--court); }
.section-head h2 { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; margin-bottom: 18px; }
.page-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-head h1 small { font-size: .55em; font-weight: 500; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.subnav a { padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.subnav a:hover { border-color: var(--court-3); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; border: 2px dashed var(--line); border-radius: var(--radius-sm); background: #fafbf9; }
.empty p { margin-bottom: 10px; }
.empty p:last-child { margin: 0; }

/* ---------- Uyarılar ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; font-weight: 500; }
.alert-success { background: #e7f6ee; border-color: #b7e2cb; color: #0d5a37; }
.alert-error { background: #fdecea; border-color: #f3c3be; color: #8d241d; }
.alert-warn { background: var(--warn-bg); border-color: #f0dc9a; color: #6b5308; }
.alert-info { background: #eaf3fb; border-color: #c4dbef; color: #1d4d77; }

/* ---------- Rozetler ---------- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; font-family: var(--font); vertical-align: middle; }
.st-scheduled { background: #e8eef9; color: #2c4a80; }
.st-postponed { background: var(--warn-bg); color: #7a5c00; }
.st-completed { background: #e3f4ea; color: #0f6a40; }
.st-walkover { background: #f8e6df; color: #93391a; }
.st-pending { background: var(--line-2); color: var(--muted); }
.st-bye { background: var(--line-2); color: var(--muted); }
.state-muted { background: var(--line-2); color: var(--muted); }
.state-live { background: #fff1c2; color: #6d5300; }
.state-done { background: var(--ball); color: var(--ball-ink); }
.tag { display: inline-block; font: 600 .72rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; vertical-align: middle; }
.tag-league { background: #e1efe9; color: var(--court-2); }
.tag-cup { background: #f8e6df; color: var(--clay); }

/* ---------- Formlar ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label, .form-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-items: end; }
.form-grid .full { grid-column: 1 / -1; }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #cfd9d4; border-radius: 9px;
  padding: 10px 12px; width: 100%; min-height: 42px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible {
  outline: 3px solid rgba(212, 238, 42, .7); outline-offset: 1px; border-color: var(--court-3);
}
label.check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 500 !important; cursor: pointer; }
label.check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--court); flex: none; }
label.check.danger { color: var(--danger) !important; }
.form-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-inline input { width: auto; flex: 1 1 180px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.push-right { margin-left: auto; }
.hint { font-size: .87rem; color: var(--muted); margin: 0; font-weight: 400; }
.search { max-width: 260px; min-height: 38px; padding: 7px 12px; }
.checklist { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.checklist label.check { padding: 7px 0; }
.seed-in { width: 70px; min-height: 34px; padding: 4px 8px; text-align: center; }
.gen-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; margin-bottom: 18px; background: #fafbf9; }
.gen-box summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--court-2); }
.gen-box[open] { padding-bottom: 16px; }
.gen-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 16px; background: #fafbf9; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 18px; }
.danger-zone { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font: 600 .78rem/1.2 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table th.center { text-align: center; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover { background: #f8faf7; }
.table.compact td { padding: 7px 10px; }
.table tr.editing td { background: #fbfdf3; }

.standings { font-variant-numeric: tabular-nums; }
.standings th { background: var(--court); color: rgba(255,255,255,.85); border-bottom: 0; }
.standings th.pts { color: var(--ball); }
.standings td { padding: 12px; }
.standings .rank span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; background: var(--line-2); color: var(--ink-2); }
.standings tr.top1 .rank span { background: var(--ball); color: var(--ball-ink); }
.standings tr.top2 .rank span, .standings tr.top3 .rank span { background: #e1efe9; color: var(--court-2); }
.standings .pname { font-weight: 600; white-space: nowrap; }
.standings td.pts { font-size: 1.15rem; font-family: var(--display); background: #f6faea; }
.standings .diff { font-weight: 600; }
.diff.pos { color: var(--win); }
.diff.neg { color: var(--danger); }
span.form { display: inline-flex; gap: 3px; flex-direction: row; }
span.form i { font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: .7rem; font-weight: 700; color: #fff; }
span.form .f-w { background: var(--win); }
span.form .f-l { background: #c9d2cd; color: var(--ink-2); }
.legend { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .standings td, .standings th { padding: 9px 6px; }
}

/* ---------- Sekmeler / hafta seçici ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 12px 18px; text-decoration: none; color: var(--muted); font-weight: 700; font-family: var(--display); font-size: 1.1rem; letter-spacing: .03em; text-transform: uppercase; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a:hover { color: var(--court); }
.tabs a.active { color: var(--court); border-bottom-color: var(--ball); }
.week-pills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; margin-bottom: 8px; scrollbar-width: thin; }
.pill { flex: none; padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.pill:hover { border-color: var(--court-3); color: var(--court); }
.pill.done { background: #eef6f1; }
.pill.done::before { content: '✓ '; color: var(--win); }
.pill.active { background: var(--court); border-color: var(--court); color: #fff; }
.pill.active.done::before { color: var(--ball); }
.pager { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- Maç satırları ---------- */
.match-list { display: flex; flex-direction: column; gap: 8px; }
.match-row {
  display: grid; grid-template-columns: 110px 1fr auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.match-row.played { background: #fbfcfa; }
.mr-date { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.mr-p { font-weight: 600; }
.mr-p1 { text-align: right; }
.mr-p.win { color: var(--ink); }
.mr-p.win::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 2px var(--court-3); margin-left: 8px; vertical-align: middle; }
.mr-p1.win::after { margin: 0 8px 0 0; float: none; }
.mr-p1.win { display: flex; justify-content: flex-end; align-items: center; flex-direction: row-reverse; gap: 8px; }
.mr-p1.win::after { margin: 0; }
.mr-p.lose { color: var(--lose); font-weight: 500; }
.mr-score { font-family: var(--display); font-size: 1.15rem; font-weight: 700; text-align: center; min-width: 110px; font-variant-numeric: tabular-nums; color: var(--court); }
.mr-score .vs { color: var(--muted); font-weight: 500; font-size: .95rem; text-transform: uppercase; }
.mr-score .wo { color: var(--clay); }
.mr-status { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.match-admin { display: flex; align-items: center; gap: 6px; }
.match-admin .match-row { flex: 1; }
.bye-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.bye-note::before { content: '◷ '; }
.round-h { margin: 18px 0 10px; color: var(--court-2); text-transform: uppercase; letter-spacing: .05em; }
.round-h:first-of-type { margin-top: 0; }
@media (max-width: 720px) {
  .match-row { grid-template-columns: 1fr auto; grid-template-areas: "date status" "p1 p1" "score score" "p2 p2"; gap: 4px 10px; }
  .mr-date { grid-area: date; }
  .mr-status { grid-area: status; }
  .mr-p1 { grid-area: p1; text-align: left; }
  .mr-p1.win { justify-content: flex-start; flex-direction: row; }
  .mr-p2 { grid-area: p2; }
  .mr-score { grid-area: score; text-align: left; min-width: 0; font-size: 1.05rem; }
}

/* ---------- Kart ızgarası ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.league-card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 1px solid var(--line-2);
  border-top: 4px solid var(--court-3); transition: transform .15s, box-shadow .15s;
}
.league-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(14,68,52,.4); color: var(--ink); }
.cup-card { border-top-color: var(--clay); }
.lc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lc-top h3 { font-size: 1.45rem; margin: 0; }
.lc-leader { margin: 4px 0 0; font-size: .95rem; }
.lc-cta { margin-top: auto; padding-top: 10px; color: var(--court-3); font-weight: 700; font-size: .9rem; }
.progress { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--court-3), var(--ball)); border-radius: 99px; }

.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini { display: grid; grid-template-columns: minmax(90px, auto) 1fr; grid-template-areas: "date match" "date ctx"; column-gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.mini:hover { border-color: var(--court-3); color: var(--ink); }
.mini-date { grid-area: date; align-self: center; font-weight: 700; font-size: .85rem; color: var(--court-2); }
.mini-date.score { font-family: var(--display); font-size: 1rem; white-space: nowrap; }
.mini-match { grid-area: match; font-weight: 500; }
.mini-match em { color: var(--muted); font-style: normal; font-size: .85em; }
.mini-ctx { grid-area: ctx; font-size: .82rem; color: var(--muted); }

/* ---------- Oyuncular ---------- */
.roster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.roster li { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line-2); gap: 8px; }
.roster li span { display: inline-flex; align-items: center; gap: 8px; }
.roster.public li.out > span:first-child { color: var(--lose); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.2); }
.player-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.player-grid li { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.player-grid li > span:last-child { display: flex; flex-direction: column; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--court); color: var(--ball); font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.seed { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 5px; background: var(--court); color: var(--ball); font-size: .72rem; font-weight: 700; flex: none; }

/* ---------- Panel ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--court); color: rgba(255,255,255,.8); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; font-weight: 600; display: flex; flex-direction: column; }
.stat span { font-family: var(--display); font-size: 2.3rem; font-weight: 700; color: var(--ball); line-height: 1.1; }
a.stat:hover { background: var(--court-2); color: #fff; }
.quick, .rules { margin: 0; padding-left: 20px; }
.quick li, .rules li { padding: 4px 0; }
.login-card { margin-top: 6vh; }

/* ---------- Maç formu ---------- */
.match-title { font-size: clamp(1.5rem, 4vw, 2rem); }
.score-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0; }
.score-box legend { font-weight: 700; padding: 0 6px; color: var(--court-2); }
.score-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.score-table th { font-size: .8rem; color: var(--muted); font-weight: 600; padding: 6px; text-align: center; }
.score-table th[scope=row] { text-align: left; color: var(--ink); font-size: .95rem; padding-right: 12px; }
.score-table td { padding: 6px; }
.score-in { text-align: center; font-family: var(--display); font-size: 1.3rem; font-weight: 700; max-width: 90px; margin: 0 auto; display: block; }
@media (max-width: 520px) {
  .score-table th[scope=row] { font-size: .85rem; max-width: 90px; }
  .score-in { font-size: 1.1rem; padding: 8px 4px; }
}

/* ---------- Turnuva ağacı (bracket) ---------- */
.bracket-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; margin: 0 -6px; }
.bracket { display: flex; min-width: min-content; padding: 0 6px; justify-content: flex-start; }
.b-round { display: flex; flex-direction: column; flex: 1 0 196px; max-width: 260px; padding: 0 20px; }
.b-round:first-child { padding-left: 0; }
.b-round:last-child { padding-right: 0; flex: 0 0 170px; }
.b-round-title { font: 700 .82rem/1 var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: center; padding: 8px 0 12px; height: 34px; }
.b-round.is-final .b-round-title { color: var(--clay); }
.b-round-body { flex: 1; display: flex; flex-direction: column; }
.b-cell { flex: 1; display: flex; align-items: center; position: relative; padding: 8px 0; }
.b-cell > * { width: 100%; }
/* çıkış çizgisi */
.b-round:not(:last-child) .b-cell::after { content: ''; position: absolute; right: -20px; top: 50%; width: 20px; border-top: 2px solid #b9c7c0; }
/* çiftleri birleştiren dikey çizgi */
.b-round:not(:last-child):not(.is-final) .b-cell:nth-child(odd)::before { content: ''; position: absolute; right: -20px; top: 50%; height: 50%; border-right: 2px solid #b9c7c0; }
.b-round:not(:last-child):not(.is-final) .b-cell:nth-child(even)::before { content: ''; position: absolute; right: -20px; top: 0; height: 50%; border-right: 2px solid #b9c7c0; }
/* giriş çizgisi */
.b-round:not(:first-child) .b-cell > .bm::before,
.b-round:not(:first-child) .b-cell > .champion-box::before { content: ''; position: absolute; left: -20px; top: 50%; width: 20px; border-top: 2px solid #b9c7c0; }
.bm, .champion-box { position: relative; }

.bm { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.04); overflow: hidden; font-size: .9rem; }
.bm.st-completed, .bm.st-walkover { border-color: #c8ddd2; }
.bm.st-scheduled { border-color: #c9d6ec; }
.bm.st-postponed { border-color: #ecd9a0; }
.bm.st-bye, .bm.st-pending { background: #fafbf9; }
.bm-meta { display: flex; justify-content: space-between; gap: 6px; padding: 4px 10px; font-size: .72rem; color: var(--muted); background: var(--line-2); font-weight: 600; }
.bm-edit { font-weight: 700; text-decoration: none; }
.bm-row { display: flex; align-items: center; gap: 6px; padding: 7px 10px; min-height: 34px; }
.bm-row + .bm-row { border-top: 1px solid var(--line-2); }
.bm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bm-name.tbd { color: #a6b1ac; font-style: italic; font-weight: 400; }
.bm-row.win { background: #f4fae0; }
.bm-row.win .bm-name { font-weight: 700; color: var(--ink); }
.bm-row.lose .bm-name { color: var(--lose); }
.bm-scores { display: flex; gap: 2px; }
.bs { display: inline-grid; place-items: center; min-width: 20px; height: 22px; font: 700 .9rem/1 var(--display); color: var(--ink-2); }
.bm-row.win .bs { color: var(--court); }
.bs.tb { font-size: .78rem; color: var(--muted); }
.bs.wo { color: var(--clay); font-size: .78rem; padding: 0 4px; }
.champion-box { border: 2px dashed var(--line); border-radius: 12px; padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.champion-box.has { border: 2px solid var(--ball); background: linear-gradient(180deg, #fbffe2, #fff); color: var(--ink); }
.champion-box .trophy { font-size: 1.8rem; }
.champion-box strong { font-family: var(--display); font-size: 1.2rem; }
.champ-banner { display: flex; flex-direction: column; align-items: center; background: var(--court); color: #fff; border-radius: var(--radius); padding: 12px 22px; font-size: 1.6rem; box-shadow: 0 0 0 3px var(--ball) inset; }
.champ-banner span { font: 600 .72rem/1 var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--ball); margin-top: 4px; }
.champ-banner strong { font-family: var(--display); font-size: 1.4rem; }
@media (max-width: 640px) {
  .b-round { flex-basis: 200px; padding: 0 14px; }
  .b-round:not(:last-child) .b-cell::after { right: -14px; width: 14px; }
  .b-round:not(:last-child):not(.is-final) .b-cell::before { right: -14px !important; }
  .b-round:not(:first-child) .b-cell > .bm::before, .b-round:not(:first-child) .b-cell > .champion-box::before { left: -14px; width: 14px; }
}

@media print {
  .topbar, .footer, .subnav, .btn, form { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ---------- Bakım modu ---------- */
.maint { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(135deg, var(--court) 0%, var(--court-2) 60%, var(--court-3) 100%); }
.maint-card { background: #fff; border-radius: 22px; padding: 40px 28px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 20px 50px -20px rgba(0,0,0,.45); border-top: 5px solid var(--ball); }
.maint-card h1 { margin: 16px 0 8px; text-transform: uppercase; }
.maint-lead { font-size: 1.15rem; font-weight: 600; color: var(--court); }
.maint-admin { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border-left: 5px solid var(--line); }
.maint-admin.on { border-left-color: #e0b300; background: #fffbea; }
.maint-admin h2 { margin-bottom: 4px; }
.maint-admin p { margin: 0; }

/* ---------- Hafta tarih aralığı ---------- */
.week-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.week-range { font-family: var(--font); font-size: .95rem; font-weight: 600; color: var(--court-2); background: #eef6f1; border: 1px solid #d3e6db; padding: 3px 10px; border-radius: 99px; letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.week-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0 0 14px; padding: 10px 12px; background: #fafbf9; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.week-edit label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.week-edit input { min-height: 36px; padding: 6px 10px; width: auto; }
/* ---------- Ağaçta düzenlenebilir isim ---------- */
a.bm-slot { color: inherit; text-decoration: none; border-bottom: 1px dashed #9fb5ab; }
a.bm-slot:hover { color: var(--court); border-bottom-color: var(--court); }
a.bm-slot.tbd { color: #8a9b94; }
.slot-pick { display: grid; gap: 6px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; }
.slot-pick label.check small { color: var(--muted); font-weight: 400; }
.tag-warn { background: var(--warn-bg); color: #6b5308; }

/* ---------- Derece madalyaları ---------- */
.with-medal { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.standings tr.medal-row td.pts { background-color: rgba(212, 238, 42, .18); }
.table th.right { text-align: right; }
.medal { flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.mr-p1 .with-medal { flex-direction: row-reverse; }
.standings tr.top1 td { background-color: rgba(246, 211, 107, .16); }
.standings tr.top2 td { background-color: rgba(190, 200, 208, .18); }
.standings tr.top3 td { background-color: rgba(240, 185, 138, .16); }
.standings tr.top1 .rank span { background: #f6d36b; color: #6b4e00; box-shadow: 0 0 0 2px #c99a1c inset; }
.standings tr.top2 .rank span { background: #e3e8ec; color: #4c5961; box-shadow: 0 0 0 2px #9aa5ad inset; }
.standings tr.top3 .rank span { background: #f0b98a; color: #6a3a14; box-shadow: 0 0 0 2px #a8642e inset; }
.standings tr.medal-row .pname { font-weight: 700; }

/* ---------- Aidat ---------- */
.dues-wrap { margin: 0 -4px; }
.table.dues { font-variant-numeric: tabular-nums; }
.table.dues th { background: var(--court); color: rgba(255,255,255,.85); border-bottom: 0; }
.table.dues th.dues-total-h { color: var(--ball); }
.dues td { vertical-align: middle; }
.dues .dues-name { white-space: nowrap; position: sticky; left: 0; background: #fff; z-index: 1; }
.dues .dues-name .inline { margin-left: 4px; }
.dues .rank span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line-2); font-weight: 700; color: var(--ink-2); font-size: .85rem; }
.payer-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.pay-cell { min-width: 112px; }
.pay-amt { display: block; font-weight: 700; color: var(--court); }
.pay-date { display: block; font-size: .78rem; color: var(--muted); }
.pay-none { color: #c3ccc7; }
.dues-total { white-space: nowrap; background: #f6faea; border-left: 2px solid #e4efc1; }
.dues-total strong { font-family: var(--display); font-size: 1.2rem; color: var(--court); }
.dues-total small { display: block; color: var(--muted); font-size: .75rem; }
.dues tfoot td { border-top: 2px solid var(--line); background: #fafbf9; }
.dues-sum { font-size: .95rem; color: var(--ink-2); }
.dues-sum strong { font-family: var(--display); font-size: 1.25rem; color: var(--court); }
/* İlk üç: biraz daha büyük, renkli ince vurgu — abartısız */
.payer-top .payer-name { letter-spacing: .01em; }
.payer-1 .payer-name { font-size: 1.18rem; font-weight: 800; }
.payer-2 .payer-name { font-size: 1.1rem; font-weight: 700; }
.payer-3 .payer-name { font-size: 1.05rem; font-weight: 700; }
.payer-1 .payer-name { background-image: linear-gradient(transparent 62%, rgba(246, 211, 107, .55) 62%); }
.payer-2 .payer-name { background-image: linear-gradient(transparent 62%, rgba(190, 200, 208, .6) 62%); }
.payer-3 .payer-name { background-image: linear-gradient(transparent 62%, rgba(240, 185, 138, .5) 62%); }
.payer-1 td:first-child { box-shadow: inset 4px 0 0 #d9ad2b; }
.payer-2 td:first-child { box-shadow: inset 4px 0 0 #a9b4bb; }
.payer-3 td:first-child { box-shadow: inset 4px 0 0 #c07a40; }
.payer-1 .rank span { background: #f6d36b; color: #6b4e00; }
.payer-2 .rank span { background: #e3e8ec; color: #4c5961; }
.payer-3 .rank span { background: #f0b98a; color: #6a3a14; }
.payer-1 .dues-total strong { font-size: 1.35rem; }
.coin { flex: none; }
/* Yönetim: hücre içi düzenleme */
.pay-edit { display: grid; gap: 4px; min-width: 128px; }
.pay-edit input { min-height: 32px; padding: 4px 8px; font-size: .88rem; text-align: center; }
.pay-actions { display: flex; gap: 4px; justify-content: center; }
.pay-new { background: #fbfdf3; }
.inline-details { display: inline-block; vertical-align: middle; }
.inline-details summary { list-style: none; cursor: pointer; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details[open] .form-inline { margin-top: 6px; }
.preview-bar { background: var(--court); border-radius: var(--radius-sm); padding: 12px 16px; color: #fff; margin-bottom: 12px; }
.preview-bar .brand { display: inline-flex; align-items: center; gap: 10px; }
.preview-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem; }
.preview-foot span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Arka plan deseni (silik tenis simgeleri) ---------- */
body.is-public, body.is-admin { background-color: var(--bg); background-image: url("pattern.svg"); background-size: 360px 360px; background-repeat: repeat; }
.footer { position: relative; }

/* ---------- Slider ---------- */
.slider { position: relative; overflow: hidden; background: var(--court); color: #fff; isolation: isolate; outline: none; }
.slider-full { height: clamp(320px, 52vw, 560px); }
.slider-compact { height: clamp(150px, 20vw, 220px); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); transition: transform 7s ease-out; }
.slide.is-active img { transform: scale(1); }
.slide-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(8, 40, 30, .82) 0%, rgba(8, 40, 30, .45) 45%, rgba(8, 40, 30, .05) 75%),
  linear-gradient(0deg, rgba(8, 40, 30, .55) 0%, rgba(8, 40, 30, 0) 40%); }
.slide-text { position: absolute; left: 0; right: 0; bottom: 0; top: 0; display: flex; flex-direction: column; justify-content: center; }
.slider-full .slide-text { padding-bottom: 70px; }
.slide-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.02; margin: 0 0 10px; max-width: 16ch;
  font-size: clamp(2rem, 5.6vw, 3.9rem); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.slide-title::before { content: ''; display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--ball); margin-bottom: 14px; }
.slider-compact .slide-title { font-size: clamp(1.4rem, 3.4vw, 2.2rem); max-width: none; margin: 0; }
.slider-compact .slide-title::before { width: 40px; height: 4px; margin-bottom: 10px; }
.slide-caption { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 40ch; opacity: .92; margin: 0; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.slider-cta { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(8, 40, 30, .35); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .15s; }
.slider-nav:hover { background: rgba(8, 40, 30, .7); }
.slider-nav.prev { left: 14px; } .slider-nav.next { right: 14px; }
.slider-dots { position: absolute; right: 20px; bottom: 14px; z-index: 3; display: flex; gap: 8px; }
.slider-dots .dot { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .25s, background .25s; }
.slider-dots .dot.is-active { width: 26px; background: var(--ball); }
.slider-compact .slider-nav { width: 34px; height: 34px; font-size: 22px; }
.slider-compact .slider-dots { bottom: 10px; }
@media (max-width: 760px) {
  .slider-nav { display: none; }
  .slider-full .slide-text { padding-bottom: 96px; }
  .slider-cta { bottom: 34px; }
  .slider-cta .btn { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { .slide, .slide img { transition: none; } }

/* Yönetim: slayt listesi */
.slide-admin-list { display: grid; gap: 14px; }
.slide-admin { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.slide-admin.is-off { opacity: .6; }
.slide-admin img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.slide-admin-fields { display: grid; gap: 8px; }
.slide-admin-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.slide-admin-fields input[type=file] { min-height: 0; padding: 6px; }
@media (max-width: 640px) { .slide-admin { grid-template-columns: 1fr; } }
.m-total { display: none; font-size: .8rem; color: var(--muted); }
.m-total strong { color: var(--court); }
@media (max-width: 640px) {
  .m-total { display: block; margin-top: 2px; }
  .dues .dues-name { white-space: normal; min-width: 150px; }
  .pay-cell { min-width: 96px; }
  .payer-1 .payer-name { font-size: 1.08rem; } .payer-2 .payer-name { font-size: 1.03rem; } .payer-3 .payer-name { font-size: 1rem; }
}
.slide-admin-fields .form-inline { align-items: flex-end; gap: 12px; }
.slide-admin-fields .form-inline input { flex: none; width: auto; }
.slide-admin-fields .form-inline input[type=number] { width: 80px; }
.pay-amt { white-space: nowrap; }

/* ---------- Arşiv ---------- */
.archive-banner { background: #f1f3f2; border: 1px solid var(--line); border-left: 5px solid #8a9b94; border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; color: var(--ink-2); }
.archive-banner p { margin: 6px 0; }
.archive-banner a { font-weight: 600; font-size: .9rem; }
.archive-card { border-top-color: #8a9b94; }
.archive-note { font-size: .92rem; color: var(--ink-2); background: #fafbf9; border-left: 3px solid var(--line); padding: 6px 10px; margin: 6px 0 0; border-radius: 0 6px 6px 0; }
.podium { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: .95rem; }
.podium li { display: flex; align-items: center; gap: 6px; }
.archive-box.is-archived { border-left: 5px solid #8a9b94; }

/* Yönetim menüsü uzun: orta ekranlarda açılır menü */
@media (max-width: 1180px) and (min-width: 761px) {
  .is-admin .nav-toggle { display: block; }
  .is-admin .mainnav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--court);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; border-bottom: 2px solid var(--ball); }
  .is-admin .mainnav.open { display: flex; }
  .is-admin .mainnav a, .is-admin .mainnav .linklike { padding: 12px; text-align: left; width: 100%; }
  .is-admin .nav-sep { width: 100%; height: 1px; margin: 6px 0; }
}
@media (max-width: 900px) and (min-width: 761px) { .is-public .mainnav a { padding: 8px 9px; font-size: .9rem; } }

/* ---------- Oyuncu profili ---------- */
a.plink { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(14, 68, 52, .35); }
a.plink:hover { color: var(--court-3); border-bottom-color: var(--court-3); }
.avatar { flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--court); color: var(--ball); font-family: var(--display); font-weight: 700; overflow: hidden; }
.avatar-img { object-fit: cover; background: var(--line-2); }
.avatar-xl { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--ball); }
.profile-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.profile-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.profile-id { flex: 1; min-width: 220px; }
.form-strip { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.form-strip i { font-style: normal; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: .75rem; font-weight: 700; color: #fff; }
.form-strip .f-w { background: var(--win); } .form-strip .f-l { background: #c9d2cd; color: var(--ink-2); }
.form-strip span { margin-right: 6px; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.tile { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tile .tv { font-family: var(--display); font-size: 1.9rem; font-weight: 700; color: var(--court); line-height: 1.05; }
.tile .tv.pos { color: var(--win); } .tile .tv.neg { color: var(--danger); }
.tile .tl { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.tile .tl small { color: var(--muted); font-weight: 500; }
.tile-main { grid-column: span 2; flex-direction: row; align-items: center; gap: 16px; background: linear-gradient(135deg, var(--court), var(--court-3)); color: #fff; border: 0; }
.tile-main strong { display: block; font-family: var(--display); font-size: 1.3rem; }
.tile-main small { opacity: .85; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--ball) calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.ring span { width: 64px; height: 64px; border-radius: 50%; background: var(--court); display: grid; place-items: center; font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--ball); }
.profile-note { margin: 0 0 20px; }
@media (max-width: 860px) { .stat-tiles { grid-template-columns: repeat(2, 1fr); } }
.pm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pm-list + .pm-list { margin-top: 12px; }
.pm-list li { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.pm-date { font-size: .82rem; font-weight: 700; color: var(--court-2); }
.rank-pill { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 1.05rem; }
.pm-main { min-width: 0; }
.pm-main small { display: block; color: var(--muted); font-size: .8rem; }
.pm-main small a { color: var(--muted); }
.pm-score { font-family: var(--display); font-weight: 700; color: var(--court); white-space: nowrap; }
.history li { grid-template-columns: 32px 1fr auto; }
.history .res { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; }
.history .is-w .res { background: var(--win); } .history .is-l .res { background: #c9d2cd; color: var(--ink-2); }
.rivals { display: grid; gap: 8px; }
.rival { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 12px; align-items: center; }
.rv-bar { height: 8px; border-radius: 99px; background: #e7ece9; overflow: hidden; }
.rv-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--court-3), var(--ball)); }
.rv-rec { font-family: var(--display); font-weight: 700; color: var(--court); }
.roster-ava { display: inline-flex; align-items: center; gap: 8px; }
.photo-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.photo-edit .hint { flex-basis: 100%; }
.file-label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.file-label input[type=file] { min-height: 0; padding: 6px; flex: none !important; width: auto; }
.ava-link { display: inline-flex; }

/* ---------- Kareler ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.album-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); transition: transform .15s, box-shadow .15s; }
.album-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(14,68,52,.4); color: var(--ink); }
.album-cover { position: relative; aspect-ratio: 4 / 3; background: var(--line-2); overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.album-card:hover .album-cover img { transform: scale(1.04); }
.album-count { position: absolute; right: 10px; bottom: 10px; background: rgba(8, 40, 30, .75); color: #fff; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.album-meta { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.album-meta strong { font-family: var(--display); font-size: 1.25rem; }
.album-meta small { color: var(--muted); }
.gallery-grid { columns: 3 260px; column-gap: 14px; }
.g-item { break-inside: avoid; margin: 0 0 14px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.g-item a { display: block; }
.g-item img { width: 100%; height: auto; display: block; }
.g-item figcaption { padding: 8px 12px 10px; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 520px) { .gallery-grid { columns: 2 150px; column-gap: 8px; } .g-item { margin-bottom: 8px; } .g-item figcaption { font-size: .8rem; padding: 6px 8px; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 18, 14, .94); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox figcaption { color: #fff; text-align: center; max-width: 70ch; font-size: 1rem; }
.lb-count { color: rgba(255,255,255,.6); font-size: .82rem; }
.lb-close { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 32px; cursor: pointer; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
body.lb-open { overflow: hidden; }
@media (max-width: 640px) { .lb-nav { display: none; } }
/* Yönetim: albüm ve fotoğraflar */
.album-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.album-admin { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; background: #fff; }
.album-admin img, .album-empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--line-2); display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.photo-admin { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; background: #fff; display: grid; gap: 6px; }
.photo-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.photo-admin textarea { min-height: 0; font-size: .88rem; padding: 6px 8px; }
.photo-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.photo-admin-row .ord { display: flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.photo-admin-row .ord input { width: 64px; min-height: 30px; padding: 2px 6px; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 30%); padding: 14px 0 4px; margin-top: 8px; }

/* ---------- Hava durumu rozeti (slider'ın sağ üst köşesi; içerik akışını etkilemez) ---------- */
.weather { position: absolute; top: 14px; right: 16px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border-radius: 99px; background: rgba(8, 40, 30, .55); border: 1px solid rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); font-size: .85rem; line-height: 1.1; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.weather[hidden] { display: none; }
.w-ico { font-size: 1.35rem; line-height: 1; }
.w-now { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--ball); }
.w-more { display: flex; flex-direction: column; }
.w-more b { font-weight: 600; font-size: .78rem; }
.w-more small { font-size: .74rem; opacity: .85; }
@media (max-width: 640px) {
  .weather { top: 8px; right: 8px; padding: 4px 9px 4px 6px; gap: 5px; font-size: .78rem; }
  .w-ico { font-size: 1.05rem; } .w-now { font-size: 1.05rem; }
  .slider-compact .w-more { display: none; } /* ince slider'da yalnızca simge + derece */
}
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.size-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: .85rem; color: var(--muted); background: #fafbf9; }
.size-box .sz { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--court); }
.size-box.best { border-color: #c8ddd2; background: #eef6f1; }
.size-box.min .sz { color: var(--ink-2); }
.size-tips { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: .92rem; color: var(--ink-2); }
.slide-thumb { display: flex; flex-direction: column; gap: 6px; }
.dim { font-size: .78rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; align-self: flex-start; }
.dim.ok { background: #e3f4ea; color: #0f6a40; }
.dim.warn { background: var(--warn-bg); color: #6b5308; }
@media (max-width: 640px) { .size-grid { grid-template-columns: 1fr; } }
.tile-main { grid-row: span 2; flex-direction: column; justify-content: center; text-align: center; }
.tile-main .ring { width: 116px; height: 116px; } .tile-main .ring span { width: 90px; height: 90px; font-size: 1.8rem; }
@media (max-width: 860px) { .tile-main { grid-row: auto; flex-direction: row; text-align: left; } .tile-main .ring { width: 84px; height: 84px; } .tile-main .ring span { width: 64px; height: 64px; font-size: 1.35rem; } }

/* ---------- Oyun kuralları ---------- */
.rule-sections { display: grid; gap: 16px; }
.rule-card h2, .rule-admin h2 { display: flex; align-items: center; gap: 12px; }
.rule-no { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--court); color: var(--ball); font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.rule-list { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 8px; }
.rule-list li { counter-increment: r; position: relative; padding: 10px 14px 10px 50px; background: #fafbf9; border: 1px solid var(--line-2); border-radius: var(--radius-sm); line-height: 1.5; }
.rule-list li::before { content: counter(r) "."; position: absolute; left: 14px; top: 10px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--court-3); min-width: 26px; }
.rule-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rule-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.rule-toc a span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--court); color: var(--ball); font-size: .78rem; font-weight: 700; }
.rule-toc a:hover { border-color: var(--court-3); color: var(--court); }
.rule-preview { margin-top: 12px; }
.rule-preview summary { cursor: pointer; font-weight: 600; color: var(--court-2); }
html { scroll-padding-top: 80px; }

/* Menü uzadı: kamu menüsü 1000 px altında, yönetim menüsü 1300 px altında açılır menüye geçer */
@media (max-width: 1000px) and (min-width: 761px) {
  .is-public .nav-toggle { display: block; }
  .is-public .mainnav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--court);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; border-bottom: 2px solid var(--ball); }
  .is-public .mainnav.open { display: flex; }
  .is-public .mainnav a { padding: 12px; text-align: left; width: 100%; font-size: .95rem; }
}
@media (max-width: 1300px) and (min-width: 1181px) {
  .is-admin .nav-toggle { display: block; }
  .is-admin .mainnav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--court);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; border-bottom: 2px solid var(--ball); }
  .is-admin .mainnav.open { display: flex; }
  .is-admin .mainnav a, .is-admin .mainnav .linklike { padding: 12px; text-align: left; width: 100%; }
  .is-admin .nav-sep { width: 100%; height: 1px; margin: 6px 0; }
}

/* ---------- Ev sahibi / deplasman ---------- */
.mr-pin { display: inline-flex; flex-direction: column; min-width: 0; }
.mr-p1 .mr-pin { align-items: flex-end; text-align: right; }
.mr-side { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; margin-top: 2px; }
.side-home { color: var(--court-3); }
.side-away { color: var(--clay); }
.mr-p.lose .mr-side { opacity: .8; }
@media (max-width: 720px) {
  .mr-p1 .mr-pin { align-items: flex-start; text-align: left; }
  .mr-pin { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
}
.match-admin .icon-btn.swap { font-size: 1.1rem; }

/* ---------- Sayfa altı imza ve iletişim penceresi ---------- */
.credit-link { font-weight: 700; color: var(--court); text-decoration: none; border-bottom: 1px dashed rgba(14, 68, 52, .4); margin-left: 2px; }
.credit-link:hover { color: var(--court-3); border-bottom-color: var(--court-3); }
.contact-dlg { border: 0; border-radius: var(--radius); padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.contact-dlg::backdrop { background: rgba(6, 18, 14, .55); backdrop-filter: blur(2px); }
.contact-dlg .form { padding: 20px; gap: 10px; }
.contact-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contact-head h2 { margin: 0; font-size: 1.35rem; }
.contact-x { border: 0; background: var(--line-2); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); flex: none; }
.contact-dlg textarea { font-size: 1rem; line-height: 1.6; }
.contact-status { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; }
.contact-status.ok { background: #e7f6ee; color: #0d5a37; }
.contact-status.err { background: #fdecea; color: #8d241d; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
