/*
Theme Name: News Reaction Matome
Theme URI: https://example.com/
Author: News Reaction Matome
Description: WordPress theme for news video reaction summary articles.
Version: 1.4.9
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: news-reaction-matome
*/

:root {
  --bg: #0b0f16;
  --surface: #121824;
  --paper: #ffffff;
  --soft: #eef3f8;
  --line: #d8e1ec;
  --text: #111827;
  --muted: #667085;
  --red: #ef3f45;
  --blue: #2aa7ff;
  --radius: 8px;
  --shadow: 0 14px 32px rgba(15, 23, 42, .13);
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: #eaf0f7;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img, iframe { max-width: 100%; }
img { display: block; height: auto; }

.site-header {
  background: var(--bg);
  color: #fff;
  border-bottom: 4px solid var(--red);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), #172033 55%, var(--blue));
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.16);
}
.brand-text {
  display: grid;
  gap: 2px;
}
.brand-title {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
.brand-subtitle {
  color: #9fb0c8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.site-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #dce6f7;
  font-size: 13px;
  font-weight: 800;
}

.site-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}
.breadcrumbs a {
  color: #2563eb;
}
.breadcrumb-separator {
  color: #94a3b8;
}
.archive-intro {
  margin: -4px 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  background: #fff;
  color: #475467;
  box-shadow: var(--shadow);
}
.archive-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 700;
}
.top-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: none;
}
.top-chip-row::-webkit-scrollbar { display: none; }
.top-chip-row a,
.sidebar-tags a {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #1b2433;
  font-size: 13px;
  font-weight: 850;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.main-column { min-width: 0; }
.sidebar {
  display: grid;
  gap: 16px;
}
.sidebar-box,
.page-card,
.related-box,
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sidebar-box { padding: 18px; }
.sidebar-box h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.35;
}
.sidebar-list {
  display: grid;
  gap: 12px;
}
.sidebar-link {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.sidebar-link img,
.sidebar-link .thumb-placeholder {
  width: 92px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
  background: #101827;
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.latest-head { margin-top: 26px; }
.section-label {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}
.section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 900;
}
.slider-controls {
  display: flex;
  gap: 8px;
}
.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #111827;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.featured-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 42%);
  gap: 16px;
  overflow-x: auto;
  padding: 0 0 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.featured-grid::-webkit-scrollbar { display: none; }
.featured-card {
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--radius);
  background: #101827;
  box-shadow: var(--shadow);
}
.featured-card a {
  display: block;
  position: relative;
  min-height: 250px;
}
.featured-card .thumb-wrap {
  height: 250px;
}
.featured-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 76px 18px 18px;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.35;
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0,0,0,.65);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.84));
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.article-card a { display: block; height: 100%; }
.article-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.article-list-item {
  border-bottom: 1px solid var(--line);
}
.article-list-item:last-child {
  border-bottom: 0;
}
.article-list-item a {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  align-items: center;
}
.article-list-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #101827;
  aspect-ratio: 16 / 9;
}
.article-list-thumb img,
.article-list-thumb .thumb-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.article-list-thumb .news-badge-row {
  top: 9px;
  left: 9px;
  right: 9px;
}
.article-list-thumb .news-badge {
  height: 24px;
  padding: 0 9px;
  font-size: 12px;
}
.article-list-thumb .news-badge-row,
.related-list-thumb .news-badge-row {
  display: none;
}
.article-list-body {
  min-width: 0;
}
.article-list-title {
  margin: 0;
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-list-excerpt {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thumb-wrap {
  position: relative;
  overflow: hidden;
  background: #101827;
}
.thumb-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.thumb-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(135deg, #111827, #26364c);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.news-badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.news-badge,
.cat-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  background: #26364c;
}
.cat-pill { min-height: 24px; font-size: 11px; }
.tag-pill {
  background: #eef3fb;
  color: #334155;
}
.term-domestic { background: #ef3f45 !important; color: #fff !important; }
.term-world { background: #2563eb !important; color: #fff !important; }
.term-economy { background: #0f766e !important; color: #fff !important; }
.term-it { background: #7c3aed !important; color: #fff !important; }
.term-business { background: #ea580c !important; color: #fff !important; }
.term-transport { background: #0284c7 !important; color: #fff !important; }
.term-entertainment { background: #db2777 !important; color: #fff !important; }
.term-sports { background: #16a34a !important; color: #fff !important; }
.term-topic { background: #334155 !important; color: #fff !important; }

.card-body {
  padding: 14px 16px 16px;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}
.card-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.42;
  font-weight: 900;
}
.card-excerpt {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.page-card {
  padding: 26px;
}
.entry-header {
  margin-bottom: 20px;
}
.entry-title {
  margin: 10px 0 10px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.25;
  font-weight: 900;
}
.entry-meta {
  color: var(--muted);
  font-size: 13px;
}
.entry-image {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #101827;
}
.entry-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.entry-content {
  font-size: 17px;
  line-height: 1.95;
}
.entry-content h2,
.entry-content h3 {
  margin: 42px 0 18px;
  padding: 0 0 12px 18px;
  border-bottom: 3px solid #111827;
  border-left: 7px solid var(--red);
  font-size: clamp(25px, 2.6vw, 36px);
  line-height: 1.35;
  font-weight: 900;
}
.entry-content p { margin: 0 0 1.25em; }
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
}
.entry-content blockquote {
  margin: 8px 0 !important;
  padding: 9px 14px !important;
  min-height: 0 !important;
  border-left: 5px solid var(--red) !important;
  background: #f6f8fb !important;
  color: #1f2937 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
  overflow-wrap: anywhere;
}
.entry-content blockquote.is-highlight {
  border-left-color: #f59e0b !important;
  background: #fff7ed !important;
  color: #111827 !important;
  font-weight: 750 !important;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.22) !important;
}
.entry-content blockquote strong {
  color: #dc2626;
  font-weight: 900;
}
.entry-content blockquote p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}
.entry-content img.thread-source-image {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 12px 0 1.35em;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
}
.entry-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
  background: #111827;
}

.related-box {
  margin-top: 24px;
  padding: 22px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.related-list {
  display: grid;
  width: 100%;
  min-width: 0;
}
.related-list-item {
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.related-list-item:last-child {
  border-bottom: 0;
}
.related-list-item a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.related-list-thumb {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #101827;
  aspect-ratio: 16 / 9;
}
.related-list-thumb img,
.related-list-thumb .thumb-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.related-list-thumb .news-badge-row {
  top: 9px;
  left: 9px;
  right: 9px;
}
.related-list-thumb .news-badge {
  height: 24px;
  padding: 0 9px;
  font-size: 12px;
}
.related-list-body {
  min-width: 0;
  overflow: hidden;
}
.related-list-title {
  margin: 0;
  font-size: clamp(17px, 1.65vw, 22px);
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.related-list-excerpt {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.related-article-list {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.related-article-list .article-list-item a {
  padding-right: 0;
  padding-left: 0;
}

.entry-content > p:first-child {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 5px solid var(--red);
  background: #f6f8fb;
  color: var(--text);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.75;
  font-weight: 800;
}
.inline-next-read {
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}
.inline-next-read-label {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}
.inline-next-read-list .article-list-item a {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  align-items: center;
}
.entry-content .inline-next-read .article-list-title,
.entry-content .inline-next-read h2.article-list-title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.4;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.entry-content .inline-next-read .article-list-title::before,
.entry-content .inline-next-read .article-list-title::after,
.entry-content .inline-next-read h2.article-list-title::before,
.entry-content .inline-next-read h2.article-list-title::after {
  display: none !important;
  content: none !important;
}
.entry-content .inline-next-read .article-list-excerpt {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
  -webkit-line-clamp: 1;
}
.entry-content .inline-next-read .card-meta {
  margin: 0 0 6px;
  gap: 6px;
}
.entry-content .inline-next-read .article-list-thumb {
  width: auto;
  max-width: 100%;
}
.entry-content .inline-next-read img {
  margin: 0;
  border-radius: inherit;
}

.daily-popular-lead {
  padding: 14px 16px;
  border-left: 5px solid var(--red);
  background: #f6f8fb;
  font-weight: 700;
}
.daily-popular-list {
  margin-top: 18px;
}
.daily-popular-item a {
  grid-template-columns: 42px minmax(150px, 220px) minmax(0, 1fr);
}
.daily-popular-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
}
.daily-popular-views {
  background: #fff1f2;
  color: #e11d48;
}

.article-list-item.is-read-hidden {
  display: none;
}

.category-more-box {
  margin-top: 24px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.category-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.category-more-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
}
.category-more-links a:hover {
  transform: translateY(-1px);
}
.x-follow-wrap {
  margin-top: 24px;
  padding: 0;
  overflow: hidden;
}
.x-follow-wrap .x-follow-card {
  margin: 0;
  border-radius: var(--radius);
}

.pagination {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  min-width: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  font-weight: 800;
}
.pagination .current {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.empty-state {
  padding: 28px;
}

.x-follow-card {
  margin: 30px 0 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(239, 63, 69, .26);
  background:
    linear-gradient(135deg, rgba(239, 63, 69, .12), rgba(42, 167, 255, .08)),
    #0f1724;
  color: #fff;
  box-shadow: var(--shadow);
}
.x-follow-card-compact {
  margin: 0 0 18px;
  padding: 16px 18px;
}
.x-follow-copy {
  min-width: 0;
}
.x-follow-kicker {
  margin: 0 0 4px;
  color: #ff6b70;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}
.x-follow-title {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 900;
}
.x-follow-card p {
  margin: 6px 0 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 700;
}
.x-follow-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #0f1724;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .18);
}
.x-follow-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.x-share-button {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
}

.site-footer {
  background: var(--bg);
  color: #cbd5e1;
  border-top: 4px solid var(--red);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px;
}
.footer-brand {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-nav {
    width: 100%;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .featured-grid {
    grid-auto-columns: minmax(280px, 86%);
  }
  .article-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-list-item a {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    align-items: start;
  }
  .article-list-title {
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }
  .article-list-body .card-meta {
    gap: 4px;
    margin-bottom: 4px;
  }
  .article-list-body .cat-pill,
  .article-list-body .tag-pill {
    min-height: 18px;
    padding: 1px 6px;
    font-size: 9px;
    line-height: 1.15;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .article-list-excerpt {
    display: -webkit-box;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
    -webkit-line-clamp: 1;
  }
  .article-list-thumb .news-badge-row {
    top: 7px;
    left: 7px;
    right: 7px;
  }
  .article-list-thumb .news-badge {
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }
  .related-list-item a {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    align-items: start;
  }
  .related-list-title {
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }
  .related-list-excerpt {
    display: -webkit-box;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
    -webkit-line-clamp: 1;
  }
  .related-list-thumb .news-badge-row {
    top: 7px;
    left: 7px;
    right: 7px;
  }
  .related-list-thumb .news-badge {
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }
  .x-follow-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .x-follow-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }
  .site-shell {
    padding: 14px 10px 30px;
  }
  .header-inner {
    padding: 16px 18px;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
  .brand-title {
    font-size: 23px;
  }
  .brand-subtitle {
    font-size: 9px;
  }
  .site-nav a,
  .top-chip-row a {
    font-size: 12px;
    padding: 7px 10px;
  }
  .section-head {
    align-items: flex-end;
  }
  .section-title {
    font-size: 29px;
  }
  .slider-btn {
    width: 42px;
    height: 42px;
  }
  .featured-card a,
  .featured-card .thumb-wrap {
    min-height: 210px;
    height: 210px;
  }
  .featured-title {
    font-size: 22px;
    padding: 66px 14px 14px;
  }
  .page-card {
    padding: 16px 12px;
  }
  .entry-title {
    font-size: 30px;
  }
  .entry-content {
    font-size: 16px;
    line-height: 1.9;
  }
  .entry-content h2,
  .entry-content h3 {
    font-size: 25px;
    margin-top: 34px;
  }
}

/* v1.0.1: restore PV-style header and featured slider for the news site. */
.header-inner {
  justify-content: flex-start;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  position: relative;
  padding: 4px 0 10px;
}
.brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 49%, var(--blue) 49% 100%);
}
.brand-word {
  color: #fff;
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  white-space: nowrap;
}
.brand-video-mark {
  width: clamp(54px, 5.4vw, 78px);
  aspect-ratio: 1.42 / 1;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f51f2a;
  box-shadow: 0 10px 22px rgba(239, 63, 69, .22), inset 0 0 0 1px rgba(255,255,255,.14);
  transform: skewX(-4deg);
}
.brand-video-mark span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: clamp(9px, 1vw, 13px) solid transparent;
  border-bottom: clamp(9px, 1vw, 13px) solid transparent;
  border-left: clamp(15px, 1.6vw, 22px) solid #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.22));
}
.brand-mark,
.brand-text,
.site-nav {
  display: none !important;
}

.featured-grid {
  display: flex !important;
  grid-auto-flow: unset;
  grid-auto-columns: unset;
  gap: 18px;
  margin-bottom: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 2px 6px;
}
.featured-grid::-webkit-scrollbar {
  display: none;
}
.featured-card {
  flex: 0 0 min(380px, 42vw);
  height: 250px;
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101827;
  box-shadow: var(--shadow);
}
.featured-card a {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.featured-card .thumb-wrap {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.featured-card .thumb-wrap img,
.featured-card .thumb-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
.featured-card .thumb-wrap::after,
.article-card .thumb-wrap::after {
  content: "";
  position: absolute;
  inset: 44% 0 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.82));
}
.featured-card .news-badge-row {
  top: 14px;
  left: 14px;
  right: 14px;
  max-width: calc(100% - 28px);
  flex-wrap: wrap;
  z-index: 3;
}
.featured-card .news-badge {
  min-height: 30px;
  padding: 7px 12px;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.featured-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 82px 18px 16px;
  color: #fff;
  font-size: clamp(22px, 2.1vw, 31px);
  line-height: 1.32;
  font-weight: 900;
  text-shadow: 0 3px 12px rgba(0,0,0,.7);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.88));
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: center;
    flex-direction: row;
  }
  .featured-card {
    flex-basis: min(360px, 78vw);
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 18px 18px;
  }
  .brand {
    gap: 7px;
  }
  .brand-word {
    font-size: clamp(24px, 9vw, 34px);
  }
  .brand-video-mark {
    width: clamp(44px, 15vw, 58px);
    border-radius: 9px;
  }
  .featured-card {
    flex-basis: 82vw;
    height: 210px;
  }
  .featured-title {
    font-size: 22px;
    padding: 66px 14px 14px;
  }
  .related-box {
    margin-top: 14px;
    padding: 12px 10px;
  }
  .related-box .section-head {
    margin-bottom: 10px;
  }
  .related-box .section-label {
    font-size: 11px;
    line-height: 1.1;
  }
  .related-box .section-title {
    font-size: 22px;
    line-height: 1.15;
  }
  .related-list-item a {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 0;
  }
  .related-list-thumb {
    border-radius: 7px;
  }
  .related-list-thumb .news-badge-row {
    top: 5px;
    left: 5px;
    right: 5px;
    gap: 4px;
  }
  .related-list-thumb .news-badge {
    height: 18px;
    padding: 0 6px;
    font-size: 9px;
    border-radius: 999px;
  }
  .related-list-body .card-meta {
    gap: 4px;
    margin-bottom: 3px;
  }
  .related-list-body .cat-pill,
  .related-list-body .tag-pill {
    min-height: 17px;
    padding: 0 6px;
    font-size: 8px;
  }
  .related-list-title {
    font-size: 11.5px;
    line-height: 1.28;
    -webkit-line-clamp: 2;
  }
  .related-list-excerpt {
    margin-top: 2px;
    font-size: 9.5px;
    line-height: 1.3;
    -webkit-line-clamp: 1;
  }
}

/* v1.2.4: keep related article rows dense and inside the content width. */
.related-box,
.related-list,
.related-list-item,
.related-list-item a,
.related-list-body {
  max-width: 100%;
}

.related-list-item a {
  overflow: hidden;
}

.related-list-title,
.related-list-excerpt {
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

@media (min-width: 901px) {
  .related-list-item a {
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .related-box {
    padding: 18px 14px;
  }
  .category-more-box {
    margin-top: 14px;
    padding: 14px;
  }
  .category-more-links {
    gap: 7px;
  }
  .category-more-links a {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .x-follow-wrap {
    margin-top: 14px;
  }
  .x-follow-actions {
    width: 100%;
    justify-content: stretch;
  }
  .x-follow-actions .x-follow-button {
    flex: 1 1 120px;
  }
  .related-list-item a {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
  }
  .daily-popular-lead {
    margin-bottom: 10px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.55;
  }
  .daily-popular-item a {
    grid-template-columns: 28px 96px minmax(0, 1fr);
    gap: 7px;
  }
  .daily-popular-rank {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .related-list-title {
    font-size: 11px;
    line-height: 1.25;
  }
  .related-list-excerpt {
    font-size: 9px;
    line-height: 1.25;
  }
  .entry-content > p:first-child {
    margin-bottom: 16px;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.65;
  }
  .inline-next-read {
    margin: 16px 0;
    padding: 10px;
  }
  .inline-next-read-list .article-list-item a {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
    padding: 0;
  }
  .entry-content .inline-next-read .article-list-title,
  .entry-content .inline-next-read h2.article-list-title {
    font-size: 11px;
    line-height: 1.3;
  }
  .entry-content .inline-next-read .article-list-excerpt {
    font-size: 9px;
    line-height: 1.3;
  }
}
