/* =====================================================================
   RIFT — görsel dil
   Grafit zemin, tek vurgu rengi (mat altın), sıkışık başlık fontu,
   keskin köşeler, gerçek şampiyon görselleri. Gradyan ve emoji yok.
   ===================================================================== */
:root {
    --bg: #0f1012;
    --bg-2: #131417;
    --panel: #17181c;
    --panel-2: #1e1f24;
    --panel-3: #25272d;
    --line: #2a2c33;
    --line-soft: #212227;
    --text: #ebebed;
    --text-2: #c4c5ca;
    --muted: #8b8d96;
    --accent: #e8b04b;
    --accent-hover: #f2c066;
    --accent-ink: #17120a;
    --accent-soft: rgba(232, 176, 75, .12);
    --win: #3d8bff;
    --win-bg: #131c2b;
    --win-line: #22385c;
    --loss: #ef4a5f;
    --loss-bg: #23151a;
    --loss-line: #4f2630;
    --remake: #7c7f88;
    --gold: #e8b04b;
    --radius: 6px;
    --radius-sm: 4px;
    --display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 14px;
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-variant-numeric: tabular-nums;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-family: var(--display); font-weight: 700; letter-spacing: .01em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.tag { color: var(--muted); font-weight: 500; margin-left: 4px; }
.win-text { color: var(--win); font-weight: 600; }
.loss-text { color: var(--loss); font-weight: 600; }
.wr-high { color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; margin: 0; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent); }
.tag-chip { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .08em;
    padding: 1px 6px; border-radius: 3px; vertical-align: 1px; margin-left: 4px; }
.tag-chip.hot { background: var(--accent-soft); color: var(--accent); }

/* KDA renkleri */
.kda-great { color: var(--accent); }
.kda-good { color: #45b7e8; }
.kda-ok { color: #4fc98b; }
.kda-low { color: var(--muted); }
.deaths { color: var(--loss); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 16, 18, .94); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 30px; height: 58px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 22px;
    letter-spacing: .16em; color: var(--text); }
.logo img { width: 26px; height: 26px; }
.logo.small { font-size: 16px; }
.logo.small img { width: 18px; height: 18px; }
.main-nav { display: flex; gap: 2px; align-self: stretch; }
.main-nav a { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font-weight: 600; font-size: 14px;
    border-bottom: 2px solid transparent; margin-bottom: -1px; }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Search ---------- */
.search { display: flex; align-items: stretch; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.search:focus-within { border-color: var(--accent); }
.search select, .search input, .search button { border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.search select { padding: 0 10px; border-right: 1px solid var(--line); font-weight: 700; cursor: pointer; font-family: var(--display); font-size: 15px; letter-spacing: .04em; }
.search select option { background: var(--panel); }
.search input { flex: 1; min-width: 0; padding: 0 14px; }
.search input::placeholder { color: #6c6e77; }
.search button { cursor: pointer; padding: 0 14px; color: var(--muted); }
.search-compact { margin-left: auto; height: 36px; width: 330px; }
.search-compact button:hover { color: var(--text); }
.search-hero { height: 56px; width: 100%; max-width: 640px; font-size: 16px; background: rgba(23, 24, 28, .92); }
.search-hero button { background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 700;
    font-size: 18px; letter-spacing: .06em; text-transform: uppercase; padding: 0 28px; }
.search-hero button:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: #3b3e47; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; justify-content: center; height: 42px; margin-top: 8px; }
.btn.small { height: 30px; font-size: 13px; padding: 0 10px; }
.btn.loading .btn-label::after { content: "…"; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--loss); display: inline-block; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); gap: 10px; }
.card-head h2, .card-head h3 { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.card-head.sub { border-top: 1px solid var(--line-soft); }
.flash { margin-top: 16px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--accent-soft);
    border-left: 3px solid var(--accent); }
.flash.warn { background: var(--loss-bg); border-left-color: var(--loss); }

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.hero-art { position: absolute; inset: 0; background-size: cover; background-position: 70% 20%; opacity: .55; }
.hero-art::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--bg) 0%, rgba(15, 16, 18, .92) 38%, rgba(15, 16, 18, .35) 75%, rgba(15, 16, 18, .55) 100%),
                linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.hero-inner { position: relative; padding-top: 92px; padding-bottom: 64px; display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { font-size: 64px; line-height: .98; font-weight: 700; text-transform: uppercase; margin: 12px 0 16px; letter-spacing: .005em; }
.hero-sub { color: var(--text-2); font-size: 16.5px; max-width: 560px; margin: 0 0 28px; }
.hero-meta { display: flex; gap: 22px; margin-top: 18px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.hero-meta b { color: var(--text); font-family: var(--display); font-size: 17px; letter-spacing: .02em; }
.hero-credit { margin-left: auto; font-size: 12px; opacity: .7; }
.home-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; padding-top: 28px; padding-bottom: 40px; align-items: start; }
.recent-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; }
.recent-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--radius-sm); }
.recent-item:hover { background: var(--panel-2); }
.recent-item img { width: 38px; height: 38px; border-radius: var(--radius-sm); }
.recent-item .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.feature-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.feature { display: flex; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.feature:hover h3 { color: var(--accent); }
.feature h3 { font-size: 19px; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .02em; transition: color .15s; }
.feature p { margin: 0; font-size: 14px; }
.feature-no { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--accent); padding-top: 3px; letter-spacing: .06em; }

/* ---------- Profile header ---------- */
.profile-header { position: relative; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); padding-top: 34px; }
.profile-banner { position: absolute; inset: 0; background-size: cover; background-position: 75% 18%; opacity: .45; }
.profile-banner::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--bg-2) 0%, rgba(19, 20, 23, .9) 40%, rgba(19, 20, 23, .4) 100%),
                linear-gradient(0deg, var(--bg-2) 0%, transparent 55%); }
.profile-header .container { position: relative; }
.profile-top { display: flex; gap: 22px; align-items: center; }
.profile-icon { position: relative; flex: none; }
.profile-icon img { width: 92px; height: 92px; border-radius: var(--radius); border: 2px solid var(--line); }
.profile-icon .level { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); background: var(--bg); border: 1px solid var(--line);
    padding: 0 8px; border-radius: 3px; font-family: var(--display); font-size: 14px; font-weight: 700; }
.profile-info h1 { font-size: 38px; margin-bottom: 4px; }
.profile-info h1 .tag { font-size: 28px; font-weight: 500; }
.region-pill { background: var(--accent); color: var(--accent-ink); border-radius: 3px; padding: 0 5px; font-family: var(--display);
    font-weight: 700; font-size: 12px; letter-spacing: .06em; margin-right: 4px; }
.profile-actions { display: flex; gap: 8px; margin-top: 14px; }
.tabs { display: flex; gap: 6px; margin-top: 24px; }
.tabs a { padding: 12px 14px; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .05em;
    text-transform: uppercase; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-color: var(--accent); }

.profile-layout { display: grid; grid-template-columns: 330px 1fr; gap: 14px; padding-top: 16px; padding-bottom: 40px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 12px; }
.main-col { min-width: 0; display: flex; flex-direction: column; gap: 8px; }

/* rank card */
.rank-body { display: flex; align-items: center; gap: 12px; padding: 14px 16px; overflow: hidden; }
.rank-body .emblem { width: 72px; height: 72px; object-fit: cover; transform: scale(2.3); margin: 0 6px; pointer-events: none; }
.rank-text { flex: 1; }
.rank-text .tier { font-family: var(--display); font-size: 22px; font-weight: 700; }
.rank-text .lp { color: var(--muted); font-size: 13px; }
.rank-text .lp b { color: var(--text); }
.rank-wl { text-align: right; min-width: 110px; }
.wr-bar { height: 4px; background: var(--loss-line); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.wr-bar span { display: block; height: 100%; background: var(--win); }
.wr-bar.progress { background: var(--panel-3); height: 6px; }
.wr-bar.progress span { background: var(--accent); transition: width .4s; }
.unranked .emblem { opacity: .4; }

/* champion stats */
.champ-stats { list-style: none; margin: 0; padding: 4px 0; }
.champ-stats li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 10px; align-items: center; padding: 7px 14px; }
.champ-stats li + li { border-top: 1px solid var(--line-soft); }
.champ-stats img { width: 34px; height: 34px; border-radius: var(--radius-sm); }
.champ-stats .name { font-weight: 600; font-size: 14px; }
.cs-kda, .cs-wr { text-align: right; }
.cs-wr { min-width: 54px; }

/* Dikey şampiyon kartları (şampiyon istatistikleri + ustalık) */
.champ-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.champ-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px 9px;
    background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); min-width: 0; }
.champ-card:hover { border-color: var(--line); }
.champ-card img { width: 48px; height: 48px; border-radius: var(--radius-sm); margin-bottom: 4px; }
.cc-name { font-size: 13px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-games { margin-bottom: 4px; }
.cc-wr { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1; }
.cc-wr.wr-low { color: var(--loss); }
.cc-kda { font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.cc-line { display: flex; gap: 4px; justify-content: center; width: 100%; border-top: 1px solid var(--line-soft); padding-top: 3px; margin-top: 3px; }
.cc-line + .cc-line { border-top: 0; margin-top: 0; padding-top: 0; }
.cc-label { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; margin-top: 4px; }
.mastery-card .cc-wr { color: var(--accent); }
@media (max-width: 900px) { .champ-cards { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } }

.mastery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.mastery { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.mastery .name { font-weight: 600; margin-top: 4px; }

.champ-wrap { position: relative; flex: none; }
.champ-wrap .champ { width: 48px; height: 48px; border-radius: var(--radius-sm); }
.champ-lvl { position: absolute; right: -4px; bottom: -4px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
    font-family: var(--display); font-size: 12px; font-weight: 700; padding: 0 4px; line-height: 15px; }
.champ-wrap.sm .champ { width: 32px; height: 32px; }
.champ-wrap.sm .champ-lvl { font-size: 10px; line-height: 12px; padding: 0 3px; }

/* summary */
.summary { display: grid; grid-template-columns: auto 1fr 1.3fr 1fr; }
.summary-block { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-right: 1px solid var(--line-soft); }
.summary-block:last-child { border-right: 0; }
.donut { --p: 50; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 4px 0;
    background: conic-gradient(var(--win) calc(var(--p) * 1%), var(--loss) 0); }
.donut span { width: 62px; height: 62px; border-radius: 50%; background: var(--panel); display: grid; place-items: center;
    font-family: var(--display); font-size: 20px; font-weight: 700; }
.kda-line.big { font-family: var(--display); font-size: 22px; font-weight: 600; }
.kda-ratio.big { font-family: var(--display); font-size: 28px; font-weight: 700; }
.top-champ { display: flex; align-items: center; gap: 8px; }
.top-champ img { width: 26px; height: 26px; border-radius: var(--radius-sm); }
.pos-bars { display: flex; gap: 10px; align-items: flex-end; height: 76px; }
.pos { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pos .bar { width: 12px; height: 52px; background: var(--panel-3); border-radius: 2px; display: flex; align-items: flex-end; overflow: hidden; }
.pos .bar span { display: block; width: 100%; background: var(--accent); }
.pos img { width: 18px; height: 18px; opacity: .8; }

/* ---------- Match cards ---------- */
.match-list { display: flex; flex-direction: column; gap: 5px; }
.match { border-radius: var(--radius-sm); border: 1px solid var(--line); border-left-width: 4px; overflow: hidden; background: var(--panel); }
.match.win { background: var(--win-bg); border-color: var(--win-line); border-left-color: var(--win); }
.match.loss { background: var(--loss-bg); border-color: var(--loss-line); border-left-color: var(--loss); }
.match.remake { border-left-color: var(--remake); }
.match-row { display: grid; grid-template-columns: 100px 128px 92px 138px 108px minmax(0, 1fr) 34px; align-items: center; gap: 12px;
    padding: 10px 0 10px 14px; min-height: 100px; }
.match-meta .queue { font-weight: 700; font-size: 13px; }
.match.win .queue, .match.win .result { color: var(--win); }
.match.loss .queue, .match.loss .result { color: var(--loss); }
.match.remake .queue, .match.remake .result { color: var(--remake); }
.match-meta .sep { width: 40px; height: 1px; background: var(--line); margin: 7px 0; }
.match-meta .result { font-family: var(--display); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.match-champ { display: flex; gap: 4px; align-items: center; }
.icon-col { display: flex; flex-direction: column; gap: 3px; }
.icon-col img { width: 23px; height: 23px; border-radius: 3px; background: var(--bg); }
.icon-col.runes img { border-radius: 50%; }
.icon-col img.secondary { padding: 3px; }
.icon-col.xs img { width: 16px; height: 16px; border-radius: 3px; }
.match-kda { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.kda-line { font-family: var(--display); font-size: 19px; font-weight: 600; }
.kda-line b { font-weight: 700; }
.kda-line .slash { color: var(--muted); font-weight: 400; }
.kda-ratio { font-size: 13px; font-weight: 600; }
.badge { font-family: var(--display); font-size: 12px; padding: 1px 7px; border-radius: 3px; font-weight: 700; letter-spacing: .04em; margin-top: 3px; }
.badge.multi { background: rgba(239, 74, 95, .18); color: #ff8292; }
.match-stats { display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.match-stats b { color: var(--text); font-weight: 600; }
.items { display: grid; grid-template-columns: repeat(4, 24px); gap: 3px; }
.items img, .item-empty { width: 24px; height: 24px; border-radius: 3px; }
.item-empty { display: block; background: rgba(255, 255, 255, .05); }
.items .trinket { border-radius: 50%; }
.items.sm { grid-template-columns: repeat(7, 20px); }
.items.sm img, .items.sm .item-empty { width: 20px; height: 20px; }
.match-players { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; }
.match-players ul { list-style: none; margin: 0; padding: 0; min-width: 0; }
.match-players li { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); height: 17px; min-width: 0; }
.match-players li img { width: 15px; height: 15px; border-radius: 2px; flex: none; }
.match-players li a, .match-players li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-players li.me { color: var(--text); font-weight: 600; }
.expand { align-self: stretch; border: 0; border-left: 1px solid rgba(255, 255, 255, .05); background: rgba(255, 255, 255, .03);
    color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.expand:hover { color: var(--text); }
.expand svg { transition: transform .2s; }
.match.open .expand svg { transform: rotate(180deg); }

.match-detail[hidden] { display: none; }
.match-detail { background: var(--bg-2); border-top: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.detail-team { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-soft); }
.detail-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; flex-wrap: wrap; }
.detail-team.win .detail-head { background: var(--win-bg); }
.detail-team.loss .detail-head { background: var(--loss-bg); }
.result-text { font-family: var(--display); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.detail-team.win .result-text { color: var(--win); }
.detail-team.loss .result-text { color: var(--loss); }
.objectives { display: flex; gap: 14px; margin-left: auto; }
.objectives b { color: var(--text); }
.bans { display: flex; gap: 3px; align-items: center; }
.bans img { width: 20px; height: 20px; border-radius: 3px; filter: grayscale(1); opacity: .7; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-table th { color: var(--muted); font-weight: 600; padding: 6px; text-align: center; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.detail-table td { padding: 5px 6px; text-align: center; border-top: 1px solid var(--line-soft); }
.detail-table .left { text-align: left; }
.detail-table tr.me td { background: var(--accent-soft); }
.player-cell { display: flex; align-items: center; gap: 4px; }
.player-name { margin-left: 4px; min-width: 0; max-width: 130px; display: flex; flex-direction: column; }
.player-name a, .player-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmg-cell { min-width: 80px; }
.dmg-bar { height: 4px; width: 64px; margin: 3px auto 0; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.dmg-bar span { display: block; height: 100%; background: var(--loss); }

/* Maçın kırılma anı */
.breaking-slot { padding: 4px 2px; }
.breaking { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 14px 16px 10px; }
.breaking-error { margin: 0; }
.breaking-head p { margin: 2px 0; }
.breaking-headline { font-size: 15.5px; font-weight: 600; margin-top: 4px !important; }
.breaking-chart { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
.bp-window { fill: var(--accent-soft); }
.bp-zero { stroke: rgba(255, 255, 255, .18); stroke-dasharray: 3 4; }
.bp-area-up { fill: rgba(61, 139, 255, .28); }
.bp-area-dn { fill: rgba(239, 74, 95, .25); }
.bp-line { fill: none; stroke: var(--text-2); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.bp-marker circle { stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.bp-marker.mine circle { fill: var(--win-bg); stroke: var(--win); }
.bp-marker.enemy circle { fill: var(--loss-bg); stroke: var(--loss); }
.bp-marker text { font-family: var(--display); font-size: 10px; font-weight: 700; fill: var(--text); }
.bp-axis { position: relative; height: 16px; font-size: 11px; color: var(--muted); }
.bp-axis span { position: absolute; transform: translateX(-50%); }
.bp-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.bp-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.bp-legend .lg.mine { background: rgba(61, 139, 255, .6); }
.bp-legend .lg.enemy { background: rgba(239, 74, 95, .6); }

/* Rakip keşfi etiketleri */
.scout-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.scout { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .04em;
    padding: 1px 6px; border-radius: 3px; background: var(--panel-3); color: var(--text-2); cursor: help; }
.scout.threat { background: rgba(239, 74, 95, .16); color: #ff8292; }
.scout.weak { background: rgba(79, 201, 139, .15); color: #6fdca5; }
.scout-legend { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Rün / skill önerisi (canlı oyun) */
.live-player { flex-wrap: wrap; }
.build { flex-basis: 100%; margin: 4px 0 0 48px; }
.build summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px;
    border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line-soft); font-size: 12.5px; }
.build summary::-webkit-details-marker { display: none; }
.build summary:hover { border-color: var(--line); }
.build-label { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.rune-key { width: 24px; height: 24px; }
.rune-sub { width: 16px; height: 16px; opacity: .85; }
.skill-prio { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.rune-match { font-size: 11.5px; font-weight: 600; padding: 0 6px; border-radius: 3px; }
.rune-match.same { color: #6fdca5; background: rgba(79, 201, 139, .12); }
.rune-match.keystone { color: var(--text-2); background: var(--panel-3); }
.rune-match.different { color: var(--accent); background: var(--accent-soft); }
.build-more { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.build[open] .build-more { visibility: hidden; }
.build-body { display: flex; flex-wrap: wrap; gap: 18px; padding: 10px 8px 4px; }
.rune-page, .skill-order { display: flex; flex-direction: column; gap: 6px; }
.rune-tree { display: flex; align-items: center; gap: 6px; }
.rune-tree img { width: 26px; height: 26px; }
.rune-tree img.tree { width: 20px; height: 20px; opacity: .8; margin-right: 2px; }
.rune-tree img.key { width: 34px; height: 34px; }
.shards { display: inline-flex; gap: 3px; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.shards img { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
.skill-path { display: flex; gap: 2px; }
.sk { width: 20px; height: 22px; display: grid; place-items: center; border-radius: 3px; font-family: var(--display);
    font-weight: 700; font-size: 13px; background: var(--panel-3); color: var(--text-2); }
.sk-Q { background: rgba(61, 139, 255, .22); color: #8fb6ff; }
.sk-W { background: rgba(79, 201, 139, .2); color: #6fdca5; }
.sk-E { background: rgba(232, 176, 75, .2); color: var(--accent); }
.sk-R { background: rgba(239, 74, 95, .25); color: #ff8292; }
.build-source { flex-basis: 100%; }

/* Canlı oyun düzeni: takımlar dikey, sağda sorgulanan oyuncunun paneli */
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.live-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.live .live-teams { grid-template-columns: 1fr; }
.me-hint { flex-basis: 100%; margin: 4px 0 0 48px; color: var(--accent); font-weight: 600; }
.me-panel { position: sticky; top: 72px; padding: 16px; border-top: 3px solid var(--accent); display: flex; flex-direction: column; gap: 14px; }
.me-head { display: flex; gap: 12px; align-items: center; }
.me-champ { width: 60px; height: 60px; border-radius: var(--radius-sm); border: 2px solid var(--accent); }
.me-head h2 { font-size: 28px; text-transform: uppercase; line-height: 1; margin: 2px 0 4px; }
.me-current { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.me-current img { width: 20px; height: 20px; }
.me-current img.sub { width: 15px; height: 15px; }
.me-section { border-top: 1px solid var(--line-soft); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.me-title { display: flex; justify-content: space-between; align-items: baseline; }
.me-title h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.me-tree { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: var(--bg-2); border-radius: var(--radius-sm); }
.me-tree-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 2px; }
.me-tree-head img { width: 20px; height: 20px; }
.me-rune { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.me-rune img { width: 28px; height: 28px; }
.me-rune.key img { width: 40px; height: 40px; }
.me-rune.key span { font-weight: 700; color: var(--text); font-size: 14px; }
.me-shards { display: flex; flex-direction: column; gap: 4px; padding: 0 8px; }
.me-rune.shard img { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.me-rune.shard { font-size: 12.5px; }
.me-prio { display: flex; align-items: baseline; gap: 10px; }
.me-prio b { font-family: var(--display); font-size: 26px; letter-spacing: .04em; color: var(--accent); }
.me-path { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.me-path-cell { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.me-path-cell .lvl { font-size: 10px; color: var(--muted); }
.me-path-cell .sk { width: 100%; height: 26px; }
.me-empty, .me-source { margin: 0; }
@media (max-width: 1000px) {
    .live-layout { grid-template-columns: 1fr; }
    .me-panel { position: static; order: -1; }
    .me-path { grid-template-columns: repeat(15, 1fr); }
}
@media (max-width: 640px) {
    .me-path { grid-template-columns: repeat(8, 1fr); }
    .build, .me-hint { margin-left: 0; }
}

/* Canlı oyun: geniş ekrana yayılan büyük kartlar */
.container-wide { max-width: 1640px; }
.container-wide .live-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; }
.container-wide .lcards { gap: 12px; padding: 14px; }
.container-wide .lcard-art { height: auto; aspect-ratio: 308 / 400; background-position: center 10%; }
.container-wide .lcard-icons { left: 8px; bottom: 8px; gap: 4px; }
.container-wide .lcard-icons img { width: 30px; height: 30px; }
.container-wide .lcard-icons img.rune.sub { width: 22px; height: 22px; }
.container-wide .lcard-you { font-size: 15px; padding: 1px 8px; top: 8px; left: 8px; }
.container-wide .lcard-body { gap: 8px; padding: 6px 12px 14px; }
.container-wide .lcard-champ { font-size: 26px; }
.container-wide .lcard-name { font-size: 14.5px; }
.container-wide .lcard-rank .emb, .container-wide .lcard-rank .emb img { width: 42px; height: 42px; }
.container-wide .lcard-tier b { font-size: 16px; }
.container-wide .lcard-tier .xs { font-size: 13px; }
.container-wide .lcard-stats { gap: 4px; }
.container-wide .lcard-stats .xs { font-size: 13.5px; }
.container-wide .lcard-stats b { font-size: 21px; }
.container-wide .lcard .scout { font-size: 13.5px; padding: 2px 8px; }
.container-wide .lcard-build .build-label { font-size: 13.5px; }
.container-wide .lcard-build .rune-key { width: 32px; height: 32px; }
.container-wide .lcard-build .rune-sub { width: 22px; height: 22px; }
.container-wide .lcard-build .skill-prio { font-size: 18px; }
.container-wide .lcard-build .rune-match, .container-wide .lcard .me-hint { font-size: 13px; }
.container-wide .live-head h2 { font-size: 30px; }
.container-wide .live-timer { font-size: 32px; }
.container-wide .me-panel { padding: 20px; }
@media (max-width: 1300px) {
    .container-wide .live-layout { grid-template-columns: 1fr; }
    .container-wide .me-panel { position: static; order: -1; }
}
@media (max-width: 1000px) {
    .container-wide .lcards { grid-template-columns: repeat(5, minmax(190px, 1fr)); overflow-x: auto; }
}

/* Canlı oyun: yükleme ekranı tarzı dikey oyuncu kartları */
.lcards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.lcard { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm); overflow: hidden; min-width: 0; }
.live-team.blue .lcard { border-top: 2px solid var(--win); }
.live-team.red .lcard { border-top: 2px solid var(--loss); }
.lcard.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.lcard-art { position: relative; height: 200px; background-size: cover; background-position: center 12%; }
.lcard-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-2) 0%, rgba(19, 20, 23, 0) 45%); }
.lcard-you { position: absolute; top: 6px; left: 6px; z-index: 1; background: var(--accent); color: var(--accent-ink);
    font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .1em; padding: 0 6px; border-radius: 3px; }
.lcard-icons { position: absolute; left: 6px; bottom: 6px; z-index: 1; display: flex; gap: 3px; align-items: center; }
.lcard-icons img { width: 22px; height: 22px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .5); }
.lcard-icons img.rune { border-radius: 50%; background: rgba(0, 0, 0, .6); margin-left: 2px; }
.lcard-icons img.rune.sub { width: 17px; height: 17px; padding: 2px; }
.lcard-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 9px 10px; }
.lcard-body > * { flex-shrink: 0; } /* overflow:hidden olan ad satırı ezilmesin */
.lcard-champ { font-family: var(--display); font-size: 19px; line-height: 1.1; text-transform: uppercase; }
.lcard-name { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.lcard-rank { display: flex; align-items: center; gap: 8px; padding: 6px 0 4px; border-top: 1px solid var(--line-soft); min-width: 0; }
.lcard-rank .emb { flex: none; width: 32px; height: 32px; overflow: hidden; display: grid; place-items: center; }
.lcard-rank .emb img { width: 32px; height: 32px; object-fit: cover; transform: scale(2.1); }
.lcard-tier { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lcard-tier b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard-rank.unranked { padding: 6px 0; }
.lcard-stats { display: flex; flex-direction: column; gap: 2px; }
.lcard-stats > div { display: flex; justify-content: space-between; align-items: baseline; }
.lcard-stats b { font-family: var(--display); font-size: 16px; }
.lcard-stats b.wr-low { color: var(--loss); }
.lcard .scout-tags { margin-top: 0; }
.lcard-build { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.lcard-build-row { display: flex; align-items: center; gap: 6px; }
.lcard-build .rune-match { align-self: flex-start; }
.lcard .me-hint { margin: 0; padding-top: 6px; border-top: 1px solid var(--line-soft); }
@media (max-width: 1200px) {
    .lcards { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; }
}
@media (max-width: 640px) {
    .lcards { grid-template-columns: repeat(5, 150px); }
    .lcard-art { height: 170px; }
}

/* Oyun bekleniyor */
.empty-live .wait-state { margin-bottom: 8px; }
.wait-box { display: flex; gap: 14px; align-items: flex-start; text-align: left; max-width: 520px; margin: 20px auto 0;
    padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); }
.wait-box p { margin: 4px 0 0; }
.wait-pulse { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
.wait-note { margin: 14px 0 0; }

/* ---------- Live ---------- */
.live { display: flex; flex-direction: column; gap: 12px; padding: 18px 0 40px; }
.live-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }
.live-head h2 { font-size: 24px; text-transform: uppercase; }
.live-timer { display: flex; gap: 8px; align-items: center; font-family: var(--display); font-size: 26px; font-weight: 700; }
.live-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.live-team.blue { border-top: 3px solid var(--win); }
.live-team.red { border-top: 3px solid var(--loss); }
.live-player { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.live-player:last-child { border-bottom: 0; }
.live-player.me { background: var(--accent-soft); }
.live-player .champ { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.lp-name { flex: 1; min-width: 0; margin-left: 4px; }
.lp-name a, .lp-name span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.lp-rank { display: flex; gap: 6px; align-items: center; text-align: right; }
.lp-rank img { width: 34px; height: 34px; object-fit: contain; transform: scale(2.2); margin-right: 4px; }
.empty-live { text-align: center; padding: 60px 20px; margin: 24px 0 40px; }
.empty-live h2 { margin-bottom: 6px; font-size: 24px; text-transform: uppercase; }

/* ---------- Pages / tables ---------- */
.page { padding-top: 30px; padding-bottom: 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 40px; text-transform: uppercase; margin-bottom: 4px; }
.page-head p { margin: 0; }
.filters { display: flex; gap: 8px; }
.filters select, .table-filter { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); height: 36px; padding: 0 10px; font: inherit; }
.table-filter { width: calc(100% - 24px); margin: 12px; }
.table-filter:focus { outline: none; border-color: var(--accent); }
.table-card { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px; text-align: center;
    border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 9px 10px; text-align: center; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--panel-2); }
.data-table .left { text-align: left; }
.rank-num { color: var(--muted); font-family: var(--display); font-size: 17px; font-weight: 700; width: 48px; }
.rank-num.top1 { color: var(--accent); }
.rank-num.top2 { color: #c9ccd4; }
.rank-num.top3 { color: #c98a5c; }
.mini-emblem { width: 26px; height: 26px; display: inline-block; vertical-align: middle; object-fit: contain; transform: scale(2.2); margin-right: 6px; }
.wr-cell { display: flex; align-items: center; gap: 8px; }
.wr-cell .wr-bar { width: 90px; margin: 0; height: 5px; }
.wr-cell.center { justify-content: center; }
.champ-cell { display: flex; align-items: center; gap: 10px; }
.champ-cell img { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pagination a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--panel);
    border: 1px solid var(--line); color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 15px; }
.pagination a.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-row { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--panel);
    border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13.5px; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.tier-badge { display: inline-block; min-width: 34px; padding: 1px 8px; border-radius: 3px; font-family: var(--display); font-weight: 700; font-size: 15px; }
.tier-splus { background: #ef4a5f; color: #fff; }
.tier-s { background: #f08a3c; color: #1a0e04; }
.tier-a { background: var(--accent); color: var(--accent-ink); }
.tier-b { background: #4fc98b; color: #04140c; }
.tier-c { background: #45b7e8; color: #03121a; }
.tier-d { background: #4a4d57; color: #e6e6e6; }

/* ---------- Error ---------- */
.error-card { max-width: 680px; margin: 30px auto; padding: 40px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.error-card h1 { font-size: 30px; text-transform: uppercase; }
.error-code { font-family: var(--display); font-size: 84px; font-weight: 700; color: var(--accent); line-height: 1; }
.error-card p { margin: 0 0 10px; }

/* ---------- Gizlilik ---------- */
.legal-card { padding: 8px 28px 24px; max-width: 860px; }
.legal-card section { padding-top: 18px; }
.legal-card h2 { font-size: 21px; text-transform: uppercase; margin-bottom: 8px; color: var(--text); }
.legal-card p, .legal-card li { color: var(--text-2); line-height: 1.6; }
.legal-card ul { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.legal-card a, .site-footer a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; margin-top: 20px; background: var(--bg-2); }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.legal { color: #5f616a; font-size: 12px; margin: 0; max-width: 820px; }

/* ================= Arkadaş Ligi ================= */
.league-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; padding: 32px; }
.league-hero h1 { font-size: 46px; text-transform: uppercase; margin: 6px 0 10px; }
.league-hero-text p { margin: 0 0 18px; }
.league-create, .league-go { display: flex; gap: 8px; margin-top: 10px; }
.league-create input, .league-go input, .text-input, .copy-row input {
    flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--bg-2); color: var(--text); font: inherit; }
.league-create input:focus, .league-go input:focus, .text-input:focus { outline: none; border-color: var(--accent); }
.league-create .btn, .league-go .btn { height: 40px; }
.league-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.league-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.league-steps li:last-child { border-bottom: 0; }
.league-steps li > b { flex: none; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--accent); width: 24px; }
.league-steps h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 2px; }
.league-steps p { margin: 0; }
.admin-link { padding: 18px; margin-bottom: 14px; border-color: var(--accent); }
.admin-link h3 { font-size: 18px; text-transform: uppercase; margin-bottom: 4px; }
.admin-link p { margin: 0 0 10px; }
.copy-row { display: flex; gap: 8px; }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 14px 0; }
.highlight { padding: 14px 16px; border-top: 2px solid var(--accent); }
.highlight b { font-family: var(--display); font-size: 21px; display: block; margin: 2px 0; }
.highlight .muted.xs { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.league-layout { display: grid; grid-template-columns: 1fr 320px; gap: 14px; align-items: start; margin-top: 14px; }
.member-cell { display: flex; align-items: center; gap: 10px; }
.member-cell > img:first-child { width: 36px; height: 36px; border-radius: var(--radius-sm); }
.top-champ-icon { width: 22px; height: 22px; border-radius: 3px; margin-left: 6px; opacity: .85; }
.rank-mini { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.rank-mini img { width: 30px; height: 30px; object-fit: cover; transform: scale(2.2); margin: 0 4px; }
.form-dots { display: flex; gap: 3px; justify-content: center; }
.form-dots span { width: 20px; height: 20px; border-radius: 3px; display: grid; place-items: center; font-family: var(--display); font-size: 12px; font-weight: 700; }
.form-dots .w { background: rgba(61, 139, 255, .2); color: #7fb0ff; }
.form-dots .l { background: rgba(239, 74, 95, .18); color: #ff8292; }
.icon-btn { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 4px 8px; border-radius: 3px; }
.icon-btn:hover { color: var(--loss); background: var(--loss-bg); }
.admin-form { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.admin-form .search { height: 40px; }
.admin-form .btn-block { margin-top: 0; height: 38px; }
.admin-form p { margin: 0; }
.discord-on { color: #8c95ff; font-weight: 700; }
.event-feed { list-style: none; margin: 0; padding: 4px 0; }
.event-feed li { display: flex; gap: 12px; padding: 9px 14px; align-items: flex-start; }
.event-feed li + li { border-top: 1px solid var(--line-soft); }
.ev-mark { flex: none; width: 3px; align-self: stretch; border-radius: 2px; background: var(--muted); }
.event-feed li.promotion .ev-mark, .event-feed li.placement .ev-mark { background: var(--win); }
.event-feed li.demotion .ev-mark { background: var(--loss); }
.event-feed li.penta .ev-mark, .event-feed li.quadra .ev-mark { background: var(--accent); }
.event-feed li.penta .ev-msg { color: var(--accent); font-weight: 600; }
.event-feed li.weekly .ev-mark { background: #8c95ff; }
.ev-msg { white-space: pre-line; }
.weekly-preview { white-space: pre-wrap; font-family: var(--body); font-size: 12.5px; background: var(--bg-2); border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm); padding: 10px; margin: 0; color: var(--text-2); }

/* ================= Rift Wrapped ================= */
.wrapped { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; padding-bottom: 40px; }
.wrapped-empty-title { font-size: 24px; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.wrapped-hero { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); min-height: 300px;
    display: flex; align-items: flex-end; background: var(--bg-2); }
.wrapped-hero-art { position: absolute; inset: 0; background-size: cover; background-position: 70% 20%; opacity: .6; }
.wrapped-hero-art::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--bg-2) 0%, rgba(19, 20, 23, .85) 40%, rgba(19, 20, 23, .2) 100%),
                linear-gradient(0deg, var(--bg-2) 0%, transparent 60%); }
.wrapped-hero-text { position: relative; padding: 32px; }
.wrapped-hero h1 { font-size: 72px; line-height: 1; margin: 8px 0 10px; }
.wrapped-lead { font-size: 18px; margin: 0; color: var(--text-2); }
.wrapped-lead b { color: var(--accent); }
.wrapped-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.persona-card { padding: 22px; border-top: 3px solid var(--accent); }
.persona-card h2 { font-size: 48px; text-transform: uppercase; color: var(--accent); margin: 4px 0 8px; }
.persona-card p { margin: 0; font-size: 16px; color: var(--text-2); }
.label { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.wrapped-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wrapped-champs { list-style: none; margin: 0; padding: 6px 0; }
.wrapped-champs li { display: grid; grid-template-columns: 22px 44px 1fr 56px 80px; gap: 12px; align-items: center; padding: 9px 16px; }
.wrapped-champs li + li { border-top: 1px solid var(--line-soft); }
.wc-rank { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--muted); }
.wrapped-champs li:first-child .wc-rank { color: var(--accent); }
.wrapped-champs img { width: 44px; height: 44px; border-radius: var(--radius-sm); }
.wc-name b { font-size: 15px; }
.wc-stat { display: flex; flex-direction: column; text-align: right; }
.wc-stat b { font-family: var(--display); font-size: 20px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.fact img { width: 40px; height: 40px; border-radius: var(--radius-sm); }
.fact b { display: block; font-family: var(--display); font-size: 24px; margin: 2px 0; }
.share-card { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 22px; align-items: center; }
.share-preview { width: 240px; border-radius: var(--radius-sm); border: 1px solid var(--line); aspect-ratio: 4 / 5; object-fit: cover; }
.share-text h2 { font-size: 32px; text-transform: uppercase; margin: 6px 0 8px; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 900px) {
    .wrapped-grid, .share-card { grid-template-columns: 1fr; }
    .wrapped-hero h1 { font-size: 48px; }
    .share-preview { width: 200px; }
}
@media (max-width: 640px) {
    .facts, .wrapped-stats { grid-template-columns: 1fr 1fr; }
    .wrapped-hero-text { padding: 20px; }
}

/* ================= Analiz sekmesi ================= */
.insights { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; padding-bottom: 40px; }
.insights .flash { margin-top: 0; }
.sync-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; flex-wrap: wrap; }
.sync-card > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.sync-card form { display: flex; align-items: center; gap: 10px; }
.sync-progress { min-width: 240px; }
.insight-section { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.section-title h2 { font-size: 26px; text-transform: uppercase; }
.insight-list { display: flex; flex-direction: column; gap: 6px; }
.insight { display: flex; gap: 14px; align-items: baseline; padding: 11px 16px; border-radius: var(--radius-sm);
    background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--muted); font-size: 15px; }
.insight.bad { border-left-color: var(--loss); }
.insight.good { border-left-color: var(--win); }
.insight-tag { flex: none; min-width: 78px; font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; color: var(--muted); }
.insight.bad .insight-tag { color: var(--loss); }
.insight.good .insight-tag { color: var(--win); }
.stat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tile { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile .muted.xs { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.tile b { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.vbars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 16px; }
.vbar { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vbar.low { opacity: .45; }
.vbar-val { font-family: var(--display); font-weight: 700; font-size: 17px; }
.vbar-track { position: relative; width: 30px; height: 150px; background: var(--panel-3); border-radius: 2px; display: flex; align-items: flex-end; overflow: hidden; }
.vbar-track span { display: block; width: 100%; }
.vbar-mid { position: absolute; left: 0; right: 0; bottom: 50%; border-top: 1px dashed rgba(255, 255, 255, .22); z-index: 1; }
.up { background: var(--win); }
.down { background: var(--loss); }
.vbar-label { font-size: 13px; font-weight: 600; margin-top: 4px; }

.hbars { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.hbar.low { opacity: .45; }
.hbar-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 4px; gap: 8px; }
.hbar-track { height: 6px; background: var(--panel-3); border-radius: 2px; overflow: hidden; position: relative; }
.hbar-track::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(255, 255, 255, .28); }
.hbar-track span { display: block; height: 100%; }

.heat-card { overflow-x: auto; }
.heatmap { display: grid; grid-template-columns: 40px repeat(6, minmax(44px, 1fr)); gap: 3px; padding: 16px; min-width: 360px; }
.heat-hour { text-align: center; }
.heat-day { display: flex; align-items: center; font-weight: 600; }
.heat-cell { height: 32px; border-radius: 2px; display: grid; place-items: center; font-family: var(--display); font-size: 14px; font-weight: 700; background: var(--panel-2); }
.heat-cell.none { background: rgba(255, 255, 255, .025); }
.heat-legend { display: flex; align-items: center; gap: 6px; }
.heat-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.heat-legend .lg.win { background: var(--win); margin-left: 6px; }
.heat-legend .lg.loss { background: var(--loss); }

.row-best td { background: rgba(61, 139, 255, .07); }
.row-worst td { background: rgba(239, 74, 95, .06); }
.badge.best { background: rgba(61, 139, 255, .18); color: #7fb0ff; margin-left: 6px; }
.badge.worst { background: rgba(239, 74, 95, .18); color: #ff8292; margin-left: 6px; }

.lp-grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
.lp-chart { padding: 10px 12px 6px; }
.lp-chart svg { width: 100%; height: 230px; display: block; overflow: visible; }
.lp-chart .grid { stroke: rgba(255, 255, 255, .07); stroke-dasharray: 3 4; }
.lp-chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.lp-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lp-chart .area { fill: url(#lpFill); }
.lp-chart stop { stop-color: var(--accent); }
.lp-chart .dot { fill: var(--bg); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; }
.lp-chart .dot:hover { fill: var(--accent); }
.goal-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.goal-current { display: flex; align-items: center; gap: 14px; overflow: hidden; }
.goal-current img { width: 48px; height: 48px; object-fit: cover; transform: scale(2.2); margin: 0 6px; }
.goal-target { display: flex; flex-direction: column; }
.goal-target b { font-family: var(--display); font-size: 28px; color: var(--accent); line-height: 1.1; }
.goal-estimate { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius-sm); background: var(--panel-2); border-left: 3px solid var(--accent); }
.goal-estimate.reached { border-left-color: var(--win); }
.goal-estimate.warn { border-left-color: var(--loss); }
.big-num { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.big-num b { font-family: var(--display); font-size: 40px; line-height: 1; }
.big-num span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.goal-form { display: flex; flex-direction: column; gap: 6px; }
.goal-form p { margin: 0; }
.goal-inputs { display: flex; gap: 6px; }
.goal-inputs select { flex: 1; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm); height: 36px; padding: 0 8px; font: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .match-row { grid-template-columns: 96px 128px 92px 1fr 108px 34px; }
    .match-players { display: none; }
}
@media (max-width: 900px) {
    .profile-layout, .home-grid, .league-hero, .league-layout, .insight-grid, .lp-grid { grid-template-columns: 1fr; }
    .summary { grid-template-columns: 1fr 1fr; }
    .summary-block:nth-child(2) { border-right: 0; }
    .summary-block:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
    .live-teams { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 0; }
    .main-nav { order: 3; width: 100%; height: 40px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 0; }
    .main-nav::-webkit-scrollbar { display: none; }
    .main-nav a { white-space: nowrap; font-size: 13.5px; }
    .search-compact { width: auto; flex: 1; }
    .stat-tiles { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 50px; }
    .league-hero { padding: 22px; }
}
@media (max-width: 640px) {
    .header-inner { gap: 12px; }
    .logo span { display: none; }
    .hero-inner { padding-top: 56px; padding-bottom: 40px; }
    .hero h1 { font-size: 40px; }
    .hero-credit { display: none; }
    .search-hero button { padding: 0 16px; }
    .recent-list { grid-template-columns: 1fr; }
    .profile-top { gap: 14px; }
    .profile-icon img { width: 70px; height: 70px; }
    .profile-info h1 { font-size: 28px; }
    .profile-info h1 .tag { font-size: 20px; }
    .page-head h1 { font-size: 32px; }
    .match-row { grid-template-columns: 74px 1fr 1fr 30px; gap: 8px; padding-left: 10px; }
    .match-stats { display: none; }
    .match-items { grid-column: 2 / 4; }
    .match-row .expand { grid-row: 1 / 3; grid-column: 4; }
    .items { grid-template-columns: repeat(7, 22px); }
    .items img, .item-empty { width: 22px; height: 22px; }
    .detail-table th:nth-child(5), .detail-table td:nth-child(5),
    .detail-table th:nth-child(6), .detail-table td:nth-child(6),
    .detail-table th:nth-child(7), .detail-table td:nth-child(7) { display: none; }
    .objectives { margin-left: 0; }
    .summary { grid-template-columns: 1fr; }
    .summary-block { border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .filters { flex-wrap: wrap; }
    .stat-tiles { grid-template-columns: repeat(2, 1fr); }
    .vbars { gap: 4px; padding: 12px 8px; }
    .vbar-track { width: 24px; height: 120px; }
    .vbar-label { font-size: 11.5px; }
    .insight { flex-direction: column; gap: 2px; }
}

/* Eşya önerisi */
.me-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.me-item img { width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.me-item-name { color: var(--text-2); line-height: 1.25; }
.me-item-stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.me-item-stat b { font-family: var(--display); font-size: 17px; }
.me-item.boots { padding-top: 6px; border-top: 1px dashed var(--line-soft); }
.lcard-items { display: flex; gap: 3px; }
.lcard-items img { width: 24px; height: 24px; border-radius: 3px; border: 1px solid var(--line); }
.container-wide .lcard-items img { width: 30px; height: 30px; }

/* Keşif etiketleri: tona göre işaret ve kenarlık; OTP ve smurf ayrı renk */
.scout { display: inline-flex; align-items: center; gap: 4px; border: 1px solid transparent; font-size: 12.5px; padding: 2px 7px; }
.scout::before { font-size: 9px; line-height: 1; }
.scout.threat { border-color: rgba(239, 74, 95, .45); }
.scout.threat::before { content: "▲"; }
.scout.weak { border-color: rgba(79, 201, 139, .4); }
.scout.weak::before { content: "▼"; }
.scout.info { background: var(--panel-3); color: var(--text-2); border-color: var(--line); }
.scout.info::before { content: "●"; font-size: 7px; }
.scout.k-otp { background: var(--accent-soft); color: var(--accent); border-color: rgba(232, 176, 75, .55); }
.scout.k-smurf { background: rgba(155, 109, 255, .16); color: #b99bff; border-color: rgba(155, 109, 255, .5); }
.scout[hidden] { display: none; }
.container-wide .lcard .scout { font-size: 13.5px; padding: 3px 9px; }

/* Etiket ayarları */
.scout-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.scout-legend { gap: 8px; }
.scout-settings { position: relative; }
.scout-settings summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 13px; padding: 5px 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.scout-settings summary::-webkit-details-marker { display: none; }
.scout-settings summary::before { content: "⚙ "; color: var(--accent); }
.scout-settings[open] summary { border-color: var(--accent); }
.ss-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 520px; max-width: 92vw; padding: 14px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
    display: flex; flex-direction: column; gap: 10px; }
.ss-note { margin: 0; }
.ss-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.ss-grid label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.ss-grid input { width: 86px; height: 30px; padding: 0 8px; background: var(--bg-2); border: 1px solid var(--line);
    border-radius: var(--radius-sm); color: var(--text); font: inherit; text-align: right; }
.ss-grid input:focus { outline: none; border-color: var(--accent); }
.ss-panel .btn { align-self: flex-start; }
@media (max-width: 640px) { .ss-grid { grid-template-columns: 1fr; } .ss-panel { right: auto; left: 0; } }

/* Mod etiketi (ARAM/Şamata, URF önerileri) */
.mode-tag { color: var(--text-2); }
.me-mode { align-self: flex-start; font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 1px 8px; border-radius: 3px; }

/* Etiket açıklama kutusu */
.scout[data-tip] { cursor: help; }
.scout[data-tip]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rift-tip { position: fixed; z-index: 1000; max-width: 280px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px;
    background: #1b1c21; border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: var(--radius-sm);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .55); font-size: 13px; line-height: 1.45; color: var(--text-2); pointer-events: none; }
.rift-tip b { font-family: var(--display); font-size: 16px; letter-spacing: .02em; color: var(--text); }
.rift-tip.threat { border-left-color: var(--loss); }
.rift-tip.weak { border-left-color: #4fc98b; }
.rift-tip.info { border-left-color: var(--muted); }
.rift-tip[hidden] { display: none; }

/* ===== Canlı oyun: 16:9 (1920x1080) için sıkılaştırma — iki takım ve öneri paneli ekrana sığsın ===== */
.container-wide .live-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; }
.container-wide .live-head { padding: 10px 16px; }
.container-wide .live-head h2 { font-size: 24px; }
.container-wide .live-timer { font-size: 26px; }
.container-wide .lcards { gap: 10px; padding: 10px; }
.container-wide .lcard-art { aspect-ratio: 308 / 210; background-position: center 14%; }
.container-wide .lcard-icons img { width: 24px; height: 24px; }
.container-wide .lcard-icons img.rune.sub { width: 18px; height: 18px; }
.container-wide .lcard-you { font-size: 13px; }
.container-wide .lcard-body { gap: 6px; padding: 4px 10px 10px; }
.container-wide .lcard-champ { font-size: 21px; }
.container-wide .lcard-name { font-size: 13px; }
.container-wide .lcard-rank { padding: 4px 0 2px; }
.container-wide .lcard-rank .emb, .container-wide .lcard-rank .emb img { width: 32px; height: 32px; }
.container-wide .lcard-tier b { font-size: 14px; }
.container-wide .lcard-tier .xs { font-size: 12px; }
/* Kazanma / Oyun / Ustalık tek satırda */
.container-wide .lcard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.container-wide .lcard-stats > div { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-width: 0; }
.container-wide .lcard-stats .xs { font-size: 11px; }
.container-wide .lcard-stats b { font-size: 17px; line-height: 1.1; }
.container-wide .lcard .scout { font-size: 12px; padding: 2px 7px; }
.container-wide .lcard-build .build-label { font-size: 12px; }
.container-wide .lcard-build .rune-key { width: 26px; height: 26px; }
.container-wide .lcard-build .rune-sub { width: 18px; height: 18px; }
.container-wide .lcard-build .skill-prio { font-size: 15px; }
.container-wide .lcard-items img { width: 24px; height: 24px; }
.container-wide .lcard-build .rune-match, .container-wide .lcard .me-hint { font-size: 12px; }

/* Öneri paneli: rün ağaçları yan yana, parçalar tek satır, küçük ikonlar */
.container-wide .me-panel { padding: 14px; gap: 10px; top: 66px; }
.container-wide .me-champ { width: 48px; height: 48px; }
.container-wide .me-head h2 { font-size: 22px; }
.me-section:has(.me-tree) { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.me-section:has(.me-tree) .me-title, .me-section:has(.me-tree) .me-shards { grid-column: 1 / -1; }
.container-wide .me-section { padding-top: 9px; gap: 6px; }
.container-wide .me-title h3 { font-size: 13.5px; }
.container-wide .me-tree { padding: 6px; gap: 3px; }
.container-wide .me-tree-head { font-size: 12px; }
.container-wide .me-tree-head img { width: 16px; height: 16px; }
.container-wide .me-rune { font-size: 11.5px; gap: 6px; line-height: 1.2; }
.container-wide .me-rune img { width: 22px; height: 22px; flex: none; }
.container-wide .me-rune.key img { width: 30px; height: 30px; }
.container-wide .me-rune.key span { font-size: 12.5px; }
.container-wide .me-shards { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; padding: 0; }
.container-wide .me-rune.shard { font-size: 11px; }
.container-wide .me-rune.shard img { width: 16px; height: 16px; }
.container-wide .me-item { grid-template-columns: 26px 1fr auto; gap: 8px; font-size: 12.5px; }
.container-wide .me-item img { width: 26px; height: 26px; }
.container-wide .me-item-stat b { font-size: 15px; }
.container-wide .me-item-stat .xs { font-size: 10.5px; }
.container-wide .me-prio b { font-size: 20px; }
.container-wide .me-path { gap: 2px; }
.container-wide .me-path-cell .sk { height: 20px; font-size: 12px; }
.container-wide .me-path-cell .lvl { font-size: 9px; }
.container-wide .me-mode { font-size: 11px; }
