/* ==========================================================================
   Tema katmanı v1 — styles.css'in üzerine yüklenir.
   Sol menü + kompakt üst bar + yapışkan filtre çubuğu.
   Geri almak için index.html'den theme.css ve enhance.js satırlarını kaldırın.
   ========================================================================== */

:root {
  --side-w: 252px;
  --side-bg: #10292f;
  --side-bg-2: #143840;
  --side-ink: #d7e6e1;
  --side-muted: #7f9c98;
  --lime: #c4f05b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 42, 49, 0.05), 0 8px 24px rgba(17, 42, 49, 0.06);
  --shadow-strong: 0 18px 44px rgba(17, 42, 49, 0.14);
}

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: 96px;
}

body {
  background: #eef2f1;
}

body::before {
  display: none;
}

:focus-visible {
  outline: 2px solid #31948a;
  outline-offset: 2px;
}

/* ---------- Çerçeve ---------- */
.app-frame {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 22px 32px 64px;
  min-width: 0;
}

/* ---------- Sol menü ---------- */
.side-nav {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 20px 14px 16px;
  overflow-y: auto;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(196, 240, 91, 0.07), transparent 60%),
    linear-gradient(180deg, var(--side-bg-2), var(--side-bg));
  color: var(--side-ink);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 8px 4px;
}

.side-brand .brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(196, 240, 91, 0.55);
  background: rgba(196, 240, 91, 0.08);
  color: var(--lime);
  font-size: 0.78rem;
}

.side-brand-text {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}

.side-brand-text b {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.side-brand-text small {
  color: var(--side-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.side-nav .sport-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: auto;
  margin: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.side-nav .sport-button {
  justify-content: center;
  min-height: 38px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--side-muted);
  font-size: 0.8rem;
  box-shadow: none;
}

.side-nav .sport-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.side-nav .sport-button.active {
  background: #f4faf7;
  color: var(--side-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.side-tabs {
  position: static;
  display: grid;
  gap: 16px;
  margin: 2px 0 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

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

.nav-group-title {
  margin: 0 0 4px;
  padding: 0 10px;
  color: var(--side-muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.side-tabs .tab-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #bcd0cb;
  font-size: 0.84rem;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
  transform: none;
  box-shadow: none;
}

.side-tabs .tab-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: none;
}

.side-tabs .tab-button.active {
  background: rgba(196, 240, 91, 0.12);
  color: #f3ffd9;
  box-shadow: none;
}

.side-tabs .tab-button.active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--lime);
  content: "";
}

.nav-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.tab-button.active .nav-icon {
  color: var(--lime);
  opacity: 1;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-iddaa-public] .nav-group-admin {
  display: none;
}

body.basketball-active .side-tabs,
body.basketball-active .side-hint {
  display: none;
}

.side-foot {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 12px 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--side-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.side-foot .hero-live-mark {
  margin: 0;
  color: #c9dbd6;
  font-size: 0.72rem;
}

kbd {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  margin-right: 3px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-width: 2px;
  border-radius: 5px;
  color: #e7f2ee;
  font: 800 0.66rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Üst bar ---------- */
.top-band,
.top-band.compact-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 0;
  margin: 0 0 14px;
  padding: 4px 2px 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.top-band::before,
.top-band::after {
  display: none;
}

.top-band .hero-copy {
  gap: 2px;
}

.top-band .eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.top-band h1 {
  margin: 0;
  color: var(--charcoal);
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.top-band .status-strip {
  max-width: none;
  gap: 6px;
}

.top-band .status-strip span {
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid #d8e2df;
  background: #fff;
  color: #3e555b;
  font-size: 0.74rem;
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(17, 42, 49, 0.04);
}

.top-band .status-strip span:first-child {
  border-color: #bfe3d6;
  background: #e8f6f0;
  color: #0b6b63;
}

.top-band .status-strip span:first-child::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #18a383;
  box-shadow: 0 0 0 3px rgba(24, 163, 131, 0.16);
  content: "";
}

/* ---------- Filtre çubuğu ---------- */
#footballWorkspace > .toolbar,
.basketball-toolbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid rgba(208, 220, 217, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 22px rgba(17, 42, 49, 0.07);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

@media (min-width: 1181px) {
  .match-toolbar {
    grid-template-columns: minmax(300px, 330px) minmax(180px, 1fr) 160px minmax(180px, 1.2fr);
    align-items: end;
  }
}

.match-toolbar label {
  gap: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

/* Bu sekmelerde üst filtreler kullanılmıyor */
body.mobile-tab-favorites #footballWorkspace > .toolbar,
body.mobile-tab-bankroll #footballWorkspace > .toolbar,
body.mobile-tab-report #footballWorkspace > .toolbar,
body.mobile-tab-data #footballWorkspace > .toolbar {
  display: none;
}

.date-stepper {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}

.date-stepper input {
  flex: 1 1 auto;
  min-width: 0;
}

.date-step {
  flex: 0 0 auto;
  min-width: 34px;
  border: 1px solid #cfdbd8;
  border-radius: 7px;
  background: #fbfdfc;
  color: #3e555b;
  padding: 0 8px;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  transition: background 140ms ease, border-color 140ms ease;
}

.date-step:hover {
  border-color: #9fbab2;
  background: #edf5f2;
}

.date-step-today {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.date-step-today.is-today {
  border-color: #bfe3d6;
  background: #e8f6f0;
  color: #0b6b63;
}

.search-field {
  position: relative;
  display: block;
}

.search-field input {
  width: 100%;
  padding-right: 34px;
}

.search-field kbd {
  position: absolute;
  top: 50%;
  right: 8px;
  margin: 0;
  border-color: #cfdbd8;
  color: #7b8d92;
  background: #fff;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input:focus + kbd,
.search-field input:not(:placeholder-shown) + kbd {
  display: none;
}

/* ---------- Paneller ---------- */
.panel,
.metric-card {
  border-color: #dde5e3;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.panel-header {
  min-height: 0;
  padding: 16px 20px;
}

.panel-header h2 {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* ---------- Basketbol ---------- */
#basketballWorkspace .basketball-tabs {
  margin-top: 0;
}

/* ---------- Yukarı dön ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #cfdbd8;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--charcoal);
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Mobil "Daha" menüsü masaüstünde görünmesin */
@media (min-width: 761px) {
  .mobile-more-sheet {
    display: none !important;
  }
}

/* ---------- Tablet: ikon rayı ---------- */
@media (max-width: 1180px) and (min-width: 761px) {
  :root {
    --side-w: 76px;
  }

  .side-nav {
    align-items: center;
    padding: 16px 10px;
  }

  .side-brand {
    padding: 0;
  }

  .side-brand-text,
  .nav-group-title,
  .nav-label,
  .side-foot {
    display: none;
  }

  .side-nav .sport-switch {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .side-nav .sport-button {
    padding: 6px;
  }

  .side-nav .sport-button span:not(.sport-icon) {
    display: none;
  }

  .side-tabs {
    gap: 10px;
    width: 100%;
  }

  .nav-group + .nav-group {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .side-tabs .tab-button {
    justify-content: center;
    padding: 9px;
  }

  .side-tabs .tab-button.active::before {
    left: -10px;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }

  .app-shell {
    padding: 18px 20px 56px;
  }

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

/* ---------- Mobil ---------- */
@media (max-width: 760px) {
  .app-frame {
    display: block;
  }

  .side-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: auto;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px;
    overflow: visible;
  }

  .side-brand-text small,
  .side-tabs,
  .side-foot {
    display: none !important;
  }

  .side-brand {
    min-width: 0;
    gap: 8px;
  }

  .side-brand .brand-mark {
    width: 30px;
    height: 30px;
  }

  .side-brand-text b {
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .side-nav .sport-switch {
    flex: 0 0 auto;
  }

  .match-toolbar label:nth-child(1),
  .match-toolbar label:nth-child(4) {
    grid-column: 1 / -1;
  }

  .match-toolbar label:nth-child(2) {
    grid-column: 1;
  }

  .match-toolbar label:nth-child(3) {
    grid-column: 2;
  }

  .date-step {
    min-width: 40px;
  }

  .match-toolbar label:has(.date-stepper) {
    position: relative;
  }

  .date-step-today {
    position: absolute;
    top: -3px;
    right: 0;
    min-height: 22px;
    padding: 0 10px;
    border-radius: 999px;
  }

  #footballWorkspace > .toolbar,
  .basketball-toolbar {
    width: calc(100% - 20px);
    margin: 10px 10px 10px;
  }
}

@media (max-width: 420px) {
  .side-brand-text {
    display: none;
  }

  .side-nav .sport-switch {
    display: grid;
    width: auto;
    margin: 0;
  }

  .side-nav .sport-button {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .app-shell {
    padding-top: 12px;
  }

  .top-band,
  .top-band.compact-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 0 10px 4px;
    padding: 0;
  }

  .top-band h1 {
    font-size: 1.45rem;
  }

  .top-band .status-strip {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-band .status-strip span {
    display: inline-flex;
  }

  #footballWorkspace > .toolbar,
  .basketball-toolbar {
    position: static;
    backdrop-filter: none;
  }

  .search-field kbd,
  .back-to-top {
    display: none !important;
  }
}

/* ==========================================================================
   Maç detayı — kompakt analiz (tek bakışta okunur)
   ========================================================================== */
.match-detail {
  container-type: inline-size;
  container-name: detail;
}

/* Maç başlığı daha kısa */
.match-hero-card {
  padding: 12px 16px !important;
  gap: 8px !important;
}

.match-hero-teams {
  gap: 10px !important;
}

.match-hero-team .detail-team-logo {
  width: 42px !important;
  height: 42px !important;
}

.match-hero-team span {
  font-size: 1rem !important;
}

.match-hero-score strong {
  font-size: 1.6rem !important;
}

.compact-analysis {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px 14px;
  border: 1px solid #dde5e3;
  border-radius: var(--radius);
  background: #fff;
}

.compact-analysis .match-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}

.compact-analysis .match-section-heading h3 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.cmp-note {
  color: #7b8d92;
  font-size: 0.7rem;
  font-weight: 750;
}

/* Takım başlıkları */
.cmp-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cmp-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name tabs"
    "meta meta";
  align-items: center;
  gap: 6px 8px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: #f5f8f7;
  border-top: 3px solid var(--teal);
}

.cmp-team-away {
  border-top-color: #e08a2c;
}

.cmp-team > .name-with-logo {
  grid-area: name;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 900;
}

.cmp-team .history-scope-tabs {
  grid-area: tabs;
  margin: 0;
}

.cmp-team .history-scope-tabs button {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 0.7rem;
}

.cmp-team-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.cmp-team-meta small {
  color: #6b7d82;
  font-size: 0.7rem;
  font-weight: 750;
}

.cmp-form {
  display: inline-flex;
  gap: 3px;
}

.res {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 5px;
  background: #e3e9e8;
  color: #5b6d72;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
}

.res-W { background: #1f9d6b; color: #fff; }
.res-D { background: #d9a43a; color: #fff; }
.res-L { background: #d4574e; color: #fff; }

/* Karşılaştırma satırları */
.cmp-rows {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e6ecea;
  border-radius: var(--radius-sm);
  background: #e6ecea;
}

.cmp-row {
  display: grid;
  grid-template-columns: 46px minmax(30px, 1fr) minmax(96px, auto) minmax(30px, 1fr) 46px;
  align-items: center;
  gap: 8px;
  min-height: 25px;
  padding: 2px 10px;
  background: #fff;
}

.cmp-row:nth-child(even) {
  background: #fafcfb;
}

.cmp-val {
  color: #5b6d72;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.cmp-row > .cmp-val:first-child {
  text-align: right;
}

.cmp-val.lead {
  color: var(--charcoal);
  font-weight: 950;
}

.cmp-label {
  color: #42575d;
  font-size: 0.74rem;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.cmp-bar {
  display: flex;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf2f1;
}

.cmp-bar-home {
  justify-content: flex-end;
}

.cmp-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.cmp-bar-home i { background: var(--teal); }
.cmp-bar-away i { background: #e08a2c; }

/* Son maç tabloları */
.hist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@container detail (min-width: 720px) {
  .compact-analysis .hist-grid {
    grid-template-columns: 1fr 1fr;
  }

  .compact-analysis .hist-table {
    font-size: 0.74rem;
  }

  .compact-analysis .hist-table th,
  .compact-analysis .hist-table td {
    padding: 4px 3px;
  }

  .compact-analysis .hist-table th {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }

  .compact-analysis .hist-table .num span {
    margin: 0 1px;
  }

  .compact-analysis .hist-opp {
    max-width: 96px;
  }

  .compact-analysis .hist-opp .team-logo {
    display: none;
  }
}

/* Maç listesi daha dar, analiz alanı daha geniş */
@media (min-width: 1181px) {
  .fixture-layout {
    grid-template-columns: minmax(270px, 300px) minmax(0, 1fr);
  }
}

.hist-card {
  min-width: 0;
}

.hist-card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px 2px;
  color: var(--charcoal);
  font-size: 0.8rem;
  font-weight: 900;
}

.hist-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.hist-card-away .hist-dot {
  background: #e08a2c;
}

.hist-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6ecea;
  border-radius: var(--radius-sm);
}

.hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.hist-table th {
  padding: 6px 6px;
  background: #f5f8f7;
  color: #7b8d92;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.hist-table th:nth-child(2) {
  text-align: left;
}

.score-pill {
  display: inline-block;
  min-width: 34px;
  padding: 2px 5px;
  border-radius: 6px;
  font-weight: 900;
}

.score-pill.res-N {
  background: #edf2f1;
}

.hist-table td {
  padding: 5px 6px;
  border-top: 1px solid #eef2f1;
  text-align: center;
  white-space: nowrap;
}

.hist-table tbody tr:hover td {
  background: #f7faf9;
}

.hist-date {
  color: #6b7d82;
  font-weight: 750;
}

.hist-opp {
  max-width: 150px;
  text-align: left !important;
}

.hist-opp .name-with-logo {
  display: inline-flex;
  max-width: calc(100% - 22px);
  overflow: hidden;
  vertical-align: middle;
  font-weight: 800;
}

.hist-opp .name-with-logo > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hist-opp .team-logo {
  width: 16px;
  height: 16px;
}

.hist-opp-date {
  display: none;
}

.venue-tag {
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-right: 3px;
  place-items: center;
  border-radius: 4px;
  background: #edf2f1;
  color: #6b7d82;
  font-size: 0.58rem;
  font-weight: 900;
  vertical-align: middle;
}

.hist-table .num {
  color: #6b7d82;
  font-weight: 700;
}

.hist-table .num b {
  color: var(--charcoal);
  font-weight: 900;
}

.hist-table .num span {
  margin: 0 2px;
  color: #b3c1c4;
}

.hist-table .num.up b { color: #148a5c; }
.hist-table .num.down b { color: #c4463d; }

.hist-table .score {
  color: var(--charcoal);
  font-weight: 900;
}

@container detail (max-width: 520px) {
  .cmp-head {
    grid-template-columns: 1fr;
  }

  .cmp-row {
    grid-template-columns: 38px minmax(16px, 1fr) minmax(84px, auto) minmax(16px, 1fr) 38px;
    gap: 6px;
    padding: 3px 8px;
  }

  .cmp-note {
    display: none;
  }
}

/* Dar analiz alanı: takım adı tam satır, sekmeler altında */
@container detail (max-width: 760px) {
  .cmp-team {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name name"
      "meta meta"
      "tabs tabs";
  }

  .cmp-team .history-scope-tabs {
    justify-self: start;
  }

  .cmp-team-meta small {
    white-space: nowrap;
  }
}

/* Telefon: tablo sığsın diye sıkı düzen */
@container detail (max-width: 560px) {
  .compact-analysis {
    padding: 12px 10px;
  }

  .compact-analysis .hist-table {
    font-size: 0.72rem;
  }

  .compact-analysis .hist-table th,
  .compact-analysis .hist-table td {
    padding: 4px 2px;
  }

  .compact-analysis .hist-table th {
    font-size: 0.56rem;
    letter-spacing: 0;
  }

  .compact-analysis .hist-table .num span {
    margin: 0;
  }

  .compact-analysis .hist-table th:first-child,
  .compact-analysis .hist-date {
    display: none;
  }

  .compact-analysis .hist-opp {
    max-width: 92px;
    line-height: 1.15;
  }

  .compact-analysis .hist-opp .name-with-logo {
    max-width: 100%;
  }

  .compact-analysis .hist-opp-date {
    display: block;
    color: #8a9a9e;
    font-size: 0.6rem;
    font-weight: 750;
  }

  .compact-analysis .hist-opp .team-logo,
  .compact-analysis .venue-tag {
    display: none;
  }

  .compact-analysis .score-pill {
    min-width: 0;
    padding: 2px 4px;
  }
}

/* ==========================================================================
   Masaüstü cila katmanı v2 — yalnızca PC (>= 761px). Telefon görünümü değişmez.
   ========================================================================== */
@media (min-width: 761px) {
  body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  /* Sayılar hizalı dursun (skor, puan, oran, kasa) */
  .season-row,
  .standings-list table,
  .status-strip,
  .bankroll-board,
  .report-board,
  .coupon-board,
  .highlight-list,
  .ai-suggestion-list {
    font-variant-numeric: tabular-nums;
  }

  /* Kupon sekmesinde üst filtreler işe yaramıyor */
  body.mobile-tab-coupons #footballWorkspace > .toolbar {
    display: none;
  }

  /* ---------- Lig filtre çipleri (Öne çıkan / Yapay Zeka) ---------- */
  .panel-league-filter {
    gap: 10px;
  }

  .league-checklist {
    gap: 6px;
  }

  .league-check-option {
    position: relative;
    min-height: 30px;
    border-color: #dbe3df;
    border-radius: 999px;
    background: #fff;
    color: #4d625f;
    padding: 4px 12px 4px 10px;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }

  .league-check-option span {
    text-transform: none;
    letter-spacing: 0;
  }

  .league-check-option input {
    width: 14px;
    min-height: 14px;
    height: 14px;
  }

  .league-check-option:hover {
    border-color: #9fc5bd;
    background: #f5faf8;
    color: var(--charcoal);
  }

  .league-check-option.checked {
    border-color: #2f8f84;
    background: #e6f4ef;
    color: #12323a;
  }

  /* ---------- Sezon fikstürü ---------- */
  .season-fixture-list {
    max-height: calc(100vh - 250px);
    min-height: 420px;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: #c9d6d2 transparent;
  }

  .season-fixture-list .league-group {
    overflow: clip;
    border: 1px solid #e1e8e5;
    border-radius: var(--radius-sm);
    /* Ekranda olmayan lig blokları çizilmez: binlerce satırda büyük kazanç */
    content-visibility: auto;
    contain-intrinsic-size: auto 1600px;
  }

  .season-fixture-list .league-title {
    position: sticky;
    /* listenin üst iç boşluğu kadar yukarı: başlığın üstünden satır görünmesin */
    top: -16px;
    z-index: 2;
    box-shadow: 0 1px 0 #e1e8e5;
  }

  .season-row {
    grid-template-columns: 128px minmax(0, 1fr) 60px minmax(0, 1fr) 92px;
    gap: 12px;
    min-height: 46px;
    padding: 7px 14px;
    transition: background-color 120ms ease;
  }

  .season-row:hover {
    background: #f6faf8;
  }

  .season-row > span:first-child {
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
  }

  .season-row .season-day {
    color: #24413f;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .season-row > span:first-child small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
  }

  .season-row > strong:last-of-type {
    justify-self: start;
  }

  .season-row > strong:first-of-type {
    justify-self: end;
    text-align: right;
  }

  .season-row > strong:first-of-type .team-badge,
  .season-row > strong:first-of-type > * {
    flex-direction: row-reverse;
  }

  .season-row em {
    justify-self: end;
    text-align: right;
  }

  /* ---------- Yönetici & uzun listeler ---------- */
  .admin-match-list .admin-date-group,
  .standings-list > section,
  .league-directory > section {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
  }

  /* ---------- Genel kart ve buton cilası ---------- */
  .panel {
    border-color: #e1e8e5;
  }

  .panel-header h2 {
    letter-spacing: -0.01em;
  }

  button,
  .ghost-button,
  .primary-button {
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 80ms ease;
  }

  .primary-button:active,
  .ghost-button:active {
    transform: translateY(1px);
  }

  img.team-logo,
  img.league-logo,
  img.mini-logo {
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 761px) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Tahmin Başarısı + Gelişmiş filtre (PC)
   ========================================================================== */
body.mobile-tab-accuracy #footballWorkspace > .toolbar {
  display: none;
}

/* Telefon tasarımı daha sonra ele alınacak: orada bu çubuk görünmez. */
@media (max-width: 760px) {
  .advanced-filter-bar {
    display: none !important;
  }
}

@media (min-width: 761px) {
  /* ---------- Gelişmiş filtre çubuğu ---------- */
  .advanced-filter-bar {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    border-top: 1px dashed #dbe3df;
    padding-top: 10px;
    letter-spacing: 0;
    text-transform: none;
  }

  body.mobile-tab-teams .advanced-filter-bar,
  body.mobile-tab-fixtures .advanced-filter-bar,
  body.mobile-tab-standings .advanced-filter-bar,
  body.mobile-tab-admin .advanced-filter-bar {
    display: none;
  }

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

  .adv-toggle,
  .adv-clear {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    border: 1px solid #d3ddd9;
    border-radius: 999px;
    background: #fff;
    color: #24413f;
    padding: 4px 13px 4px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }

  .adv-toggle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
  }

  .adv-toggle:hover,
  .adv-clear:hover {
    border-color: #9fc5bd;
    background: #f5faf8;
  }

  .adv-toggle.open,
  .adv-toggle.has-active {
    border-color: #2f8f84;
    background: #e6f4ef;
    color: #12323a;
  }

  .adv-count {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #2f8f84;
    color: #fff;
    font-size: 0.68rem;
  }

  .adv-clear {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
    padding: 4px 8px;
  }

  .view-chips {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .view-empty {
    color: #93a5a1;
    font-size: 0.74rem;
    font-weight: 700;
  }

  .view-chip {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #d3ddd9;
    border-radius: 999px;
    background: #fff;
  }

  .view-chip button {
    border: 0;
    background: transparent;
    color: #24413f;
    padding: 5px 4px 5px 12px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
  }

  .view-chip .view-chip-remove {
    padding: 5px 10px 5px 6px;
    color: #93a5a1;
    font-size: 0.9rem;
    line-height: 1;
  }

  .view-chip .view-chip-remove:hover {
    color: #b4413a;
  }

  .view-chip:hover {
    border-color: #9fc5bd;
  }

  .view-chip.active {
    border-color: #12323a;
    background: #12323a;
  }

  .view-chip.active button {
    color: #fff;
  }

  .adv-panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: end;
    border-radius: var(--radius-sm);
    background: #f5f8f7;
    padding: 12px;
  }

  .adv-panel label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .adv-panel select,
  .adv-panel input[type="number"],
  .adv-panel input[type="text"] {
    min-height: 36px;
    letter-spacing: 0;
    text-transform: none;
  }

  .adv-panel .adv-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    color: #24413f;
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .adv-check input {
    width: 16px;
    height: 16px;
    min-height: 16px;
    accent-color: #2f8f84;
  }

  .adv-save {
    grid-column: span 4;
    display: flex;
    gap: 8px;
  }

  .adv-save input {
    flex: 1 1 auto;
  }

  .adv-note {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.45;
  }

  /* ---------- Tahmin Başarısı ---------- */
  .accuracy-board {
    display: grid;
    gap: 14px;
    padding: 16px 18px 20px;
    font-variant-numeric: tabular-nums;
  }

  .acc-controls {
    display: grid;
    grid-template-columns: 170px 170px minmax(200px, 280px) auto;
    gap: 12px;
    align-items: end;
    justify-content: start;
  }

  .acc-controls label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .acc-controls input,
  .acc-controls select {
    min-height: 38px;
    letter-spacing: 0;
    text-transform: none;
  }

  .acc-controls .ghost-button {
    min-height: 38px;
  }

  .acc-coverage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .acc-coverage.ok {
    border: 1px solid #cfe7dc;
    background: #eef8f3;
    color: #1f4d43;
  }

  .acc-coverage.warn {
    border: 1px solid #f0dfb5;
    background: #fdf8ea;
    color: #5c4a1c;
  }

  .acc-coverage .ghost-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .acc-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .acc-kpi {
    display: grid;
    align-content: start;
    gap: 3px;
    border: 1px solid #e1e8e5;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 12px 14px;
  }

  .acc-kpi:first-child {
    border-color: #12323a;
    background: #12323a;
    color: #fff;
  }

  .acc-kpi-title {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .acc-kpi:first-child .acc-kpi-title,
  .acc-kpi:first-child .acc-kpi-count,
  .acc-kpi:first-child .acc-kpi-base,
  .acc-kpi:first-child .acc-kpi-note {
    color: rgba(255, 255, 255, 0.72);
  }

  .acc-kpi-rate {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .acc-kpi-rate.good {
    color: #23865f;
  }

  .acc-kpi-rate.bad {
    color: #b4413a;
  }

  .acc-kpi:first-child .acc-kpi-rate.good {
    color: var(--lime);
  }

  .acc-kpi:first-child .acc-kpi-rate.bad {
    color: #ff9b8f;
  }

  .acc-kpi-count {
    font-size: 0.8rem;
    font-weight: 800;
  }

  .acc-kpi-base,
  .acc-kpi-note {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
  }

  .acc-lift {
    margin-left: 4px;
    border-radius: 999px;
    padding: 1px 6px;
    font-weight: 850;
  }

  .acc-lift.up {
    background: #e3f4ea;
    color: #23865f;
  }

  .acc-lift.down {
    background: #fbe7e4;
    color: #b4413a;
  }

  .acc-lift.flat {
    background: #eef2f1;
    color: var(--muted);
  }

  .acc-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .acc-card {
    border: 1px solid #e1e8e5;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 14px 16px;
  }

  .acc-card h3 {
    margin: 0;
    font-size: 0.92rem;
  }

  .acc-hint {
    margin: 2px 0 10px;
    color: var(--muted);
    font-size: 0.74rem;
  }

  .acc-band {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 48px 52px;
    gap: 10px;
    align-items: center;
    padding: 5px 0;
    font-size: 0.8rem;
  }

  .acc-band span {
    color: #4d625f;
    font-weight: 800;
  }

  .acc-band-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f0;
  }

  .acc-band-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f8f84, #5cbf8a);
  }

  .acc-band b,
  .acc-league b {
    text-align: right;
  }

  .acc-band small,
  .acc-league small {
    color: var(--muted);
    font-weight: 700;
    text-align: right;
  }

  .acc-league-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 18px;
    max-height: 190px;
    overflow: auto;
  }

  .acc-league {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 8px;
    border-bottom: 1px solid #f0f3f2;
    padding: 5px 0;
    font-size: 0.8rem;
  }

  .acc-league span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .acc-list-card {
    padding: 0;
    overflow: hidden;
  }

  .acc-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e1e8e5;
    padding: 10px 14px;
  }

  .acc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .acc-chips button {
    min-height: 30px;
    border: 1px solid #d3ddd9;
    border-radius: 999px;
    background: #fff;
    color: #4d625f;
    padding: 4px 12px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
  }

  .acc-chips button span {
    margin-left: 4px;
    color: #93a5a1;
  }

  .acc-chips button.active {
    border-color: #12323a;
    background: #12323a;
    color: #fff;
  }

  .acc-chips button.active span {
    color: rgba(255, 255, 255, 0.7);
  }

  .acc-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #24413f;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .acc-toggle input {
    width: 16px;
    height: 16px;
    min-height: 16px;
    accent-color: #2f8f84;
  }

  .acc-list {
    max-height: calc(100vh - 220px);
    overflow: auto;
  }

  .acc-row {
    display: grid;
    grid-template-columns: 120px minmax(260px, 1.4fr) minmax(180px, 1fr) minmax(150px, 0.8fr) 84px;
    gap: 14px;
    align-items: center;
    min-height: 54px;
    border-bottom: 1px solid #f0f3f2;
    padding: 8px 14px;
    font-size: 0.82rem;
    content-visibility: auto;
    contain-intrinsic-size: auto 56px;
  }

  .acc-row:hover {
    background: #f8fbfa;
  }

  .acc-row.is-rejected {
    opacity: 0.62;
  }

  .acc-date {
    display: grid;
    gap: 1px;
    white-space: nowrap;
  }

  .acc-date .season-day {
    color: #24413f;
    font-weight: 800;
  }

  .acc-date small,
  .acc-match small,
  .acc-pick small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
  }

  .acc-match,
  .acc-pick {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .acc-match b {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-weight: 800;
  }

  .acc-match b i {
    flex: 0 0 auto;
    border-radius: 6px;
    background: #12323a;
    color: #fff;
    padding: 2px 7px;
    font-size: 0.74rem;
    font-style: normal;
  }

  .acc-pick b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .acc-result {
    color: #4d625f;
    font-weight: 700;
  }

  .acc-badge {
    justify-self: end;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
  }

  .acc-badge.hit {
    background: #e3f4ea;
    color: #1d7a53;
  }

  .acc-badge.miss {
    background: #fbe7e4;
    color: #b4413a;
  }

  .acc-badge.none {
    background: #eef2f1;
    color: var(--muted);
  }

  .acc-footnote {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.5;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .acc-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .acc-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .adv-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .adv-save {
    grid-column: 1 / -1;
  }

  .acc-row {
    grid-template-columns: 100px minmax(200px, 1fr) minmax(150px, 0.9fr) 76px;
  }

  .acc-row .acc-result {
    display: none;
  }
}

@media (min-width: 761px) {
  .adv-save .primary-button {
    white-space: nowrap;
  }

  /* Gelişmiş panel açıkken filtre çubuğu sayfayla kaysın, içeriği örtmesin */
  .match-toolbar:has(.adv-panel) {
    position: static;
  }
}

/* ---------- Öne Çıkan / Yapay Zeka: geçmiş tahmin sonucu ---------- */
@media (min-width: 761px) {
  .pred-outcome {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
    margin-top: 6px;
    border-radius: 8px;
    padding: 3px 8px;
    font-style: normal;
    line-height: 1.3;
  }

  .pred-outcome b {
    font-size: 0.72rem;
    font-weight: 900;
  }

  .pred-outcome small {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.85;
  }

  .pred-outcome.hit {
    background: #e3f4ea;
    color: #1d7a53;
  }

  .pred-outcome.miss {
    background: #fbe7e4;
    color: #b4413a;
  }

  .pred-outcome.none {
    background: #eef2f1;
    color: var(--muted);
  }

  .pred-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-bottom: 10px;
    border: 1px solid #cfe7dc;
    border-radius: var(--radius-sm);
    background: #eef8f3;
    padding: 10px 14px;
    color: #1f4d43;
    font-size: 0.84rem;
    font-variant-numeric: tabular-nums;
  }

  .pred-summary .muted {
    color: var(--muted);
  }
}

/* ==========================================================================
   Üyelik: giriş ekranı (her genişlik) + kullanıcı kutusu + Üyeler paneli (PC)
   ========================================================================== */
body.auth-locked {
  overflow: hidden;
}

body.auth-locked .app-frame,
body.auth-locked .back-to-top {
  visibility: hidden;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px 16px;
  background:
    radial-gradient(90% 60% at 10% 0%, rgba(196, 240, 91, 0.12), transparent 60%),
    linear-gradient(160deg, #143840, #0c2227);
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 28px 28px 24px;
  color: #12323a;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.auth-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #12323a;
  color: var(--lime, #c4f05b);
  font-weight: 900;
}

.auth-brand b {
  display: block;
  font-size: 1rem;
}

.auth-brand small {
  color: #6b807c;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-card h1 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.auth-lead,
.auth-note,
.auth-hint {
  margin: 0;
  color: #4d625f;
  font-size: 0.86rem;
  line-height: 1.5;
}

.auth-note {
  border-radius: 10px;
  background: #eef8f3;
  padding: 10px 12px;
  color: #1f4d43;
}

.auth-hint {
  color: #7b8f8b;
  font-size: 0.78rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 12px;
  background: #eef2f1;
  padding: 4px;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4d625f;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.active {
  background: #fff;
  color: #12323a;
  box-shadow: 0 1px 3px rgba(17, 42, 49, 0.12);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 5px;
  color: #4d625f;
  font-size: 0.74rem;
  font-weight: 800;
}

.auth-form label.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #12323a;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.auth-form .auth-check input {
  flex: none;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: #1f8a5b;
  cursor: pointer;
}

.auth-form input {
  min-height: 44px;
  border: 1px solid #d3ddd9;
  border-radius: 10px;
  padding: 0 12px;
  color: #12323a;
  font-size: 0.95rem;
}

.auth-form input:focus {
  border-color: #2f8f84;
  outline: 3px solid rgba(47, 143, 132, 0.18);
}

.auth-form .primary-button {
  min-height: 46px;
  font-size: 0.95rem;
}

.auth-form .primary-button:disabled {
  opacity: 0.6;
}

.auth-error {
  min-height: 0;
  margin: 0;
  color: #b4413a;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-error:empty {
  display: none;
}

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

.auth-link {
  justify-self: center;
  border: 0;
  background: none;
  color: #2f8f84;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

/* Kenar menüsündeki kullanıcı kutusu */
.auth-user-box {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 8px 8px 10px;
}

.auth-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime, #c4f05b);
  color: #12323a;
  font-size: 0.72rem;
  font-weight: 900;
}

.auth-user-text {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}

.auth-user-text b {
  overflow: hidden;
  color: #fff;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user-text small {
  color: var(--side-muted, #7f9c98);
  font-size: 0.68rem;
  font-weight: 700;
}

.auth-user-actions {
  display: flex;
  gap: 2px;
}

.auth-user-actions button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--side-ink, #d7e6e1);
  cursor: pointer;
}

.auth-user-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.auth-user-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-user-login {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--lime, #c4f05b);
  color: #12323a;
  font-weight: 900;
  cursor: pointer;
}

/* Yönetim grubu sadece yöneticiye */
body:not(.role-admin) .nav-group-admin {
  display: none;
}

@media (min-width: 761px) {
  .members-board {
    display: grid;
    gap: 14px;
    padding: 16px 18px 20px;
  }

  .mb-flash {
    margin: 0;
    border-radius: var(--radius-sm);
    background: #eef8f3;
    padding: 10px 14px;
    color: #1f4d43;
    font-size: 0.84rem;
    font-weight: 700;
  }

  .mb-secret {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    border: 1px solid #f0dfb5;
    border-radius: var(--radius-sm);
    background: #fdf8ea;
    padding: 12px 14px;
    color: #5c4a1c;
    font-size: 0.82rem;
  }

  .mb-secret > div {
    display: grid;
    flex: 1 1 320px;
    gap: 2px;
  }

  .mb-secret code {
    border-radius: 8px;
    background: #fff;
    padding: 6px 12px;
    color: #12323a;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .mb-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }

  .mb-kpis article {
    display: grid;
    gap: 2px;
    border: 1px solid #e1e8e5;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 12px 14px;
  }

  .mb-kpis span {
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mb-kpis b {
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
  }

  .mb-kpis article.attention {
    border-color: #f0c36b;
    background: #fdf8ea;
  }

  .mb-split {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
  }

  .mb-card {
    border: 1px solid #e1e8e5;
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 14px 16px;
  }

  .mb-card h3 {
    margin: 0 0 10px;
    font-size: 0.92rem;
  }

  .mb-card label {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mb-card select,
  .mb-card input {
    min-height: 38px;
    letter-spacing: 0;
    text-transform: none;
  }

  .mb-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .mb-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }

  .mb-create-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mb-create-foot .primary-button {
    flex: 0 0 auto;
  }

  .mb-list-card {
    padding: 0;
    overflow: hidden;
  }

  .mb-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e1e8e5;
    padding: 10px 14px;
  }

  .mb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .mb-chips button {
    min-height: 30px;
    border: 1px solid #d3ddd9;
    border-radius: 999px;
    background: #fff;
    color: #4d625f;
    padding: 4px 12px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
  }

  .mb-chips button span {
    margin-left: 5px;
    color: #93a5a1;
  }

  .mb-chips button.active {
    border-color: #12323a;
    background: #12323a;
    color: #fff;
  }

  .mb-chips button.active span {
    color: rgba(255, 255, 255, 0.7);
  }

  .mb-search {
    width: 240px;
    min-height: 34px;
  }

  .mb-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) 120px 120px 150px minmax(170px, 1fr) auto;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid #f0f3f2;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .mb-row:hover {
    background: #f8fbfa;
  }

  .mb-row.pending {
    background: #fffcf3;
  }

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

  .mb-person > span:last-child {
    display: grid;
    min-width: 0;
  }

  .mb-person b,
  .mb-person small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mb-person small {
    color: var(--muted);
  }

  .mb-you {
    border-radius: 999px;
    background: #eef2f1;
    padding: 1px 6px;
    color: var(--muted);
    font-size: 0.64rem;
  }

  .mb-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e6f4ef;
    color: #1d7a53;
    font-weight: 900;
  }

  .mb-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
  }

  .mb-badge.active {
    background: #e3f4ea;
    color: #1d7a53;
  }

  .mb-badge.pending {
    background: #fdf1d6;
    color: #8a5a00;
  }

  .mb-badge.suspended,
  .mb-badge.expired {
    background: #fbe7e4;
    color: #b4413a;
  }

  .mb-badge.admin {
    background: #12323a;
    color: #fff;
  }

  .mb-field {
    display: grid;
    gap: 3px;
    margin: 0;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mb-field select,
  .mb-field input {
    min-height: 32px;
    padding-block: 2px;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.8rem;
  }

  .mb-meta {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: 0.72rem;
  }

  .mb-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .mb-btn {
    min-height: 32px;
    border: 1px solid #d3ddd9;
    border-radius: 8px;
    background: #fff;
    color: #24413f;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }

  .mb-btn.primary {
    border-color: #2f8f84;
    background: #2f8f84;
    color: #fff;
  }

  .mb-btn.warn:hover {
    border-color: #e2a39b;
    color: #b4413a;
  }

  .mb-more {
    position: relative;
  }

  .mb-more summary {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #d3ddd9;
    border-radius: 8px;
    color: #4d625f;
    font-size: 0.7rem;
    cursor: pointer;
    list-style: none;
  }

  .mb-more summary::-webkit-details-marker {
    display: none;
  }

  .mb-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 210px;
    border: 1px solid #e1e8e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-strong);
    padding: 6px;
  }

  .mb-menu button {
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #24413f;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .mb-menu button:hover:not(:disabled) {
    background: #f2f6f5;
  }

  .mb-menu button:disabled {
    opacity: 0.45;
    cursor: default;
  }

  .mb-menu button.danger {
    color: #b4413a;
  }

  .mb-log {
    padding: 0;
  }

  .mb-log-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    padding: 12px 16px;
    color: #12323a;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
  }

  .mb-log-toggle span {
    color: var(--muted);
    font-size: 0.76rem;
  }

  .mb-log-toggle i {
    margin-left: auto;
    color: #2f8f84;
    font-size: 0.78rem;
    font-style: normal;
  }

  .mb-log-list {
    max-height: 340px;
    overflow: auto;
    border-top: 1px solid #e1e8e5;
  }

  .mb-log-row {
    display: grid;
    grid-template-columns: 140px 190px minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid #f0f3f2;
    padding: 7px 16px;
    font-size: 0.78rem;
  }

  .mb-log-row span,
  .mb-log-row small {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .mb-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mb-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .mb-row {
    grid-template-columns: minmax(200px, 1fr) 110px 110px 140px auto;
  }

  .mb-meta {
    display: none;
  }
}

body.mobile-tab-members #footballWorkspace > .toolbar {
  display: none;
}

@media (min-width: 761px) {
  .mb-row {
    grid-template-columns: minmax(220px, 1.4fr) 120px 130px 160px minmax(170px, 1fr) 150px;
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .mb-row {
    grid-template-columns: minmax(200px, 1fr) 110px 120px 150px 150px;
  }
}

/* E-posta doğrulama: Üyeler paneli */
@media (min-width: 761px) {
  .mb-kpis {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .mb-unverified {
    margin-left: 4px;
    border-radius: 999px;
    background: #fdf1d6;
    padding: 0 6px;
    color: #8a5a00;
    font-size: 0.66rem;
    font-weight: 800;
  }

  .mb-mail-warn {
    border: 1px solid #f0dfb5;
    border-radius: var(--radius-sm);
    background: #fdf8ea;
    padding: 10px 14px;
    color: #5c4a1c;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .mb-mail-warn code {
    border-radius: 5px;
    background: #fff;
    padding: 1px 5px;
    font-size: 0.78rem;
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .mb-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.auth-actions .primary-button {
  min-height: 40px;
  padding-inline: 16px;
}

/* ==========================================================================
   Takım kadrosu (profil çekmecesi) + Derinlemesine analiz
   ========================================================================== */
.tp-tabs,
.dv-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 12px;
  background: #eef2f1;
  padding: 4px;
}

.tp-tabs {
  margin: 10px 0 12px;
}

.tp-tabs button,
.dv-switch button {
  display: grid;
  gap: 1px;
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4d625f;
  padding: 6px 10px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.dv-switch {
  margin: 12px 0;
}

.dv-switch small {
  color: #7b8f8b;
  font-size: 0.7rem;
  font-weight: 700;
}

.tp-tabs button.active,
.dv-switch button.active {
  background: #fff;
  color: #12323a;
  box-shadow: 0 1px 3px rgba(17, 42, 49, 0.12);
}

.dv-switch button.active small {
  color: #2f8f84;
}

.sq-wrap {
  display: grid;
  gap: 10px;
}

.sq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  font-size: 0.84rem;
}

.sq-head small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.sq-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.sq-chip {
  display: grid;
  border: 1px solid #e1e8e5;
  border-radius: 10px;
  background: #fff;
  padding: 7px 10px;
}

.sq-chip small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sq-chip b {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sq-chip em {
  color: #2f8f84;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.sq-table-wrap {
  overflow-x: auto;
  border: 1px solid #e1e8e5;
  border-radius: 10px;
}

.sq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.sq-table thead th {
  position: sticky;
  top: 0;
  background: #f5f8f7;
  color: var(--muted);
  padding: 7px 6px;
  font-size: 0.66rem;
  font-weight: 850;
  text-align: center;
}

.sq-table thead th:nth-child(2) {
  text-align: left;
}

.sq-table td {
  border-top: 1px solid #f0f3f2;
  padding: 6px;
  text-align: center;
}

.sq-table .sq-group th {
  background: #fbfcfc;
  color: #12323a;
  padding: 8px 10px 6px;
  font-size: 0.74rem;
  text-align: left;
}

.sq-group th span {
  color: var(--muted);
  font-weight: 700;
}

.sq-num {
  color: var(--muted);
  font-weight: 800;
}

.sq-table td.sq-name {
  display: grid;
  gap: 1px;
  text-align: left;
}

.sq-name small {
  color: var(--muted);
  font-size: 0.7rem;
}

.sq-injury {
  justify-self: start;
  border-radius: 999px;
  background: #fbe7e4;
  padding: 1px 7px;
  color: #b4413a;
  font-size: 0.66rem;
  font-weight: 800;
}

.sq-rating.high {
  color: #1d7a53;
  font-weight: 900;
}

.sq-table tr.is-injured td:not(.sq-name) {
  color: #93a5a1;
}

.sq-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.dp-wrap {
  display: grid;
  gap: 12px;
}

.dp-stamp {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.dp-card {
  border: 1px solid #e1e8e5;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.dp-card h3 {
  margin: 0 0 8px;
  font-size: 0.88rem;
}

.dp-insights {
  border-color: #cfe7dc;
  background: #f3faf6;
}

.dp-insights ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.dp-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dp-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dp-big {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.dp-big span {
  color: #4d625f;
  font-size: 0.8rem;
  font-weight: 700;
}

.dp-muted {
  margin: 2px 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.dp-kv {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-top: 1px solid #f0f3f2;
  padding: 5px 0;
  font-size: 0.8rem;
}

.dp-kv span {
  flex: 1 1 auto;
  color: #4d625f;
}

.dp-kv em {
  border-radius: 999px;
  background: #eef2f1;
  padding: 1px 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.dp-kv em.up {
  background: #fbe7e4;
  color: #b4413a;
}

.dp-kv em.down {
  background: #e3f4ea;
  color: #1d7a53;
}

.dp-absent h4,
.dp-lineup h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.84rem;
}

.dp-absent h4 span {
  color: var(--muted);
  font-size: 0.72rem;
}

.dp-absent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  border-left: 3px solid #e2a39b;
  margin-bottom: 5px;
  padding: 3px 8px;
  font-size: 0.8rem;
}

.dp-absent-row.suspension {
  border-left-color: #e6b34c;
}

.dp-absent-row b em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.dp-absent-row small {
  flex-basis: 100%;
  color: var(--muted);
}

.dp-key {
  border-radius: 999px;
  background: #12323a;
  padding: 1px 7px;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
}

.dp-formation {
  border-radius: 6px;
  background: #eef2f1;
  padding: 1px 6px;
  color: #4d625f;
  font-size: 0.72rem;
}

.dp-source {
  display: inline-block;
  margin-bottom: 4px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 850;
}

.dp-source.official {
  background: #12323a;
  color: #fff;
}

.dp-source.predicted {
  background: #e3f4ea;
  color: #1d7a53;
}

.dp-source.last {
  background: #fdf1d6;
  color: #8a5a00;
}

.dp-line {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 6px;
  border-top: 1px solid #f0f3f2;
  padding: 5px 0;
}

.dp-line-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.dp-line > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.dp-player {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e1e8e5;
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 0.76rem;
  font-weight: 700;
}

.dp-player i {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
}

.dp-player.out {
  border-color: #e2a39b;
  background: #fbe7e4;
  color: #b4413a;
  text-decoration: line-through;
}

.dp-note {
  margin: 6px 0 0;
  color: #7b8f8b;
  font-size: 0.72rem;
  line-height: 1.4;
}

.dp-sched {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #f0f3f2;
  padding: 7px 0;
  font-size: 0.78rem;
}

.dp-sched span {
  color: #4d625f;
}

.dp-sched em {
  border-radius: 999px;
  background: #e3f4ea;
  padding: 2px 8px;
  color: #1d7a53;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.dp-sched em.tight {
  background: #fdf1d6;
  color: #8a5a00;
}

@media (max-width: 1180px) {
  .dp-grid3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .dp-sched {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 760px) {
  .dp-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Derin analiz: mini saha ---------- */
.pitch-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pitch-team {
  display: grid;
  gap: 1px;
}

.pitch-team.away {
  text-align: right;
}

.pitch-team b {
  font-size: 0.9rem;
}

.pitch-team span {
  justify-self: start;
  border-radius: 6px;
  background: #eef2f1;
  padding: 1px 7px;
  color: #24413f;
  font-size: 0.72rem;
  font-weight: 800;
}

.pitch-team.away span {
  justify-self: end;
}

.pitch-team small {
  color: var(--muted);
  font-size: 0.72rem;
}

.pitch-official {
  align-self: center;
  border-radius: 999px;
  background: #12323a;
  padding: 3px 10px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 850;
}

.pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 105 / 64;
  overflow: hidden;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 9.52%, transparent 9.52% 19.04%),
    linear-gradient(180deg, #2f8a55, #277a4a);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.pitch-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 0.35;
}

.pitch-lines .spot {
  fill: rgba(255, 255, 255, 0.65);
  stroke: none;
}

.pp {
  position: absolute;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 86px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.pp-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  font-size: 0.72rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.pp.home .pp-dot {
  background: #ffffff;
  color: #12323a;
}

.pp.away .pp-dot {
  background: #12323a;
  color: #ffffff;
}

.pp-name {
  max-width: 100%;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(10, 30, 24, 0.55);
  padding: 1px 5px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pp.out .pp-dot {
  border-color: #ff8a7a;
  background: #b4413a;
  color: #fff;
}

.pp.out .pp-name {
  background: rgba(180, 65, 58, 0.85);
  text-decoration: line-through;
}

.pitch-empty {
  position: absolute;
  top: 50%;
  width: 40%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.pitch-empty.home {
  left: 5%;
}

.pitch-empty.away {
  right: 5%;
}

.pitch-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 8px;
  color: #4d625f;
  font-size: 0.74rem;
  font-weight: 700;
}

.pitch-legend .lg {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border: 2px solid #12323a;
  border-radius: 50%;
  vertical-align: -1px;
}

.pitch-legend .lg.home {
  background: #fff;
}

.pitch-legend .lg.away {
  background: #12323a;
}

.pitch-legend .lg.out {
  border-color: #b4413a;
  background: #b4413a;
}

.pitch-hint {
  flex-basis: 100%;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 1180px) {
  .pp {
    width: 64px;
  }

  .pp-dot {
    width: 22px;
    height: 22px;
    font-size: 0.62rem;
  }

  .pp-name {
    font-size: 0.58rem;
  }
}

/* ---------- Derin analiz: dikkat edilmesi gerekenler ---------- */
.dp-insights {
  border-color: #e1e8e5;
  background: #fff;
}

.ins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.ins-card {
  border-radius: 10px;
  background: #f7faf9;
  padding: 10px 12px;
}

.ins-card h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: #12323a;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ins-card h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f8f84;
}

.ins-card.absent h4::before {
  background: #b4413a;
}

.ins-card.fitness h4::before {
  background: #e6b34c;
}

.ins-card.referee h4::before {
  background: #12323a;
}

.ins-card.weather h4::before {
  background: #4b8fd6;
}

.ins-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ins-card li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
  border-left: 3px solid #d3ddd9;
  padding: 2px 0 2px 8px;
  color: #33504c;
  font-size: 0.8rem;
  line-height: 1.4;
}

.ins-card li.bad {
  border-left-color: #d9746a;
}

.ins-card li.warn {
  border-left-color: #e6b34c;
}

.ins-card li.good {
  border-left-color: #5cbf8a;
}

.ins-card li.info {
  border-left-color: #8fb8e6;
}

.ins-team {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.68rem;
  font-weight: 850;
}

.ins-team.home {
  border: 1px solid #12323a;
  background: #fff;
  color: #12323a;
}

.ins-team.away {
  background: #12323a;
  color: #fff;
}

/* ==========================================================================
   Takım sayfası (PC): yan panel yerine tam ekran
   ========================================================================== */
@media (min-width: 761px) {
  .team-profile-drawer.page-mode {
    left: var(--side-w);
    grid-template-columns: minmax(0, 1fr);
  }

  .team-profile-drawer.page-mode .team-profile-backdrop {
    display: none;
  }

  .team-profile-drawer.page-mode .team-profile-panel {
    grid-column: 1;
    border-left: 0;
    background: #eef2f1;
    box-shadow: none;
  }

  .team-profile-drawer.page-mode .team-profile-head {
    padding: 10px 32px;
  }

  .team-profile-drawer.page-mode .team-profile-head h2 {
    font-size: 0.95rem;
  }

  .team-profile-drawer.page-mode .team-profile-head .team-logo {
    width: 24px;
    height: 24px;
  }

  .team-profile-drawer.page-mode .team-profile-body {
    overflow-y: auto;
    padding: 0;
  }

  .tpp {
    display: grid;
    gap: 14px;
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 18px 32px 48px;
  }

  .tpp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(260px, 340px);
    gap: 18px;
    align-items: center;
    border-radius: 16px;
    background:
      radial-gradient(80% 140% at 0% 0%, rgba(196, 240, 91, 0.14), transparent 55%),
      linear-gradient(135deg, #143840, #0f2a30);
    padding: 20px 24px;
    color: #fff;
  }

  .tpp-id {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
  }

  .tpp-logo {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
    object-fit: contain;
  }

  .tpp-id h1 {
    margin: 0;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
  }

  .tpp-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
  }

  .tpp-sub b {
    color: #fff;
  }

  .tpp-sub .league-badge,
  .tpp-sub .league-badge span {
    color: #fff;
  }

  .tpp-form {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
  }

  .tpp-form small {
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
  }

  .tpp-res {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #8c9b98;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
  }

  .tpp-res.W {
    background: #2f9e64;
  }

  .tpp-res.D {
    background: #c99a2e;
  }

  .tpp-res.L {
    background: #c9524a;
  }

  .tpp-rank {
    display: grid;
    justify-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0 26px;
  }

  .tpp-rank b {
    color: var(--lime, #c4f05b);
    font-size: 2.4rem;
    line-height: 1;
  }

  .tpp-rank b small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
  }

  .tpp-rank span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 800;
  }

  .tpp-next {
    display: grid;
    gap: 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    padding: 12px 14px;
  }

  .tpp-next-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .tpp-next-team {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .tpp-next-team .team-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
  }

  .tpp-next-team em {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    font-style: normal;
  }

  .tpp-next-time {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
  }

  .tpp-next .primary-button {
    min-height: 34px;
    background: var(--lime, #c4f05b);
    color: #12323a;
  }

  .tpp-kpis {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
  }

  .tpp-kpi {
    display: grid;
    gap: 2px;
    border: 1px solid #e1e8e5;
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    min-width: 0;
  }

  .tpp-kpi span {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .tpp-kpi b {
    overflow: hidden;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tpp-kpi small {
    color: #6b807c;
    font-size: 0.72rem;
  }

  .tpp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
    gap: 14px;
    align-items: start;
  }

  .tpp-main,
  .tpp-side {
    display: grid;
    gap: 14px;
    min-width: 0;
  }

  .tpp-card {
    border: 1px solid #e1e8e5;
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    min-width: 0;
  }

  .tpp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .tpp-card-head h2 {
    margin: 0;
    font-size: 0.95rem;
  }

  .tpp-card-head span {
    border-radius: 999px;
    background: #eef2f1;
    padding: 1px 9px;
    color: #4d625f;
    font-size: 0.74rem;
    font-weight: 850;
  }

  .tpp-card .sq-table-wrap {
    max-height: 640px;
    overflow: auto;
  }

  .tpp-injuries {
    display: grid;
    gap: 6px;
  }

  .tpp-injuries div {
    display: grid;
    border-left: 3px solid #d9746a;
    padding: 2px 0 2px 9px;
  }

  .tpp-injuries b {
    font-size: 0.84rem;
  }

  .tpp-injuries small {
    color: var(--muted);
    font-size: 0.74rem;
  }

  .tpp-list {
    display: grid;
  }

  .tpp-row {
    display: grid;
    grid-template-columns: 64px 34px minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    border: 0;
    border-top: 1px solid #f0f3f2;
    border-radius: 0;
    background: transparent;
    padding: 7px 4px;
    color: inherit;
    font: inherit;
    font-size: 0.8rem;
    text-align: left;
  }

  .tpp-row.played {
    cursor: pointer;
  }

  .tpp-row.played:hover,
  .tpp-row.selected {
    background: #f3f8f6;
  }

  .tpp-row.selected {
    box-shadow: inset 3px 0 0 #2f8f84;
  }

  .tpp-date {
    color: #4d625f;
    font-weight: 800;
    white-space: nowrap;
  }

  .tpp-date small {
    color: var(--muted);
    font-weight: 700;
  }

  .tpp-venue {
    border-radius: 6px;
    padding: 1px 0;
    font-size: 0.66rem;
    font-weight: 900;
    text-align: center;
  }

  .tpp-venue.home {
    background: #e6f4ef;
    color: #1d7a53;
  }

  .tpp-venue.away {
    background: #eef2f1;
    color: #4d625f;
  }

  .tpp-opp {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }

  .tpp-opp .team-logo {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  .tpp-opp b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tpp-score {
    font-weight: 900;
    font-variant-numeric: tabular-nums;
  }

  .tpp-when {
    grid-column: span 2;
    color: var(--muted);
    font-size: 0.72rem;
  }

  .tpp-more summary {
    margin-top: 8px;
    color: #2f8f84;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
  }

  .tpp-detail .team-profile-section {
    margin: 0;
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .tpp-hero {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tpp-next {
    grid-column: 1 / -1;
  }

  .tpp-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

.ins-card li {
  display: block;
}

.ins-card li .ins-team {
  display: inline-block;
  margin-right: 6px;
  vertical-align: 1px;
}

/* ---------- Günlük maç hakkı: bilgilendirme ekranı ---------- */
.auth-quota {
  display: block;
  margin-top: 2px;
  color: var(--lime, #c4f05b);
  font-size: 0.66rem;
  font-weight: 800;
}

.auth-quota.empty {
  color: #ff9b8f;
}

.auth-quota.unlimited {
  color: var(--side-muted, #7f9c98);
}

.auth-guest {
  display: grid;
  width: 100%;
  gap: 4px;
  text-align: center;
}

.paywall-screen {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: rgba(8, 24, 28, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.paywall-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(440px, 100%);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 28px 24px 22px;
  color: #12323a;
  text-align: center;
}

.paywall-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #12323a;
  color: var(--lime, #c4f05b);
}

.paywall-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.paywall-card h2 {
  margin: 4px 0 0;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.paywall-message {
  margin: 0;
  color: #33504c;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.paywall-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.paywall-plans div {
  display: grid;
  gap: 3px;
  border: 1px solid #e1e8e5;
  border-radius: 12px;
  padding: 11px 10px;
}

.paywall-plans div.current {
  border-color: #9fc5bd;
}

.paywall-plans div.premium {
  border-color: #12323a;
  background: #12323a;
  color: #fff;
}

.paywall-plans b {
  font-size: 0.86rem;
}

.paywall-plans span {
  font-size: 0.76rem;
  opacity: 0.8;
}

.paywall-note {
  margin: 0;
  color: #7b8f8b;
  font-size: 0.76rem;
}

.paywall-actions {
  display: grid;
  gap: 8px;
  width: 100%;
}

.paywall-actions .primary-button,
.paywall-actions .ghost-button {
  min-height: 44px;
}

.paywall-contact {
  border-radius: 10px;
  background: #eef8f3;
  padding: 10px;
  color: #1f4d43;
  font-size: 0.84rem;
  font-weight: 700;
}

.paywall-close {
  border: 0;
  background: none;
  color: #7b8f8b;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 761px) {
  .mb-badge.premium {
    background: #12323a;
    color: var(--lime, #c4f05b);
  }

  .mb-limits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mb-row {
    grid-template-columns: minmax(200px, 1.3fr) 110px 110px 110px 150px minmax(150px, 1fr) 150px;
  }

  .mb-kpis {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .mb-row {
    grid-template-columns: minmax(180px, 1fr) 100px 100px 104px 140px 150px;
  }

  .mb-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Yasal bağlantılar ve çerez bilgisi ---------- */
.legal-footer {
  margin-top: 40px;
  border-top: 1px solid #dde6e3;
  padding-top: 16px;
  color: #6b807c;
  font-size: 0.8rem;
  line-height: 1.5;
}

.legal-footer p { margin: 0 0 8px; }

.legal-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.legal-footer a { color: #2e7d6e; font-weight: 700; text-decoration: none; }

.legal-footer a:hover { text-decoration: underline; }

.auth-form .auth-check a,
.auth-hint a { color: #1f8a5b; font-weight: 800; }

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  border: 1px solid #d3ddd9;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(17, 42, 49, 0.18);
  color: #12323a;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cookie-notice a { color: #1f8a5b; font-weight: 800; }

.cookie-notice .primary-button { flex: none; min-height: 36px; padding: 0 16px; }

.sport-switch[hidden] { display: none !important; }

/* ---------- xG analizi ---------- */
.xg-chip {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  cursor: default;
}
.xg-chip.g0 { background: #fde4e4; color: #b42318; }
.xg-chip.g1 { background: #fff3c4; color: #8a6100; }
.xg-chip.g2 { background: #dcf5e6; color: #11743f; }
.cmp-note .xg-chip { min-width: 18px; height: 18px; font-size: 0.66rem; vertical-align: middle; }

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

.xg-team {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid #e3eae8;
  border-radius: 12px;
  padding: 12px;
  background: #fbfcfc;
}
.xg-team.home { border-top: 3px solid #2e7d6e; }
.xg-team.away { border-top: 3px solid #c98a1b; }

.xg-team-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xg-team-head small { color: #7b8d92; font-size: 0.72rem; font-weight: 750; }

.xg-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.xg-totals span {
  display: grid;
  gap: 1px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e8eeec;
  padding: 6px 7px;
}
.xg-totals b { font-size: 1rem; color: #12323a; }
.xg-totals small { color: #7b8d92; font-size: 0.64rem; font-weight: 700; line-height: 1.25; }

.xg-block { display: grid; gap: 4px; }
.xg-block-title { margin: 0 0 2px; color: #4d625f; font-size: 0.72rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.03em; }

.xg-row {
  display: grid;
  grid-template-columns: 78px 52px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border-bottom: 1px dashed #e6ecea;
}
.xg-row:last-child { border-bottom: 0; }
.xg-range { color: #12323a; font-size: 0.78rem; font-weight: 800; }
.xg-count { color: #2e7d6e; font-size: 0.76rem; }
.xg-chips { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px 0; }
.xg-chips em { color: #a5b3b0; font-style: normal; font-size: 0.8rem; }
.xg-avg { color: #7b8d92; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }

.xg-insights { display: grid; gap: 5px; margin: 2px 0 0; padding: 0; list-style: none; }
.xg-insights li {
  border-left: 3px solid #9fb3ae;
  border-radius: 0 8px 8px 0;
  background: #f1f5f4;
  padding: 6px 9px;
  color: #23403f;
  font-size: 0.8rem;
  line-height: 1.45;
}
.xg-insights li.good { border-color: #1f9d5a; background: #ecf8f1; }
.xg-insights li.bad { border-color: #d6453d; background: #fdf0ef; }
.xg-insights li.warn { border-color: #d49a1c; background: #fff8e6; }

.xg-projection {
  display: grid;
  gap: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #12323a, #1d4a4f);
  color: #e8f2ef;
  padding: 14px 16px;
}
.xg-proj-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.xg-proj-side { display: grid; gap: 1px; }
.xg-proj-side.away { text-align: right; }
.xg-proj-side small { color: #b6d0ca; font-size: 0.78rem; font-weight: 800; }
.xg-proj-side b { font-size: 1.6rem; font-weight: 900; color: #fff; }
.xg-proj-side em { color: #9dbbb4; font-size: 0.7rem; font-style: normal; font-weight: 700; }
.xg-proj-score { display: grid; justify-items: center; gap: 3px; }
.xg-proj-score small { color: #c6f25c; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.xg-proj-score strong { font-size: 2.2rem; font-weight: 950; line-height: 1; color: #fff; }
.xg-proj-score span { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.xg-proj-score i {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}
.xg-proj-score i b { color: #c6f25c; }

.xg-probs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.xg-prob { display: grid; gap: 4px; position: relative; }
.xg-prob span { color: #b6d0ca; font-size: 0.68rem; font-weight: 800; }
.xg-prob i { display: block; height: 6px; border-radius: 3px; background: #6fd69e; }
.xg-prob.draw i { background: #e3c25a; }
.xg-prob.away i { background: #f0a45c; }
.xg-prob.neutral i { background: #8fb8ff; }
.xg-prob b { font-size: 0.9rem; color: #fff; }

.xg-summary { margin: 0; font-size: 0.86rem; line-height: 1.5; color: #f1f7f5; }
.xg-basis, .xg-actual { margin: 0; color: #9dbbb4; font-size: 0.7rem; line-height: 1.45; }
.xg-actual b { color: #fff; }

@media (max-width: 1100px) {
  .xg-grid { grid-template-columns: 1fr; }
}

/* ---------- Son maçlar: ev sahibi – skor – deplasman satırları ---------- */
.hm-list { display: grid; }

.hm-row {
  display: grid;
  gap: 5px;
  padding: 8px 2px;
  border-top: 1px solid #eef2f1;
}
.hm-row:first-child { border-top: 0; }

.hm-top {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.hm-venue {
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hm-venue.home { background: #dcf3e8; color: #11704a; }
.hm-venue.away { background: #fdf0d6; color: #8a5a00; }

.hm-date { color: #7b8d92; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }

.hm-fix {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.hm-fix .hm-team:first-child { text-align: right; }
.hm-team {
  overflow: hidden;
  color: #6b7d82;
  font-size: 0.8rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-team.me { color: #12323a; font-weight: 900; }
.hm-fix .score-pill { text-align: center; font-size: 0.82rem; }

.hm-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding-left: 2px;
}
.hm-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  border-radius: 6px;
  background: #f3f6f5;
  padding: 2px 7px;
  font-size: 0.74rem;
  white-space: nowrap;
}
.hm-stat small { margin-right: 2px; color: #7b8d92; font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.hm-stat b { color: #2e7d6e; font-weight: 950; }
.hm-stat i { color: #7b8d92; font-style: normal; font-weight: 700; }
.hm-stat em { color: #b3c1c4; font-style: normal; }
.cmp-note b { color: #2e7d6e; }

/* ---------- Takım sayfası: içerik ekrandan uzunsa kendi içinde kaysın ---------- */
.team-profile-drawer {
  grid-template-rows: minmax(0, 1fr);
}
.team-profile-drawer .team-profile-panel {
  min-height: 0;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.team-profile-drawer .team-profile-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Son maçlar skorbordu (üst ev, alt deplasman) ---------- */
.hb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}
.hb-table th {
  padding: 5px 4px;
  border-bottom: 1px solid #e3eae8;
  color: #7b8d92;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.hb-table th.hb-team-h { text-align: left; }
.hb-table th small { color: #a5b3b0; font-size: 0.56rem; letter-spacing: 0; text-transform: none; }
.hb-table th.hb-total-h { line-height: 1.15; color: #4d625f; }

.hb-match td { padding: 3px 4px; text-align: center; }
.hb-match tr:first-child td { padding-top: 7px; }
.hb-match tr:last-child td { padding-bottom: 7px; border-bottom: 1px solid #eef2f1; }
.hb-match:last-of-type tr:last-child td { border-bottom: 0; }

.hb-meta { width: 64px; text-align: left !important; vertical-align: middle; }
.hb-meta b { display: block; color: #4d625f; font-size: 0.72rem; }
.hb-venue {
  display: inline-block;
  margin-top: 3px;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.6rem;
  font-weight: 900;
  white-space: nowrap;
}
.hb-venue.home { background: #dcf3e8; color: #11704a; }
.hb-venue.away { background: #fdf0d6; color: #8a5a00; }

.hb-team { text-align: left !important; max-width: 150px; }
.hb-team span {
  display: inline-block;
  max-width: calc(100% - 22px);
  overflow: hidden;
  color: #7b8d92;
  font-weight: 650;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}
.hb-logo { width: 16px; height: 16px; margin-right: 5px; object-fit: contain; vertical-align: middle; }
.hb-logo.placeholder { display: inline-block; border-radius: 50%; background: #e7eeec; }

.hb-row td.hb-num, .hb-row td.hb-goal { color: #8a9a9e; font-weight: 700; font-variant-numeric: tabular-nums; }
.hb-row.me td { background: #f2f8f6; }
.hb-row.me .hb-team span { color: #12323a; font-weight: 900; }
.hb-row.me td.hb-num { color: #12323a; font-weight: 900; }
.hb-row.me td:nth-child(2) { border-radius: 8px 0 0 8px; }
.hb-match tr:first-child.me td:nth-child(6), .hb-match tr:last-child.me td:nth-child(5) { border-radius: 0 8px 8px 0; }
.hb-row td.hb-xg { color: #9aaaa6; font-size: 0.72rem; }
.hb-row.me td.hb-xg { color: #2e7d6e; }

.hb-res {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  font-weight: 950;
}
.hb-res.res-W { background: #1f9d5a; }
.hb-res.res-D { background: #c99a2e; }
.hb-res.res-L { background: #c9524a; }
.hb-res.res-N { background: #9aaaa6; }

.hb-total {
  width: 46px;
  vertical-align: middle;
  font-size: 1rem;
  font-weight: 950;
  color: #12323a;
}
.hb-total.hot-c { background: #e2f1ef; color: #1f7a6e; box-shadow: inset 0 0 0 1.5px #8fcfc4; border-radius: 9px; }
.hb-total.hot-k { background: #fbf0d6; color: #8a5a00; box-shadow: inset 0 0 0 1.5px #e4c06c; border-radius: 9px; }

.hb-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.hb-summary > div {
  display: grid;
  gap: 1px;
  border-radius: 10px;
  background: #f4f8f6;
  padding: 8px 10px;
}
.hb-summary span { color: #7b8d92; font-size: 0.64rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.hb-summary b { color: #12323a; font-size: 1.15rem; font-weight: 950; }
.hb-summary small { color: #6b807c; font-size: 0.7rem; font-weight: 700; line-height: 1.35; }
/* Skorbord tabloları her zaman alt alta: takım adları ve toplam sütunları sığsın. */
.compact-analysis .hist-grid { grid-template-columns: 1fr !important; }
.hb-team { max-width: 220px; }
.hb-table { font-size: 0.84rem; }

/* ---------- Maç analizi odak modu (PC): menü ikon rayına iner, maç listesi kapanır ---------- */
@media (min-width: 761px) {
  body.detail-focus {
    --side-w: 76px;
  }

  body.detail-focus .side-nav {
    align-items: center;
    padding: 16px 10px;
  }

  body.detail-focus .side-brand {
    padding: 0;
  }

  body.detail-focus .side-brand-text,
  body.detail-focus .nav-group-title,
  body.detail-focus .nav-label,
  body.detail-focus .side-foot {
    display: none;
  }

  body.detail-focus .side-nav .sport-switch {
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.detail-focus .side-nav .sport-button {
    padding: 6px;
  }

  body.detail-focus .side-nav .sport-button span:not(.sport-icon) {
    display: none;
  }

  body.detail-focus .side-tabs {
    gap: 10px;
    width: 100%;
  }

  body.detail-focus .nav-group + .nav-group {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  body.detail-focus .side-tabs .tab-button {
    justify-content: center;
    padding: 9px;
  }

  body.detail-focus .side-tabs .tab-button.active::before {
    left: -10px;
  }

  body.detail-focus .nav-icon {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 761px) {
  .app-frame { transition: grid-template-columns 0.34s cubic-bezier(0.22, 0.8, 0.24, 1); }
  .fixture-layout { position: relative; transition: grid-template-columns 0.34s cubic-bezier(0.22, 0.8, 0.24, 1), gap 0.34s ease; }
  .fixture-panel { transition: opacity 0.22s ease; }
  .side-nav { transition: padding 0.3s ease; }


  /* Maç listesi ve filtreler kapanır, analiz tüm genişliği alır */
  body.detail-focus .fixture-layout {
    grid-template-columns: 0 minmax(0, 1fr) !important;
    gap: 0 !important;
  }
  body.detail-focus .fixture-panel {
    min-width: 0;
    overflow: hidden;
    border: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
  }
  body.detail-focus .match-toolbar,
  body.detail-focus .status-strip { display: none; }
  body.detail-focus .compact-hero { margin-bottom: 6px; }
  body.detail-focus .app-shell { width: min(1720px, 100%); }

}

/* Genişleyen analiz alanında son maç tabloları yan yana */
@container detail (min-width: 1080px) {
  .compact-analysis .hist-grid { grid-template-columns: 1fr 1fr !important; }
  .hb-team { max-width: 170px; }
}

/* ---------- Son maçlar: tek satır (ev sahibi · skor · deplasman) ---------- */
.hl-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.hl-table th {
  padding: 5px 6px;
  border-bottom: 1px solid #e3eae8;
  color: #7b8d92;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}
.hl-table th.hl-h-home { text-align: right; }
.hl-table th.hl-h-away { text-align: left; }
.hl-table td { padding: 6px 6px; border-bottom: 1px solid #eef2f1; text-align: center; white-space: nowrap; }
.hl-table tr:last-child td { border-bottom: 0; }
.hl-table tbody tr:hover td { background: #f6faf8; }
.hl-team { max-width: 0; width: 30%; overflow: hidden; text-overflow: ellipsis; color: #7b8d92; font-weight: 650; }
.hl-team.home { text-align: right !important; }
.hl-team.away { text-align: left !important; }
.hl-team span { vertical-align: middle; }
.hl-team.me { color: #12323a; font-weight: 900; }
.hl-team .hb-logo { width: 16px; height: 16px; margin: 0 6px; object-fit: contain; vertical-align: middle; }
.hl-score { width: 1%; }
.hl-score .hb-res { min-width: 50px; padding: 0 6px; height: 24px; }
.hl-pair { width: 1%; padding: 6px 10px !important; color: #9aaaa6; font-variant-numeric: tabular-nums; }
.hl-pair b { color: #12323a; font-weight: 900; }
.hl-pair i { font-style: normal; font-weight: 650; }
.hl-pair em { margin: 0 4px; color: #c4cfcc; font-style: normal; }
.hl-pair.muted { color: #c4cfcc; }

/* ---------- Bugünün Maçları çalışma alanı (PC): menü gizli, analiz odaklı ---------- */
.focus-bar { display: none; }
.menu-backdrop { display: none; }

@media (min-width: 761px) {
  body.matches-focus { --side-w: 0px; }
  body.matches-focus .app-frame { grid-template-columns: minmax(0, 1fr); }
  body.matches-focus .app-frame > .app-shell { grid-column: 1; }
  body.matches-focus .side-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 90;
    width: 252px;
    transform: translateX(-104%);
    transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.24, 1);
  }
  body.matches-focus.menu-open .side-nav {
    transform: none;
    box-shadow: 18px 0 48px rgba(8, 24, 28, 0.28);
  }
  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 89;
    background: rgba(10, 28, 32, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  body.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }

  body.matches-focus .focus-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 14px;
  }
  .focus-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    border: 1px solid #d6e1dd;
    border-radius: 11px;
    background: #fff;
    padding: 0 14px 0 11px;
    color: #12323a;
    font-size: 0.84rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(17, 42, 49, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .focus-btn:hover { background: #f1f7f4; border-color: #bcd2ca; }
  .focus-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  body.matches-focus .compact-hero { justify-content: flex-start; }
  body.matches-focus .compact-hero .status-strip { margin-left: auto; }

  /* Analiz açıkken: yalnızca analiz */
  body.matches-focus.detail-open .fixture-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
  body.matches-focus.detail-open .match-toolbar,
  body.matches-focus.detail-open .status-strip { display: none !important; }

  /* Maç listesi: sol kenara gelince yandan kayarak açılan panel */
  body.matches-focus.detail-open .fixture-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 85;
    width: 340px;
    max-height: none;
    margin: 0;
    overflow-y: auto;
    border-radius: 0 18px 18px 0;
    opacity: 1;
    visibility: visible;
    transform: translateX(-104%);
    transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.24, 1), box-shadow 0.3s ease;
  }
  body.matches-focus.detail-open.list-peek .fixture-panel {
    transform: none;
    box-shadow: 18px 0 48px rgba(8, 24, 28, 0.22);
  }
  /* Sol kenarda ince bir iz: listenin orada olduğunu hissettirir */
  body.matches-focus.detail-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 84;
    width: 4px;
    background: linear-gradient(180deg, transparent, rgba(46, 125, 110, 0.35) 30%, rgba(46, 125, 110, 0.35) 70%, transparent);
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  body.list-peek::before { opacity: 0; }
  body.matches-focus.detail-open .app-shell { width: min(1720px, 100%); }
}

/* ---------- Lig seçimi: logolu yuvarlak düğmeler (Yapay Zeka / Öne Çıkan) ---------- */
.panel-league-filter {
  display: grid;
  gap: 8px;
  padding: 4px 0 2px;
}
.panel-league-filter .panel-filter-label {
  color: #7b8d92;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.league-chips {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
}
.league-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  border: 1px solid #dde6e3;
  border-radius: 999px;
  background: #fff;
  padding: 0 12px 0 6px;
  color: #4d625f;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.league-chip.all { padding: 0 14px; }
.league-chip input { position: absolute; opacity: 0; pointer-events: none; }
.league-chip:hover { border-color: #b9cfc8; background: #f5faf8; }
.league-chip.checked {
  border-color: #12323a;
  background: #12323a;
  color: #fff;
}
.league-chip-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
  object-fit: contain;
}
.league-chip-logo.placeholder { display: inline-block; background: #e7eeec; }

/* Bu sekmelerin kendi lig seçimi var: üstteki genel "Lig" kutusu gizlenir */
body.mobile-tab-ai .match-toolbar label:has(#leagueSelect),
body.mobile-tab-highlights .match-toolbar label:has(#leagueSelect) { display: none; }
.league-chips { gap: 4px; }
.league-chip { height: 30px; padding: 0 9px 0 4px; font-size: 0.72rem; gap: 5px; }
.league-chip.all { padding: 0 11px; }
.league-chip-logo { width: 20px; height: 20px; }

/* NBA maçları: futboldaki odak düzeninin aynısı */
@media (min-width: 761px) {
  body.matches-focus.detail-open .basketball-layout { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
  body.matches-focus.detail-open .basketball-toolbar { display: none !important; }
  body.matches-focus.detail-open .basketball-fixture-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 85;
    width: 340px;
    max-height: none;
    margin: 0;
    overflow-y: auto;
    border-radius: 0 18px 18px 0;
    transform: translateX(-104%);
    transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.24, 1), box-shadow 0.3s ease;
  }
  body.matches-focus.detail-open.list-peek .basketball-fixture-panel {
    transform: none;
    box-shadow: 18px 0 48px rgba(8, 24, 28, 0.22);
  }
}

/* ---------- Son 5 ↔ tüm sezon düğmesi ve NBA ev/dep seçimi ---------- */
.season-toggle {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px dashed #c6d6d0;
  border-radius: 10px;
  background: #f7faf9;
  padding: 8px 12px;
  color: #2e7d6e;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}
.season-toggle:hover { background: #eef6f3; border-style: solid; }

.basketball-player-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nba-venue-tabs {
  display: inline-flex;
  gap: 2px;
  border-radius: 10px;
  background: #eef2f1;
  padding: 3px;
}
.nba-venue-tabs button {
  min-width: 52px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4d625f;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}
.nba-venue-tabs button.active { background: #fff; color: #12323a; box-shadow: 0 1px 3px rgba(17, 42, 49, 0.12); }
.nba-venue {
  display: inline-block;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.66rem;
  font-weight: 900;
}
.nba-venue.home { background: #dcf3e8; color: #11704a; }
.nba-venue.away { background: #fdf0d6; color: #8a5a00; }
.nba-empty { color: #7b8d92; text-align: center; padding: 12px !important; }

/* ---------- Açılan maç listesinde tarih seçici (yalnızca analiz açıkken) ---------- */
.drawer-date { display: none; }
@media (min-width: 761px) {
  body.matches-focus.detail-open .fixture-panel .panel-header,
  body.matches-focus.detail-open .basketball-fixture-panel .panel-header {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  body.matches-focus.detail-open .drawer-date {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
  }
  .drawer-date button {
    height: 32px;
    min-width: 32px;
    border: 1px solid #d6e1dd;
    border-radius: 9px;
    background: #fff;
    color: #12323a;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
  }
  .drawer-date button:hover { background: #eef6f3; }
  .drawer-date .drawer-date-today { margin-left: auto; padding: 0 12px; font-size: 0.74rem; color: #2e7d6e; }
  .drawer-date .drawer-date-today.is-today { background: #e3f4ea; border-color: #bfe3cf; }
  .drawer-date-label {
    flex: 1;
    min-width: 0;
    text-align: center;
    color: #12323a;
    font-size: 0.86rem;
    font-weight: 850;
    white-space: nowrap;
  }
}
