/* Oddex — taktik tahtası yeşili, tebeşir beyazı, projektör sarısı */
:root {
  --turf: #f1f5ef;
  --panel: #ffffff;
  --panel-2: #e7eee4;
  --chalk: #11271b;
  --muted: #57705f;
  --line: rgba(17, 39, 27, .13);
  --flood: #a87900;
  --flood-bg: rgba(242, 193, 78, .28);
  --seg-home: #1f5a3f;
  --seg-draw: #8aa596;
  --seg-away: #c9d8cd;
  --seg-home-text: #f1f5ef;
  --seg-draw-text: #10261c;
  --seg-away-text: #10261c;
  --bad: #b3261e;
  --good: #1f7a4a;
  --radius: 6px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --turf: #10261c;
    --panel: #163223;
    --panel-2: #1c3b2a;
    --chalk: #e8efe9;
    --muted: #9db3a6;
    --line: rgba(232, 239, 233, .13);
    --flood: #f2c14e;
    --flood-bg: rgba(242, 193, 78, .16);
    --seg-home: #dce7de;
    --seg-draw: #7c9a89;
    --seg-away: #3f6f57;
    --seg-home-text: #10261c;
    --seg-draw-text: #0c1f16;
    --seg-away-text: #e8efe9;
    --bad: #ff8a80;
    --good: #7fd8a4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--turf);
  color: var(--chalk);
  font: 400 15px/1.5 var(--body);
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--flood); outline-offset: 2px; }

/* üst bar */
.top {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font: 700 26px/1 var(--display);
  letter-spacing: .5px;
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.brand svg { width: 26px; height: 26px; }
.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted); font: inherit;
}
.linkbtn:hover { color: var(--chalk); }

main { max-width: 1180px; margin: 0 auto; padding: 24px; }

/* bildirim */
.flash {
  padding: 10px 14px; border-radius: var(--radius); margin-bottom: 18px;
  background: var(--panel-2); border-left: 3px solid var(--good);
}
.flash.error { border-left-color: var(--bad); }

/* filtre */
.filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: end;
  margin-bottom: 8px;
}
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
input, select, button {
  font: inherit; color: var(--chalk);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 10px;
}
input[type="checkbox"] { padding: 0; width: 16px; height: 16px; }
button.primary {
  background: var(--chalk); color: var(--turf); border-color: var(--chalk);
  font-weight: 500; cursor: pointer; padding: 8px 16px;
}
button.primary:hover { opacity: .9; }
button.quiet { cursor: pointer; background: transparent; }
button.danger { cursor: pointer; background: transparent; color: var(--bad); border-color: transparent; }
.quickdays { display: flex; gap: 6px; }
.quickdays a {
  text-decoration: none; padding: 8px 10px; border-radius: var(--radius);
  border: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.quickdays a[aria-current="true"] { color: var(--chalk); border-color: var(--chalk); }
.summary { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }

/* gün ve lig başlıkları */
.day {
  font: 600 30px/1.1 var(--display);
  margin: 34px 0 6px;
}
.day:first-of-type { margin-top: 10px; }
.league {
  font: 600 15px/1 var(--display);
  color: var(--muted);
  letter-spacing: .3px;
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--line);
}

/* maç satırı */
.legend, .row {
  display: grid;
  grid-template-columns: 50px minmax(170px, 1.3fr) minmax(220px, 1.5fr) repeat(5, 56px) 58px;
  align-items: center;
  column-gap: 12px;
}
.legend {
  font-size: 12px; color: var(--muted);
  padding: 10px 0 0;
}
.legend span:nth-child(n+4) { text-align: center; }
.row {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
@media (hover: hover) { .row:hover { background: linear-gradient(90deg, transparent, var(--panel-2) 8%, var(--panel-2) 92%, transparent); } }
.time { font: 500 16px/1 var(--display); color: var(--muted); }
.time.live { color: var(--flood); }
.teams { font: 600 18px/1.2 var(--display); }
.teams .vs { color: var(--muted); font-weight: 400; padding: 0 4px; }
.cell { text-align: center; font: 500 16px/1 var(--display); }
.cell small { display: block; font: 400 11px/1.3 var(--body); color: var(--muted); }
.cell.hi { color: var(--flood); }
.cell.off { color: var(--muted); }
.result { text-align: right; font: 700 20px/1 var(--display); white-space: nowrap; }
.result.pending { font-weight: 400; font-size: 13px; color: var(--muted); font-family: var(--body); }
.result .hit { color: var(--good); }
.result .miss { color: var(--muted); }
.flag { color: var(--flood); font-size: 13px; margin-left: 4px; }

/* imza öğesi: maç sonucu çubuğu (TV'deki topa sahip olma çubuğu gibi) */
.bar {
  position: relative;
  display: flex; height: 26px; border-radius: 4px; overflow: hidden;
  font: 600 14px/26px var(--display);
}
.bar span {
  display: block; text-align: center; white-space: nowrap; overflow: hidden;
  min-width: 2px;
}
.bar .h { background: var(--seg-home); color: var(--seg-home-text); }
.bar .d { background: var(--seg-draw); color: var(--seg-draw-text); }
.bar .a { background: var(--seg-away); color: var(--seg-away-text); }
.bar .fav { box-shadow: inset 0 -3px 0 var(--flood); }
.bar.big { height: 46px; font-size: 22px; line-height: 46px; border-radius: 6px; }
/* Piyasa (bahis oranı) dağılımı: çubuk üstünde ince altın çizgiler */
/* Üstte ve altta kısa çentikler: ortadaki yüzde yazısını kapatmaz */
.bar .mkt { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; }
.bar .mkt::before, .bar .mkt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 7px;
  background: var(--flood); box-shadow: 0 0 0 1px var(--panel);
}
.bar .mkt::before { top: 0; }
.bar .mkt::after { bottom: 0; }
.bar.big .mkt { width: 4px; margin-left: -2px; }
.bar.big .mkt::before, .bar.big .mkt::after { height: 12px; }
.mkt-key { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: var(--muted); }
.mkt-swatch { display: inline-block; width: 3px; height: 14px; background: var(--flood); }
.flag.gap { color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; font-size: 12px; white-space: nowrap; }
.section.market { margin-top: 26px; }
.section.market tr.gap td { color: var(--flood); }
.section.market td.diff { font-variant-numeric: tabular-nums; }
.section.market th.r, .section.market td.r { padding-left: 14px; white-space: nowrap; }
@media (max-width: 640px) {
  .section.market th:nth-child(5), .section.market td:nth-child(5) { display: none; }
}
.bar-labels {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); margin-top: 6px;
}
.nopred { color: var(--muted); font-size: 13px; }

.empty {
  padding: 48px 0; color: var(--muted);
}
.empty strong { display: block; color: var(--chalk); font: 600 24px/1.2 var(--display); margin-bottom: 6px; }

/* maç detayı */
.back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px 9px 11px; border-radius: 999px;
  background: var(--seg-home); color: var(--seg-home-text);
  font: 600 15px/1 var(--body); text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: transform .12s, box-shadow .12s;
}
.back:hover { transform: translateX(-2px); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.back:focus-visible { outline: 2px solid var(--flood); outline-offset: 2px; }
.match-head { margin: 14px 0 26px; }
.match-head .meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.match-title {
  font: 700 clamp(34px, 6vw, 58px)/1 var(--display);
  margin: 10px 0 8px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 18px;
}
.match-title .away { text-align: right; }
.match-title .score { font-size: .8em; color: var(--flood); }
.match-title .vs { color: var(--muted); font-weight: 400; font-size: .5em; padding-bottom: .3em; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 40px;
}
.section { padding: 18px 0 22px; border-top: 1px solid var(--line); }
.section h2 { font: 600 22px/1.2 var(--display); margin: 0 0 4px; }
.section p.note { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; }
th { font-weight: 500; color: var(--muted); font-size: 13px; text-align: left; padding: 6px 0; }
td { padding: 7px 0; border-top: 1px solid var(--line); font: 500 17px/1.2 var(--display); }
td.l, th.l { text-align: left; }
td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }
td .meter {
  display: inline-block; vertical-align: middle; height: 6px; border-radius: 3px;
  background: var(--seg-draw); margin-right: 8px;
}
td.hi { color: var(--flood); }
.scores { display: flex; flex-wrap: wrap; gap: 10px; }
.scores div {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 14px; text-align: center; min-width: 74px;
}
.scores b { display: block; font: 700 24px/1 var(--display); }
.scores span { font-size: 13px; color: var(--muted); }
.xg { display: flex; gap: 32px; }
.xg b { font: 700 34px/1 var(--display); display: block; }
.xg span { color: var(--muted); font-size: 13px; }

/* giriş */



/* yönetim */
.admin h1 { font: 700 36px/1.1 var(--display); margin: 0 0 8px; }
.admin h2 { font: 600 24px/1.2 var(--display); margin: 0 0 4px; }
.admin .block { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.admin .inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.admin td { font: 400 15px/1.3 var(--body); vertical-align: middle; }
.admin td.name { font: 600 18px/1.2 var(--display); }
.admin .actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.admin .actions input { width: 150px; padding: 6px 8px; }
.admin .actions button { padding: 6px 10px; font-size: 14px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.tag.admin-tag { color: var(--flood); border-color: var(--flood); }
.tag.off { color: var(--bad); border-color: var(--bad); }
.muted { color: var(--muted); }

/* telefon */
@media (max-width: 860px) {
  .top { padding: 12px 16px; gap: 12px; }
  main { padding: 16px; }
  .legend { display: none; }
  .row {
    grid-template-columns: 46px 1fr auto;
    grid-template-areas: "time teams result" "bar bar bar" "stats stats stats";
    row-gap: 8px;
  }
  .row .time { grid-area: time; }
  .row .teams { grid-area: teams; }
  .row .result { grid-area: result; }
  .row .bar-cell { grid-area: bar; }
  .row .stats { grid-area: stats; display: flex; gap: 6px; justify-content: space-between; }
  .match-title { grid-template-columns: 1fr; gap: 4px; }
  .match-title .away { text-align: left; }
  .admin .actions { justify-content: flex-start; }
}
@media (min-width: 861px) {
  .row .stats { display: contents; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (min-width: 861px) { .row .cell small { display: none; } }

/* Kaynak satırı ve maç analizi */
.source { font-size: 13px; color: var(--muted); margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.source .mkt-key { margin-left: 0; }
.badge {
  font: 600 12px/1 var(--body); letter-spacing: .02em; text-transform: uppercase;
  background: var(--flood-bg); color: var(--flood); padding: 4px 7px; border-radius: 3px;
}
.badge.model { background: var(--panel-2); color: var(--chalk); }
.section.analysis { margin-top: 26px; }
.analysis .notes { margin: 6px 0 18px; padding-left: 18px; }
.analysis .notes li { margin: 4px 0; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 32px; }
.an-grid h3 { font: 600 17px/1.2 var(--display); margin: 0 0 8px; }
.an-grid h3 small { font: 400 13px var(--body); color: var(--muted); }
.form-list { list-style: none; margin: 0; padding: 0; }
.form-list li {
  display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line);
  font-size: 14px;
}
.form-list .res {
  width: 22px; height: 22px; border-radius: 3px; display: inline-grid; place-items: center;
  font: 600 13px/1 var(--display); flex: none;
}
.form-list .res.G { background: var(--good); color: var(--turf); }
.form-list .res.B { background: var(--seg-draw); color: var(--seg-draw-text); }
.form-list .res.M { background: var(--bad); color: var(--turf); }
.form-list .fl-score { font: 600 16px/1 var(--display); min-width: 30px; }
.form-list .fl-opp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-list .fl-opp small { color: var(--muted); }
.form-list .fl-date { color: var(--muted); font-size: 13px; }

/* Yönetim: otomatik güncelleme adımları */
table.steps td { font: 400 14px/1.3 var(--body); padding: 6px 8px 6px 0; }
table.steps td.st.tamam { color: var(--good); }
table.steps td.st.hata, .err { color: var(--bad); }
table.steps td.st.atlandı { color: var(--muted); }
table.steps td.note { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { table.steps td.note, table.steps th:last-child { display: none; } }

/* İlk 11'ler */
.xi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 32px; margin: 4px 0 8px; }
.xi-grid h3 { font: 600 17px/1.2 var(--display); margin: 0 0 6px; }
.xi-grid h3 small { font: 400 13px var(--body); color: var(--muted); }
ul.xi { list-style: none; margin: 0; padding: 0; columns: 1; }
ul.xi li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--line); font-size: 14px; }
ul.xi .pos { width: 18px; color: var(--muted); font: 600 12px var(--display); }
ul.xi .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.xi .val { font: 600 15px var(--display); font-variant-numeric: tabular-nums; }
.xi-grid + .note { margin-bottom: 20px; }

/* marka: "Odd" + altın "ex" */
.brand b { color: var(--flood); font-weight: 700; }

/* filtreler: arama ve seçim çipleri */
.field.search input { width: 165px; }
.filters select { max-width: 210px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--muted); user-select: none;
}
.chip:has(input:checked) { color: var(--chalk); border-color: var(--flood); background: var(--flood-bg); }
.chip input { accent-color: var(--flood); margin: 0; }
.hits-sum { color: var(--chalk); margin-left: 6px; }

/* öne çıkanlar */
.tops { margin: 4px 0 30px; }
.tops-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.tops-head h2 { font: 600 26px/1.1 var(--display); margin: 0; }
.tops-head span { color: var(--muted); font-size: 13px; }
.tops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.top-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px 12px; transition: border-color .15s, transform .15s;
}
@media (hover: hover) { .top-card:hover { border-color: var(--flood); transform: translateY(-1px); } }
.tc-meta { font-size: 12px; color: var(--muted); }
.tc-teams { font: 600 18px/1.2 var(--display); }
.tc-teams .vs { color: var(--muted); font-weight: 400; }
.tc-pick { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; }
.tc-pick b { font: 600 17px/1.2 var(--display); color: var(--chalk); }
.tc-pick em { font: 700 28px/1 var(--display); font-style: normal; color: var(--flood); }
.tc-bar { height: 4px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.tc-bar i { display: block; height: 100%; background: var(--flood); }
.tc-grp { font-size: 12px; color: var(--muted); }

/* biten maçlarda isabet işareti */
.result .mark { font: 700 15px/1 var(--body); margin-left: 6px; vertical-align: 2px; }
.result .mark.hit { color: var(--good); }
.result .mark.miss { color: var(--bad); opacity: .75; }
@media (max-width: 860px) {
  .field.search { flex: 1 1 160px; }
  .field.search input { width: 100%; }
  .filters select { max-width: none; }
  /* telefonda öne çıkanlar yana kaydırılan şerit */
  .tops-grid {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
    grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -16px; padding: 0 16px 6px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .tops-grid::-webkit-scrollbar { display: none; }
  .top-card { scroll-snap-align: start; }
}

/* biten maç: tahmin ve sonuç */
.section.review { margin-top: 26px; }
.rv-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.rv-score { color: var(--muted); font-size: 14px; }
.rv-score b { font: 700 24px/1 var(--display); color: var(--chalk); }
table.rv td { font: 500 16px/1.25 var(--display); vertical-align: top; padding: 8px 10px 8px 0; }
table.rv td:first-child { color: var(--muted); font: 400 14px/1.3 var(--body); padding-top: 9px; }
table.rv td small { display: block; font: 400 12px/1.3 var(--body); color: var(--muted); margin-top: 2px; }
table.rv .mark { font: 700 17px/1 var(--body); }
table.rv .mark.hit { color: var(--good); }
table.rv .mark.miss { color: var(--bad); }
@media (max-width: 640px) { table.rv th:nth-child(2), table.rv td:nth-child(2) { width: 40%; } }

/* korner / kart / faul: sade başlık */
.cnt h2 small { font: 400 13px var(--body); color: var(--muted); margin-left: 6px; }
.cnt-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.cnt-head b { font: 700 38px/1 var(--display); }
.cnt-head span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.cnt td.muted { color: var(--muted); }
.cnt .cnt-mkt { margin: 10px 0 0; }
.cnt .cnt-who { margin: 16px 0 6px; }

/* liste başlıkları: daha okunaklı boyutlar */
.legend { font: 500 14px/1.2 var(--body); padding: 12px 0 2px; letter-spacing: .1px; }
.league { font: 600 19px/1 var(--display); padding: 18px 0 9px; color: var(--chalk); opacity: .8; }
.summary { font-size: 15px; }
.summary .mkt-key { font-size: 14px; }
.chip { font-size: 15px; }
.day { font-size: 34px; }

/* canlı */
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); margin-right: 6px; vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.live-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 4px; }
.live-head h1 { font: 700 36px/1.1 var(--display); margin: 0; }
.live-meta { color: var(--muted); font-size: 14px; margin: 4px 0 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.live-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.live-card header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.lv-min { font: 600 18px/1 var(--display); color: var(--bad); }
.lv-min.ht { color: var(--flood); }
.lv-min.ht .live-dot { background: var(--flood); animation: none; }
.lv-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 4px 0; }
.lv-team { font: 600 21px/1.15 var(--display); }
.lv-team.a { text-align: right; }
.lv-score b { font: 700 38px/1 var(--display); letter-spacing: 1px; }
.rc { display: inline-block; width: 9px; height: 12px; background: var(--bad); border-radius: 1.5px; margin: 0 4px; vertical-align: 1px; }
.lv-ht { text-align: center; color: var(--muted); font-size: 13px; margin-top: -6px; }
.lv-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.lv-pre { font-size: 13px; color: var(--muted); }
.lv-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font: 500 15px/1.3 var(--display); padding: 6px 0 2px; }
.lv-mini small { display: block; font: 400 12px var(--body); color: var(--muted); }
table.lv-stats { margin-top: 4px; }
table.lv-stats td { border-top: 1px solid var(--line); padding: 6px 0; font: 600 16px/1 var(--display); }
table.lv-stats td.v { width: 48px; }
table.lv-stats td.b { padding: 6px 10px; }
.lv-stats .lbl { display: block; text-align: center; font: 400 12px/1.2 var(--body); color: var(--muted); margin-bottom: 4px; }
.lv-stats .split { display: block; height: 5px; border-radius: 3px; background: var(--seg-away); overflow: hidden; }
.lv-stats .split i { display: block; height: 100%; background: var(--seg-home); }
.lv-events { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; }
.lv-events li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); }
.lv-events li.dep { flex-direction: row-reverse; text-align: right; }
.lv-events .mn { font: 600 14px/1 var(--display); color: var(--muted); min-width: 34px; }
.lv-events li.dep .mn { text-align: right; }
.lv-events i { flex: none; display: inline-block; width: 10px; height: 13px; border-radius: 2px; }
.lv-events .ev-sari { background: #e8c21a; }
.lv-events .ev-kirmizi { background: var(--bad); }
.lv-events .ev-gol { width: 11px; height: 11px; border-radius: 50%; background: var(--chalk); box-shadow: inset 0 0 0 2px var(--panel), 0 0 0 1px var(--chalk); }
.lv-events .ev-var, .lv-events .ev-penalti_kacti { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--muted); }
.lv-link { font-size: 14px; color: var(--muted); text-decoration: none; align-self: flex-end; }
.lv-link:hover { color: var(--chalk); }
.lv-foot { margin-top: 18px; }
.next-list { list-style: none; padding: 0; margin: 0; max-width: 640px; }
.next-list a { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; }
.next-list .t { font: 500 16px var(--display); color: var(--muted); }
.next-list .n { font: 600 17px var(--display); }
.next-list .l { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .live-grid { grid-template-columns: 1fr; }
  .lv-team { font-size: 18px; }
  .lv-score b { font-size: 32px; }
  .lv-mini { grid-template-columns: 1fr; }
  .next-list .l { display: none; }
}
.lv-foot { color: var(--muted); font-size: 13px; }
.live-card .note { color: var(--muted); font-size: 13px; margin: 0; }
@media (max-width: 860px) {
  .brand { font-size: 22px; }
  .brand svg { width: 22px; height: 22px; }
}

/* roller */
.tag.role-kurucu { color: var(--flood); border-color: var(--flood); background: var(--flood-bg); }
.tag.role-admin { color: var(--chalk); border-color: var(--chalk); }
.tag.role-uye { color: var(--muted); }
table.users td.ref { color: var(--muted); font-size: 14px; }
.admin .actions select { padding: 6px 8px; font-size: 14px; }
.no-act { display: block; text-align: right; }

/* canlı: küçük kutucuk, tıklayınca büyür */
.live-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; align-items: start; }
details.live-card { padding: 0; gap: 0; }
details.live-card[open] { grid-column: 1 / -1; }
.lv-sum {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto;
  grid-template-areas: "min st chip" "lg lg lg"; align-items: center; gap: 4px 12px; padding: 12px 14px;
}
.lv-sum::-webkit-details-marker { display: none; }
.lv-sum .lv-min { grid-area: min; font-size: 16px; min-width: 44px; }
.lv-st { grid-area: st; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.lv-st .t { font: 600 16px/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-st b { font: 700 18px/1.2 var(--display); text-align: right; }
.lv-chip { grid-area: chip; font: 600 13px/1 var(--display); color: var(--flood); background: var(--flood-bg); border-radius: 4px; padding: 4px 6px; white-space: nowrap; }
.lv-sum .lv-league { grid-area: lg; font-size: 12px; color: var(--muted); padding-left: 56px; }
@media (hover: hover) { details.live-card:not([open]):hover { border-color: var(--flood); } }
details.live-card[open] .lv-sum { border-bottom: 1px solid var(--line); }
details.live-card[open] .lv-sum .lv-chip { display: none; }
.lv-body { padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.lv-hint { color: var(--muted); font-size: 13px; margin: -8px 0 10px; }
@media (max-width: 860px) { .live-grid { grid-template-columns: 1fr; } }

/* hesap */
.uid { font: 400 13px var(--body); color: var(--muted); margin-left: 2px; }
.acc-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin: 0 0 12px; }
.acc-info dt { font-size: 13px; color: var(--muted); }
.acc-info dd { margin: 4px 0 0; font: 600 20px/1.2 var(--display); }

/* fikstür / tamamlanan sekmeleri */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 14px 0 12px; }
.tabs a {
  text-decoration: none; color: var(--muted); padding: 10px 16px; margin-bottom: -1px;
  font: 600 19px/1 var(--display); border-bottom: 3px solid transparent;
}
.tabs a span { font: 500 13px/1 var(--body); background: var(--panel-2); color: var(--muted); border-radius: 10px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.tabs a[aria-current="page"] { color: var(--chalk); border-bottom-color: var(--flood); }
.tabs a[aria-current="page"] span { background: var(--flood-bg); color: var(--flood); }
.summary:empty { display: none; }

/* sonuç güncelleme bildirimi */
.refresh-note { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: var(--seg-home); color: var(--seg-home-text); padding: 8px 14px; border-radius: 999px;
  font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.25); z-index: 50; }

/* ---- maç olayları (biten maç) ---------------------------------------------- */
.ev-scorers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; margin: 4px 0 14px; }
.ev-scorers .mid { width: 1px; }
.ev-scorers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px;
  font-size: 15px; }
.ev-scorers ul.away { align-items: flex-end; text-align: right; }
.ev-scorers li { display: inline-flex; align-items: center; gap: 6px; }
.ev-scorers ul.away li { flex-direction: row-reverse; }
.ev-scorers li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.ic { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.ic.goal { background: var(--chalk); box-shadow: inset 0 0 0 2px var(--panel); outline: 1.5px solid var(--chalk); width: 9px; height: 9px; }
.ic.yellow { width: 8px; height: 11px; border-radius: 1.5px; background: #f2c14e; }
.ic.red { width: 8px; height: 11px; border-radius: 1.5px; background: #d93a2b; }
.ic.miss { background: transparent; outline: 1.5px dashed var(--muted); width: 9px; height: 9px; }

.ev-line { position: relative; margin: 6px 0 4px; padding: 0 6px; }
.ev-line .lane { position: relative; height: 26px; }
.ev-line .track { position: relative; height: 4px; border-radius: 2px; background: var(--panel-2); }
.ev-line .track .ht { position: absolute; top: -4px; width: 2px; height: 12px; margin-left: -1px; background: var(--muted); opacity: .6; }
.ev-line .ticks { position: relative; height: 16px; font-size: 12px; color: var(--muted); }
.ev-line .ticks span { position: absolute; top: 2px; }
.ev-line .ticks .mid { transform: translateX(-50%); }
.ev-line .ticks .end { right: 0; }
.ev-mark { position: absolute; transform: translateX(-50%); cursor: default; outline: none; }
.lane.home .ev-mark { bottom: 4px; }
.lane.away .ev-mark { top: 4px; }
.lane.home .ev-mark.l1 { bottom: 15px; } .lane.away .ev-mark.l1 { top: 15px; }
.lane.home .ev-mark.l2 { bottom: 26px; } .lane.away .ev-mark.l2 { top: 26px; }
.ev-mark.gol, .ev-mark.penalti, .ev-mark.kk { width: 12px; height: 12px; border-radius: 50%;
  background: var(--chalk); border: 2px solid var(--panel); box-shadow: 0 0 0 1.5px var(--chalk); }
.lane.away .ev-mark.gol, .lane.away .ev-mark.penalti, .lane.away .ev-mark.kk { background: var(--muted); box-shadow: 0 0 0 1.5px var(--muted); }
.ev-mark.sari, .ev-mark.kirmizi, .ev-mark.ikinci_sari { width: 8px; height: 11px; border-radius: 1.5px; }
.ev-mark.sari { background: #f2c14e; }
.ev-mark.kirmizi { background: #d93a2b; }
.ev-mark.ikinci_sari { background: linear-gradient(135deg, #f2c14e 50%, #d93a2b 50%); }
.ev-mark.kacan_penalti { width: 11px; height: 11px; border-radius: 50%; border: 1.5px dashed var(--muted); }
.ev-mark:hover::after, .ev-mark:focus::after {
  content: attr(data-tip); position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(100% + 6px); white-space: nowrap; background: var(--chalk); color: var(--panel);
  font: 500 12px/1.2 var(--body); padding: 5px 8px; border-radius: 4px; z-index: 5; pointer-events: none; }
.lane.away .ev-mark:hover::after, .lane.away .ev-mark:focus::after { bottom: auto; top: calc(100% + 6px); }
.ev-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.ev-legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  .ev-scorers { font-size: 14px; gap: 10px; }
  .ev-scorers ul { font-size: 13.5px; }
}
.ev-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px 8px; margin: 14px 0 0; }
.ev-card .ev-scorers { margin-top: 0; }
.ev-card .ev-legend { margin-bottom: 4px; }
@media (max-width: 640px) { .ev-card { padding: 12px 12px 6px; } }
.lv-ev { margin: -2px 0 2px; }
.lv-ev ul { font-size: 14px; }

/* ---- üst menü ------------------------------------------------------------ */
.top { position: sticky; top: 0; z-index: 40; background: var(--turf);
  gap: 20px; padding: 10px 24px; }
.tabsnav { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 999px;
  background: var(--panel-2); }
.tabsnav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font: 600 15px/1 var(--body); white-space: nowrap;
  transition: background .15s, color .15s; }
.tabsnav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
.tabsnav a:hover { color: var(--chalk); }
.tabsnav a[aria-current="page"] { background: var(--panel); color: var(--chalk);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.nav-live svg .dot { fill: var(--bad); stroke: none; animation: pulse 1.6s ease-in-out infinite; }

.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  user-select: none; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { border-color: var(--muted); }
.usermenu .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--seg-home); color: var(--seg-home-text); font: 700 15px/1 var(--display); }
.usermenu .uname { font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu .caret { width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 1.6;
  transition: transform .15s; }
.usermenu[open] .caret { transform: rotate(180deg); }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; z-index: 60;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); display: flex; flex-direction: column; }
.usermenu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
  display: flex; flex-direction: column; gap: 2px; }
.usermenu .who span { font-size: 13px; color: var(--muted); }
.usermenu .menu a, .usermenu .menu button { display: block; width: 100%; text-align: left; padding: 9px 10px;
  border-radius: 6px; text-decoration: none; color: var(--chalk); background: none; border: 0;
  font: 500 15px/1.2 var(--body); cursor: pointer; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--panel-2); }
.usermenu .menu a[aria-current="page"] { color: var(--flood); }
.usermenu .menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.usermenu .menu button { color: var(--bad); }

@media (max-width: 760px) {
  .top { padding: 10px 16px; justify-content: space-between; }
  .usermenu .uname { display: none; }
  .usermenu summary { padding: 3px 8px 3px 3px; }
  .tabsnav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 45; border-radius: 0;
    justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--panel); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); }
  .tabsnav a { flex-direction: column; gap: 3px; padding: 6px 14px; font-size: 12px; flex: 1; justify-content: center; }
  .tabsnav a svg { width: 22px; height: 22px; }
  .tabsnav a[aria-current="page"] { background: var(--panel-2); box-shadow: none; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .refresh-note { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* ---- kuponlar --------------------------------------------------------------- */
textarea { font: inherit; color: var(--chalk); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 10px; resize: vertical; }
a.btn.primary { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px;
  background: var(--seg-home); color: var(--seg-home-text); text-decoration: none; font-weight: 600; white-space: nowrap; }
a.btn.primary:hover { opacity: .92; }
.linkbtn.danger { color: var(--bad); }
.cp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.cp-head h1 { font: 700 36px/1.1 var(--display); margin: 0; }
.cp-head p { margin: 4px 0 0; }
.cp-page .back { margin-bottom: 10px; }
.avatar.sm { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--seg-home); color: var(--seg-home-text); font: 700 12px/1 var(--display); }

.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.coupon { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  border-top: 4px solid var(--line); }
.coupon.st-tuttu { border-top-color: var(--good); }
.coupon.st-yatti { border-top-color: var(--bad); }
.coupon.st-bekliyor { border-top-color: var(--flood); }
.cp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px 10px; }
.cp-title h2 { font: 700 22px/1.15 var(--display); margin: 0 0 4px; }
.cp-by { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cp-badge { flex: none; font: 600 13px/1 var(--body); padding: 6px 10px; border-radius: 999px;
  background: var(--flood-bg); color: var(--chalk); }
.cp-badge.tuttu { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.cp-badge.yatti { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.cp-picks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cp-picks li + li { border-top: 1px solid var(--line); }
.cp-picks a { display: grid; grid-template-columns: 92px 1fr auto 48px 40px 18px; align-items: center; gap: 10px;
  padding: 9px 16px; text-decoration: none; }
.cp-picks a:hover { background: var(--panel-2); }
.pk-when { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-teams { font-weight: 500; line-height: 1.25; min-width: 0; }
.pk-teams small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.pk-pick { font: 600 14px/1 var(--body); padding: 5px 9px; border-radius: 6px; background: var(--panel-2); white-space: nowrap; }
.pk-odds { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pk-p { text-align: right; font-size: 13px; color: var(--muted); }
.pk-mark { text-align: center; font-weight: 700; }
.pk-tuttu .pk-mark { color: var(--good); }
.pk-yatti .pk-mark { color: var(--bad); }
.pk-yatti .pk-pick { text-decoration: line-through; opacity: .7; }
.pk-tuttu .pk-pick { background: color-mix(in srgb, var(--good) 18%, transparent); }
.pk-iptal { opacity: .55; }
.pk-canli .pk-when { color: var(--bad); font-weight: 600; }
.cp-note { margin: 0; padding: 10px 16px; font-size: 14px; border-top: 1px solid var(--line); color: var(--muted); white-space: pre-line; }
.cp-foot { display: flex; align-items: center; gap: 22px; padding: 10px 16px 12px; border-top: 1px solid var(--line); background: var(--panel-2); }
.cp-stat small { display: block; font-size: 12px; color: var(--muted); }
.cp-stat b { font: 700 22px/1.1 var(--display); }
.cp-foot form { margin: 0 0 0 auto; }
@media (max-width: 760px) {
  .cp-grid { grid-template-columns: 1fr; }
  .cp-picks a { grid-template-columns: 1fr auto 40px 16px; grid-template-areas: "when when when when" "teams pick odds mark"; row-gap: 4px; padding: 9px 12px; }
  .pk-when { grid-area: when; } .pk-teams { grid-area: teams; } .pk-pick { grid-area: pick; }
  .pk-odds { grid-area: odds; } .pk-mark { grid-area: mark; } .pk-p { display: none; }
  .cp-top { padding: 12px 12px 8px; } .cp-foot { padding: 10px 12px; gap: 16px; }
}

/* kupon hazırlama */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.b-search { width: 100%; margin-bottom: 8px; padding: 10px 12px; }
.b-day { font: 700 20px/1.2 var(--display); margin: 16px 0 6px; }
.b-lg { font-size: 13px; color: var(--muted); margin: 10px 0 4px; font-weight: 600; }
.b-match { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.b-match summary { list-style: none; display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; cursor: pointer; }
.b-match summary::-webkit-details-marker { display: none; }
.b-match summary .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.b-match summary .n { font-weight: 500; }
.b-match .sel:not(:empty) { font: 600 13px/1 var(--body); padding: 5px 8px; border-radius: 6px;
  background: var(--seg-home); color: var(--seg-home-text); }
.b-match.picked { border-color: var(--seg-home); }
.b-match[open] summary { border-bottom: 1px solid var(--line); }
.b-opts { padding: 10px 12px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
.b-grp small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.b-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.b-chip { cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 6px;
  font: 600 14px/1.1 var(--body); }
.b-chip em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.b-chip:hover { border-color: var(--muted); }
.b-chip.on { background: var(--seg-home); color: var(--seg-home-text); border-color: var(--seg-home); }
.b-chip.on em { color: inherit; opacity: .8; }

.slip { position: sticky; top: 76px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.slip form { display: flex; flex-direction: column; gap: 10px; }
.slip-head { display: flex; justify-content: space-between; align-items: baseline; }
.slip-head h2 { font: 700 22px/1 var(--display); margin: 0; }
.slip-head span { color: var(--muted); font-size: 13px; }
.slip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; }
.slip-list li { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; }
.sl-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 500; }
.sl-x { padding: 0 6px; border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--muted); }
.sl-bot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.sl-pick { font: 600 13px/1 var(--body); padding: 5px 8px; border-radius: 6px; background: var(--seg-home); color: var(--seg-home-text); }
.sl-p { font-size: 12px; color: var(--muted); }
.sl-odds { margin-left: auto; width: 76px; padding: 6px 8px; text-align: right; }
.slip-empty { color: var(--muted); font-size: 14px; margin: 0; }
.slip-sum { display: flex; gap: 20px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.slip-sum small { display: block; font-size: 12px; color: var(--muted); }
.slip-sum b { font: 700 22px/1.1 var(--display); }
.slip input[type="text"], .slip textarea { width: 100%; }
.slip button.primary { padding: 11px; font-weight: 600; }
.slip button.primary:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .slip { position: static; scroll-margin-top: 70px; }
  .slip-fab:not([hidden]) { position: fixed; left: 12px; right: 12px; z-index: 44;
    bottom: calc(74px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-radius: 12px; text-decoration: none;
    background: var(--seg-home); color: var(--seg-home-text); font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
}
@media (min-width: 901px) { .slip-fab { display: none !important; } }
.cp-foot-note { font-size: 13px; }

/* canlı: skor değişince vurgu */
.live-card.score-flash { border-color: var(--flood); animation: goalflash 1.2s ease-out 3; }
.live-card.score-undo { border-color: var(--bad); }
@keyframes goalflash { 0% { box-shadow: 0 0 0 0 var(--flood); } 100% { box-shadow: 0 0 0 10px transparent; } }
.goal-tag { position: absolute; right: 12px; bottom: 8px; font: 700 13px/1 var(--body); letter-spacing: .5px;
  padding: 4px 8px; border-radius: 999px; background: var(--flood); color: #10261c; }
.score-undo .goal-tag { background: var(--bad); color: #fff; }
.lv-sum { position: relative; }

/* ---- grafik renkleri (dataviz: doğrulanmış 2 seri) ---------------------------- */
:root { --series-1: #2a78d6; --series-2: #eb6834; }
@media (prefers-color-scheme: dark) { :root { --series-1: #3987e5; --series-2: #d95926; } }

/* ---- favori yıldızı ---------------------------------------------------------- */
.fav-form { display: inline; margin: 0; }
.favbtn { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; margin: 0 2px;
  border: 0; background: none; cursor: pointer; vertical-align: middle; border-radius: 50%; }
.favbtn svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; transition: transform .15s; }
.favbtn:hover svg { stroke: var(--flood); transform: scale(1.1); }
.favbtn.on svg { fill: var(--flood); stroke: var(--flood); }
.match-title .favbtn { width: 34px; height: 34px; }
.match-title .favbtn svg { width: 22px; height: 22px; }
.league .favbtn { width: 24px; height: 24px; } .league .favbtn svg { width: 15px; height: 15px; }
.row.is-fav .teams::before { content: "★"; color: var(--flood); margin-right: 6px; font-size: .9em; }
.fav-chip { white-space: nowrap; }
.fav-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fav-list li { display: inline-flex; align-items: center; }

/* ---- maç sayfası: özet kart ve sekmeler -------------------------------------- */
.match-title .tm { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.match-title .tm.away { justify-content: flex-end; }
.match-title .tm a { text-decoration: none; }
.match-title .tm a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.match-title .score.live { color: var(--bad); font-size: .5em; }
.lg-name { display: inline-flex; align-items: center; }
.sum-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px; margin: 4px 0 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.kpi { background: var(--panel-2); border-radius: 8px; padding: 9px 12px; display: flex; flex-direction: column; min-width: 0; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi b { font: 700 22px/1.15 var(--display); overflow-wrap: anywhere; }
.kpi.pick b { font-size: 19px; }
.kpi em { font-style: normal; font-size: 13px; color: var(--muted); }
.kpi.pick, .kpi.hl { background: var(--flood-bg); }
.kpi.pick em, .kpi.hl em { color: var(--chalk); font-weight: 600; }
.kpi.res b { color: var(--good); }
.addcp { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.addcp summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--seg-home); color: var(--seg-home-text); font-weight: 600; }
.addcp summary::-webkit-details-marker { display: none; }
.addcp summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.addcp .b-opts { padding: 12px 0 4px; }
.addcp-msg { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.addcp-msg a { color: var(--chalk); font-weight: 600; }
.mtabs { position: sticky; top: 58px; z-index: 20; background: var(--turf); margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.mtabs button { background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 10px 14px;
  font: 600 17px/1 var(--display); color: var(--muted); cursor: pointer; white-space: nowrap; }
.mtabs button:hover { color: var(--chalk); }
.mtabs button.on { color: var(--chalk); border-bottom-color: var(--flood); }
.match-page .tab-panel.section { border-top: 0; margin-top: 0; }
.match-page .grid.tab-panel { margin-top: 8px; }
@media (max-width: 760px) {
  .mtabs { top: 54px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .sum-card { padding: 14px 12px 12px; }
  .match-title .favbtn { width: 28px; height: 28px; }
}

/* ---- kupon: değer işareti, beğeni, yorum ------------------------------------- */
.sl-val { font-size: 12px; margin-top: 4px; color: var(--muted); }
.sl-val:empty { display: none; }
.sl-val.good { color: var(--good); font-weight: 600; }
.sl-val.good::before { content: "▲ "; }
.sl-val.bad { color: var(--bad); }
.sl-val.bad::before { content: "▼ "; }
.like-form { margin: 0 0 0 auto; }
.like-form + form { margin-left: 8px; }
.like { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; cursor: pointer; background: var(--panel); }
.like svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; }
.like.on svg { fill: var(--bad); stroke: var(--bad); }
.like span { font-weight: 600; font-variant-numeric: tabular-nums; }
.cp-foot form.like-form ~ form { margin-left: 8px; }
.cp-comments { border-top: 1px solid var(--line); }
.cp-comments summary { cursor: pointer; padding: 9px 16px; font-size: 14px; color: var(--muted); list-style: none; }
.cp-comments summary::-webkit-details-marker { display: none; }
.cp-comments summary span { background: var(--panel-2); border-radius: 10px; padding: 1px 7px; margin-left: 4px; font-size: 12px; }
.cp-comments ul { list-style: none; margin: 0; padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.cp-comments li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: start; }
.cp-comments li small { color: var(--muted); }
.cp-comments li p { margin: 2px 0 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.cp-comments li form { margin: 0; }
.cm-form { display: flex; gap: 8px; padding: 10px 16px 14px; }
.cm-form input { flex: 1; min-width: 0; }
.cm-form button { cursor: pointer; }

/* ---- takım sayfası ------------------------------------------------------------ */
.tm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.tm-head h1 { font: 700 40px/1.1 var(--display); margin: 0; display: flex; align-items: center; gap: 4px; }
.tm-head p { margin: 4px 0 0; }
.form-dots { display: flex; gap: 6px; }
.form-dots .res, .form-list .res { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px;
  font: 700 14px/1 var(--display); text-decoration: none; }
.res.G { background: color-mix(in srgb, var(--good) 22%, transparent); color: var(--good); }
.res.B { background: var(--panel-2); color: var(--muted); }
.res.M { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.tm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 6px; }
.tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.tm-next { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tm-next a { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; align-items: center; text-decoration: none;
  padding: 8px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.tm-next a:hover { border-color: var(--muted); }
.tm-next .when { font-size: 13px; color: var(--muted); }
.tm-next .when small { display: block; }
.tm-next .who { font-weight: 500; }
.tm-next .bar, .tm-next .nopred { grid-column: 1 / -1; }
.form-list a { display: contents; color: inherit; text-decoration: none; }
.inj { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.inj li span { color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings th, .standings td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.standings th { font-size: 12px; color: var(--muted); font-weight: 500; }
.standings tr.me td { background: var(--flood-bg); font-weight: 600; }
.standings a { text-decoration: none; }
.standings a:hover { text-decoration: underline; }
.standings .r { text-align: right; }
@media (max-width: 760px) {
  .tm-grid { grid-template-columns: 1fr; }
  .tm-head h1 { font-size: 32px; }
}

/* ---- grafikler ------------------------------------------------------------------ */
.viz { position: relative; max-width: 720px; }
.viz svg { width: 100%; height: auto; display: block; overflow: visible; }
.viz .grid { stroke: var(--line); stroke-width: 1; }
.viz .tick, .viz .axis { fill: var(--muted); font: 12px var(--body); }
.viz .dl { fill: var(--chalk); font: 600 12px var(--body); }
.viz .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz .ln.s1 { stroke: var(--series-1); } .viz .ln.s2 { stroke: var(--series-2); }
.viz .pt { stroke: var(--panel); stroke-width: 2; }
.viz .pt.s1 { fill: var(--series-1); } .viz .pt.s2 { fill: var(--series-2); }
.viz .dot { cursor: pointer; outline: none; }
.viz .dot:hover, .viz .dot:focus { stroke: var(--chalk); }
.viz .ref { stroke: var(--muted); stroke-dasharray: 4 4; stroke-width: 1.2; }
.viz .cross { stroke: var(--muted); stroke-width: 1; }
.viz .hit { fill: transparent; cursor: crosshair; }
.viz-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.sw.s1 { background: var(--series-1); } .sw.s2 { background: var(--series-2); }
.viz-tip { position: absolute; top: 0; padding: 6px 9px; border-radius: 6px; font-size: 13px; white-space: nowrap;
  background: var(--chalk); color: var(--panel); pointer-events: none; z-index: 5; }
.viz.calib { max-width: 460px; }
.viz-table { margin-top: 8px; font-size: 14px; }
.viz-table summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.viz-table table { margin-top: 6px; border-collapse: collapse; }
.viz-table td, .viz-table th { padding: 3px 10px 3px 0; }

/* ---- başarı sayfası -------------------------------------------------------------- */
.sc-kpis { margin-top: 6px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; max-width: 820px; }
.cmp small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.cmp-row { display: grid; grid-template-columns: 64px 1fr 48px; align-items: center; gap: 10px; margin-bottom: 6px; position: relative; }
.cmp-row span { font-size: 14px; }
.cmp-row i { display: block; height: 12px; border-radius: 0 4px 4px 0; background: var(--series-1); }
.cmp-row.mkt i { background: var(--series-2); }
.cmp-row b { font: 700 18px/1 var(--display); text-align: right; }
.lg-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lg-table th, .lg-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.lg-table th { font-size: 12px; color: var(--muted); font-weight: 500; text-align: left; }
.lg-table .r { text-align: right; }
.lg-table td small { color: var(--muted); }
.lg-table td.up { color: var(--good); font-weight: 600; }
.lg-table td.down { color: var(--bad); }
.pbar { display: inline-block; min-width: 70px; padding: 2px 6px; border-radius: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--series-1) 28%, transparent) var(--w), transparent var(--w)); }
@media (max-width: 760px) { .cmp { grid-template-columns: 1fr; } }
.coupon.st-iptal { border-top-color: var(--muted); } .cp-badge.iptal { background: var(--panel-2); color: var(--muted); }
@media (max-width: 900px) { .slip { margin-bottom: 80px; } }

/* ---- takım logoları ---------------------------------------------------------- */
.tlogo { width: 20px; height: 20px; object-fit: contain; vertical-align: -4px; margin: 0 7px 0 0; flex: none; }
.vs + .tlogo, .tlogo:last-child:not(:first-child) { margin: 0 0 0 7px; }
.teams .tlogo:first-child, .pk-teams .tlogo:first-child, .tc-teams .tlogo:first-child { margin-left: 0; }
.tlogo.md { width: 26px; height: 26px; vertical-align: -6px; }
.tlogo.lg { width: .9em; height: .9em; vertical-align: -.1em; margin: 0 .25em; }
.tlogo.xl { width: 46px; height: 46px; margin-right: 12px; }
.standings .tlogo, .form-list .tlogo { width: 18px; height: 18px; }
.lv-team.a .tlogo, .match-title .away .tlogo { margin: 0 0 0 .25em; }
@media (max-width: 760px) { .tlogo.xl { width: 36px; height: 36px; } .tlogo { width: 18px; height: 18px; } }
.ev-none { font-size: 13px; margin: 8px 0 0; }
/* canlı: açılan maç en üste çıkar, diğerleri altında kalır */
details.live-card[open] { order: -1; }


/* ---- giriş ekranı: taktik tahtası ----------------------------------------------- */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); }
.gate-pitch { --pitch: #123323; --chalk-ink: #eef3ec; --chalk-line: rgba(238, 243, 236, .22);
  position: relative; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #1a4430 0%, var(--pitch) 60%, #0d2619 100%);
  color: var(--chalk-ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px 56px 56px; }
.gate-pitch .chalk { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--chalk-line);
  stroke-width: 2; stroke-linecap: round; transform: rotate(-8deg) scale(1.18); transform-origin: 60% 50%; }
.gate-pitch .chalk .spot { fill: var(--chalk-line); stroke: none; }
.gate-pitch .chalk .play { stroke: #f2c14e; stroke-width: 3; stroke-dasharray: 2 12; opacity: .75; }
.gate-pitch .chalk .mark { stroke: #f2c14e; stroke-width: 3; }
.gate-pitch .chalk .mark-x { stroke: #f2c14e; stroke-width: 3.5; }
.gate-brand { position: absolute; top: 40px; left: 56px; display: flex; align-items: center; gap: 12px;
  font: 700 30px/1 var(--display); letter-spacing: .5px; }
.gate-brand svg { width: 32px; height: 32px; }
.gate-brand b { color: #f2c14e; font-weight: 700; }
.slogan { position: relative; margin: 0; font: 700 clamp(54px, 7.4vw, 118px)/.88 var(--display);
  letter-spacing: -.5px; display: flex; flex-direction: column; }
.slogan span { display: block; }
.slogan span:nth-child(2) { padding-left: .55em; }
.slogan span:nth-child(3) { padding-left: 1.1em; }
.slogan i { font-style: normal; color: #f2c14e; }
.gate-sub { position: relative; margin: 22px 0 0 calc(clamp(54px, 7.4vw, 118px) * 1.1); max-width: 34ch;
  font-size: 17px; line-height: 1.5; color: rgba(238, 243, 236, .78); }
.gate-form { display: grid; place-items: center; padding: 48px 40px; background: var(--turf); }
.gate-form form { width: min(340px, 100%); display: flex; flex-direction: column; gap: 14px; }
.gate-form h2 { font: 700 34px/1.1 var(--display); margin: 0; }
.gate-form p { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.gate-form input { padding: 11px 12px; font-size: 16px; }
.gate-form button.primary { margin-top: 6px; padding: 12px; font-size: 16px; font-weight: 600; border-radius: 8px; }
.gate-form .flash { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .gate-pitch .chalk > * { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: chalk 1.6s ease-out .1s forwards; }
  .gate-pitch .chalk .play { stroke-dasharray: 2 12; stroke-dashoffset: 0; opacity: 0; animation: chalk-play .6s ease-out 1.4s forwards; }
  .gate-pitch .chalk .mark, .gate-pitch .chalk .mark-x { animation-delay: 1.3s; }
  .gate-pitch .chalk .spot { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}
@keyframes chalk { to { stroke-dashoffset: 0; } }
@keyframes chalk-play { to { opacity: .75; } }

@media (max-width: 860px) {
  .gate { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .gate-pitch { min-height: 46vh; padding: 92px 24px 32px; }
  .gate-brand { top: 26px; left: 24px; font-size: 26px; }
  .slogan { font-size: clamp(46px, 14vw, 72px); }
  .gate-sub { font-size: 15px; margin-top: 16px; padding-left: 0; margin-left: 0; }
  .gate-form { place-items: start center; padding: 32px 24px 48px; }
  .gate-pitch .chalk .play, .gate-pitch .chalk .mark, .gate-pitch .chalk .mark-x { display: none; }
}
