/* Tema: bütün renkler burada. Misli ekran görüntüleriyle birebir eşlemek için
   sadece bu değişkenleri değiştirmek yeterli. */
:root {
  /* Koyu tema: göz yormayan antrasit tonlar, Misli turuncusu vurgu */
  --bg: #1a1d1f;
  --surface: #24282b;
  --surface-2: #2c3134;
  --line: #33383b;
  --line-2: #4a5054;
  --text: #e6e6e6;
  --muted: #9aa0a4;
  --head: #111314;
  --accent: #fe5a1f;
  --accent-ink: #ffffff;
  --brand-2: #fe5a1f;
  --odd: #2c3134;
  --odd-ink: #e6e6e6;
  --value: #3a2418;
  --warn: #e0a526;
  --bad: #ef5a5f;
  --good: #3ec27a;
  --radius: 6px;
  --tap: 44px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { padding-bottom: 24px; font-size: 15px; line-height: 1.4; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.top { position: sticky; top: 0; z-index: 5; background: var(--head); color: #fff; }
.top-in { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 0 12px; min-height: 52px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.5px; font-style: italic; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { text-decoration: none; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase;
         padding: 16px 10px 13px; border-bottom: 3px solid transparent; }
.nav a.active { border-bottom-color: var(--accent); }
.bank { font-weight: 700; font-variant-numeric: tabular-nums; background: var(--accent); color: #fff;
        padding: 6px 12px; border-radius: 4px; font-size: 13px; }
@media (max-width: 560px) {
  .top-in { gap: 0 12px; padding-top: 8px; }
  .nav { order: 3; flex-basis: 100%; justify-content: space-between; }
  .nav a { padding: 10px 6px 9px; font-size: 12px; }
  .bank { margin-left: auto; }
}

/* Misli tarzı liste */
.bar { background: #1c1f21; color: #fff; font-weight: 700; text-transform: uppercase; font-size: 13px;
       padding: 9px 12px; margin: 0 -12px; }
.bar span { color: var(--line-2); font-weight: 400; }
.day { background: var(--line-2); color: var(--text); font-weight: 700; text-transform: uppercase; font-size: 12px; padding: 6px 12px; margin: 0 -12px; }
.thead, .mrow { display: grid; grid-template-columns: 52px minmax(0,1fr) 168px 112px 112px; gap: 6px; align-items: center; }
.thead { background: #262a2d; color: #fff; font-size: 11px; padding: 4px 12px; margin: 0 -12px; }
.thead .grp { display: grid; text-align: center; font-weight: 700; }
.thead .g3 { grid-template-columns: repeat(3,1fr); } .thead .g2 { grid-template-columns: repeat(2,1fr); }
.thead .grp b { grid-column: 1 / -1; } .thead .grp em { font-style: normal; color: var(--line-2); }
.mrow { background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 12px; margin: 0 -12px; min-height: 56px; }
.mt { text-align: center; } .mt b { display: block; font-size: 14px; } .mt small { color: var(--accent); font-size: 10px; font-weight: 700; }
.mn { font-weight: 700; font-size: 14px; }
.tags { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.tags i { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; border-radius: 3px; padding: 1px 5px; }
.tags .mbs { background: #579cd5; } .tags .tip { background: var(--accent); }
.mrow .grp { display: grid; gap: 4px; } .mrow .g3 { grid-template-columns: repeat(3,1fr); } .mrow .g2 { grid-template-columns: repeat(2,1fr); }
.ob { border: 1px solid var(--line-2); border-radius: 4px; background: var(--odd); text-align: center; font-weight: 700; font-size: 14px;
      min-height: 40px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.ob.value { border-color: var(--accent); color: var(--accent); background: var(--value); }
.ob.na { color: var(--line-2); }
@media (max-width: 760px) {
  .thead, .mrow { grid-template-columns: 44px minmax(0,1fr) 150px; }
  .thead .g2, .mrow .g2 { display: none; }
}
@media (max-width: 420px) {
  .thead, .mrow { grid-template-columns: 40px minmax(0,1fr) 132px; gap: 4px; }
  .mn { font-size: 13px; }
}

main { max-width: 960px; margin: 0 auto; padding: 12px; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
     margin: 18px 4px 8px; font-weight: 700; }
.empty { color: var(--muted); text-align: center; padding: 40px 16px; }
.note { color: var(--muted); font-size: 13px; margin: 4px 4px 12px; }

/* Kart */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 12px; margin-bottom: 10px; }
.card-head { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.teams { font-weight: 700; font-size: 16px; margin: 6px 0 8px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
        background: var(--surface-2); color: var(--muted); }
.pill.main { background: var(--accent); color: var(--accent-ink); }
.pill.mbs { background: transparent; border: 1px solid var(--line); }

.bet { border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
       background: var(--surface-2); border-radius: 8px; padding: 10px; }
.bet-name { font-weight: 700; }
.bet-odd { font-weight: 800; font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.bet-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.bet-meta b { color: var(--text); font-weight: 600; }
.dots { letter-spacing: 2px; color: var(--accent); }
.dots .off { color: var(--line-2); }

.actions { display: flex; gap: 8px; margin-top: 10px; }
.btn { flex: 1; min-height: var(--tap); border-radius: 8px; border: 1px solid var(--line);
       background: transparent; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.on { background: transparent; border-color: var(--accent); color: var(--accent); }
.why { margin: 10px 2px 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.why li { margin: 3px 0; }

/* Maç listesi: oran kutuları */
.match { padding: 10px 12px; }
.match .teams { font-size: 15px; margin: 4px 0 8px; }
.odds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.odd { border: 1px solid var(--line-2); background: var(--odd); border-radius: 6px; padding: 5px 2px; text-align: center; min-height: var(--tap);
       display: flex; flex-direction: column; justify-content: center; }
.odd small { display: block; color: var(--muted); font-size: 10px; }
.odd b { color: var(--odd-ink); font-variant-numeric: tabular-nums; font-size: 14px; }
.odd i { display: block; font-style: normal; color: var(--muted); font-size: 10px; }
.odd.value { background: var(--value); border-color: var(--accent); }
.odd.value b { color: var(--accent); }
.odd.na b { color: var(--muted); }
details.more summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-top: 8px; min-height: 28px; }

/* Sonuçlar */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.tile small { color: var(--muted); font-size: 12px; display: block; }
.tile b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pos { color: var(--good); }
.neg { color: var(--bad); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px;
       border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .sub { color: var(--muted); font-size: 12px; }
.row .res { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Kasa */
.field { display: flex; gap: 8px; }
.field input { flex: 1; min-height: var(--tap); border-radius: 8px; border: 1px solid var(--line);
               background: var(--surface-2); color: var(--text); padding: 0 12px; font-size: 16px; }
.alert { background: #3a3220; border: 1px solid var(--warn); color: #f2d28a; border-radius: 8px;
         padding: 10px 12px; margin: 10px 0; font-size: 14px; }

@media (max-width: 420px) {
  .odds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}


/* Bugün: kupon satırı */
.kp { background: var(--surface); border-bottom: 1px solid var(--line); margin: 0 -12px; padding: 10px 12px; }
.kp.played { background: #3a2a22; }
.kp-top { display: grid; grid-template-columns: 52px minmax(0,1fr) 72px; gap: 8px; align-items: center; }
.kp-bet { color: var(--accent); font-weight: 700; font-size: 13px; margin-top: 3px; }
.kp-odd { font-size: 17px; min-height: 44px; }
.tags .exp { background: #5d6366; }
.kp-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0 0 60px; color: var(--muted); font-size: 12px; }
.kp-info b { color: var(--text); }
.kp-btn { margin-left: auto; background: var(--accent); color: #fff; border: 0; border-radius: 4px; font-weight: 700;
          font-size: 13px; padding: 0 16px; min-height: 36px; cursor: pointer; }
.kp-btn.on { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }
.kp-why { margin-left: 60px; }
.kp-why summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-top: 6px; }
@media (max-width: 420px) {
  .kp-top { grid-template-columns: 40px minmax(0,1fr) 64px; }
  .kp-info, .kp-why { margin-left: 48px; }
}

/* Sonuçlar / Kasa: Misli tarzı istatistik şeridi */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--line); margin: 0 -12px; }
.st { background: var(--surface); padding: 10px 12px; }
.st small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 700; }
.st b { font-size: 17px; font-variant-numeric: tabular-nums; }
.rs-row { grid-template-columns: 52px minmax(0,1fr) 52px 72px; }
.ob.score { font-size: 14px; min-height: 36px; }
.rs { text-align: center; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 4px 2px; }
.rs.win { background: #1d3a2a; color: var(--good); } .rs.lose { background: #3d2224; color: var(--bad); }
.rs.wait { color: var(--muted); }
.field.kp { display: flex; gap: 8px; }
.field input { border-radius: 4px; }
@media (max-width: 420px) { .rs-row { grid-template-columns: 40px minmax(0,1fr) 44px 64px; } }

/* Haber */
.tags .risk { background: var(--bad); }
.kp-risk { margin: 6px 0 0 60px; color: var(--bad); font-size: 12px; font-weight: 700; }
.news-sum { margin: 6px 0 2px; font-size: 13px; }
.news-src { color: var(--muted); font-size: 11px; margin: 4px 0 0; }
.news-src a { color: var(--muted); }
@media (max-width: 420px) { .kp-risk { margin-left: 48px; } }
