:root {
  --fg: #e8e8e8;
  --fg-strong: #fff;
  --muted: #888;
  --bg: #0d0d0d;
  --card: #161616;
  --card-hover: #1e1e1e;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --accent: #dc2626;
  --accent-dark: #991b1b;
  --ink: #080808;
  --max-w: 1180px;
  --win: #3ba55c;
  --loss: #ed4245;
  --draw: #faa61a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding-top: 16px; padding-bottom: 16px;
}
.brand { color: #fff; font-weight: 900; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }
.brand span { color: var(--accent); font-weight: 700; margin-left: 4px; font-size: 14px; letter-spacing: 0.1em; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: #bbb; font-size: 14px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:hover { color: #fff; border-bottom-color: var(--accent); text-decoration: none; }

/* Hero */
.hero { position: relative; padding: 80px 0 60px; text-align: center;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,0.15), transparent 60%), linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  color: #fff; margin-bottom: 16px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.hero h1 { font-size: clamp(32px, 6vw, 56px); margin: 0 0 16px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.hero h1 span { color: var(--accent); }
.hero .lead { color: #bbb; margin: 0 auto; max-width: 680px; font-size: 16px; line-height: 1.8; }

/* Section head */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 48px 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-strong); position: relative; }
.section-head::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 3px; background: var(--accent); }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--fg-strong); }
.section-head a { font-size: 13px; color: var(--muted); }
.section-head a:hover { color: var(--accent); }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-bottom: 32px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; color: var(--fg); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.4); border-color: var(--accent); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #1a1a1a; }
.card.no-img { background: linear-gradient(135deg, #1a1a1a, #111); }
.card.no-img .card-body { padding: 20px 18px; min-height: 140px; display: flex; flex-direction: column; justify-content: flex-end; }
.card.no-img .card-body::before { content: ""; display: block; width: 32px; height: 3px; background: var(--accent); margin-bottom: 10px; }
.card-body { padding: 14px 16px 18px; }
.card-body time { color: var(--muted); font-size: 12px; }
.card-body h3 { margin: 6px 0 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--fg-strong);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body .sub { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.fighter-card img { aspect-ratio: 1/1; object-fit: cover; }
.fighter-card .placeholder { width: 100%; aspect-ratio: 1/1; background: linear-gradient(135deg, #222, #111); color: var(--accent); font-size: 64px; font-weight: 900; display: flex; align-items: center; justify-content: center; }

/* News list */
.year-block { margin-bottom: 48px; }
.year-block > h2 { font-size: 28px; margin: 32px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-strong); font-weight: 900; color: var(--fg-strong); position: relative; }
.year-block > h2::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--accent); }
.news-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.news-list li { background: var(--card); border: 1px solid var(--border); border-radius: 8px; transition: border-color .15s; }
.news-list li:hover { border-color: var(--accent); }
.news-list a { display: flex; gap: 16px; padding: 14px 18px; align-items: center; color: var(--fg); }
.news-list a:hover { text-decoration: none; }
.news-list img { width: 96px; height: 72px; object-fit: cover; flex-shrink: 0; border-radius: 6px; background: #1a1a1a; }
.thumb-placeholder { width: 96px; height: 72px; flex-shrink: 0; border-radius: 6px; background: linear-gradient(135deg, #222, #111); color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.15em; display: flex; align-items: center; justify-content: center; }
.news-meta { min-width: 0; flex: 1; }
.news-list time { display: block; color: var(--muted); font-size: 12px; }
.news-list .title { display: block; font-weight: 600; font-size: 15px; line-height: 1.5; margin-top: 4px; color: var(--fg-strong); }

/* Article */
.article { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 36px 40px; margin: 32px 0 48px; max-width: 820px; }
.article header { margin-bottom: 28px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.article .date { color: var(--accent); font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.article h1 { font-size: clamp(24px, 4vw, 32px); margin: 0; line-height: 1.5; font-weight: 800; color: var(--fg-strong); }
.prose { font-size: 16px; line-height: 1.9; }
.prose p { margin: 0 0 1.2em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 28px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 6px; background: #1a1a1a; }
.back { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.back a { font-size: 14px; font-weight: 500; }

/* Fighter detail */
.fighter-detail .nickname { color: var(--accent); font-style: italic; font-size: 18px; margin: 4px 0 0; }
.fighter-top { display: flex; gap: 28px; margin-bottom: 24px; flex-wrap: wrap; }
.fighter-photo { width: 240px; border-radius: 8px; background: #1a1a1a; flex-shrink: 0; }
.fighter-info { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; margin: 0; align-content: start; }
.fighter-info dt { color: var(--muted); font-size: 13px; }
.fighter-info dd { margin: 0; font-size: 15px; color: var(--fg-strong); }
.records { margin: 24px 0; }
.records h2 { font-size: 20px; color: var(--fg-strong); margin: 0 0 12px; }
.stat-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.stat { text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px 20px; min-width: 80px; }
.stat-val { display: block; font-size: 28px; font-weight: 900; color: var(--accent); }
.stat-label { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.05em; }
.fight-history { margin: 28px 0; }
.fight-history h2 { font-size: 20px; color: var(--fg-strong); margin: 0 0 12px; }
.table-wrap { overflow-x: auto; }
.fight-history table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fight-history th { text-align: left; padding: 8px 12px; border-bottom: 2px solid var(--border-strong); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.fight-history td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.fight-history tr.win td:first-child { color: var(--win); font-weight: 700; }
.fight-history tr.loss td:first-child { color: var(--loss); font-weight: 700; }
.fight-history tr.draw td:first-child { color: var(--draw); font-weight: 700; }
.fight-history tr:hover { background: rgba(201,168,76,0.05); }

/* Footer */
.site-footer { background: var(--ink); color: #888; padding: 48px 0 32px; margin-top: 72px; font-size: 13px; border-top: 3px solid var(--accent);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(201,168,76,0.1), transparent 55%); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-logo { color: #fff; font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-logo span { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; margin-left: 6px; }
.footer-tag { margin: 6px 0 0; color: #555; font-size: 12px; letter-spacing: 0.08em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; align-self: center; }
.footer-nav a { color: #aaa; font-size: 13px; }
.footer-nav a:hover { color: var(--accent); text-decoration: none; }
.footer-copy { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #1a1a1a; color: #555; font-size: 12px; }

/* About sections */
.about-section { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.about-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.about-section h2 { color: var(--accent); font-size: 22px; font-weight: 800; margin: 0 0 16px; }

/* Wide article (GP/MAX pages) */
.wide-article { max-width: 1100px; }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin: 28px 0; }
.champ-section h2 { font-size: 20px; color: var(--accent); margin: 0 0 12px; font-weight: 700; }
.champ-table, .rank-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.champ-table th, .rank-table th { text-align: left; padding: 8px 14px; border-bottom: 2px solid var(--border-strong); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.champ-table td, .rank-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.champ-table tr:hover, .rank-table tr:hover { background: rgba(201,168,76,0.06); }
.champ-table .year, .rank-table .rank { color: var(--accent); font-weight: 800; font-size: 18px; width: 80px; }
.champ-table a, .rank-table a { color: var(--fg-strong); font-weight: 600; }
.champ-table a:hover, .rank-table a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .gp-grid { grid-template-columns: 1fr; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 14px; flex-wrap: wrap; }
  .article { padding: 18px; }
  .fighter-top { flex-direction: column; }
  .fighter-photo { width: 100%; max-width: 320px; }
  .fighter-info { grid-template-columns: 100px 1fr; }
  .stat-grid { gap: 12px; }
  .stat { padding: 10px 14px; min-width: 60px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-column: 1; }
}
