/* =============================================================
   GMMA.info – designový systém
   ============================================================= */

:root {
  --bg:          #08080c;
  --bg-2:        #0d0d14;
  --surface:     rgba(255, 255, 255, .035);
  --surface-2:   rgba(255, 255, 255, .06);
  --line:        rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text:        #f2f4f8;
  --muted:       #8b90a3;
  --muted-2:     #b9becd;

  --accent:      #ff2e4c;
  --accent-dark: #c2103a;
  --accent-soft: rgba(255, 46, 76, .14);
  --gold:        #f0b429;
  --green:       #3ddc84;

  --grad-accent: linear-gradient(135deg, #ff2e4c, #c2103a);
  --glow:        0 10px 40px -10px rgba(255, 46, 76, .55);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;

  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 800px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
  font-family: var(--head); font-weight: 800; line-height: 1.05;
  text-transform: uppercase; letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { text-wrap: pretty; }
.accent { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 8, 12, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 74px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--head); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--grad-accent); color: #fff; border-radius: 12px;
  font-size: 1.4rem; box-shadow: var(--glow);
}
.brand-tld { color: var(--accent); }

.main-nav { display: flex; gap: 2px; margin-right: auto; }
.main-nav a {
  position: relative; padding: 9px 16px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .94rem; color: var(--muted); transition: color .18s, background .18s;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--grad-accent); border-radius: 2px;
}

.header-search {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 0 16px; height: 42px; transition: border-color .18s;
}
.header-search:focus-within { border-color: var(--accent); }
.header-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.header-search input {
  background: none; border: 0; color: var(--text); outline: none;
  width: 200px; font-family: inherit; font-size: .9rem;
}
.header-search input::placeholder { color: var(--muted); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle span + span { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(70px, 11vw, 130px) 0 clamp(50px, 8vw, 90px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% 0 auto 0; height: 130%;
  background:
    radial-gradient(ellipse 55% 50% at 50% 25%, rgba(255, 46, 76, .22), transparent 65%),
    radial-gradient(ellipse 40% 35% at 88% 75%, rgba(255, 46, 76, .10), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 35%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 35%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); background: var(--surface); border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { margin-bottom: 20px; }
.hero-lead { max-width: 620px; margin: 0 auto 34px; color: var(--muted-2); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}
.btn-primary { background: var(--grad-accent); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px -10px rgba(255, 46, 76, .7); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.btn-sm { padding: 9px 18px; font-size: .86rem; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .11em;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted-2);
}
.tag-live { color: #ff8494; border-color: rgba(255, 46, 76, .35); background: var(--accent-soft); }
.tag-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.tag-gold { color: var(--gold); border-color: rgba(240, 180, 41, .35); background: rgba(240, 180, 41, .1); }
.tag-green { color: var(--green); border-color: rgba(61, 220, 132, .3); background: rgba(61, 220, 132, .1); }

/* ---------- Sections ---------- */
.section { padding: clamp(46px, 7vw, 78px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.section-head .section-title { margin-bottom: 0; }
.section-title::before { content: ''; width: 5px; height: 1em; background: var(--grad-accent); border-radius: 3px; flex-shrink: 0; }
.link-more { color: var(--accent); font-weight: 600; font-size: .94rem; white-space: nowrap; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

.page-head { padding: clamp(40px, 6vw, 64px) 0 8px; position: relative; }
.page-head::before {
  content: ''; position: absolute; inset: -20% 0 auto 0; height: 200%;
  background: radial-gradient(ellipse 50% 45% at 20% 0%, rgba(255, 46, 76, .13), transparent 70%);
  pointer-events: none;
}
.page-head > .container { position: relative; }
.page-head-lead { color: var(--muted-2); max-width: 640px; margin-top: 14px; }

.breadcrumbs { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--muted-2); }

.empty-state {
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r);
  padding: 48px 28px; text-align: center; color: var(--muted);
}

/* ---------- Karta / povrch ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: var(--line-strong); }

/* ---------- Statistiky ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.stat-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px;
  transition: transform .22s, border-color .22s;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(255, 46, 76, .4); }
.stat-card b {
  display: block; font-family: var(--head); font-size: 3.4rem; font-weight: 800; line-height: .95;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card span { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: .82rem; margin: 12px 0 6px; }
.stat-card p { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ---------- Hlavní karta turnaje ---------- */
.event-feature {
  display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: clamp(26px, 4vw, 56px);
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 46, 76, .05));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 48px); position: relative; overflow: hidden;
}
.event-feature::before {
  content: ''; position: absolute; top: -60%; right: -10%; width: 60%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(255, 46, 76, .16), transparent 65%);
  pointer-events: none;
}
.event-feature-info { position: relative; z-index: 1; min-width: 0; }
.event-feature h2 { margin: 16px 0 12px; }
.event-feature h2 a:hover { color: var(--accent); }

.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted-2); font-size: .96rem; }
.event-meta .sep { color: var(--line-strong); }
.event-meta.big { font-size: 1.05rem; }

/* Plakát – zdroj je na výšku (9:16) */
.poster {
  position: relative; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(255, 46, 76, .45);
  transition: transform .3s;
}
.poster img { width: 100%; height: auto; }
.poster:hover { transform: translateY(-5px) scale(1.01); }

/* Náhled zápasové karty v hlavní kartě turnaje */
.mini-card { display: grid; gap: 8px; margin-bottom: 26px; }
.mini-card-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 16px; font-size: .93rem;
}
.mini-card-row b { color: var(--accent); font-weight: 700; padding: 0 4px; }

/* ---------- Odpočet ---------- */
.countdown { display: flex; gap: 10px; margin: 24px 0 28px; flex-wrap: wrap; }
.countdown > div {
  background: rgba(0, 0, 0, .45); border: 1px solid var(--line);
  border-radius: 14px; min-width: 78px; padding: 12px 10px; text-align: center;
}
.countdown b {
  display: block; font-family: var(--head); font-size: 2.1rem; font-weight: 800;
  line-height: 1; color: var(--text); font-variant-numeric: tabular-nums;
}
.countdown small { display: block; color: var(--muted); text-transform: uppercase; font-size: .66rem; letter-spacing: .12em; margin-top: 5px; }

/* ---------- Zápasníci – mřížka ---------- */
.fighter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.fighter-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 18px 22px; text-align: center; position: relative; overflow: hidden;
  transition: transform .22s, border-color .22s, background .22s;
}
.fighter-card::before {
  content: ''; position: absolute; inset: auto 0 0 0; height: 3px;
  background: var(--grad-accent); transform: scaleX(0); transition: transform .25s;
}
.fighter-card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--surface-2); }
.fighter-card:hover::before { transform: scaleX(1); }

/* Avatar je <span>, proto potřebuje explicitní display – jinak by se jako
   inline prvek smrskl a jeho obsah by se roztáhl přes celou kartu. */
.avatar {
  display: block; flex-shrink: 0;
  position: relative; width: 104px; height: 104px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden; border: 2px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.avatar-initials {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--head); font-weight: 800; font-size: 2.1rem; color: var(--muted); line-height: 1;
}
.fighter-card .belt { position: absolute; top: 18px; right: 18px; font-size: 1.15rem; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8)); }
.fighter-card h3 { font-size: 1.18rem; margin-bottom: 3px; }
.fighter-nick { color: var(--gold); font-size: .84rem; font-style: italic; }
.fighter-record { color: var(--accent); font-weight: 700; font-size: .95rem; margin-top: 8px; font-variant-numeric: tabular-nums; }
.fighter-division { color: var(--muted); font-size: .78rem; margin-top: 3px; }

/* ---------- Profil zápasníka ---------- */
.fighter-hero { display: flex; gap: clamp(22px, 4vw, 44px); align-items: center; flex-wrap: wrap; padding-bottom: 12px; }
.fighter-hero .avatar { width: 168px; height: 168px; margin: 0; border-color: var(--accent); box-shadow: var(--glow); }
.fighter-hero .avatar-initials { font-size: 3.4rem; }
.fighter-hero-info { min-width: 0; flex: 1; }
.fighter-hero h1 { margin: 10px 0 4px; }
.fighter-nick-big { color: var(--gold); font-style: italic; font-size: 1.15rem; margin-bottom: 16px; }
.record-display { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.record-display b {
  font-family: var(--head); font-size: 2.8rem; font-weight: 800; line-height: 1;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.record-display span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }

.fighter-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 36px; align-items: start; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 42px; }
.mini-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.mini-stat b { display: block; font-family: var(--head); font-size: 2.1rem; font-weight: 800; line-height: 1.05; color: var(--text); }
.mini-stat span { color: var(--muted); font-size: .82rem; }

.win-bars { display: grid; gap: 16px; margin-bottom: 42px; }
.win-bar { display: grid; grid-template-columns: 108px 1fr 50px; gap: 16px; align-items: center; }
.win-bar > span { color: var(--muted-2); font-size: .9rem; }
.win-bar .bar { height: 9px; background: rgba(255, 255, 255, .06); border-radius: 999px; overflow: hidden; }
.win-bar .bar i { display: block; height: 100%; background: var(--grad-accent); border-radius: 999px; width: 0; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.win-bar b { text-align: right; font-size: .92rem; font-variant-numeric: tabular-nums; }

.prose { color: var(--muted-2); margin-bottom: 42px; }
.prose p + p { margin-top: 14px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: sticky; top: 94px; }
.info-card h3 { margin-bottom: 16px; }
.info-card dl div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.info-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-card dt { color: var(--muted); font-size: .89rem; }
.info-card dd { font-weight: 600; font-size: .91rem; text-align: right; }

/* ---------- Historie zápasů ---------- */
.fight-list { display: grid; gap: 10px; margin-bottom: 42px; }
.fight-row {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px;
  transition: border-color .2s;
}
.fight-row:hover { border-color: var(--line-strong); }
.outcome {
  font-family: var(--head); font-weight: 800; text-transform: uppercase; text-align: center;
  padding: 7px 0; border-radius: var(--r-sm); font-size: .95rem; letter-spacing: .04em;
}
.outcome-win { background: rgba(61, 220, 132, .14); color: var(--green); }
.outcome-loss { background: var(--accent-soft); color: #ff6b7f; }
.outcome-draw { background: rgba(240, 180, 41, .13); color: var(--gold); }
.outcome-nc, .outcome-pending { background: rgba(255, 255, 255, .05); color: var(--muted); }
.fight-opp { font-weight: 600; min-width: 0; }
.fight-opp a:hover { color: var(--accent); }
.fight-detail { color: var(--muted); font-size: .85rem; text-align: right; display: grid; gap: 2px; }
.fight-event { color: var(--muted); font-size: .85rem; text-align: right; }
.fight-event:hover { color: var(--accent); }
.fight-event small { display: block; opacity: .75; }

/* ---------- Turnaje – seznam ---------- */
.event-list { display: grid; gap: 12px; margin-bottom: 40px; }
.event-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 24px; transition: transform .2s, border-color .2s, background .2s;
}
.event-row:hover { border-color: rgba(255, 46, 76, .4); background: var(--surface-2); transform: translateX(5px); }
.event-thumb {
  width: 62px; height: 84px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  display: grid; place-items: center;
}
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-thumb span { font-family: var(--head); font-size: 1.5rem; font-weight: 800; color: var(--muted); }
.event-row h3 { font-size: 1.35rem; margin-bottom: 5px; }
.event-status { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding: 6px 15px; border-radius: 999px; white-space: nowrap; }
.status-upcoming { background: var(--accent-soft); color: #ff8494; }
.status-completed { background: rgba(61, 220, 132, .12); color: var(--green); }
.status-cancelled { background: rgba(255, 255, 255, .05); color: var(--muted); }

/* ---------- Detail turnaje ---------- */
.event-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(26px, 4vw, 54px); align-items: center; }

/* ---------- Zápasová karta ---------- */
.card-list { display: grid; gap: 14px; }
.matchup {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px); position: relative; overflow: hidden;
}
.matchup.is-main {
  border-color: rgba(255, 46, 76, .38);
  background: linear-gradient(135deg, rgba(255, 46, 76, .08), rgba(255, 255, 255, .03));
}
.matchup-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.matchup-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(14px, 3vw, 32px); align-items: center; }
.corner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.corner .avatar { width: 88px; height: 88px; margin: 0; }
.corner-name { font-family: var(--head); font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 700; line-height: 1.1; }
.corner a.corner-name:hover { color: var(--accent); }
.corner-record { color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.corner.is-tba .avatar { border-style: dashed; }
.corner.is-winner .corner-name { color: var(--green); }
.corner.is-winner .avatar { border-color: var(--green); }
.win-flag {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  background: rgba(61, 220, 132, .15); color: var(--green); padding: 3px 11px; border-radius: 999px;
}
.vs { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vs b {
  font-family: var(--head); font-size: 1.6rem; font-weight: 800;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vs small { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.matchup-result { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: .92rem; }

/* ---------- Žebříčky ---------- */
.ranking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 28px; }
.ranking-block { margin-bottom: 8px; }
.ranking-list { list-style: none; display: grid; gap: 8px; }
.ranking-row {
  display: grid; grid-template-columns: 34px auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 16px; transition: border-color .18s, background .18s;
}
.ranking-row:hover { border-color: var(--line-strong); background: var(--surface-2); }
.ranking-row.is-champ { border-color: rgba(240, 180, 41, .42); background: linear-gradient(120deg, rgba(240, 180, 41, .09), var(--surface)); }
.rank-pos { font-family: var(--head); font-size: 1.35rem; font-weight: 800; color: var(--muted); text-align: center; }
.is-champ .rank-pos { color: var(--gold); }
.ranking-row .avatar { width: 40px; height: 40px; margin: 0; }
.ranking-row .avatar-initials { font-size: .82rem; }
.rank-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name:hover { color: var(--accent); }
.rank-record { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.ranking-note { color: var(--muted); font-size: .87rem; margin-top: 20px; }

/* ---------- Filtry ---------- */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-tabs { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-tab {
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-weight: 600; font-size: .89rem; transition: .18s; background: var(--surface);
}
.filter-tab:hover { color: var(--text); border-color: var(--line-strong); }
.filter-tab.active { background: var(--grad-accent); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.search-form { display: flex; gap: 9px; }
.search-form input {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); padding: 11px 20px; font-family: inherit; min-width: 230px; outline: none; transition: border-color .18s;
}
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus { border-color: var(--accent); }
.search-form.big { margin-top: 22px; max-width: 580px; }
.search-form.big input { flex: 1; font-size: 1.02rem; padding: 14px 24px; }
.results-count { color: var(--muted); font-size: .87rem; margin-bottom: 20px; }

/* ---------- O webu ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.about-grid p { color: var(--muted-2); }
.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px; transition: border-color .2s; }
.feature-list li:hover { border-color: var(--line-strong); }
.feature-list b { display: block; margin-bottom: 3px; }
.feature-list span { color: var(--muted); font-size: .9rem; }

/* ---------- 404 ---------- */
.error-page { padding: clamp(70px, 12vw, 130px) 0; text-align: center; }
.error-code {
  font-family: var(--head); font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: .9;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .45;
}

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: clamp(50px, 8vw, 90px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 38px; padding-top: 56px; padding-bottom: 36px; }
.footer-brand p { color: var(--muted); font-size: .91rem; margin-top: 16px; max-width: 310px; }
.site-footer h4 { font-size: 1rem; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer ul a { color: var(--muted); font-size: .92rem; transition: color .18s; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 22px; color: var(--muted); font-size: .82rem; }

/* ---------- Responzivita ---------- */
@media (max-width: 1000px) {
  .fighter-layout { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .ranking-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  .event-feature, .event-hero { grid-template-columns: 1fr; }
  .event-feature .poster, .event-hero .poster { max-width: 320px; margin: 0 auto; order: -1; }
  .fight-row { grid-template-columns: 88px minmax(0, 1fr); row-gap: 10px; }
  .fight-detail, .fight-event { grid-column: 2; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .header-search { display: none; }
  .nav-toggle { display: block; }
  .header-inner { gap: 16px; }
  .main-nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 14px 24px 22px;
    background: rgba(8, 8, 12, .97); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 16px; font-size: 1.05rem; }
  .main-nav a.active::after { left: 16px; right: auto; width: 24px; bottom: 6px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .matchup-row { grid-template-columns: 1fr; gap: 16px; }
  .vs { flex-direction: row; gap: 12px; }
  .countdown > div { min-width: 66px; padding: 10px 8px; }
  .countdown b { font-size: 1.7rem; }
  .event-row { grid-template-columns: auto minmax(0, 1fr); row-gap: 12px; }
  .event-status { grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .record-display b { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
