/* ============================================
   CLIMBIX — ZENTRALES STYLESHEET
   Wird von index.html, tierlist.html und profile.html
   gemeinsam genutzt.
   ============================================ */

:root{
  --bg: #0a0e15;
  --bg-panel: #121926;
  --bg-panel-2: #182131;
  --line: #26314533;
  --line-strong: #2a3a52;
  --text: #e7ecf3;
  --text-dim: #9aa7bd;
  --bronze: #c08a4e;
  --bronze-bright: #e0a865;
  --teal: #4fb3a9;
  --danger: #d16a6a;
  --blue-team: #5a8fd6;
  --s-tier: #e0a865;
  --a-tier: #4fb3a9;
  --b-tier: #7a8bab;
  --c-tier: #5c6a80;
}

*{ box-sizing: border-box; margin:0; padding:0; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }

.wrap{
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAV (alle Seiten) ---------- */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,14,21,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo{
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.03em;
  display:flex;
  align-items:center;
  gap:8px;
}
.logo .mark{
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--bronze-bright), var(--bronze));
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.navlinks{
  display:flex;
  gap: 36px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.navlinks a.active{ color: var(--text); }
.navlinks a:hover{ color: var(--text); }
.navcta{
  background: var(--bronze);
  color: #0a0e15;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 3px;
}
@media (max-width: 780px){ .navlinks{ display:none; } }

/* ---------- FOOTER (alle Seiten) ---------- */
footer{ padding: 46px 0; border-top: 1px solid var(--line); }
.footer-row{
  display:flex;
  justify-content: space-between;
  align-items:flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-links{ display:flex; gap: 26px; font-size: 13.5px; color: var(--text-dim); }
.disclaimer{
  font-size: 12px;
  color: #5c6a80;
  max-width: 700px;
  line-height: 1.6;
}


/* ============================================
   STARTSEITE (index.html)
   ============================================ */

.hero{
  padding: 88px 0 100px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 700px 400px at 85% -10%, #1c3a3730, transparent),
    radial-gradient(ellipse 500px 300px at 0% 20%, #3a2a1830, transparent);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } }

.eyebrow{ color: var(--teal); font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.hero h1{ font-size: clamp(38px, 5vw, 58px); margin-bottom: 22px; }
.hero h1 .hl{ color: var(--bronze-bright); }
.hero p.lead{ color: var(--text-dim); font-size: 17px; max-width: 480px; margin-bottom: 34px; }

.search-row{ display:flex; gap: 10px; margin-bottom: 8px; }
.search-row input{
  flex:1;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
}
.search-row input::placeholder{ color: #5c6a80; }
.btn-primary{
  background: var(--bronze);
  color: #0a0e15;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.search-msg{ font-size: 13px; min-height: 18px; margin-bottom: 16px; }
.hero-sub{ font-size: 13.5px; color: var(--text-dim); }
.hero-sub a{ color: var(--teal); border-bottom: 1px solid transparent; }
.hero-sub a:hover{ border-color: var(--teal); }

.compare-card{ background: var(--bg-panel); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.compare-top{ display:flex; justify-content: space-between; align-items:center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-dim); }
.tag{ background: var(--bg-panel-2); border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 20px; font-size: 11.5px; }
.compare-body{ display:grid; grid-template-columns: 1fr auto 1fr; padding: 22px 18px; gap: 14px; align-items: center; }
.side{ text-align:center; }
.side .who{ font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.side .champ{ width: 54px; height:54px; margin: 0 auto 10px; border-radius: 50%; background: linear-gradient(160deg, #2a3244, #171d29); border: 2px solid var(--line-strong); object-fit: cover; }
.side.you .champ{ border-color: var(--teal); }
.side.pro .champ{ border-color: var(--bronze); }
.side .name{ font-weight: 600; font-size: 14.5px; }
.vs{ font-family: 'Big Shoulders Display', sans-serif; font-size: 13px; color: var(--text-dim); }
.stat-list{ border-top: 1px solid var(--line); padding: 4px 18px 18px; }
.stat-row{ display:grid; grid-template-columns: 1fr auto 1fr; padding: 10px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.stat-row:last-child{ border-bottom:none; }
.stat-row .num{ font-weight:600; }
.stat-row .you-num{ text-align:left; color: var(--teal); }
.stat-row .pro-num{ text-align:right; color: var(--bronze-bright); }
.stat-row .label{ text-align:center; color: var(--text-dim); font-size: 12px; }

/* ---------- STARTSEITEN-SHOWCASE: echtes Spiel, komplett bildlich ---------- */
.showcase-players{ display:grid; grid-template-columns: 1fr auto 1fr; gap:12px; padding: 20px 18px 4px; align-items:start; }
.showcase-side{ text-align:center; min-width:0; }
.showcase-vs{ font-family:'Big Shoulders Display',sans-serif; font-size:14px; color: var(--text-dim); padding-top: 22px; }

.showcase-champ-wrap{ position:relative; width:60px; margin:0 auto 12px; }
.showcase-champ{ width:60px; height:60px; border-radius:12px; border:2px solid var(--line-strong); object-fit:cover; background: linear-gradient(160deg, #2a3244, #171d29); }
.showcase-champ.win{ border-color: var(--teal); }
.showcase-champ.loss{ border-color: var(--danger); }
.showcase-level{ position:absolute; bottom:-6px; left:50%; transform:translateX(-50%); background: var(--bg-panel-2); border:1px solid var(--line-strong); border-radius:5px; font-size:10px; font-weight:700; padding:1px 7px; }

.showcase-rank{ display:flex; align-items:center; justify-content:center; gap:5px; font-size:12px; font-weight:600; color: var(--bronze-bright); margin-bottom:3px; }
.showcase-emblem{ width:22px; height:22px; }
.showcase-emblem[hidden]{ display:none; }
.showcase-name{ font-size:12px; color: var(--text-dim); margin-bottom:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.showcase-runes{ display:flex; align-items:center; justify-content:center; gap:5px; margin-bottom:8px; min-height:30px; }
.showcase-runes .keystone{ width:30px; height:30px; border-radius:50%; background: var(--bg-panel-2); }
.showcase-runes .secondary{ width:20px; height:20px; }

.showcase-runes.minor{ gap:4px; margin-bottom:10px; min-height:0; }
.showcase-runes.minor img{ width:17px; height:17px; }

.showcase-spells{ display:flex; justify-content:center; gap:4px; margin-bottom:8px; }
.showcase-spells img{ width:20px; height:20px; border-radius:4px; border:1px solid var(--line-strong); }

.showcase-items{ display:flex; flex-wrap:wrap; justify-content:center; gap:3px; }
.showcase-items img{ width:22px; height:22px; border-radius:4px; border:1px solid var(--line-strong); background: var(--bg-panel-2); }

.showcase-stats{ padding: 16px 18px 20px; }
.vs-stat{ margin-bottom:12px; }
.vs-stat:last-child{ margin-bottom:0; }
.vs-stat-head{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; margin-bottom:5px; }
.vs-stat-head .l{ color: var(--text-dim); font-size:11px; text-transform:uppercase; letter-spacing:0.05em; }
.vs-stat-head .v{ font-weight:700; color: var(--text-dim); }
.vs-stat-head .v.left.better{ color: var(--blue-team); }
.vs-stat-head .v.right.better{ color: var(--danger); }
.vs-bar{ display:flex; height:6px; border-radius:4px; overflow:hidden; background: var(--line-strong); }
.vs-bar-left{ background: var(--blue-team); }
.vs-bar-right{ background: var(--danger); }

section{ padding: 90px 0; border-bottom: 1px solid var(--line); }
.section-head{ max-width: 560px; margin-bottom: 56px; }
.section-head .eyebrow{ margin-bottom: 14px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p{ color: var(--text-dim); font-size: 16px; }

.steps{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 820px){ .steps{ grid-template-columns: 1fr; } }
.step .num{ font-family: 'Big Shoulders Display', sans-serif; font-size: 44px; color: var(--line-strong); margin-bottom: 10px; }
.step h3{ font-size: 19px; margin-bottom: 10px; text-transform:none; }
.step p{ color: var(--text-dim); font-size: 14.5px; }

.features{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
@media (max-width: 820px){ .features{ grid-template-columns: 1fr; } }
.feature{ background: var(--bg-panel); padding: 32px 28px; }
.feature .fi{ width: 34px; height: 34px; border-radius: 6px; margin-bottom: 20px; background: var(--bg-panel-2); border: 1px solid var(--line-strong); display:flex; align-items:center; justify-content:center; color: var(--bronze-bright); font-size: 15px; font-weight: 700; }
.feature h3{ font-size: 17.5px; margin-bottom: 10px; text-transform: none; }
.feature p{ color: var(--text-dim); font-size: 14px; }

.app-cta{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items:center; }
@media (max-width: 860px){ .app-cta{ grid-template-columns: 1fr; } }
.app-cta h2{ font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.app-cta p{ color: var(--text-dim); font-size: 15.5px; margin-bottom: 26px; max-width: 460px; }
.btn-row{ display:flex; gap: 12px; flex-wrap: wrap; align-items:center; }
.btn-ghost{ border: 1px solid var(--line-strong); color: var(--text); font-size: 14.5px; font-weight: 600; padding: 13px 22px; border-radius: 4px; display:inline-flex; align-items:center; gap:8px; }
.soon{ font-size: 11.5px; color: var(--text-dim); border: 1px solid var(--line-strong); padding: 3px 9px; border-radius: 20px; }
.app-visual{ background: var(--bg-panel); border: 1px solid var(--line-strong); border-radius: 8px; padding: 26px; aspect-ratio: 4/3; display:flex; flex-direction: column; justify-content: space-between; }
.app-visual .dots{ display:flex; gap:6px; }
.app-visual .dots span{ width:8px; height:8px; border-radius:50%; background: var(--line-strong); }
.app-visual .bars{ display:flex; align-items:flex-end; gap:10px; height: 90px; }
.app-visual .bars .b{ flex:1; background: linear-gradient(180deg, var(--bronze-bright), var(--bronze)); border-radius: 3px 3px 0 0; opacity: 0.85; }


/* ============================================
   TIER LIST (tierlist.html)
   ============================================ */

.page-head{ padding: 56px 0 36px; border-bottom:1px solid var(--line); }
.page-head h1{ font-size: clamp(30px, 4vw, 44px); margin-bottom:12px; }
.page-head p{ color: var(--text-dim); font-size:15.5px; max-width:560px; }

.toolbar{ display:flex; justify-content:space-between; align-items:center; padding: 26px 0; gap: 16px; flex-wrap:wrap; }
.pills{ display:flex; gap:8px; flex-wrap:wrap; }
.pill{ font-size:13.5px; padding:8px 16px; border-radius:20px; border:1px solid var(--line-strong); color:var(--text-dim); cursor:pointer; }
.pill.active{ background: var(--bg-panel-2); color: var(--text); border-color: var(--bronze); }
.select{ background:var(--bg-panel); border:1px solid var(--line-strong); color:var(--text); font-size:13.5px; padding:9px 14px; border-radius:6px; }

table{ width:100%; border-collapse: collapse; margin-bottom: 80px; }
thead th{ text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:0.06em; color: var(--text-dim); font-weight:600; padding: 12px 14px; border-bottom:1px solid var(--line-strong); }
thead th.sortable{ cursor:pointer; user-select:none; white-space:nowrap; }
thead th.sortable:hover{ color: var(--text); }
thead th.sorted{ color: var(--bronze-bright); }
thead th.num{ text-align:right; }
tbody tr{ border-bottom:1px solid var(--line); }
tbody tr:hover{ background: var(--bg-panel); }
tbody td{ padding: 14px; font-size: 14.5px; vertical-align: middle; }
td.num{ text-align:right; font-weight:600; }

.tier-badge{ display:inline-flex; align-items:center; justify-content:center; width: 30px; height: 30px; border-radius:6px; font-family:'Big Shoulders Display',sans-serif; font-weight:800; font-size:15px; }
.tier-badge.S{ background: color-mix(in srgb, var(--s-tier) 20%, transparent); color: var(--s-tier); }
.tier-badge.A{ background: color-mix(in srgb, var(--a-tier) 20%, transparent); color: var(--a-tier); }
.tier-badge.B{ background: color-mix(in srgb, var(--b-tier) 20%, transparent); color: var(--b-tier); }
.tier-badge.C{ background: color-mix(in srgb, var(--c-tier) 20%, transparent); color: var(--c-tier); }

.champ-cell{ display:flex; align-items:center; gap:12px; }
.champ-icon{ width:36px; height:36px; border-radius:50%; background: linear-gradient(160deg, #2a3244, #171d29); border:1px solid var(--line-strong); flex-shrink:0; object-fit: cover; }
.champ-name{ font-weight:600; }
.champ-role{ font-size:12px; color: var(--text-dim); }

.wr-bar{ display:inline-block; width: 60px; height:5px; background: var(--line-strong); border-radius: 4px; overflow:hidden; margin-left:10px; vertical-align:middle; }
.wr-bar span{ display:block; height:100%; background: var(--teal); }

.trend{ font-size:12.5px; }
.trend.up{ color: var(--teal); }
.trend.down{ color: var(--danger); }


/* ============================================
   STATS-SEITE (profile.html)
   ============================================ */

/* ---------- SUCHLEISTE OBEN ---------- */
.top-search-bar{ display:flex; align-items:center; gap:10px; background: var(--bg-panel); border:1px solid var(--line-strong); border-radius:999px; padding: 6px 8px 6px 20px; margin-top:28px; }
.top-search-bar .search-icon{ width:18px; height:18px; color: var(--text-dim); flex-shrink:0; }
.top-search-bar input{ flex:1; background:none; border:none; color:var(--text); font-size:15px; font-family:'Inter',sans-serif; padding:10px 0; }
.top-search-bar input::placeholder{ color:#5c6a80; }
.top-search-bar input:focus{ outline:none; }
.top-search-bar .btn-primary{ border-radius:999px; padding:11px 26px; }

.profile-head{ padding: 24px 0 28px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:22px; flex-wrap:wrap; justify-content:space-between; }
.who{ display:flex; align-items:center; gap:18px; }
.avatar-wrap{ position:relative; flex-shrink:0; }
.avatar{ width:64px; height:64px; border-radius:50%; background: linear-gradient(160deg, #2a3244, #171d29); border:3px solid var(--tier-color, var(--bronze)); flex-shrink:0; transition: border-color 0.3s ease; }
.avatar-level{ position:absolute; bottom:-4px; left:50%; transform:translateX(-50%); background: var(--bg-panel-2); border:1px solid var(--line-strong); border-radius:5px; font-size:10px; font-weight:700; padding:1px 6px; white-space:nowrap; }
.avatar-level[hidden]{ display:none; }
.who h1{ font-size: 26px; text-transform:none; margin-bottom: 4px; }
.who .sub{ font-size: 13.5px; color: var(--text-dim); }
.update-btn{ background: var(--bg-panel); border:1px solid var(--line-strong); color: var(--text-dim); font-size:13px; font-weight:600; padding:9px 18px; border-radius:6px; cursor:pointer; }
.update-btn:hover{ color:var(--text); border-color: var(--bronze); }
.update-btn[hidden]{ display:none; }

/* ---------- KOMPAKTE STAT-LEISTE (über der Spieleliste) ---------- */
.stat-strip{ display:flex; align-items:center; gap:20px; background: var(--bg-panel); border:1px solid var(--line-strong); border-radius:8px; padding:16px 22px; margin-bottom:24px; flex-wrap:wrap; }
.stat-strip-wr{ display:flex; align-items:center; gap:12px; }
.ring-wrap-sm{ position:relative; width:50px; height:50px; flex-shrink:0; }
.wr-ring-sm{ width:50px; height:50px; transform:rotate(-90deg); }
.stat-strip-big{ font-family:'Big Shoulders Display',sans-serif; font-weight:800; font-size:20px; }
.stat-strip-lbl{ font-size:11px; color: var(--text-dim); }
.stat-strip-divider{ width:1px; height:34px; background: var(--line-strong); flex-shrink:0; }
.stat-strip-item{ flex-shrink:0; }
.stat-strip-champs{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.stat-strip-champ{ display:flex; align-items:center; gap:8px; }
.stat-strip-champ img{ width:32px; height:32px; border-radius:7px; }
.stat-strip-champ .wr{ font-weight:700; font-size:13px; }
.stat-strip-champ .wr.good{ color: var(--teal); }
.stat-strip-champ .wr.bad{ color: var(--danger); }
.stat-strip-champ .rec{ font-size:10.5px; color:var(--text-dim); }
@media (max-width: 700px){ .stat-strip{ padding:14px; } }

/* ---------- ZWEISPALTIGES LAYOUT: Sidebar links, Inhalt rechts ---------- */
.profile-layout{ display:grid; grid-template-columns: 300px 1fr; gap:24px; align-items:start; margin-top:28px; }
@media (max-width: 900px){ .profile-layout{ grid-template-columns: 1fr; } }
.profile-sidebar{ display:flex; flex-direction:column; gap:16px; position:sticky; top:90px; }
@media (max-width: 900px){ .profile-sidebar{ position:static; } }

.rank-card, .lp-history-card{ background: var(--bg-panel); border:1px solid var(--line-strong); border-radius:8px; padding:18px; }
.rank-card-title{ font-size:11px; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-dim); margin-bottom:14px; }
.rank-card-main{ display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.rank-emblem-lg{ width:56px; height:56px; flex-shrink:0; filter: drop-shadow(0 2px 6px #00000055); }
.rank-emblem-lg[hidden]{ display:none; }
.rank-card-tier{ font-family:'Big Shoulders Display',sans-serif; font-weight:800; font-size:19px; color: var(--bronze-bright); }
.rank-card-lp{ font-size:12.5px; color: var(--text-dim); margin-top:2px; }
.rank-progress{ width:100%; height:6px; background:var(--line-strong); border-radius:4px; overflow:hidden; margin-bottom:12px; }
.rank-progress-bar{ height:100%; background: var(--teal); border-radius:4px; transition: width 0.5s ease; }
.rank-card-stats{ display:flex; justify-content:space-between; font-size:12.5px; color: var(--text-dim); }

.lp-chart{ width:100%; height:70px; display:block; margin-bottom:10px; }
.lp-history-empty{ font-size:11.5px; color:var(--text-dim); margin-bottom:12px; line-height:1.5; }
.lp-history-meta{ display:flex; justify-content:space-between; text-align:center; border-top:1px solid var(--line); padding-top:12px; }
.lp-history-meta span{ display:block; font-family:'Big Shoulders Display',sans-serif; font-weight:800; font-size:17px; }
.lp-history-meta label{ font-size:10.5px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.04em; }

.profile-main{ min-width:0; }
.profile-main .summary{ margin-top:0; }

.summary{ display:grid; grid-template-columns: repeat(4, 1fr); gap:1px; background: var(--line-strong); border:1px solid var(--line-strong); border-radius:8px; overflow:hidden; margin: 34px 0 50px; }
@media (max-width:820px){ .summary{ grid-template-columns: repeat(2,1fr); } }
.summary .card{ background: var(--bg-panel); padding: 24px 26px; min-height:104px; display:flex; flex-direction:column; justify-content:center; }
.summary .card .big{ font-family:'Big Shoulders Display',sans-serif; font-weight:800; font-size: 32px; margin-bottom: 6px; }
.summary .card .lbl{ font-size:12.5px; color: var(--text-dim); }
.summary .card .big.win{ color: var(--teal); }

.card-winrate{ align-items:center; text-align:center; }
.ring-wrap{ position:relative; width:72px; height:72px; margin-bottom:8px; }
.wr-ring{ width:72px; height:72px; transform:rotate(-90deg); }
.wr-ring-bg{ fill:none; stroke:var(--line-strong); stroke-width:8; }
.wr-ring-fg{ fill:none; stroke:var(--teal); stroke-width:8; stroke-linecap:round; stroke-dasharray:213.6; stroke-dashoffset:213.6; transition: stroke-dashoffset 0.6s ease; }
.ring-label{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:'Big Shoulders Display',sans-serif; font-weight:800; font-size:16px; color: var(--teal); }

.champion-pool-card{ background: var(--bg-panel); border:1px solid var(--line-strong); border-radius:8px; padding:18px; }
.champ-perf-row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.champ-perf-row:last-of-type{ border-bottom:none; }
.champ-perf-row .champ-icon{ width:40px; height:40px; border-radius:8px; flex-shrink:0; }
.champ-perf-row .info{ flex:1; min-width:0; }
.champ-perf-row .name{ font-weight:600; font-size:13.5px; }
.champ-perf-row .kda{ font-size:12px; color:var(--text-dim); margin-top:2px; }
.champ-perf-row .stats{ text-align:right; flex-shrink:0; }
.champ-perf-row .wr{ font-weight:700; font-size:13.5px; }
.champ-perf-row .wr.good{ color: var(--teal); }
.champ-perf-row .wr.bad{ color: var(--danger); }
.champ-perf-row .record{ font-size:11.5px; color:var(--text-dim); margin-top:2px; }
.champ-perf-more{ display:block; width:100%; text-align:center; background:none; border:none; color:var(--text-dim); font-size:12.5px; padding-top:12px; margin-top:2px; cursor:pointer; }
.champ-perf-more:hover{ color:var(--text); }
.champ-perf-more[hidden]{ display:none; }
.champ-perf-row.hidden-extra{ display:none; }

.section-title{ font-size:20px; text-transform:none; margin-bottom: 4px; }
.section-sub{ font-size: 13.5px; color: var(--text-dim); margin-bottom: 22px; }

.match{
  display:flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 5px;
  font-size: 12.5px;
}
.match.extra{ display: none; }
.match.win{ border-left-color: var(--teal); background: color-mix(in srgb, var(--teal) 7%, var(--bg-panel)); }
.match.loss{ border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 7%, var(--bg-panel)); }
.match-main{ display:flex; align-items:center; gap:10px; flex-wrap: wrap; }

.match .time-block{ min-width:60px; flex-shrink:0; }
.match .time-block .duration{ font-weight:600; font-size:11.5px; }
.match .time-block .ago{ font-size:10px; color:var(--text-dim); }
.match .time-block .queue{ font-size:10px; color:var(--text-dim); }
.match .lp-change{ font-size:11px; font-weight:700; margin-top:3px; }
.match .lp-change.pos{ color: var(--teal); }
.match .lp-change.neg{ color: var(--danger); }
.match .lp-change.unknown{ color: #5c6a80; font-weight:600; cursor:help; }

.match .champ-icon{ width:34px; height:34px; border-radius:7px; background: linear-gradient(160deg, #2a3244, #171d29); border:1px solid var(--line-strong); flex-shrink:0; object-fit: cover; }
.match .champ-block{ display:flex; align-items:center; gap:6px; flex-shrink:0; }
.match .mini-spells{ display:flex; flex-direction:column; gap:2px; }
.match .mini-spells img{ width:15px; height:15px; border-radius:3px; border:1px solid var(--line-strong); }
.match .champ-info{ min-width: 78px; }
.match .champ-name{ font-weight:600; font-size:12.5px; }
.match .result{ font-size:10.5px; color: var(--text-dim); }
.match.win .result{ color: var(--teal); }
.match.loss .result{ color: var(--danger); }
.match .role-badge{ display:inline-block; margin-top:2px; font-size:9.5px; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-dim); border:1px solid var(--line-strong); border-radius:4px; padding:1px 6px; }

.match .kda-block{ min-width: 76px; }
.match .kda-num{ font-weight:700; font-size:13px; }
.match .kda-num .deaths{ color: var(--danger); }
.match .kda-ratio{ font-size:10.5px; color: var(--text-dim); margin-top:1px; }
.match .kda-extra{ font-size:10.5px; color: var(--text-dim); }

.match .build-mini{ display:flex; align-items:center; gap:8px; background: var(--bg-panel-2); border:1px solid var(--line-strong); border-radius:6px; padding:4px 8px; flex-shrink:0; }
.match .rune-grid{ display:grid; grid-template-columns: repeat(2, 16px); grid-template-rows: repeat(2, 16px); gap:2px; }
.match .rune-grid img{ width:16px; height:16px; border-radius:3px; }
.match .items-grid{ display:grid; grid-template-columns: repeat(4, 16px); grid-template-rows: repeat(2, 16px); gap:2px; padding-left:8px; border-left:1px solid var(--line-strong); }
.match .items-grid img{ width:16px; height:16px; border-radius:3px; border:1px solid var(--line-strong); background: var(--bg-panel-2); }

.match .matchup{ display:flex; align-items:center; gap:5px; flex-shrink:0; }
.match .matchup .champ-icon.opponent{ width:26px; height:26px; border-radius:6px; }
.match .matchup-vs{ font-size:9px; color:var(--text-dim); }

.match .row-actions{ display:flex; align-items:center; gap:6px; margin-left:auto; flex-shrink:0; }
.match .expand-trigger{ display:flex; align-items:center; justify-content:center; background:none; border:1px solid var(--line-strong); color:var(--text-dim); width:26px; height:26px; border-radius:6px; cursor:pointer; font-size:10px; flex-shrink:0; }
.match .expand-trigger:hover{ color:var(--text); border-color:var(--bronze); }
.match .expand-trigger.open{ transform: rotate(180deg); }

.scoreboard-rank{ font-size:10px; color:var(--text-dim); }
.scoreboard-rank.loading{ font-style:italic; opacity:0.6; }

.items-row{ display:flex; gap:4px; flex-wrap:wrap; }
.item-icon{ width:24px; height:24px; border-radius:4px; border:1px solid var(--line-strong); background: var(--bg-panel-2); }
@media (max-width: 900px){ .match .expand-trigger{ margin-left:0; } }

.load-more{ display:block; margin: 26px auto 0; background:none; border:1px solid var(--line-strong); color: var(--text-dim); font-size:13.5px; padding: 12px 26px; border-radius:6px; cursor:pointer; }
.load-more:disabled{ opacity: 0.5; cursor: default; }

/* ---------- PROFI-VERGLEICH (innerhalb der match-Karten) ---------- */
.compare-trigger{ display:flex; align-items:center; justify-content:center; background:none; border:1px solid var(--line-strong); color: var(--text-dim); font-size:10.5px; font-weight:600; padding:0 10px; height:26px; border-radius:6px; cursor:pointer; white-space:nowrap; }
.compare-trigger:hover{ color: var(--text); border-color: var(--bronze); }
.compare-result .compare-card{ margin-top: 10px; }
.compare-result .side .champ{ object-fit: cover; }
.compare-result .compare-top{ font-size: 12px; }

/* ---------- VOLLER BUILD (zwei Spalten: Du / Profi) ---------- */
.build-detail{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; padding: 4px 18px 18px; }
@media (max-width: 640px){ .build-detail{ grid-template-columns: 1fr; } }
.build-col .build-col-title{ font-size:11px; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-dim); margin-bottom:8px; }
.build-col .items-row{ padding:0; margin-bottom:8px; flex-wrap: wrap; }

/* ---------- KOMPLETTES SCOREBOARD (alle 10 Spieler) ---------- */
.scoreboard{ overflow-x:auto; padding: 0 18px 18px; }
.scoreboard-team-header{ font-size:11px; text-transform:uppercase; letter-spacing:0.05em; padding: 10px 6px 6px; }
.scoreboard-team-header.win{ color: var(--teal); }
.scoreboard-team-header.loss{ color: var(--danger); }
.scoreboard-row{ display:grid; grid-template-columns: 40px minmax(90px,1fr) 40px 135px 56px 110px 100px; align-items:center; gap:6px; padding:5px 6px; border-bottom:1px solid var(--line); min-width: 640px; }
.scoreboard-row.tracked{ background: color-mix(in srgb, var(--bronze) 14%, transparent); border-radius:4px; }
.scoreboard-champ{ position:relative; width:32px; height:32px; }
.scoreboard-champ img{ width:32px; height:32px; border-radius:7px; }
.scoreboard-champ .lvl{ position:absolute; bottom:-4px; right:-4px; background:var(--bg-panel-2); border:1px solid var(--line-strong); border-radius:4px; font-size:8.5px; padding:0 3px; line-height:1.4; }
.scoreboard-name{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:var(--text); }
.scoreboard-name .tag{ font-size:9.5px; padding:1px 6px; }
.scoreboard-sr{ display:flex; gap:2px; }
.scoreboard-sr .col{ display:flex; flex-direction:column; gap:2px; }
.scoreboard-sr img{ width:15px; height:15px; border-radius:3px; }
.scoreboard-items{ display:flex; gap:2px; flex-wrap:wrap; }
.scoreboard-items img{ width:17px; height:17px; border-radius:3px; border:1px solid var(--line-strong); background:var(--bg-panel-2); }
.scoreboard-kda{ font-size:12px; text-align:center; white-space:nowrap; }
.scoreboard-dmg{ min-width:90px; }
.scoreboard-dmg .dmg-num{ font-size:12px; text-align:right; margin-bottom:3px; white-space:nowrap; }
.scoreboard-dmg .dmg-bar{ width:100%; height:5px; background:var(--line-strong); border-radius:3px; overflow:hidden; }
.scoreboard-dmg .dmg-bar span{ display:block; height:100%; border-radius:3px; }
.scoreboard-dmg .dmg-bar span.team-blue{ background:var(--blue-team); }
.scoreboard-dmg .dmg-bar span.team-red{ background:var(--danger); }
.scoreboard-meta{ font-size:10.5px; color:var(--text-dim); text-align:right; white-space:nowrap; }

/* ---------- SCOREBOARD-TABS (General / Details / Runes) ---------- */
.scoreboard-tabs{ display:flex; gap:4px; padding:0 18px; margin-bottom:10px; border-bottom:1px solid var(--line); }
.scoreboard-tab-btn{ background:none; border:none; color:var(--text-dim); font-size:12.5px; font-weight:600; padding:8px 14px; cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; }
.scoreboard-tab-btn:hover{ color:var(--text); }
.scoreboard-tab-btn.active{ color:var(--text); border-bottom-color:var(--bronze); }
.scoreboard-tab-panel[hidden]{ display:none; }
.scoreboard-tab-panel .scoreboard{ padding:0 18px 18px; }

/* Runes-Tab: 5x2 Raster aller Champions mit Keystone + Sekundärpfad */
.runes-tab-grid{ display:grid; grid-template-columns: repeat(5, 1fr); gap:12px; padding:0 18px 18px; }
@media (max-width: 700px){ .runes-tab-grid{ grid-template-columns: repeat(2, 1fr); } }
.runes-tab-cell{ text-align:center; }
.runes-tab-cell .champ-icon{ width:44px; height:44px; border-radius:8px; margin:0 auto 6px; }
.runes-tab-cell .rune-icons{ display:flex; justify-content:center; gap:3px; }
.runes-tab-cell .rune-icons img{ width:18px; height:18px; border-radius:4px; }

/* Details-Tab */
.details-header{ display:flex; align-items:center; justify-content:center; gap:14px; padding:0 18px 16px; }
.details-header .champ-icon{ width:46px; height:46px; border-radius:9px; }
.details-mini-cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; padding:0 18px; margin-bottom:18px; }
@media (max-width: 700px){ .details-mini-cards{ grid-template-columns: 1fr; } }
.details-mini-card{ background: var(--bg-panel-2); border:1px solid var(--line-strong); border-radius:6px; padding:12px 14px; }
.details-mini-card .title{ font-size:10px; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-dim); margin-bottom:8px; }
.details-mini-card .row{ display:flex; justify-content:space-between; font-size:12.5px; padding:3px 0; }
.details-mini-card .val{ font-weight:600; }
.details-mini-card .val.pos{ color: var(--teal); }
.details-mini-card .val.neg{ color: var(--danger); }
.details-subtitle{ font-size:13px; font-weight:600; padding:0 18px; margin-bottom:8px; }

.build-order-row{ display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start; padding:0 18px 18px; }
.build-order-item{ text-align:center; }
.build-order-item img{ width:32px; height:32px; border-radius:6px; border:1px solid var(--line-strong); background:var(--bg-panel-2); }
.build-order-item .t{ font-size:9px; color:var(--text-dim); margin-top:3px; }

.skill-order{ display:flex; flex-direction:column; gap:5px; padding:0 18px 18px; }
.skill-row{ display:flex; align-items:center; gap:6px; }
.skill-row-label{ width:16px; text-align:center; font-weight:700; font-size:11px; color:var(--text-dim); flex-shrink:0; }
.skill-row-cells{ display:grid; grid-template-columns: repeat(18, 1fr); gap:3px; flex:1; }
.skill-cell{ aspect-ratio:1; min-width:14px; background: var(--bg-panel-2); border:1px solid var(--line-strong); border-radius:4px; display:flex; align-items:center; justify-content:center; font-size:9.5px; font-weight:700; color: var(--text-dim); }
.skill-cell.filled{ color:#0a0e15; }
.skill-cell.slot-1{ background: var(--blue-team); border-color: var(--blue-team); }
.skill-cell.slot-2{ background: var(--bronze-bright); border-color: var(--bronze-bright); }
.skill-cell.slot-3{ background: #a25fd6; border-color: #a25fd6; }
.skill-cell.slot-4{ background: var(--danger); border-color: var(--danger); }
