:root {
  --ink: #151a18;
  --muted: #66736c;
  --paper: #f6f2e8;
  --white: #fffaf0;
  --line: rgba(21, 26, 24, .16);
  --lime: #d7ff33;
  --mint: #95e0c5;
  --yellow: #ffca3a;
  --coral: #ff5a3d;
  --dark: #171b18;
  --track: #a94325;
  --clay: #cf6940;
  --grass: #1f6d52;
  --sky: #d7ecff;
  --serif: 'Barlow Condensed', 'Noto Sans SC', sans-serif;
  --sans: 'Manrope', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --mono: 'DM Mono', monospace;
}

html { scroll-padding-top: 96px; }
body { color: var(--ink); background: var(--paper); font-family: var(--sans); }
body.public-body {
  background:
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px) 0 0 / 76px 100%,
    repeating-linear-gradient(110deg, rgba(169,67,37,.07) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #f8f4ea 0%, #efe5d6 100%);
}
body.public-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 8%, rgba(215,255,51,.34), transparent 25vw),
    linear-gradient(90deg, transparent 0 48%, rgba(169,67,37,.18) 48% 48.45%, transparent 48.45% 100%);
}

.eyebrow { color: var(--muted); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.accent { color: var(--track); }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: var(--lime);
  color: var(--ink);
  font: 800 17px/1 var(--serif);
  letter-spacing: 0;
  box-shadow: 5px 5px 0 var(--track);
  transform: skew(-9deg);
}
.brand-mark.small { width: 34px; height: 30px; font-size: 14px; box-shadow: 3px 3px 0 var(--track); }

.site-header {
  height: 88px;
  padding-right: clamp(20px, 2.5vw, 48px);
  padding-left: clamp(20px, 2.5vw, 48px);
  border-bottom: 3px solid var(--ink);
  background: rgba(246, 242, 232, .92);
  box-shadow: 0 10px 0 rgba(169, 67, 37, .12);
}
.brand strong, .admin-logo > span:last-child { font: 800 20px/1 var(--serif); letter-spacing: .04em; text-transform: uppercase; }
.brand small, .admin-logo small { color: var(--track); font-weight: 800; letter-spacing: .08em; }
.brand img { max-height: 46px; max-width: 160px; object-fit: contain; }
.site-nav { gap: 6px; margin-right: 28px; }
.site-nav a {
  position: relative;
  padding: 10px 12px;
  border: 1px solid transparent;
  color: #2a332e;
  font-weight: 800;
  text-transform: uppercase;
}
.site-nav a:hover, .site-nav a.active {
  border-color: var(--ink);
  background: var(--white);
  color: var(--track);
  box-shadow: 3px 3px 0 var(--ink);
}
.site-actions { display: flex; align-items: center; gap: 18px; }
.global-search {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 48px;
  align-items: stretch;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 rgba(21, 26, 24, .18);
}
.global-search input { width: 100%; padding: 9px 12px; border: 0; background: transparent; outline: 0; font-size: 12px; }
.global-search button { border-left: 2px solid var(--ink); background: var(--lime); font: 800 13px/1 var(--serif); }
.admin-link { color: var(--track); font-weight: 800; }

.public-main {
  max-width: 2200px;
  padding-right: clamp(20px, 2.5vw, 48px);
  padding-left: clamp(20px, 2.5vw, 48px);
}
.hero-grid {
  min-height: min(660px, calc(100vh - 120px));
  grid-template-columns: minmax(0, .96fr) minmax(380px, .8fr);
  gap: clamp(32px, 6vw, 92px);
}
.hero-copy h1 {
  max-width: 820px;
  font: 800 clamp(64px, 9vw, 150px)/.82 var(--serif);
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy h1 em { color: var(--track); font-style: normal; text-shadow: 6px 6px 0 rgba(215, 255, 51, .95); }
.hero-copy p { max-width: 620px; color: #3c453f; font-size: 17px; line-height: 1.85; }
.arrow-link, .band-title > a, .related-videos-heading a, .cross-category-heading a, .quick-links a {
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 2px solid var(--ink);
  background: var(--lime);
  box-shadow: 5px 5px 0 var(--ink);
}
.arrow-link:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

.hero-art {
  position: relative;
  height: 510px;
  overflow: hidden;
  border: 3px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.58) 0 3px, transparent 3px 19%),
    radial-gradient(circle at 50% 20%, rgba(215,255,51,.86), transparent 20%),
    linear-gradient(145deg, #be4d2a 0%, #8f351f 48%, #20251f 48.3%, #20251f 100%);
  box-shadow: 14px 14px 0 var(--ink);
  transform: skew(-2deg);
}
.hero-art::before, .hero-art::after {
  content: '';
  position: absolute;
  inset: 10% -18%;
  border: 2px solid rgba(255, 250, 240, .7);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}
.hero-art::after { inset: 22% -4% 8% -28%; opacity: .6; }
.orbit { display: none; }
.orbit-core {
  position: absolute;
  left: 44px;
  bottom: 44px;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: var(--white);
  font: 800 clamp(92px, 12vw, 168px)/.8 var(--serif);
  text-shadow: 8px 8px 0 rgba(21,26,24,.35);
}
.orbit-core span { color: var(--lime); }
.art-note {
  position: absolute;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: 800 13px/1.2 var(--mono);
  letter-spacing: .05em;
  box-shadow: 4px 4px 0 var(--ink);
}
.note-a { right: 28px; top: 30px; }
.note-b { right: 36px; bottom: 42px; }

.section-kicker { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.section-kicker span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 36px;
  background: var(--track);
  color: var(--white);
  font: 800 17px/1 var(--serif);
}
.section-kicker strong, .band-title h2, .page-intro h1, .related-videos-heading h2, .cross-category-heading h2 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.content-band { padding: 64px 0; border-bottom: 1px solid var(--line); }
.band-title { border-top: 3px solid var(--ink); padding-top: 20px; }
.vertical-num { color: var(--track); font: 800 18px/1 var(--mono); writing-mode: horizontal-tb; }
.story-grid { gap: 20px; }
.story-card, .editorial-card, .live-card, .player-card, .related-video-card, .cross-category-card {
  transition: transform .18s ease, filter .18s ease;
}
.story-card:hover, .editorial-card:hover, .live-card:hover, .player-card:hover, .related-video-card:hover, .cross-category-card:hover {
  transform: translateY(-4px);
}
.story-image, .list-thumb, .editorial-cover, .live-cover, .player-portrait, .related-video-cover, .cross-category-cover {
  border: 2px solid var(--ink);
  background-color: var(--clay);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.48) 2px, transparent 2px),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.18));
  background-size: 23% 100%, auto;
  box-shadow: 5px 5px 0 rgba(21,26,24,.15);
}
.story-image.has-cover, .list-thumb.has-cover { background-size: cover; background-position: center; }
.story-image span, .editorial-cover small, .live-cover small, .player-portrait i {
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 900;
}
.story-meta small, .editorial-copy span, .related-video-card small, .cross-category-card small, .live-card p, .player-card p { color: var(--muted); }
.story-meta h3, .list-story h2, .editorial-copy h2, .live-card h2, .player-card h3, .related-video-card h3, .cross-category-card h3 {
  color: var(--ink);
  letter-spacing: 0;
}

.page-intro { position: relative; padding: 88px 0 56px; }
.page-intro::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 34px;
  width: min(420px, 40vw);
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--track) 0 42px, var(--white) 42px 66px, var(--lime) 66px 82px);
  border: 2px solid var(--ink);
}
.page-intro h1 { max-width: 900px; font-size: clamp(48px, 8vw, 116px); line-height: .86; }
.page-intro p { max-width: 760px; color: #3f4943; font-size: 17px; }
.listing-grid, .search-results { border-top: 3px solid var(--ink); }
.list-story, .search-result {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, .36);
}
.list-story:hover, .search-result:hover { background: var(--white); box-shadow: inset 6px 0 0 var(--track); }
.list-index, .search-result > span { color: var(--track); font: 800 20px/1 var(--mono); }
.list-arrow, .search-result b { color: var(--track); }
.category-empty, .score-empty, .player-results-empty {
  border: 2px dashed rgba(21,26,24,.32);
  background: rgba(255, 250, 240, .65);
  color: var(--muted);
}

.article-main { padding-top: 48px; }
.back-link { color: var(--track); font-weight: 900; text-transform: uppercase; }
.article-header { border-top: 3px solid var(--ink); padding-top: 22px; }
.article-header h1 {
  max-width: 1040px;
  font: 800 clamp(42px, 7vw, 96px)/.94 var(--serif);
  letter-spacing: 0;
  text-transform: uppercase;
}
.article-byline { color: var(--muted); font-weight: 700; }
.article-cover {
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(169,67,37,.22);
}
.article-body { font-size: 16px; }
.article-body .lead {
  border-left: 8px solid var(--track);
  padding-left: 18px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.55;
}
.article-body h2, .article-body h3 { font-family: var(--serif); letter-spacing: 0; }
.article-body a { color: var(--track); text-decoration-color: var(--lime); }
.ad-card { border: 2px solid var(--ink); background: var(--white); box-shadow: 5px 5px 0 rgba(21,26,24,.16); }
.ad-card a { display: block; width: 100%; }
.ad-card img { display: block; width: min(100%, var(--ad-width, 180px)); height: var(--ad-height, 120px); margin: 0 auto; object-fit: contain; }
.ad-label { background: var(--track); color: var(--white); }

.related-videos, .cross-category-sections { border-top: 3px solid var(--ink); }
.related-video-play, .play-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.live-grid, .editorial-grid { gap: 28px 20px; }
.live-cover { background-color: #101714; }
.live-badge {
  border: 2px solid var(--ink);
  background: var(--coral);
  color: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}
.live-player { border: 3px solid var(--ink); background: #050806; box-shadow: 12px 12px 0 rgba(169,67,37,.24); }
.live-player-bar { background: #131814; color: var(--lime); border-bottom-color: rgba(215,255,51,.3); }
.live-player video { display: block; width: 100%; height: 100%; background: #050806; }
.editorial-card { border-top: 2px solid var(--ink); padding-top: 12px; }
.editorial-copy h2 { font-family: var(--serif); font-weight: 800; text-transform: uppercase; }
.player-grid { gap: 28px 18px; }
.league-heading { border-bottom: 2px solid var(--ink); }
.league-code { background: var(--lime); border: 2px solid var(--ink); }
.player-card h3 { font-family: var(--serif); font-size: 26px; text-transform: uppercase; }
.player-facts { border: 2px solid var(--ink); background: var(--ink); }
.player-facts div { background: var(--white); }
.player-results { border-top: 3px solid var(--ink); }
.player-result-row { border-bottom: 1px solid var(--line); }
.player-result-row:hover { background: var(--white); }
.player-result-score b { border: 2px solid var(--ink); background: var(--yellow); }
.player-result-score b.is-win { background: var(--lime); }
.player-result-score b.is-loss { background: var(--coral); color: var(--white); }

.tournament-calendar, .tournament-results, .champion-card {
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(21,26,24,.14);
}
.tournament-date-picker, .detail-date-picker { background: #2a1d17; color: var(--white); }
.tournament-date-picker button, .detail-date-picker button { background: var(--lime); color: var(--ink); font-weight: 900; }
.tournament-table th { background: var(--ink); color: var(--white); }
.tournament-table tbody tr:hover { background: rgba(215,255,51,.16); }
.tournament-name strong, .previous-winner:hover, .match-player-link { color: var(--track); }
.winner-mark { background: var(--lime); border-color: var(--ink); }
.tournament-hero {
  border: 3px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,.38) 2px, transparent 2px) 0 0 / 20% 100%,
    linear-gradient(145deg, var(--track), #6d2818);
  color: var(--white);
  box-shadow: 12px 12px 0 rgba(21,26,24,.18);
}
.tournament-title-block h1 { font-family: var(--serif); letter-spacing: 0; text-transform: uppercase; }
.match-day-strip a, .match-day-strip .disabled { border: 2px solid var(--ink); background: var(--white); color: var(--ink); }
.match-day-strip a.active { background: var(--lime); }
.match-row { border: 2px solid var(--ink); background: #fffdf6; box-shadow: 4px 4px 0 rgba(21,26,24,.1); }
.match-row header { background: var(--ink); color: var(--white); }
.match-player.winner { background: rgba(215,255,51,.2); }

.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}
.site-footer .footer-note { color: rgba(255,250,240,.75); }
.site-footer .footer-note span { color: var(--lime); }

.admin-body, .login-body {
  background:
    linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px) 0 0 / 70px 100%,
    linear-gradient(180deg, #f4eadc 0%, #e7dccb 100%);
}
.admin-sidebar {
  border-right: 3px solid var(--ink);
  background: #181c19;
  color: var(--white);
}
.admin-logo { color: var(--white); }
.side-caption, .admin-nav a, .side-bottom { color: rgba(255,250,240,.74); }
.admin-nav a:hover, .admin-nav a.active { background: var(--lime); color: var(--ink); }
.admin-nav .sub-link { color: rgba(255,250,240,.56); }
.admin-main { background: transparent; }
.admin-topbar { border-bottom: 3px solid var(--ink); }
.user-chip, .flash, .panel, .metric-card, .form-section, .table-panel, .login-card {
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 6px 6px 0 rgba(21,26,24,.14);
}
.welcome-row h2, .panel.spotlight h3, .admin-topbar h1, .login-card h1 {
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.metric-card { background: var(--white); }
.metric-card strong { color: var(--track); font-family: var(--serif); letter-spacing: 0; }
.metric-card.mint strong { color: var(--grass); }
.metric-card.yellow strong { color: #8b5a00; }
.metric-card.coral strong { color: var(--coral); }
.panel.spotlight { background: linear-gradient(135deg, var(--lime), #fff7d0); }
.status-dot { color: var(--lime); }
.primary-button, .outline-button, .upload-button, .admin-search button, .text-button {
  border-radius: 0;
  font-weight: 900;
}
.primary-button { background: var(--track); color: var(--white); box-shadow: 4px 4px 0 var(--ink); }
.outline-button { border: 2px solid var(--ink); background: var(--white); }
.login-card { max-width: 460px; }
.login-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(118deg, transparent 0 48%, rgba(169,67,37,.25) 48% 52%, transparent 52%);
}

@media (max-width: 1100px) {
  .site-actions { width: 100%; order: 4; justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 720px; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 0; }
  .site-header { padding: 16px 18px; }
  .brand strong { font-size: 18px; }
  .site-actions { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .global-search { grid-template-columns: minmax(0, 1fr) 44px; }
  .hero-copy h1 { font-size: clamp(54px, 18vw, 82px); }
  .hero-copy p { font-size: 15px; }
  .hero-art { height: 330px; box-shadow: 8px 8px 0 var(--ink); }
  .orbit-core { left: 24px; bottom: 28px; font-size: 92px; }
  .page-intro { padding-top: 58px; }
  .page-intro::after { position: static; display: block; width: 100%; margin-top: 22px; }
  .page-intro h1, .article-header h1 { font-size: clamp(42px, 15vw, 70px); }
  .story-grid, .editorial-grid, .related-video-grid, .cross-category-grid { grid-template-columns: 1fr; }
  .site-footer { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Compact editorial cards and keep article text from collapsing beside the ad rail. */
.category-news .editorial-grid,
.category-video .editorial-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 16px;
}
.public-ad-layout { display: grid; grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) minmax(130px, 180px); gap: 24px; align-items: start; margin-top: 36px; }
.public-ad-layout .ad-rail { min-width: 0; }
.public-ad-layout .ad-rail-left { grid-column: 1; }
.public-ad-layout .ad-rail-mobile-inline { grid-column: 2; display: none; }
.public-ad-layout .ad-rail-right { grid-column: 3; }
.article-layout .ad-rail { position: sticky; top: 108px; }
.category-news .editorial-cover,
.category-video .editorial-cover {
  aspect-ratio: 16 / 9;
}
.category-news .editorial-copy h2,
.category-video .editorial-copy h2 {
  font-size: 20px;
  line-height: 1.15;
}
.category-news .editorial-copy p,
.category-video .editorial-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.news-content-main .article-layout {
  grid-template-columns: minmax(0, 1fr) minmax(130px, 180px);
  gap: 28px;
}
.news-content-main .article-body {
  max-width: none;
}
.related-video-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}
.cross-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}
.related-video-cover {
  aspect-ratio: 16 / 9;
}
.related-video-card h3,
.cross-category-card h3 {
  font-size: 18px;
  line-height: 1.15;
}
@media (max-width: 900px) {
  .category-news .editorial-grid,
  .category-video .editorial-grid,
  .related-video-grid,
  .cross-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .public-ad-layout { grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) minmax(110px, 150px); gap: 14px; }
}
@media (max-width: 680px) {
  .category-news .editorial-grid,
  .category-video .editorial-grid,
  .related-video-grid,
  .cross-category-grid {
    grid-template-columns: 1fr;
  }
  .news-content-main .article-layout {
    grid-template-columns: 1fr;
  }
  .category-news .editorial-grid,
  .category-video .editorial-grid,
  .related-video-grid,
  .cross-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-ad-layout { display: block; margin-top: 26px; }
  .public-ad-layout .ad-rail-left,
  .public-ad-layout .ad-rail-right { display: none; }
  .public-ad-layout .ad-rail-mobile-inline { display: block; }
  .article-layout .ad-rail { position: static; }
}
@media (max-width: 430px) {
  .category-news .editorial-grid,
  .category-video .editorial-grid,
  .related-video-grid,
  .cross-category-grid { grid-template-columns: 1fr; }
}

.not-found-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .42fr);
  align-items: end;
  gap: 40px;
  min-height: 390px;
  padding: 72px 0 56px;
  border-bottom: 3px solid var(--ink);
}
.not-found-copy h1 {
  max-width: 760px;
  margin: 18px 0 12px;
  font: 800 clamp(52px, 8vw, 118px)/.86 var(--serif);
  letter-spacing: 0;
  text-transform: uppercase;
}
.not-found-copy p {
  max-width: 520px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 16px;
}
.not-found-mark {
  justify-self: end;
  color: var(--track);
  font: 800 clamp(100px, 18vw, 250px)/.72 var(--serif);
  letter-spacing: 0;
  text-shadow: 9px 9px 0 var(--lime);
  transform: rotate(-6deg);
}
.not-found-page .cross-category-sections {
  padding-bottom: 20px;
}

@media (max-width: 680px) {
  .not-found-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding: 66px 0 44px;
  }
  .not-found-mark {
    justify-self: start;
    font-size: clamp(96px, 31vw, 150px);
  }
}