/* ═══════════════════════════════════════════════════════════════
   views.css — Haspel Intelligence Demo
   View-spezifische Stile (Development, Berater, Simulator,
   Kalender, Heatmap, Compare/Radar, Signals, Economics,
   Health, Benchmark, Scout, Tasks/Kanban, Club, Transfer-Radar,
   Spieler-Suche, Gerüchteküche)
   Extrahiert: 2026-02-22 | Agent: Frontend-Modularisierung
   ═══════════════════════════════════════════════════════════════ */

/* ── DEVELOPMENT VIEW ─────────────────── */
.dev-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.period-btn { padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: all .15s; }
.period-btn:hover { background: rgba(26,83,232,0.07); color: var(--accent); border-color: var(--accent); }
.period-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.dev-filter { padding: 7px 12px; border-radius: 8px; font-size: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); cursor: pointer; }
.dev-filter.active { border-color: var(--accent); color: var(--accent); background: rgba(26,83,232,0.09); }
.dev-mode-toggle { margin-left: auto; display: flex; gap: 4px; background: var(--surface2); border-radius: 8px; padding: 3px; }
.dev-mode-btn { padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer; border: none; background: none; transition: all .15s; }
.dev-mode-btn.active { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(37,99,235,0.1); }

.dev-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
.dev-summary-card { background: var(--surface); border-radius: 10px; padding: 14px 16px; border: 1px solid var(--border); text-align: center; }
.dev-summary-num { font-size: 28px; font-weight: 800; }
.dev-summary-label { font-size: 11px; color: var(--muted); margin-top: 2px; }

.dev-row { display: grid; grid-template-columns: 36px 1fr 60px 90px; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); transition: background .1s; cursor: pointer; }
.dev-row:hover { background: var(--surface2); }
.dev-row:last-child { border-bottom: none; }
.dev-row-rank { display: flex; align-items: center; gap: 6px; }
.dev-row-info { min-width: 0; }
.dev-row-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-row-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.dev-row-score { font-size: 14px; font-weight: 700; color: var(--accent); text-align: right; }
.dev-row-trend { text-align: right; }

.liga-section-header { padding: 12px 16px 8px; font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; background: var(--surface2); border-bottom: 1px solid var(--border); }

/* ── BERATER (TEAM) ─────────────────── */
.berater-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:24px; }
.berater-card { background:var(--surface); border:2px solid var(--border); border-radius:14px; padding:20px; cursor:pointer; transition:all .2s; }
.berater-card:hover { border-color:var(--accent); box-shadow:0 4px 16px rgba(37,99,235,0.15); }
.berater-card.selected { border-color:var(--accent); box-shadow:0 0 0 4px rgba(37,99,235,0.12); }
.berater-avatar { width:56px; height:56px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:800; color:#fff; margin-bottom:12px; }
.berater-name { font-size:16px; font-weight:700; }
.berater-role { font-size:12px; color:var(--muted); margin-top:2px; }
.berater-spec { font-size:11px; color:var(--accent2); margin-top:6px; }
.berater-stats { display:flex; gap:20px; margin-top:14px; padding-top:14px; border-top:1px solid var(--border); }
.berater-stat-num { font-size:20px; font-weight:700; color:var(--accent); }
.berater-stat-lbl { font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.8px; }
.berater-since { font-size:11px; color:var(--muted); margin-top:4px; }
.berater-roster { background:var(--surface); border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.berater-roster-header { padding:14px 20px; font-size:11px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:1px; background:var(--surface2); border-bottom:1px solid var(--border); }
.berater-row { display:flex; align-items:center; gap:12px; padding:10px 20px; border-bottom:1px solid var(--border); cursor:pointer; transition:background .1s; }
.berater-row:last-child { border-bottom:none; }
.berater-row:hover { background:var(--surface2); }

/* ── CLUB INTELLIGENCE ───────────────── */
.club-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px; margin-bottom:20px; }
.club-card { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:16px; cursor:pointer; transition:all .15s; }
.club-card:hover { border-color:var(--accent); box-shadow:0 4px 16px rgba(37,99,235,.12); transform:translateY(-1px); }
.club-card-name { font-size:13px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.club-card-liga { font-size:11px; color:var(--muted); margin-top:2px; }
.club-count { font-size:26px; font-weight:800; color:var(--accent); }
.club-rel-bar { height:4px; border-radius:4px; background:var(--surface2); margin-top:8px; }
.club-rel-fill { height:4px; border-radius:4px; background:linear-gradient(90deg,#60a5fa,#2563eb); }
.club-back-btn { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:8px; font-size:12px; font-weight:600; background:var(--surface2); border:1px solid var(--border); cursor:pointer; margin-bottom:16px; transition:all .15s; }
.club-back-btn:hover { background:rgba(26,83,232,0.09); color:var(--accent); border-color:var(--accent); }

/* ── TRANSFER RADAR ───────────────────── */
.rt-card { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:16px 18px; margin-bottom:10px; display:grid; grid-template-columns:56px 1fr auto; align-items:center; gap:16px; transition:all .15s; }
.rt-card:hover { border-color:var(--accent); box-shadow:0 2px 12px rgba(37,99,235,.1); }
.rt-fit-circle { width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:800; flex-shrink:0; }
.rt-name { font-size:14px; font-weight:700; }
.rt-meta { font-size:12px; color:var(--muted); margin-top:2px; }
.rt-reason { font-size:11.5px; color:var(--muted); margin-top:6px; line-height:1.5; }
.rt-status { display:inline-flex; align-items:center; padding:3px 9px; border-radius:20px; font-size:10px; font-weight:700; white-space:nowrap; }
.rt-hot  { background:#fee2e2; color:#b91c1c; }
.rt-warm { background:#fef3c7; color:#b45309; }
.rt-cool { background:#dbeafe; color:#1d4ed8; }

/* ── AUFGABEN KANBAN ──────────────────── */
.kanban { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.kanban-col { background:var(--surface2); border-radius:12px; padding:14px; min-height:280px; }
.kanban-col-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; margin-bottom:12px; display:flex; align-items:center; justify-content:space-between; }
.kanban-badge { background:rgba(37,99,235,.12); color:var(--accent); border-radius:20px; font-size:10px; font-weight:700; padding:1px 7px; }
.kc { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:12px 14px; margin-bottom:8px; cursor:pointer; transition:all .15s; }
.kc:hover { box-shadow:0 3px 12px rgba(37,99,235,.1); border-color:var(--accent); }
.kc-type { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; margin-bottom:5px; }
.kc-player { font-size:13px; font-weight:700; }
.kc-club { font-size:11px; color:var(--muted); margin-top:1px; }
.kc-note { font-size:11.5px; color:var(--muted); margin-top:8px; line-height:1.5; border-top:1px solid var(--border); padding-top:8px; }
.kc-footer { display:flex; justify-content:space-between; align-items:center; margin-top:8px; }
.kc-due { font-size:10px; color:var(--muted); }
.kc-btn { font-size:10px; background:var(--surface2); border:1px solid var(--border); border-radius:6px; padding:3px 8px; cursor:pointer; color:var(--muted); transition:all .15s; }
.kc-btn:hover { background:var(--accent); color:#fff; border-color:var(--accent); }
.kc.p-hot  { border-left:3px solid #dc2626; }
.kc.p-warm { border-left:3px solid #d97706; }
.kc.p-cool { border-left:3px solid #2563eb; }

/* ── PORTFOLIO HEALTH ─────────────────── */
.health-grade { font-size:64px; font-weight:800; line-height:1; }
.health-comp-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px; }
.health-comp { background:var(--surface2); border-radius:10px; padding:12px 14px; }
.health-comp-lbl { font-size:10px; text-transform:uppercase; letter-spacing:.8px; color:var(--muted); margin-bottom:4px; }
.health-comp-val { font-size:18px; font-weight:700; }
.health-comp-bar { height:4px; border-radius:4px; background:var(--border); margin-top:6px; }
.health-comp-fill { height:4px; border-radius:4px; }
.health-rec { background:linear-gradient(135deg,var(--surface2),rgba(26,83,232,0.05)); border:1px solid var(--border); border-radius:10px; padding:12px 16px; margin-bottom:8px; font-size:13px; display:flex; gap:10px; align-items:flex-start; }

/* ── AGENTUR BENCHMARK ────────────────── */
.bench-wrap { overflow-x:auto; }
.bench-table { width:100%; border-collapse:collapse; }
.bench-table th { padding:10px 14px; text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.8px; color:var(--muted); border-bottom:2px solid var(--border); white-space:nowrap; }
.bench-table td { padding:12px 14px; font-size:13px; border-bottom:1px solid var(--border); white-space:nowrap; }
.bench-table tr:last-child td { border-bottom:none; }
.bench-haspel td { background:linear-gradient(90deg,rgba(26,83,232,0.06),transparent); font-weight:600; }
.bench-haspel td:first-child { border-left:3px solid var(--accent); }
.bench-bar-cell { display:flex; align-items:center; gap:8px; }
.bench-bar-wrap { width:80px; height:5px; background:var(--surface2); border-radius:5px; }
.bench-bar-fill { height:5px; border-radius:5px; }

/* ── VERTRAGSKALENDER ─────────────────── */
.tl-axis { position:relative; height:64px; background:linear-gradient(90deg,var(--surface2),rgba(26,83,232,0.06)); border-radius:10px; border:1px solid var(--border); overflow:hidden; margin-bottom:24px; }
.tl-window { position:absolute; top:0; bottom:0; }
.tl-window-lbl { position:absolute; top:5px; font-size:8px; font-weight:700; color:#16a34a; letter-spacing:.4px; text-transform:uppercase; white-space:nowrap; padding-left:3px; }
.tl-tick { position:absolute; top:0; width:1px; background:var(--border); height:100%; }
.tl-tick-lbl { position:absolute; bottom:5px; font-size:8px; color:var(--muted); transform:translateX(-50%); white-space:nowrap; }
.tl-dot { position:absolute; width:11px; height:11px; border-radius:50%; top:50%; transform:translate(-50%,-50%); cursor:pointer; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.22); transition:transform .15s; z-index:2; }
.tl-dot:hover { transform:translate(-50%,-50%) scale(1.7); z-index:10; }
.tl-now { position:absolute; left:0; top:0; bottom:0; width:2px; background:var(--accent); z-index:3; }
.tl-now-lbl { position:absolute; left:3px; top:5px; font-size:8px; font-weight:700; color:var(--accent); letter-spacing:.4px; }
.tl-section { margin-bottom:18px; }
.tl-section-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1px; padding:6px 0 10px; display:flex; align-items:center; gap:8px; }
.tl-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px; }
.tl-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:12px 14px; cursor:pointer; transition:all .15s; }
.tl-card:hover { box-shadow:0 4px 16px rgba(37,99,235,.12); border-color:var(--accent); transform:translateY(-1px); }
.tl-card-name { font-size:13px; font-weight:600; }
.tl-card-club { font-size:11px; color:var(--muted); margin-top:1px; }
.tl-card-date { font-size:12px; font-weight:700; margin-top:8px; }
.tl-days-bar { height:4px; border-radius:4px; margin-top:6px; background:var(--surface2); }
.tl-days-fill { height:4px; border-radius:4px; }

/* ── POSITIONS HEATMAP ────────────────── */
.field-wrap { display:flex; gap:24px; align-items:flex-start; flex-wrap:wrap; }
.pos-tooltip { font-size:11px; color:rgba(255,255,255,.45); margin-top:10px; text-align:center; }
.pos-detail-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin-top:0; }
.pos-detail-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:12px 14px; cursor:pointer; transition:all .15s; }
.pos-detail-card:hover { border-color:var(--accent); background:rgba(26,83,232,0.05); }
.pos-detail-pos { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-bottom:4px; }
.pos-detail-count { font-size:24px; font-weight:800; }
.pos-detail-score { font-size:11px; margin-top:2px; color:var(--muted); }

/* ── SPIELER VERGLEICH ────────────────── */
.compare-selectors { display:grid; grid-template-columns:1fr 48px 1fr; gap:12px; align-items:center; margin-bottom:20px; }
.compare-vs { text-align:center; font-size:18px; font-weight:800; color:var(--muted); }
.player-select { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:8px 12px; font-size:13px; color:var(--text); width:100%; cursor:pointer; }
.radar-legend { display:flex; gap:16px; margin-bottom:8px; flex-wrap:wrap; }
.radar-legend-item { display:flex; align-items:center; gap:5px; font-size:12px; font-weight:600; }
.radar-legend-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.cmp-score-box { background:linear-gradient(135deg,var(--surface2),rgba(26,83,232,0.06)); border:1px solid var(--border); border-radius:12px; padding:16px; text-align:center; }
.cmp-avatar { width:52px; height:52px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:800; color:#fff; margin:0 auto 10px; }

/* ── DEAL SIMULATOR ───────────────────── */
.sim-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
.sim-input-group { margin-bottom:18px; }
.sim-lbl { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:var(--muted); margin-bottom:8px; }
.sim-select { background:var(--surface2); border:1px solid var(--border); border-radius:8px; padding:9px 12px; font-size:13px; color:var(--text); width:100%; cursor:pointer; }
.sim-sl-row { display:flex; align-items:center; gap:12px; }
.sim-sl-val { font-size:14px; font-weight:700; color:var(--accent); width:68px; text-align:right; white-space:nowrap; }
.sim-output { background:linear-gradient(135deg,rgba(26,83,232,0.06),rgba(26,83,232,0.12)); border:1px solid rgba(26,83,232,0.22); border-radius:12px; padding:20px; margin-bottom:14px; }
.sim-out-title { font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--accent); font-weight:700; margin-bottom:14px; }
.sim-row { display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-bottom:1px solid rgba(37,99,235,.1); font-size:13px; }
.sim-row:last-child { border-bottom:none; }
.sim-row-lbl { color:var(--muted); }
.sim-row-val { font-weight:700; color:var(--accent); }
.sim-row-val.big { font-size:22px; }
.sim-impact-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.sim-impact-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:14px; }
.sim-impact-lbl { font-size:10px; text-transform:uppercase; letter-spacing:.8px; color:var(--muted); margin-bottom:6px; }
.sim-impact-val { font-size:24px; font-weight:800; }
.sim-impact-delta { font-size:11px; margin-top:2px; }
.d-pos { color:#16a34a; } .d-neg { color:var(--danger); } .d-neu { color:var(--muted); }

/* ── SPIELER-SUCHE ────────────────────── */
.search-hero { position: relative; margin-bottom: 24px; }
.search-hero-input {
  width: 100%; padding: 16px 20px 16px 48px; border-radius: 12px; font-size: 16px;
  border: 2px solid var(--border); background: var(--surface); color: var(--text);
  outline: none; transition: border-color .2s; box-shadow: 0 2px 8px rgba(37,99,235,.06);
}
.search-hero-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.search-hero-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.search-player-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-r);
  padding: 16px; cursor: pointer; transition: all .15s; position: relative;
}
.search-player-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(37,99,235,.12); transform: translateY(-1px); }
.search-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.search-avatar {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
}
.search-player-name { font-size: 14px; font-weight: 700; }
.search-player-club { font-size: 11px; color: var(--muted); margin-top: 2px; }
.search-card-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.search-stat { font-size: 11px; color: var(--muted); background: var(--surface2); padding: 2px 7px; border-radius: 6px; }
.search-mandant-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.search-tm-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--accent); margin-top: 8px; font-weight: 600; }
.search-tm-link:hover { text-decoration: underline; }
.search-empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.search-empty-icon { font-size: 40px; margin-bottom: 12px; }
.search-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 32px; color: var(--muted); }

/* ── LIGA-SCOUT ────────────────────────── */
.scout-filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-r); padding: 16px 20px; margin-bottom: 20px; }
.scout-filter-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.scout-filter-row + .scout-filter-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.scout-chip {
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.scout-chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(26,83,232,0.05); }
.scout-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.scout-sort-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-right: 4px; flex-shrink: 0; }
.scout-mandant-badge { background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 10px; margin-left: 4px; }
.scout-expand { background: var(--surface2); border-radius: 8px; padding: 12px 16px; margin-top: 4px; font-size: 12px; color: var(--text); }

/* ── GERÜCHTEKÜCHE ─────────────────────── */
.geruechte-tabs { display: flex; gap: 4px; background: var(--surface2); border-radius: 10px; padding: 4px; margin-bottom: 20px; width: fit-content; }
.geruechte-tab {
  padding: 7px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all .15s; border: none; background: none;
}
.geruechte-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(37,99,235,.1); font-weight: 600; }
.geruechte-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.geruechte-time-btn { padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: all .15s; }
.geruechte-time-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.geruechte-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.geruecht-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-r);
  padding: 16px 18px; transition: all .15s; position: relative; overflow: hidden;
}
.geruecht-card:hover { border-color: rgba(37,99,235,.3); box-shadow: 0 4px 16px rgba(37,99,235,.08); }
.geruecht-card.hot-rumor { border-left: 3px solid #dc2626; }
.geruecht-heat { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.geruecht-heat .heat-high { color: #dc2626; }
.geruecht-heat .heat-mid { color: var(--warn); }
.geruecht-player-line { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.geruecht-transfer { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.geruecht-headline { font-size: 12.5px; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.geruecht-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.geruecht-mandant { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.geruecht-discuss { font-size: 11px; color: var(--muted); }
.geruecht-tm-link { font-size: 11px; color: var(--accent); font-weight: 600; margin-left: auto; }
.geruecht-tm-link:hover { text-decoration: underline; }
.geruechte-empty { text-align: center; padding: 48px; color: var(--muted); }

/* ── SPIELPLAN ─────────────────────────────────────────────── */

/* Loading */
.mp-loading {
  text-align: center; padding: 60px 20px;
}
.mp-loading-bar {
  width: 120px; height: 2px; background: var(--border);
  border-radius: 2px; margin: 0 auto; overflow: hidden; position: relative;
}
.mp-loading-bar::after {
  content: ''; position: absolute; inset: 0 100% 0 -60%;
  background: var(--accent); border-radius: 2px;
  animation: mp-bar 1.2s ease-in-out infinite;
}
@keyframes mp-bar {
  0%   { left: -60%; right: 100%; }
  60%  { left: 20%;  right: 0%;   }
  100% { left: 100%; right: -60%; }
}

/* Top bar */
.mp-topbar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.mp-topbar-left { flex-shrink: 0; }
.mp-kpi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.mp-kpi-val { font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; letter-spacing: -1px; }

/* Legend */
.mp-legend {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 14px; background: var(--surface2);
  border-radius: 20px; font-size: 11px;
}
.mp-legend-item { display: flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.mp-legend-sep { width: 1px; height: 12px; background: var(--border); flex-shrink: 0; }
.mp-legend-note { font-size: 10px; color: var(--muted); font-style: italic; }

/* Stand */
.mp-stand { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Day group */
.mp-day-group { margin-bottom: 8px; }

/* Day header — centered label between two rules */
.mp-day-header {
  display: flex; align-items: center; gap: 10px;
  margin: 28px 0 10px;
}
.mp-day-group:first-of-type .mp-day-header { margin-top: 0; }
.mp-day-rule { flex: 1; height: 1px; background: var(--border); }
.mp-day-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap; padding: 0 2px;
}

/* Match card */
@keyframes mp-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.mp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--card-r);
  margin-bottom: 7px; overflow: hidden;
  animation: mp-in .35s ease both;
  transition: box-shadow .15s, border-color .15s;
}
.mp-card:hover { box-shadow: 0 4px 24px rgba(26,83,232,.07); border-color: rgba(26,83,232,.25); }
.mp-card.liga-bl2 { border-left-color: #0e7fc0; }
.mp-card.liga-bl3 { border-left-color: #64748b; }
.mp-card:hover.liga-bl2 { border-color: rgba(14,127,192,.25); }
.mp-card:hover.liga-bl3 { border-color: rgba(100,116,139,.25); }

/* Card inner layout: Zeit | Match | Meta */
.mp-card-inner {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 0;
}

/* Zeit-Spalte */
.mp-time-col {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 0 16px 16px; gap: 1px; flex-shrink: 0;
}
.mp-time {
  font-size: 17px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -0.5px; line-height: 1;
}
.mp-time-uhr { font-size: 8px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* Match-Spalte */
.mp-match-col {
  padding: 14px 16px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-width: 0;
}

/* Matchup row: Heim — Gast */
.mp-matchup {
  display: flex; align-items: center; gap: 10px;
}
.mp-team-col {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.mp-team-col.home { align-items: flex-end; text-align: right; }
.mp-team-col.away { align-items: flex-start; text-align: left; }
.mp-team {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.mp-tpl {
  font-size: 10px; font-weight: 600; color: var(--muted);
  opacity: 0.55; letter-spacing: 0.3px;
}
.mp-vs {
  font-size: 13px; font-weight: 300; color: var(--border);
  flex-shrink: 0; letter-spacing: 2px; padding: 0 2px;
}

/* Players row */
.mp-players {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 9px; padding-top: 9px;
  border-top: 1px dashed var(--border);
}
.mp-players-home { display: flex; gap: 5px; flex-wrap: wrap; }
.mp-players-away { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }

/* Player chip */
.mp-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px 2px 6px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
  transition: opacity .1s;
}
.mp-chip.home { background: rgba(26,83,232,.08); color: var(--accent); border-color: rgba(26,83,232,.15); }
.mp-chip.away { background: var(--surface2); color: var(--muted); border-color: var(--border); }
.mp-chip-name { }
.mp-chip-pos { font-size: 9px; font-weight: 700; letter-spacing: .3px; opacity: .6; }

/* Status dots (shared with legend) */
.mp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0; display: inline-block;
}
.mp-dot.starter { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.2); }
.mp-dot.bench   { background: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.2); }
.mp-dot.absent  { background: #cbd5e1; }
.mp-dot.injured { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.2); }

/* Meta-Spalte */
.mp-meta-col {
  display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
  padding: 14px 16px; flex-shrink: 0;
}
.mp-league-pill {
  font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; color: #fff; white-space: nowrap;
}
.mp-league-pill.bl1 { background: var(--accent); }
.mp-league-pill.bl2 { background: #0e7fc0; }
.mp-league-pill.bl3 { background: #64748b; }
.mp-matchday { font-size: 10px; color: var(--muted); white-space: nowrap; text-align: right; }

/* Empty / Error */
.mp-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 20px; color: var(--muted); text-align: center;
}
.mp-empty-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.mp-empty-sub   { font-size: 12px; margin-bottom: 14px; }
.mp-empty-code  { font-size: 11px; font-family: monospace; opacity: .5; }

/* Responsive */
@media (max-width: 600px) {
  .mp-card-inner { grid-template-columns: 50px 1fr auto; }
  .mp-time { font-size: 14px; }
  .mp-team { font-size: 12px; }
  .mp-topbar { gap: 12px; }
  .mp-legend { display: none; }
}
