
/* Broadsheet palette: newspaper-style white ground with a deep red accent,
   sized and spaced for long-form Japanese. The previous scheme dimmed body
   text to 82% of --text and set 16px/1.85 leading, which measured as the
   main readability problem on real articles.

   Dark stays the default so the existing toggle keeps working, but it is now
   a near-neutral charcoal rather than navy: the blue cast was adding to eye
   strain over long reads. */
:root {
  color-scheme: dark;
  --bg: #11161c;
  --surface: #171e25;
  --surface2: #1f272f;
  --text: #f2f6fa;
  --text-sub: #93a2af;
  --accent: #e8635a;
  --accent-light: #f08c84;
  --accent-strong: #d1483f;
  --border: rgba(147, 162, 175, 0.2);
  --danger: #f87171;
  --ok: #34d399;
}

html.light {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f4f6f8;
  --text: #0e1113;
  --text-sub: #5c666e;
  --accent: #b3261e;
  --accent-light: #b3261e;
  --accent-strong: #8e1b15;
  --border: rgba(14, 17, 19, 0.14);
  --danger: #b3261e;
  --ok: #15803d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-main span {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn,
.mini-btn,
.theme-btn {
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  border-radius: 7px;
  min-height: 36px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-btn {
  gap: 8px;
  border-radius: 999px;
  color: var(--text-sub);
}

.mini-btn {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 0.82rem;
}

.btn-primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-danger {
  color: #ffe1e1;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
}

.tabs-wrap {
  position: sticky;
  top: 68px;
  z-index: 9;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.tabs-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 10px;
  display: flex;
  overflow-x: auto;
}

.tab {
  min-height: 44px;
  padding: 13px 14px;
  color: var(--text-sub);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 80px;
}

/* 820px at 16px gave ~49 Japanese characters per line; 35-45 is the
   comfortable range, past which the eye loses the start of the next line. */
.article-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 80px;
}

.grid-header,
.admin-header,
.article-header {
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: 0;
}

.lede,
.muted,
time {
  color: var(--text-sub);
}

.lede {
  margin: 8px 0 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.card-link {
  display: block;
  height: 100%;
}

.card-thumb,
.thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #263a59, #68475b);
  color: #fff;
}

.card-thumb img,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb-real_madrid,
.thumb-real_madrid {
  background: linear-gradient(135deg, #f6f2e9, #9b865e);
  color: #30271a;
}

.card-thumb-fc_barcelona,
.thumb-fc_barcelona {
  background: linear-gradient(135deg, #103b7d, #7a1536 58%, #bc9241);
}

.card-thumb-laliga_other,
.thumb-laliga_other {
  background: linear-gradient(135deg, #0f3f36, #1d725f 58%, #d2c16d);
}

.card-thumb-off_pitch_stories,
.thumb-off_pitch_stories {
  background: linear-gradient(135deg, #2f3138, #646b7a);
}

.card-thumb-transfer_rumors,
.thumb-transfer_rumors {
  background: linear-gradient(135deg, #3a1f5d, #6a3fa0 58%, #e0a93b);
}

.card-thumb-cantera,
.thumb-cantera {
  background: linear-gradient(135deg, #14532d, #2e8b57 58%, #b7d36a);
}

.card-thumb-segunda,
.thumb-segunda {
  background: linear-gradient(135deg, #1f3654, #3a6299 58%, #9ad1ff);
  color: #08192a;
}

.card-thumb-fallback {
  width: 100%;
  height: 100%;
  padding: 14px;
  display: grid;
  align-content: space-between;
}

.card-thumb-type {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  opacity: 0.8;
}

.card-thumb-icon {
  justify-self: end;
  font-size: 2rem;
  line-height: 1;
}

.card-thumb-fallback strong {
  font-size: 1rem;
  line-height: 1.3;
}

.card-thumb-fallback small {
  font-size: 0.8rem;
  opacity: 0.84;
}

.thumb-type {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.82;
}

.thumb-team {
  font-size: 1rem;
  font-weight: 800;
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 0.82rem;
}

.card-chip-row,
.article-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.7rem;
  color: var(--text-sub);
}

.type-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  background: var(--surface2);
  color: var(--text-sub);
  border: 1px solid var(--border);
}

.type-chip.is-feature {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface2));
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  color: var(--accent-strong);
}

html:not(.light) .type-chip.is-feature {
  color: var(--accent);
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.card h2,
.card h3 {
  margin: 10px 0 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.5em * 2);
}

.card p {
  color: var(--text-sub);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 3);
}

.card-featured {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 62%),
    var(--surface);
}

.card-featured .card-body {
  padding: 20px;
}

.card.card-featured h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.4;
  -webkit-line-clamp: 3;
  min-height: 0;
}

.card.card-featured p {
  font-size: 0.95rem;
  -webkit-line-clamp: 2;
  min-height: 0;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 0.78rem;
}

.article-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-sub);
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--accent-light);
}

.breadcrumbs .breadcrumb-current {
  max-width: min(100%, 42ch);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text-sub);
  font-size: 0.85rem;
  margin-bottom: 16px;
  transition: border-color 0.15s, color 0.15s;
}

.back-link:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.article-header h1 {
  margin: 10px 0;
  line-height: 1.38;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
}

.article-meta {
  margin: 0 0 14px;
  color: var(--text-sub);
  font-size: 0.88rem;
}

.article-thumb-wrap {
  width: min(100%, 800px);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface2);
  margin: 0 auto 14px;
}

.article-thumb-wrap .thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-lead-wrap {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%),
    var(--surface2);
}

.article-lead-label {
  margin: 0 0 8px;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-lead-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.article-lead-list li {
  line-height: 1.6;
}

/* Body text is the full --text colour, not a dimmed mix of it. Dimming made
   paragraphs lighter than their own headings, which is what made long
   articles slide past the eye. Size and leading are set for Japanese
   (17px / 1.95), where 16px / 1.85 reads as cramped. */
.article-body {
  max-width: none;
  line-height: 1.95;
  font-size: 1.0625rem;
  word-break: break-word;
  color: var(--text);
}

.article-body p {
  margin: 0 0 1.15em;
}

/* Serif (明朝) headings against a gothic body is the standard Japanese
   editorial pairing, and it separates section headings from body text by
   shape rather than by making one of them lighter. */
.article-body h2,
.article-body h3 {
  line-height: 1.45;
  color: var(--text);
  letter-spacing: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  font-weight: 600;
}

.article-body h2 {
  margin: 2.4rem 0 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 1.34rem;
}

.article-body h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.14rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 0.6rem;
}

.article-body .article-body-title {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
}

.article-body strong {
  color: var(--text);
  font-weight: 700;
}

.article-body .player-link {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.article-body .player-link:hover {
  color: var(--text);
}

.article-body ul {
  margin: 0.8rem 0 1.15rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.article-body li {
  padding-left: 0.15rem;
}

.article-body li::marker {
  color: var(--accent-light);
}

.article-body hr {
  margin: 1.8rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.article-body .quote-para {
  padding-left: 1rem;
  border-left: 2px solid color-mix(in srgb, var(--accent-light) 35%, var(--border));
}

.article-toc {
  margin: 20px 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}

.article-toc-title {
  margin: 0 0 8px;
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 6px;
}

.article-toc a {
  color: var(--accent);
  line-height: 1.6;
}

.article-body h2,
.article-body h3 {
  scroll-margin-top: 92px;
}

.line-heading {
  color: var(--text);
  font-weight: 700;
  margin-top: 1.2rem;
}

.line-section {
  color: var(--accent-light);
  font-weight: 700;
  margin-top: 1.4rem;
}

.editorial-meta-wrap {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.editorial-meta-wrap h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.editorial-meta-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.editorial-meta-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}

.editorial-meta-row dt {
  color: var(--text-sub);
  font-size: 0.82rem;
}

.editorial-meta-row dd {
  margin: 0;
  line-height: 1.7;
}

.editorial-meta-row a {
  color: var(--accent);
}

.share-row {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.article-cta-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.x-share-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
}

.share-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.share-btn-line {
  border-color: color-mix(in srgb, #06c755 42%, var(--border));
  color: #06c755;
}

.next-read-wrap {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.next-read-wrap h2 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.next-read-grid {
  display: grid;
  gap: 8px;
}

.next-read-card {
  display: grid;
  gap: 4px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  padding: 10px 12px;
}

.next-read-kicker {
  font-size: 0.72rem;
  color: var(--accent);
}

.next-read-title {
  color: var(--text);
  line-height: 1.4;
}

.next-read-meta {
  color: var(--text-sub);
  font-size: 0.82rem;
}

.next-read-players {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.archive-months {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.archive-months a,
.archive-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  padding: 10px 12px;
}

.archive-count,
.archive-meta {
  color: var(--text-sub);
  font-size: 0.82rem;
}

.archive-note {
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.7;
}

.archive-day {
  margin-top: 18px;
}

.archive-day h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--text-sub);
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.archive-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.archive-list li a {
  flex: 1 1 18rem;
  line-height: 1.5;
}

.archive-nav {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.archive-nav a,
.archive-nav span {
  flex: 1;
}

.related-wrap {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.popular-wrap {
  margin-top: 24px;
}

.adjacent-wrap {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.adjacent-wrap h2 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.adjacent-grid {
  display: grid;
  gap: 8px;
}

.adjacent-link,
.adjacent-empty {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  padding: 10px 12px;
  display: flex;
  align-items: center;
}

.adjacent-empty {
  color: var(--text-sub);
}

.related-wrap h2 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.related-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.related-list li a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface2);
}

.related-list li a.no-thumb {
  grid-template-columns: minmax(0, 1fr);
}

.related-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--text-sub);
  font-size: 0.7rem;
  text-align: center;
  padding: 4px;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-thumb-real_madrid { background: linear-gradient(135deg, #f8f5ef 0%, #9b865e 100%); color: #332919; }
.related-thumb-fc_barcelona { background: linear-gradient(135deg, #103b7d 0%, #7a1536 55%, #bc9241 100%); color: #fff3d0; }
.related-thumb-laliga_other { background: linear-gradient(135deg, #0f3f36 0%, #d2c16d 100%); color: #f8f7ee; }
.related-thumb-off_pitch_stories { background: linear-gradient(135deg, #2f3138 0%, #9aa4b2 100%); color: #fff; }
.related-thumb-transfer_rumors { background: linear-gradient(135deg, #3a1f5d 0%, #e0a93b 100%); color: #fff7e0; }
.related-thumb-cantera { background: linear-gradient(135deg, #14532d 0%, #b7d36a 100%); color: #f4fbe8; }
.related-thumb-segunda { background: linear-gradient(135deg, #1f3654 0%, #9ad1ff 100%); color: #eef7ff; }

.related-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.related-chip {
  width: fit-content;
  font-size: 0.72rem;
  color: var(--accent);
}

.related-title {
  color: var(--text);
  line-height: 1.4;
}

.related-excerpt {
  color: var(--text-sub);
  font-size: 0.84rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta {
  color: var(--text-sub);
  font-size: 0.82rem;
}

@media (max-width: 480px) {
  .related-list li a {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

.sticky-next-sentinel {
  height: 1px;
}

.sticky-next-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
}

.sticky-next-bar[hidden] {
  display: none;
}

.sticky-next-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sticky-next-link {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  transition: border-color 0.15s, color 0.15s;
}

.sticky-next-link:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

@media (max-width: 767px) {
  .sticky-next-bar {
    padding: 8px 12px;
  }

  .sticky-next-link {
    font-size: 0.82rem;
  }
}

.legal-page {
  max-width: 900px;
}

.legal-page h1 {
  margin-top: 0;
  margin-bottom: 12px;
}

.legal-page > p {
  color: var(--text-sub);
  line-height: 1.8;
}

.legal-page .legal-updated {
  margin: -4px 0 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.legal-page a,
.legal-section a {
  color: var(--accent);
}

.legal-section {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.legal-section p {
  margin: 0 0 10px;
  color: var(--text-sub);
  line-height: 1.8;
}

.editorial-profile-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}

.editorial-profile-card p {
  margin: 0;
}

.editorial-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.editorial-role-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}

.editorial-role-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.editorial-role-card p {
  margin: 0;
}

.editorial-process-list {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 8px;
  color: var(--text-sub);
  line-height: 1.8;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-optional,
.contact-required {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.contact-required {
  color: var(--danger);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-field textarea {
  min-height: 180px;
  line-height: 1.7;
  resize: vertical;
}

.contact-field input:focus-visible,
.contact-field select:focus-visible,
.contact-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-help {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* Hidden from readers and assistive tech, but still filled in by bots. */
.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-submit {
  font: inherit;
  font-weight: 700;
  padding: 11px 26px;
  color: #fff;
  background: var(--accent-strong);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.contact-submit:hover {
  background: var(--accent);
}

.contact-flash {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--surface2);
  line-height: 1.7;
}

.contact-flash-ok {
  border-left-color: var(--ok);
}

.contact-flash-error {
  border-left-color: var(--danger);
}

.contact-email-row {
  display: flex;
  margin-top: 6px;
  max-width: 100%;
}

.contact-email-image-wrap {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  padding: 8px 10px;
}

.contact-email-image {
  display: block;
  width: 100%;
  max-width: 582px;
  height: auto;
  min-width: 0;
  object-fit: contain;
}

.article-thumb {
  margin: 18px 0;
  border-radius: 8px;
  overflow: hidden;
}

.article-thumb .thumb {
  min-height: 280px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.empty-state {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-sub);
}

.schedule-day {
  margin: 22px 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-sub);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}

.schedule-row-time {
  font-variant-numeric: tabular-nums;
  color: var(--text-sub);
  font-size: 0.85rem;
}

.schedule-row-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.schedule-row-team {
  font-weight: 600;
}

.schedule-row-vs {
  color: var(--text-sub);
}

.schedule-row-meta {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.schedule-row-score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.schedule-row-status {
  font-size: 0.75rem;
  color: var(--text-sub);
  white-space: nowrap;
}

.match-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.match-board-team {
  font-weight: 700;
  font-size: 1.05rem;
}

.match-board-team:last-child {
  text-align: right;
}

.match-board-score {
  font-variant-numeric: tabular-nums;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
}

.match-board-vs {
  color: var(--text-sub);
  text-align: center;
}

.home-standings { margin: 28px 0; }
.home-standings-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.home-standings-list li + li { border-top: 1px solid var(--border); }
.home-standings-list a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: inherit; text-decoration: none; }
.home-standings-list a:hover { background: var(--surface2); }
.home-standings-rank { width: 1.6em; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.home-standings-team { flex: 1; font-weight: 700; }
.home-standings-meta { font-size: 0.78rem; color: var(--text-sub); }
.home-standings-list strong { width: 2.4em; text-align: right; font-variant-numeric: tabular-nums; }
.japan-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; }
.japan-hub-card { border: 1px solid var(--border); border-radius: 8px; padding: 18px; background: var(--surface); }
.japan-hub-card h2 { font-size: 1.15rem; margin: 0 0 12px; }
.japan-hub-card h2 small { margin-left: 8px; font-size: 0.78rem; color: var(--text-sub); font-weight: 600; }
.japan-hub-latest { font-size: 0.88rem; line-height: 1.7; margin: 12px 0; }
.club-hub-block { margin: 26px 0; }
.club-hub-block h2 { font-size: 1.05rem; margin: 0 0 10px; }
.club-hub-block ul { list-style: none; margin: 0; padding: 0; }
.club-hub-block li { padding: 5px 0; font-size: 0.88rem; border-bottom: 1px dashed var(--border); }
.match-video-more { margin: 10px 0 0; }
.match-video-more > summary { cursor: pointer; font-size: 0.86rem; font-weight: 700; color: var(--accent); padding: 6px 0; }
.match-video-more[open] > summary { margin-bottom: 8px; }
.match-context {
  margin: 28px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.match-context h2 { font-size: 1.05rem; margin: 0 0 12px; }
.match-context h3 { font-size: 0.95rem; margin: 18px 0 8px; }
.match-context h4 { font-size: 0.78rem; margin: 10px 0 4px; color: var(--text-sub); letter-spacing: 0.04em; }
.match-context ul { list-style: none; margin: 0; padding: 0; }
.match-context li { padding: 5px 0; font-size: 0.88rem; border-bottom: 1px dashed var(--border); }
.match-context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.match-context-result { margin-left: 6px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.match-context .category-links { margin-top: 18px; }
@media (max-width: 640px) { .match-context-grid { grid-template-columns: 1fr; gap: 4px; } }
.match-video {
  margin: -8px 0 22px;
}

.match-video-card {
  appearance: none;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 10px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.match-video-card:hover .match-video-title,
.match-video-card:focus-visible .match-video-title {
  text-decoration: underline;
}

.match-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}

.match-video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 44px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: rgba(204, 0, 0, 0.92);
}

.match-video-play::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
}

.match-video-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.match-video-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
}

.match-video-title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.match-video-source,
.match-video-alt {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.match-video-alt {
  margin: 6px 2px 0;
}

.match-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.match-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 480px) {
  .match-video-card {
    grid-template-columns: 128px 1fr;
    gap: 10px;
  }
}

.match-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.match-tabs button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-sub);
  padding: 10px 14px 8px;
  white-space: nowrap;
}

.match-tabs button:hover {
  color: var(--text);
}

.match-tabs button[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.match-tabpanel h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.22rem;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  font-weight: 600;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 0.6rem;
  line-height: 1.45;
}

.match-tabpanel h2:first-child {
  margin-top: 0;
}

.match-tabpanel h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
}

/* The match page sits inside .main (1180px), so without a measure of its own
   the prose ran the full width -- far past the 35-45 Japanese characters a
   line should hold. Headings and tabs stay full width; only the reading
   column is constrained. */
/* The measure comes from .article-main on the page wrapper, so the panel
   itself must not add a second, narrower one -- that left the prose hugging
   the left edge while the scoreboard above it stayed full width. */

.match-tabpanel p {
  margin: 0 0 1.15em;
  line-height: 1.95;
  font-size: 1.0625rem;
  color: var(--text);
}

.match-tabpanel ul {
  margin: 0 0 1.3rem;
  padding-left: 1.2em;
  line-height: 1.95;
  display: grid;
  gap: 0.5rem;
}

.match-tabpanel li::marker {
  color: var(--accent);
}

/* Press-conference sections are a speaker label followed by that speaker's
   quotes, so they get the shape of an interview rather than running prose. */
.match-label {
  margin: 1.8rem 0 0.5rem !important;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.match-label:first-child {
  margin-top: 0 !important;
}

.match-quote {
  margin: 0 0 0.7rem;
  padding: 0.1rem 0 0.1rem 0.9rem;
  border-left: 2px solid var(--accent);
  color: var(--text);
  line-height: 1.95;
}

/* Full press-conference Q&A: a question line (asker's outlet as a small tag),
   then the answer indented under it. */
.pc-source {
  margin: 0 0 1rem !important;
  font-size: 0.82rem !important;
  color: var(--text-sub) !important;
}

.match-tabpanel .pc-speaker {
  margin: 1.8rem 0 0.8rem;
  padding-top: 0.2rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.pc-item {
  margin: 0 0 1.4rem;
}

.match-tabpanel .pc-q {
  margin: 0 0 0.35em;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.8;
}

.pc-asker {
  display: inline-block;
  margin-right: 0.55em;
  padding: 0 0.5em;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-sub);
  vertical-align: 0.1em;
}

.match-tabpanel .pc-a {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.page-btn {
  min-height: 44px;
  min-width: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.page-ellipsis {
  min-width: 28px;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topic-pager {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  justify-items: center;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.article-body + .topic-pager {
  margin-top: 22px;
}

.topic-next-cta {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface2)), var(--surface2));
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.topic-next-cta:hover {
  border-color: var(--accent);
}

.topic-next-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.topic-next-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.topic-pager-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.topic-pager-numbers {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.topic-pager-count {
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 6px;
}

.topic-pager-all {
  color: var(--accent);
  font-size: 0.9rem;
}

.topic-index {
  margin: 20px 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}

.topic-index-title {
  margin: 0 0 8px;
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 700;
}

.topic-index ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 6px;
}

.topic-index li[aria-current="true"] {
  font-weight: 700;
  color: var(--text);
}

.topic-index a {
  color: var(--accent);
  line-height: 1.6;
}

.category-links-wrap,
.faq-wrap {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.category-links-wrap h2,
.faq-wrap h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-link-chip {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface2);
  color: var(--text);
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
}

.team-directory {
  margin: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.team-directory h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.team-directory-toggle {
  display: none;
}

.team-directory-chevron {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s;
}

.team-directory-chevron.open {
  transform: rotate(180deg);
}

.team-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.team-directory-link {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-directory-link.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface2));
}

.team-directory-link strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.article-team-select {
  margin: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  display: grid;
  gap: 8px;
}

.article-team-select label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-sub);
}

.article-team-select select {
  font: inherit;
  width: 100%;
  max-width: 360px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  padding: 10px 12px;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  padding: 8px 10px;
}

.faq-item summary {
  cursor: pointer;
}

.faq-item p {
  color: var(--text-sub);
  margin: 8px 0 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 16px 32px;
  display: grid;
  gap: 20px;
}

.site-footer-brand {
  display: grid;
  gap: 8px;
}

.site-footer-title,
.site-footer-heading {
  margin: 0;
  font-weight: 700;
}

.site-footer-copy {
  margin: 0;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 72ch;
}

.site-footer-nav {
  display: grid;
  gap: 16px;
}

.site-footer-group {
  display: grid;
  gap: 8px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.site-footer-links a {
  color: var(--text-sub);
}

.footer-link-button {
  border: 0;
  background: transparent;
  color: var(--text-sub);
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.consent-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  padding: 16px;
}

.consent-panel[hidden] {
  display: none;
}

.consent-panel p {
  margin: 0;
  color: var(--text-sub);
  line-height: 1.7;
}

.consent-panel a {
  color: var(--accent);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.consent-button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  color: var(--text);
  padding: 8px 16px;
  cursor: pointer;
}

.consent-accept {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--text-sub);
  font-size: 0.86rem;
  font-weight: 600;
}

.status-published {
  color: var(--ok);
}

.status-draft {
  color: #fbbf24;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--text-sub);
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text);
  padding: 10px;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inline-form {
  display: inline;
}

@media (max-width: 900px) {
  .card-grid,
  .form-grid,
  .team-directory-grid,
  .editorial-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 118px;
  }

  .article-body h2,
  .article-body h3 {
    scroll-margin-top: 118px;
  }

  .theme-btn {
    padding: 8px;
    min-width: 40px;
  }

  .theme-btn [data-theme-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .card-featured .card-body {
    padding: 16px;
  }

  .card-grid,
  .form-grid,
  .editorial-role-grid {
    grid-template-columns: 1fr;
  }

  .team-directory {
    padding: 10px 0;
  }

  .team-directory h2 {
    display: none;
  }

  .team-directory-toggle {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface2);
    color: var(--text);
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .team-directory-grid {
    display: none;
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .team-directory-grid.team-directory-open {
    display: grid;
  }

  .article-thumb .thumb {
    min-height: 200px;
  }

  .site-footer-inner {
    padding-bottom: 26px;
  }
}


/* ---- Standings (/standings, mini table on /category) ---- */

.standings-scroll {
  overflow-x: auto;
  margin: 16px 0;
}

.standings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 14px;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.standings-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.standings-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.standings-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.88rem;
}

.standings-table th,
.standings-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.standings-table thead th {
  color: var(--text-sub);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.standings-rank {
  font-variant-numeric: tabular-nums;
  color: var(--text-sub);
  width: 2.5em;
}

.standings-team a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.standings-n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.standings-points {
  font-weight: 800;
}

.standings-row.zone-ucl {
  box-shadow: inset 3px 0 0 var(--ok);
}

.standings-row.zone-uel {
  box-shadow: inset 3px 0 0 var(--accent);
}

.standings-row.zone-uecl {
  box-shadow: inset 3px 0 0 var(--accent-light);
}

.standings-row.zone-relegation {
  box-shadow: inset 3px 0 0 var(--danger);
}

.standings-legend-swatch.zone-ucl { background: var(--ok); }
.standings-legend-swatch.zone-uel { background: var(--accent); }
.standings-legend-swatch.zone-uecl { background: var(--accent-light); }
.standings-legend-swatch.zone-relegation { background: var(--danger); }

.standings-mini {
  margin: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.standings-mini h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.standings-table-mini {
  min-width: 0;
}

.standings-full-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
}

.standings-form {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.standings-form-empty {
  color: var(--text-sub);
}

.form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-right: 3px;
  color: #fff;
}

.form-badge:last-child {
  margin-right: 0;
}

.form-badge-W {
  background: var(--ok);
}

.form-badge-D {
  background: var(--text-sub);
}

.form-badge-L {
  background: var(--danger);
}

.standings-table-split {
  min-width: 420px;
}

/* ---- Transfer tracker (/transfers, /transfers/{team}) ---- */

.transfer-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 420px;
  font-size: 0.88rem;
}

.transfer-table th,
.transfer-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.transfer-table thead th {
  color: var(--text-sub);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.transfer-player {
  font-weight: 600;
}

.transfer-position {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-sub);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
}

.transfer-club a {
  color: var(--text);
  text-decoration: none;
}

.transfer-fee {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.transfer-status-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.transfer-status-badge-official {
  background: color-mix(in srgb, var(--ok) 18%, var(--surface2));
  color: var(--ok);
}

.transfer-status-badge-agreed {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface2));
  color: var(--accent);
}

.transfer-status-badge-negotiating {
  background: var(--surface2);
  color: var(--text-sub);
}

.transfer-status-badge-rumor {
  background: var(--surface2);
  color: var(--text-sub);
  font-style: italic;
}

/* --- local-press ratings / injury tracker ------------------------------- */

.admin-preview-note {
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-sub);
}

.rating-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.rating-summary-item {
  flex: 1 1 160px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}

.rating-summary-item strong {
  display: block;
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.rating-summary-item span {
  font-size: 0.78rem;
  color: var(--text-sub);
}

.rating-match {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.rating-match h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.rating-match h2 a {
  color: var(--text);
}

.rating-entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.rating-entry:first-of-type {
  border-top: 0;
}

.rating-outlet {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
}

.rating-score {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.rating-score small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-sub);
}

.rating-comment {
  margin: 0;
  line-height: 1.7;
  font-size: 0.92rem;
}

.rating-original {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.rating-original summary {
  cursor: pointer;
}

.injury-status-badge-out {
  background: color-mix(in srgb, #d14343 16%, var(--surface2));
  color: #c03535;
}

.injury-status-badge-doubtful {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface2));
  color: var(--accent);
}

.injury-status-badge-returned {
  background: color-mix(in srgb, var(--ok) 16%, var(--surface2));
  color: var(--ok);
}

.injury-source {
  display: block;
  margin-top: 3px;
  font-size: 0.74rem;
  color: var(--text-sub);
}

@media (max-width: 560px) {
  .rating-entry {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* --- i-mobile ad units ------------------------------------------------- */

.ecd-ad {
  display: block;
  width: 100%;
  margin: 28px auto;
  max-width: 336px;
  text-align: center;
}

.ecd-ad--inFeed {
  /* Span the full card grid so the unit reads as a break, not a card. */
  grid-column: 1 / -1;
  margin: 4px auto;
}

.ecd-ad--articleEnd {
  margin-top: 36px;
}

.ecd-ad--listingBottom {
  max-width: 728px;
  margin-top: 32px;
}

.ecd-ad--listingBottom .ecd-ad__frame {
  min-height: 90px;
}

.ecd-ad--moneytizer > .ecd-ad__frame > div {
  margin: 0 auto;
}

@media (max-width: 768px) {
  .ecd-ad--listingBottom .ecd-ad__frame {
    min-height: 100px;
  }
}

.ecd-ad__label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

.ecd-ad__frame {
  /* Reserve the 300x250 box so a late-filling ad does not shift the page. */
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecd-overlay-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0 4px;
  background: rgba(0, 0, 0, 0.72);
  transform: translate3d(0, 0, 0);
}

.ecd-overlay-ad .ecd-ad__label {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.72);
}

.ecd-overlay-ad > div[id] {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecd-overlay-ad__close {
  position: absolute;
  top: -26px;
  right: 8px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 16px;
  line-height: 26px;
  cursor: pointer;
}

/* Keep the "next article" bar clear of the anchor ad while it is on screen. */
body.has-overlay-ad .sticky-next-bar {
  bottom: 64px;
}

body.has-overlay-ad {
  padding-bottom: 64px;
}

/* ==========================================================================
   Broadsheet & Quality Journal Redesign (Anti-AI Aesthetic)
   ========================================================================== */

/* Header & Masthead */
.newspaper-header {
  border-bottom: 2px solid var(--border);
  background: var(--bg);
}
.newspaper-topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}
.newspaper-masthead {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 18px;
  text-align: center;
}
.newspaper-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.newspaper-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.newspaper-masthead-h1 {
  margin: 0;
  font: inherit;
}

.newspaper-title {
  font-family: "Georgia", "Times New Roman", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}
.newspaper-sub {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 8px;
  letter-spacing: 0.08em;
}
.newspaper-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.newspaper-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-item {
  padding: 12px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-item:hover {
  color: var(--text);
}
.nav-item.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Secondary Club Navigation */
.newspaper-subnav {
  border-top: 1px solid var(--border);
  background: var(--surface2);
}
.newspaper-subnav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
}
.subnav-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  padding: 6px 6px 6px 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.subnav-item {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.subnav-item:hover {
  background: var(--border);
}
.subnav-item.active {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}
.subnav-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--border);
  color: var(--text);
}
.subnav-badge.real {
  background: #1a3a68;
  color: #ffffff;
}
.subnav-badge.barca {
  background: #a50044;
  color: #ffffff;
}

/* Front Page (Portal Layout) */
.portal-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 18px 80px;
}

/* Section Header (Editorial Style) */
.editorial-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--text);
  padding-bottom: 6px;
  margin-bottom: 20px;
}
.editorial-heading-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.editorial-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
}
.editorial-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.editorial-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.editorial-more:hover {
  text-decoration: underline;
}

/* Lead Story (Daily Digest Front Page) */
.lead-story {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  padding: 28px 32px;
  margin-bottom: 40px;
}
.lead-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.edition-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--text);
  color: var(--bg);
  letter-spacing: 0.05em;
  border-radius: 2px;
}
.lead-date {
  font-size: 0.82rem;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}
.lead-headline {
  font-family: "Georgia", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px;
  color: var(--text);
}
.lead-summary-prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 24px;
  max-width: 900px;
}
.lead-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-bottom: 24px;
}
.lead-topic-item {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  display: block;
  color: inherit;
  text-decoration: none;
}
.match-desk-home { margin-bottom: 40px; }
.match-desk-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.match-desk-home-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}
.match-desk-home-when { font-size: 0.75rem; font-weight: 800; color: var(--accent); letter-spacing: 0.06em; }
.match-desk-home-teams { font-size: 0.95rem; font-weight: 700; line-height: 1.4; }
.match-desk-home-cta { font-size: 0.78rem; color: var(--text-sub); }
.lead-topic-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.lead-topic-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 4px 0 6px;
  color: var(--text);
}
.lead-topic-desc {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0;
}
.lead-action-bar {
  display: flex;
  justify-content: flex-end;
}
.lead-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.lead-read-btn:hover {
  opacity: 0.9;
}

/* El Clásico Desk (Real Madrid & FC Barcelona Grid) */
.clasico-desk-wrap {
  margin-bottom: 48px;
}
.clasico-desk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.club-desk-col {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.club-desk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.club-desk-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.club-desk-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}
.club-desk-badge.real {
  background: #1a3a68;
  color: #fff;
}
.club-desk-badge.barca {
  background: #a50044;
  color: #fff;
}
.club-desk-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
.club-desk-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.club-desk-more:hover {
  text-decoration: underline;
}

/* Featured 1st Story in Club Desk */
.club-lead-article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--text);
}
.club-lead-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface2);
}
.club-lead-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.club-lead-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-sub);
}
.club-lead-headline {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  color: var(--text);
  transition: color 0.15s ease;
}
.club-lead-article:hover .club-lead-headline {
  color: var(--accent);
}
.club-lead-summary {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-sub);
  margin: 0;
}

/* Secondary stories in Club Desk */
.club-sub-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.club-sub-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  text-decoration: none;
  color: var(--text);
}
.club-sub-item:last-child {
  border-bottom: none;
}
.club-sub-headline {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  color: var(--text);
  flex: 1;
  transition: color 0.15s ease;
}
.club-sub-item:hover .club-sub-headline {
  color: var(--accent);
}
.club-sub-time {
  font-size: 0.72rem;
  color: var(--text-sub);
  white-space: nowrap;
}
.club-col-footer {
  margin-top: auto;
  padding-top: 12px;
  text-align: right;
}
.club-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.club-all-btn:hover {
  text-decoration: underline;
}

/* Two-Column Middle Section */
.portal-middle-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

/* Insight Cards (Left Column) */
.insight-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.insight-period {
  font-size: 0.76rem;
  color: var(--text-sub);
  margin: 0 0 6px;
  letter-spacing: 0.03em;
}
.insight-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
  color: var(--text);
}
.insight-body {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0 0 14px;
}
.insight-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.insight-link:hover {
  text-decoration: underline;
}

/* Radar List (Right Column) */
.radar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
}
.radar-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
}
.radar-item:last-child {
  border-bottom: none;
}
.radar-item:hover {
  background: var(--surface2);
}
.radar-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.radar-num {
  font-family: "Georgia", serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 22px;
}
.radar-info {
  display: flex;
  flex-direction: column;
}
.radar-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.radar-sub {
  font-size: 0.74rem;
  color: var(--text-sub);
  margin-top: 2px;
}
.radar-mentions {
  text-align: right;
}
.radar-mentions-cnt {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
}
.radar-mentions-lbl {
  font-size: 0.7rem;
  color: var(--text-sub);
  display: block;
}

/* Wire Stories (News Archives / 2 columns) */
.wire-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.wire-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.wire-item:hover {
  border-color: var(--accent);
}
.wire-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-sub);
  margin-bottom: 6px;
}
.wire-tag {
  font-weight: 700;
  color: var(--accent);
}
.wire-headline {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  color: var(--text);
}

@media(max-width: 860px) {
  .portal-wrap {
    padding: 24px 16px 60px;
  }
  .editorial-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "kicker more"
      "title  title";
    row-gap: 4px;
    column-gap: 12px;
    align-items: baseline;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }
  .editorial-heading-main {
    display: contents;
  }
  .editorial-kicker {
    grid-area: kicker;
    margin: 0;
    line-height: 1.3;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }
  .editorial-more {
    grid-area: more;
    line-height: 1.3;
    white-space: nowrap;
    text-align: right;
    font-size: 0.78rem;
  }
  .editorial-title {
    grid-area: title;
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0;
  }
  .lead-story {
    padding: 20px 18px;
    margin-bottom: 28px;
  }
  .clasico-desk-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .portal-middle-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lead-topics-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .wire-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 480px) {
  .editorial-title {
    font-size: 1.08rem;
  }
}

/* ==========================================================================
   Match Desk & Schedule Hub (Broadsheet Quality Design)
   ========================================================================== */

.schedule-lead-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0 0 20px;
}

/* Quick Filter Pills (Horizontal Scroll) */
.schedule-filter-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding: 8px 0 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.schedule-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.schedule-filter-bar::-webkit-scrollbar {
  height: 4px;
}
.schedule-filter-bar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
.schedule-filter-pill {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
}
.schedule-filter-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}
.schedule-filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Date Group Header */
.schedule-date-group {
  margin-bottom: 36px;
}
.schedule-date-header {
  border-bottom: 2px solid var(--text);
  padding-bottom: 6px;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.schedule-date-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.schedule-date-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

/* Match Cards Grid */
.schedule-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Single Match Desk Card */
.match-desk-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 16px 20px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.match-desk-card:hover {
  border-color: rgba(232, 99, 90, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Top Meta Row */
.match-desk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-sub);
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.match-desk-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.match-date-badge {
  font-weight: 800;
  font-size: 0.74rem;
  color: var(--text);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}
.match-comp-pill {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--accent);
}
.match-meta-tag {
  color: var(--text-sub);
  font-weight: 600;
}
.match-desk-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-broadcast-tag {
  border: 1px solid var(--border);
  background: var(--surface2);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-sub);
}
.match-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.match-status-pill.finished {
  background: #1a3a68;
  color: #ffffff;
}
.match-status-pill.scheduled {
  background: var(--surface2);
  color: var(--text-sub);
  border: 1px solid var(--border);
}
.match-status-pill.postponed {
  background: #b91c1c;
  color: #ffffff;
}

/* Main Faceoff Board */
.match-desk-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 8px 0 14px;
}
.match-desk-club {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.match-desk-club.home {
  text-align: right;
}
.match-desk-club.away {
  text-align: left;
}
.match-club-side {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-sub);
}
.match-club-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.35;
}
.match-desk-club.winner .match-club-name {
  font-weight: 800;
  color: var(--text);
}
.match-desk-club:not(.winner):not(.draw) .match-club-name {
  color: var(--text-sub);
}

/* Center Score / Kickoff Box */
.match-desk-score-box {
  text-align: center;
  min-width: 120px;
  padding: 0 8px;
}
.match-score-display {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}
.match-score-display .win {
  color: var(--accent);
}
.match-score-display .score-sep {
  color: var(--text-sub);
  opacity: 0.5;
}
.match-kickoff-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.match-date-display {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.match-time-display {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
}
.match-time-display.provisional {
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.match-score-caption,
.match-time-caption {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  display: block;
  margin-top: 6px;
}

/* Bottom Action Link */
.match-desk-action {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
  text-align: center;
}
.match-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.match-action-btn:hover {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}

/* Match Page Pending Notice */
.match-pending-box {
  margin: 32px 0;
  padding: 28px 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  text-align: center;
}
.match-pending-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.match-pending-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}
.match-pending-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-sub);
  max-width: 620px;
  margin: 0 auto 16px;
}
.match-pending-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

@media(max-width: 640px) {
  .match-desk-card {
    padding: 14px 14px 12px;
  }
  .match-desk-top {
    gap: 6px;
    margin-bottom: 8px;
  }
  .match-date-badge {
    font-size: 0.7rem;
    padding: 1px 6px;
  }
  .match-comp-pill {
    font-size: 0.68rem;
    padding: 1px 6px;
  }
  .match-meta-tag {
    font-size: 0.68rem;
  }
  .match-desk-board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 6px 0 12px;
  }
  .match-club-side {
    font-size: 0.6rem;
  }
  .match-club-name {
    font-size: 0.98rem;
    line-height: 1.3;
  }
  .match-desk-score-box {
    min-width: 84px;
    padding: 0 4px;
  }
  .match-score-display {
    font-size: 1.55rem;
    gap: 6px;
  }
  .match-date-display {
    font-size: 0.8rem;
  }
  .match-time-display {
    font-size: 1.25rem;
  }
  .match-time-display.provisional {
    font-size: 0.98rem;
  }
  .match-score-caption,
  .match-time-caption {
    font-size: 0.6rem;
    margin-top: 4px;
  }
  .match-desk-action {
    padding-top: 8px;
    margin-top: 2px;
  }
  .match-action-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.78rem;
    padding: 6px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
  }
  .match-pending-box {
    padding: 20px 16px;
    margin: 20px 0;
  }
  .match-pending-title {
    font-size: 1.05rem;
  }
  .match-pending-desc {
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   Modern UI polish: card micro-interactions, reading progress, club pills.
   Only transform/opacity are animated (compositor-only, no layout shift).
   ========================================================================== */
.card {
  border-radius: 12px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
}
.card-thumb img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-chip-row .cat-chip,
.card-chip-row .type-chip {
  background: color-mix(in oklab, var(--surface2) 80%, transparent);
  font-weight: 600;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.25);
    border-color: color-mix(in oklab, var(--border) 60%, var(--accent));
  }
  .card:hover .card-thumb img {
    transform: scale(1.04);
  }
}
html.light .card:hover {
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.16);
}

.reading-progress-bar {
  display: none;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .reading-progress-bar {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 3px;
      background: linear-gradient(90deg, var(--accent), var(--accent-light));
      transform-origin: left;
      transform: scaleX(0);
      z-index: 50;
      pointer-events: none;
      animation: reading-scroll linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes reading-scroll {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
  }
}

/* Scroll-in for cards below the first row only, so LCP candidates are never faded. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card-grid > .card:nth-child(n + 4):not(.card-featured) {
      animation: card-appear linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
    @keyframes card-appear {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}

/* Rating score badges by tier (score normalised to a 10-point scale) */
.rating-score.rating-tier-star,
.rating-score.rating-tier-high,
.rating-score.rating-tier-ok,
.rating-score.rating-tier-low {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff;
}
.rating-score.rating-tier-star { background: #0b7a55; }
.rating-score.rating-tier-high { background: #2563c4; }
.rating-score.rating-tier-ok { background: #5b6472; }
.rating-score.rating-tier-low { background: #c2352f; }
.rating-score[class*="rating-tier-"] small { color: rgba(255, 255, 255, 0.85); }

/* Club nav as pills (already a horizontal scroller; hidden scrollbar) */
.newspaper-subnav-inner {
  scrollbar-width: none;
  padding-top: 8px;
  padding-bottom: 8px;
}
.newspaper-subnav-inner::-webkit-scrollbar {
  display: none;
}
.subnav-item {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.subnav-item:hover {
  background: color-mix(in oklab, var(--accent) 10%, var(--surface));
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
}
.subnav-item.active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in oklab, var(--accent) 30%, transparent);
}

.subnav-item.active .subnav-badge {
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
