:root {
  --bg: #eef1f4;
  --paper: #ffffff;
  --paper-soft: #f7f8fa;
  --ink: #121417;
  --muted: #66717d;
  --line: #d7dde4;
  --line-strong: #b8c2cc;
  --red: #e33d3d;
  --blue: #245cc9;
  --cyan: #0c9da8;
  --green: #178c59;
  --yellow: #f3c64e;
  --shadow: 0 16px 42px rgba(35, 48, 63, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

a:hover {
  color: var(--blue);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(260px, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 1480px;
  min-height: 74px;
  margin: 0 auto;
  padding: 12px 28px;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.brand-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  font-size: 1.35rem;
  font-weight: 950;
}

.brand-text {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-text strong {
  font-size: 1.35rem;
  letter-spacing: 0;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.global-search {
  display: grid;
  grid-template-columns: 1fr 42px;
  max-width: 700px;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
}

.global-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 15px;
  background: transparent;
  color: var(--ink);
}

.global-search button {
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font-size: 1.1rem;
  font-weight: 900;
}

.header-actions {
  display: inline-flex;
  gap: 6px;
}

.lang-button {
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 900;
}

.lang-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.portal-nav {
  border-top: 1px solid var(--line);
  background: #18202a;
  color: var(--paper);
}

.portal-nav-inner {
  display: flex;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 28px;
  overflow-x: auto;
}

.portal-nav a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 850;
}

.portal-nav a:first-child {
  border-left: 0;
}

.portal-nav a.is-active,
.portal-nav a:hover {
  background: var(--red);
  color: var(--paper);
}

.page-shell {
  display: grid;
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 28px 34px;
}

.portal-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.status-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.status-item:last-child {
  border-right: 0;
}

.status-item span,
.section-kicker {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-item strong {
  overflow: hidden;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(480px, 1.35fr) minmax(300px, 0.72fr) minmax(260px, 0.58fr);
  gap: 16px;
}

.lead-card,
.headline-panel,
.portal-section,
.side-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.lead-card {
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(280px, 1.1fr);
  min-height: 390px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.placeholder-thumb {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(227, 61, 61, 0.12), transparent 38%),
    linear-gradient(45deg, rgba(36, 92, 201, 0.18), transparent 42%),
    #dfe7ef;
}

.placeholder-thumb::before {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(18, 20, 23, 0.28);
  border-radius: 6px;
  content: "";
}

.placeholder-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-thumb.has-image::before {
  inset: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(18, 20, 23, 0.04), rgba(18, 20, 23, 0.68));
}

.placeholder-thumb span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  text-align: center;
}

.placeholder-thumb strong {
  font-size: 1.75rem;
}

.placeholder-thumb small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.placeholder-thumb.has-image span {
  align-self: end;
  width: 100%;
  padding: 14px;
  color: var(--paper);
  text-shadow: 0 1px 2px rgba(18, 20, 23, 0.55);
}

.placeholder-thumb.has-image small {
  color: rgba(255, 255, 255, 0.82);
}

.lead-body {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 28px;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-soft);
  color: #36414c;
  font-size: 0.74rem;
  font-weight: 900;
}

.tag.hot {
  border-color: rgba(227, 61, 61, 0.28);
  background: rgba(227, 61, 61, 0.1);
  color: #a32121;
}

.tag.blue {
  border-color: rgba(36, 92, 201, 0.28);
  background: rgba(36, 92, 201, 0.1);
  color: var(--blue);
}

.lead-body h1 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.lead-body p {
  margin: 0;
  color: #47515b;
  font-size: 1.03rem;
  line-height: 1.55;
}

.lead-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.lead-stats div {
  display: grid;
  gap: 2px;
  padding: 12px 0 0;
}

.lead-stats strong {
  font-size: 1.18rem;
}

.lead-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.headline-panel,
.archive-panel,
.side-box {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.panel-title,
.section-title {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
}

.panel-title span,
.section-title h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 950;
}

.panel-title a,
.section-title a {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.rank-list,
.site-map-feed {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li,
.site-map-feed li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.rank-list li:last-child,
.site-map-feed li:last-child {
  border-bottom: 0;
}

.rank-number {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 950;
}

.rank-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-title strong {
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-title span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.archive-shortcuts {
  display: grid;
  gap: 8px;
}

.archive-link {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-soft);
}

.archive-link strong {
  font-size: 0.95rem;
}

.archive-link span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
}

.main-column,
.side-column {
  display: grid;
  gap: 16px;
}

.portal-section {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.section-title h2 {
  font-size: 1.35rem;
}

.section-title div {
  display: grid;
  gap: 3px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.category-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.category-card .placeholder-thumb {
  min-height: 130px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.category-card-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.category-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.28;
}

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

.mini-list li {
  display: grid;
  gap: 2px;
  padding-left: 10px;
  border-left: 3px solid var(--line-strong);
}

.mini-list strong {
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-list span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.weekly-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.weekly-feature {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.weekly-feature .placeholder-thumb {
  min-height: 210px;
}

.weekly-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
}

.weekly-copy h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.weekly-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.weekly-list {
  display: grid;
  gap: 9px;
}

.weekly-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  min-height: 78px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.weekly-item .placeholder-thumb {
  min-height: 58px;
}

.weekly-item h4 {
  margin: 0 0 6px;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-item span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

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

.heat-card {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.heat-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heat-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.heat-card header span {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
}

.heat-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.heat-card li {
  color: #26313d;
  font-size: 0.86rem;
  line-height: 1.32;
}

.queue-list {
  display: grid;
  gap: 9px;
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.queue-item strong {
  font-size: 0.88rem;
}

.queue-item span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.queue-score {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--paper);
  font-weight: 950;
}

.score-stack {
  display: grid;
  gap: 12px;
}

.score-stack div {
  display: grid;
  gap: 7px;
}

.score-stack span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

meter {
  width: 100%;
  height: 10px;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 99px;
  background: #e2e8ef;
}

meter::-webkit-meter-optimum-value {
  border-radius: 99px;
  background: var(--cyan);
}

.footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 28px 34px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.archive-search {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.search-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(260px, 0.58fr);
  gap: 18px;
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.search-intro h2 {
  margin: 3px 0 0;
  font-size: 1.45rem;
  line-height: 1.16;
}

.search-intro p {
  margin: 0;
  color: #4d5863;
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.period-card {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 92, 201, 0.1), transparent 42%),
    var(--paper-soft);
}

.period-card.retrospective {
  background:
    linear-gradient(135deg, rgba(227, 61, 61, 0.1), transparent 42%),
    var(--paper-soft);
}

.period-card header {
  display: grid;
  gap: 4px;
}

.period-card header strong {
  font-size: 1.02rem;
}

.period-card header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

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

.field-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #4a5662;
  font-size: 0.74rem;
  font-weight: 900;
}

.field-grid select,
.field-grid input {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 10px;
  font-size: 0.84rem;
}

.search-button,
.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 950;
}

.search-button:hover,
.detail-link:hover {
  color: var(--paper);
}

.search-button.muted {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.search-button.muted:hover {
  color: var(--blue);
}

.period-preview-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.period-preview-row article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.period-preview-row span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.period-preview-row strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
}

.sub-hero-main,
.sub-hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.sub-hero-main {
  display: grid;
  gap: 18px;
  padding: 28px;
  background:
    linear-gradient(110deg, rgba(243, 198, 78, 0.22), transparent 36%),
    linear-gradient(150deg, rgba(36, 92, 201, 0.12), transparent 48%),
    var(--paper);
  box-shadow: var(--shadow);
}

.sub-hero-main h1 {
  max-width: 860px;
  margin: 0;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.sub-hero-main p {
  max-width: 760px;
  margin: 0;
  color: #45505b;
  font-size: 1.05rem;
  line-height: 1.55;
}

.sub-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  border-top: 1px solid var(--line);
}

.sub-hero-stats div {
  display: grid;
  gap: 3px;
  padding: 13px 18px 0 0;
}

.sub-hero-stats strong {
  font-size: 1.45rem;
}

.sub-hero-stats span,
.pulse-grid span,
.ranking-metrics span,
.video-card span,
.creator-watch span,
.archive-timeline span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.sub-hero-panel {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 16px;
}

.pulse-grid {
  display: grid;
  gap: 9px;
}

.pulse-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.pulse-grid strong {
  font-size: 1rem;
}

.filter-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
  color: #303b46;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.filter-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.sub-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
  align-items: start;
}

.category-search {
  background:
    linear-gradient(110deg, rgba(243, 198, 78, 0.16), transparent 38%),
    var(--paper);
}

.ranking-table {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 48px 150px minmax(0, 1fr) 104px;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.ranking-row.featured {
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 48, 63, 0.1);
}

.ranking-row .placeholder-thumb {
  min-height: 92px;
  border: 0;
  border-radius: 8px;
}

.ranking-row .placeholder-thumb::before {
  inset: 11px;
}

.ranking-row .placeholder-thumb strong {
  font-size: 1.2rem;
}

.big-rank {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 950;
}

.ranking-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ranking-copy h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.24;
}

.ranking-copy p {
  margin: 0;
  color: #515c67;
  font-size: 0.88rem;
  line-height: 1.42;
}

.ranking-metrics {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.ranking-metrics strong {
  font-size: 1rem;
}

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

.analysis-card,
.video-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.analysis-card {
  padding: 14px;
}

.analysis-card strong {
  font-size: 1rem;
}

.analysis-card p {
  margin: 0;
  color: #4d5863;
  font-size: 0.88rem;
  line-height: 1.45;
}

.video-card {
  overflow: hidden;
}

.video-card .placeholder-thumb {
  min-height: 130px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.video-card h3 {
  margin: 0;
  padding: 0 12px;
  font-size: 0.98rem;
  line-height: 1.3;
}

.video-card span {
  padding: 0 12px 12px;
}

.archive-timeline,
.creator-watch {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive-timeline a,
.creator-watch li {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.creator-watch strong,
.archive-timeline strong {
  font-size: 0.92rem;
}

.detail-head {
  display: grid;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(227, 61, 61, 0.12), transparent 38%),
    linear-gradient(150deg, rgba(36, 92, 201, 0.14), transparent 48%),
    var(--paper);
  box-shadow: var(--shadow);
}

.detail-head > div {
  display: grid;
  gap: 14px;
  max-width: 980px;
}

.detail-head h1 {
  margin: 0;
  font-size: 2.65rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.detail-head p {
  margin: 0;
  color: #45505b;
  font-size: 1.02rem;
  line-height: 1.52;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
  align-items: start;
}

.video-player-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.embed-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #080b10;
  aspect-ratio: 16 / 9;
}

.embed-frame iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(36, 92, 201, 0.32), transparent 42%),
    linear-gradient(35deg, rgba(227, 61, 61, 0.28), transparent 46%),
    rgba(8, 11, 16, 0.92);
  color: var(--paper);
  text-align: center;
  pointer-events: none;
}

.embed-placeholder strong {
  font-size: 1.4rem;
}

.embed-placeholder span {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.4;
}

.embed-note {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.embed-note strong {
  font-size: 0.92rem;
}

.embed-note span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.original-strip {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.original-strip span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.original-strip strong {
  font-size: 1rem;
}

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

.locale-column {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.locale-column header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.locale-column header strong {
  font-size: 0.96rem;
}

.locale-column header span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
}

.locale-column h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.locale-column p {
  margin: 0;
  color: #4d5863;
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.appearance-table {
  display: grid;
  gap: 8px;
}

.appearance-table article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.appearance-table span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

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

.snapshot-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-soft);
}

.snapshot-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.snapshot-grid strong {
  font-size: 0.95rem;
}

.score-card {
  justify-items: stretch;
}

.score-number {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 2.15rem;
  font-weight: 950;
}

@media (max-width: 1200px) {
  .lead-grid,
  .portal-layout,
  .sub-hero,
  .sub-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .headline-panel.archive-panel {
    display: none;
  }

  .side-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .global-search {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }

  .portal-status,
  .category-grid,
  .comment-heat,
  .side-column,
  .analysis-grid,
  .sub-card-grid,
  .period-mode-grid,
  .period-preview-row,
  .context-grid,
  .locale-package,
  .snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-intro {
    grid-template-columns: 1fr;
  }

  .lead-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .portal-nav-inner,
  .page-shell,
  .footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .portal-status,
  .lead-card,
  .category-grid,
  .weekly-board,
  .weekly-feature,
  .comment-heat,
  .side-column {
    grid-template-columns: 1fr;
  }

  .status-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-item:last-child {
    border-bottom: 0;
  }

  .lead-body {
    padding: 20px;
  }

  .lead-body h1 {
    font-size: 2rem;
  }

  .sub-hero-main {
    padding: 20px;
  }

  .sub-hero-main h1 {
    font-size: 2.15rem;
  }

  .sub-hero-stats,
  .ranking-row,
  .analysis-grid,
  .sub-card-grid,
  .period-mode-grid,
  .period-preview-row,
  .field-grid,
  .context-grid,
  .locale-package,
  .appearance-table article,
  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .detail-head {
    padding: 20px;
  }

  .detail-head h1 {
    font-size: 2rem;
  }

  .ranking-metrics {
    justify-items: start;
  }

  .lead-stats {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
