:root {
  --bg: #f4f5f7;
  --bg-elevated: #f8f9fb;
  --surface: #ffffff;
  --border: #e6e8ec;
  --border-strong: #d6d9e0;
  --text: #16181d;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-fg: #3730a3;
  --growth: #0f766e;
  --growth-bg: #f0fdfa;
  --down: #9a3412;
  --down-bg: #fff7ed;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --header-h: 64px;
  --max: 1180px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

[data-theme="dark"] {
  --bg: #0f1115;
  --bg-elevated: #14171d;
  --surface: #181b21;
  --border: #2a2e37;
  --border-strong: #3a3f4b;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-soft: #1e1b4b;
  --accent-fg: #c7d2fe;
  --growth: #5eead4;
  --growth-bg: #042f2e;
  --down: #fdba74;
  --down-bg: #431407;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--bg);
}

.header-nav a[aria-current="page"] {
  font-weight: 650;
}

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

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
}

.icon-btn:hover,
.theme-toggle:hover {
  border-color: var(--border-strong);
  background: var(--bg);
}

.theme-toggle {
  height: 38px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
}

.theme-toggle span.active {
  color: var(--text);
  font-weight: 650;
}

html:not(.is-admin-theme) .theme-toggle,
html:not(.is-admin-theme) .mobile-nav-theme {
  display: none !important;
}

.menu-btn {
  display: none;
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero {
  margin-bottom: 20px;
}

.hero-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.stat-card,
.panel,
.channel-card,
.rising-card,
.video-card,
.hot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 16px 18px;
}

.stat-card dt {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.stat-card dd {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
}

.filter-tab[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-fg);
  font-weight: 700;
}

.video-leaning-bar .filter-tab {
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  border-color: var(--border-strong);
}

.video-leaning-bar .filter-tab:hover {
  background: var(--bg-elevated);
  border-color: var(--text-soft);
}

.video-leaning-bar .filter-tab[aria-selected="true"] {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-fg);
  font-weight: 700;
}

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

.ranking {
  min-width: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rankings-head-copy {
  min-width: 0;
}

.today-scope-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.today-scope-bar[hidden] {
  display: none;
}

.today-scope-bar .filter-tab {
  padding: 5px 10px;
  font-size: 12px;
}

.section-head h2,
.rising-panel h2,
.videos h2,
.hot h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.sort-select {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 140px;
  color: var(--text);
}

.channel-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

a.channel-card,
a.rising-card,
a.hot-card,
a.video-card,
a.mini-rank-row {
  color: inherit;
  cursor: pointer;
}

a.channel-card:hover,
a.rising-card:hover {
  border-color: var(--border-strong);
}

.channel-card {
  padding: 19px 20px 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.channel-card__top {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: start;
}

.channel-card .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.channel-card .identity h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.channel-card .badge {
  font-size: 13px;
}

.metrics {
  display: grid;
  grid-template-columns: 0.8fr 1.05fr 1.15fr;
  gap: 8px 10px;
  margin-left: calc(36px + 12px);
}

.channel-card .metric {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 4px;
}

.channel-card .metric dt {
  font-size: 13px;
  color: #A7ADBA;
}

.channel-card .metric dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #F3F4F6;
}

[data-theme="light"] .channel-card .metric dt {
  color: #6b7280;
}

[data-theme="light"] .channel-card .metric dd {
  color: var(--text);
}

.channel-card .rank {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
}

.growth-corner {
  margin: 0;
  text-align: right;
}

.growth-corner dt {
  font-size: 12px;
  color: var(--text-soft);
}

.growth-corner dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--border);
}

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

.identity-text {
  min-width: 0;
}

.identity h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.badge {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
}

.metric dt {
  margin: 0;
  font-size: 11px;
  color: var(--text-soft);
}

.metric dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 650;
}

.growth.up {
  color: var(--growth);
}

.growth.down {
  color: var(--down);
}

.rising-panel {
  position: sticky;
  top: 84px;
}

.rising-panel h2 {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.rising-head-hint {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0;
}

.rising-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rising-card {
  padding: 14px 14px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(84px, auto);
  align-items: center;
  gap: 10px;
}

.rising-rank {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
}

.rising-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rising-text {
  min-width: 0;
}

.rising-text h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rising-name .avatar {
  width: 52px;
  height: 52px;
}

.rising-text .badge {
  white-space: nowrap;
}

.rising-growth {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 84px;
  white-space: nowrap;
}

.rising-growth-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--growth);
  background: var(--growth-bg);
  border-radius: 999px;
  padding: 5px 9px;
}

.rising-growth-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(90, 96, 108, 0.88);
}

[data-theme="dark"] .rising-growth-label {
  color: rgba(220, 225, 235, 0.74);
}

.rising-more {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.rising-more::after {
  content: " ⌄";
  font-size: 12px;
}

.rising-more:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.ranking-more {
  display: none;
}

.issue-strip {
  margin-bottom: 20px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.issue-strip-head {
  align-items: flex-end;
}

.issue-strip-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.issue-board {
  display: grid;
  gap: 10px;
  align-items: stretch;
  grid-template-columns: 1fr;
}

.issue-card {
  position: relative;
  display: block;
  min-width: 0;
  height: 170px;
  overflow: hidden;
  border: var(--card-border-width, 1.5px) solid var(--card-border, #4a5160);
  border-radius: var(--radius);
  background-color: #12141a;
  color: #f3f4f6;
}

.issue-card-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.001);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.issue-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 10, 14, 0.99) 0%,
    rgba(8, 10, 14, 0.98) 20%,
    rgba(8, 10, 14, 0.94) 34%,
    rgba(8, 10, 14, 0.84) 46%,
    rgba(8, 10, 14, 0.66) 58%,
    rgba(8, 10, 14, 0.44) 70%,
    rgba(8, 10, 14, 0.22) 84%,
    rgba(8, 10, 14, 0.12) 100%
  );
}

.issue-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-width: none;
  padding: 12px 14px 10px;
}

.issue-card-eyebrow {
  margin-bottom: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(243, 244, 246, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.45);
}

.issue-card-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.45);
}

.issue-card-meta,
.issue-card-videos,
.issue-card-leanings {
  display: block;
  color: rgba(243, 244, 246, 0.86);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.45);
}

.issue-card-videos {
  margin-top: 2px;
  color: rgba(243, 244, 246, 0.80);
}

.issue-card-leanings {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(243, 244, 246, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.issue-card-num {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.issue-card:hover {
  border-color: var(--card-border-hover, #6d7586);
}

.home-page {
  --card-border: #4a5160;
  --card-border-hover: #6d7586;
  --card-border-width: 1.5px;
}

.home-page .hot-card,
.home-page .stat-card,
.home-page .home-main .video-card,
.home-ranking .mini-rank-block,
.home-page .videos-more-note,
.home-page .issues-more-note {
  border-width: var(--card-border-width);
  border-style: solid;
  border-color: var(--card-border);
}

[data-theme="light"] .home-page .hot-card,
[data-theme="light"] .home-page .stat-card {
  border-color: var(--card-border);
}

.issue-card.has-media:hover .issue-card-photo {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.issue-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.issue-hero p {
  max-width: 34em;
}

.issue-nav,
.issue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-page .issue-nav,
.catalog-page .issue-tags {
  margin-bottom: 18px;
}

.issue-nav .empty,
.issue-tags .empty,
.issue-board .empty {
  margin: 0;
  width: 100%;
}

.issue-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.issue-tag:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.issue-tag[aria-current="page"] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  font-weight: 700;
}

.issue-tag-title {
  color: var(--text);
}

.issue-tag-meta {
  color: var(--text-muted);
  font-weight: 500;
}

.issue-summary {
  padding: 22px 24px;
  margin-bottom: 22px;
}

.issue-summary h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.issue-summary-lead {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.issue-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.issue-summary-metric {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.issue-summary-metric strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.issue-summary-metric span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.issue-summary-leanings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px 16px;
  margin-top: 16px;
}

.issue-summary-leaning {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.issue-summary-leaning strong {
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.issue-group + .issue-group {
  margin-top: 28px;
}

.issue-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.issue-group-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.issue-group-head span {
  color: var(--text-muted);
  font-size: 13px;
}

.issues-page .issue-top {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.issues-page .issue-top > #issue-summary,
.issues-page .issue-nav-panel {
  min-width: 0;
}

.issues-page .issue-summary {
  margin-bottom: 0;
  padding: 14px 16px 12px;
}

.issues-page .issue-summary h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.issues-page .issue-summary-lead {
  margin: 4px 0 0;
  font-size: 13px;
}

.issues-page .issue-summary-core {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.issues-page .issue-summary-core-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding-right: 10px;
}

.issues-page .issue-summary-core-item + .issue-summary-core-item {
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.issues-page .issue-summary-core-item strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.issues-page .issue-summary-core-item span {
  font-size: 12px;
  color: var(--text-muted);
}

.issues-page .issue-summary-leanings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.issues-page .issue-summary-leaning {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.issues-page .issue-summary-leaning:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}

.issues-page .issue-summary-leaning:hover span {
  text-decoration: none;
}

.issues-page .issue-summary-leaning:focus {
  outline: none;
}

.issues-page .issue-summary-leaning:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.issues-page .issue-summary-leaning.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-fg);
  box-shadow: inset 2px 0 0 var(--accent);
}

.issues-page .issue-summary-leaning strong {
  font-size: 13px;
  font-weight: 700;
}

.issues-page .issue-group {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.issues-page .issue-nav-panel {
  padding: 12px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.issues-page .issue-nav-heading {
  margin: 0 2px 4px;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--text);
}

.issues-page .issue-nav-keywords {
  margin: 0 2px 10px;
  max-width: 100%;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.issues-page .issue-nav-keywords[hidden] {
  display: none;
}

.issues-page .catalog-page .issue-nav {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  margin-bottom: 0;
}

.issues-page .issue-nav-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
}

.issues-page .issue-nav-item + .issue-nav-item {
  border-top: 1px solid var(--border);
}

.issues-page .issue-nav-item:hover {
  background: var(--bg-elevated);
}

.issues-page .issue-nav-item[aria-current="page"] {
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
}

.issues-page .issue-nav-item-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.issues-page .issue-nav-item-meta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.issues-page .issue-nav-item[aria-current="page"] .issue-nav-item-title {
  font-weight: 750;
  color: var(--accent-fg);
}

.issues-page .issue-detail.catalog-section {
  margin-top: 0;
}

.issues-page .issue-group + .issue-group {
  margin-top: 32px;
}

.issues-page .issue-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 10px;
  padding: 0 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.issues-page .issue-group-head h3 {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.issues-page .issue-group-head span {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 650;
}

@media (min-width: 1025px) {
  .issues-page .issue-top {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    margin-bottom: 40px;
  }

  .issues-page .issue-top > #issue-summary {
    display: block;
    align-self: start;
  }

  .issues-page .issue-summary {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 20px 22px 18px;
  }

  .issues-page .issue-summary h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.2;
  }

  .issues-page .issue-summary-lead {
    margin-top: 8px;
    font-size: 14px;
  }

  .issues-page .issue-summary-core {
    margin-top: 18px;
    padding-top: 16px;
  }

  .issues-page .issue-summary-core-item strong {
    font-size: 28px;
  }

  .issues-page .issue-summary-core-item span {
    font-size: 13px;
  }

  .issues-page .issue-summary-leanings {
    margin-top: 16px;
    padding-top: 16px;
    gap: 8px;
  }

  .issues-page .issue-summary-leaning {
    font-size: 13px;
  }

  .issues-page .issue-summary-leaning strong {
    font-size: 13px;
    font-weight: 700;
  }

  .issues-page .issue-nav-panel {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: min(68vh, 620px);
    box-sizing: border-box;
    overflow: hidden;
  }

  .issues-page .issue-nav-heading,
  .issues-page .issue-nav-keywords {
    flex-shrink: 0;
  }

  .issues-page .catalog-page .issue-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--text-muted) 42%, transparent) transparent;
  }

  .issues-page .catalog-page .issue-nav::-webkit-scrollbar {
    width: 6px;
  }

  .issues-page .catalog-page .issue-nav::-webkit-scrollbar-track {
    background: transparent;
  }

  .issues-page .catalog-page .issue-nav::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-muted) 38%, var(--border));
    border-radius: 999px;
  }

  .issues-page .issue-nav .empty {
    grid-column: 1 / -1;
  }

  .issues-page .issue-nav-item {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 3px;
    padding: 9px 10px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: none;
  }

  .issues-page .issue-nav-item + .issue-nav-item {
    border-top: 1px solid var(--border);
  }

  .issues-page .issue-nav-item[aria-current="page"] {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: inset 2px 0 0 var(--accent);
  }

  .issues-page .issue-nav-item-title {
    font-size: 13px;
    font-weight: 700;
  }

  .issues-page .issue-nav-item-meta {
    font-size: 11px;
  }

  .issues-page .issue-group + .issue-group {
    margin-top: 40px;
  }

  .issues-page .issue-group-head {
    min-height: 64px;
    margin-bottom: 8px;
    padding: 0 20px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
  }

  .issues-page .issue-group-head h3 {
    font-size: 18px;
    font-weight: 800;
  }

  .issues-page .issue-group-head span {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
  }

  .issues-page .issue-group .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .issues-page .issue-group-head {
    min-height: 44px;
    padding: 0 12px;
  }

  .issues-page .issue-group-head h3 {
    font-size: 14px;
  }
}

@media (min-width: 741px) and (max-width: 1024px) {
  .home-page .issue-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .home-page .issue-board .issue-card:nth-child(n + 6) {
    display: none;
  }

  .home-page .issue-card-body h3 {
    font-size: 20px;
  }

  .home-page .issue-strip-head .section-more {
    display: none;
  }
}

@media (max-width: 480px) {
  .issue-summary-metrics {
    grid-template-columns: 1fr;
  }

  .issue-summary {
    padding: 16px;
  }
}

.hot {
  margin-bottom: 28px;
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hot-rest {
  display: contents;
}

.hot-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hot-card::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}

.hot-body {
  position: relative;
  z-index: 2;
  padding: 18px 16px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
}

.hot-body h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-kicker {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  margin: 0;
  max-width: 58%;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.86);
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-channel {
  margin: 0 0 3px;
  font-size: 13px;
  color: rgba(243, 244, 246, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-foot {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(243, 244, 246, 0.78);
  font-size: 12px;
}

.hot-foot .badge {
  margin-top: 0;
  flex-shrink: 0;
}

.hot-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hot-card .hot-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hot-card .hot-thumb.has-photo::before,
.hot-card .hot-thumb.has-photo::after {
  display: none;
}

.hot-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 17, 21, 0.04) 0%,
    rgba(15, 17, 21, 0.08) 32%,
    rgba(15, 17, 21, 0.42) 58%,
    rgba(15, 17, 21, 0.78) 80%,
    rgba(15, 17, 21, 0.9) 100%
  );
}

.hot-marks,
.hot-card .hot-mark.hot-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.hot-mark {
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(15, 17, 21, 0.55);
}

.hot-card .thumb-label,
.hot-card .hot-leaning {
  display: none;
}

.home-main .videos {
  margin-top: 0;
}

.home-ranking {
  min-width: 0;
  --card-border: #4a5160;
  --card-border-hover: #6d7586;
  --card-border-width: 1.5px;
}

.home-ranking-title {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
  .home-page .stats-strip .section-head {
    display: none;
  }
}

@media (min-width: 1025px) {
  .home-page .section-head h2,
  .home-ranking-title {
    font-size: 21px;
  }

  .home-page .hot {
    margin-bottom: 24px;
  }

  .home-page .hot-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .home-page .hot-body {
    margin-top: -48px;
    padding: 6px 16px 16px;
  }

  .home-page .hot-body::before {
    height: calc(15px * 1.35 * 2 + 12px);
  }

  .home-page .hot-body h3 {
    left: 16px;
    right: 16px;
    min-height: calc(1.35em * 2);
    font-size: 15px;
    line-height: 1.35;
  }

  .home-page .hot-channel {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .home-page .hot-foot {
    font-size: 12px;
  }

  .home-page .hot-foot .badge {
    right: 16px;
    bottom: 16px;
    padding: 2px 7px;
    font-size: 11px;
  }

  .home-page .hot-kicker {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .home-page .issue-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-page .issue-card-body h3 {
    font-size: 21px;
  }
}

.mini-rank-block {
  margin-bottom: 16px;
  padding: 14px 14px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mini-rank-block:last-child {
  margin-bottom: 0;
}

.mini-rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mini-rank-block h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.mini-rank-list {
  display: flex;
  flex-direction: column;
}

.mini-rank-row {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 2px;
  border-radius: 8px;
}

.mini-rank-row:hover {
  background: var(--bg-elevated);
}

.mini-rank-num {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  color: var(--text);
}

.mini-rank-row .avatar {
  width: 28px;
  height: 28px;
}

.mini-rank-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-rank-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.mini-rank-more {
  flex: 0 0 auto;
  margin-top: 0;
  font-size: 12px;
  white-space: nowrap;
}

.mini-rank-empty {
  margin: 0;
  padding: 10px 2px 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.videos {
  margin-top: 40px;
}

.videos h2 {
  margin-bottom: 14px;
}

.videos .section-head {
  margin-bottom: 14px;
}

.videos .section-head h2 {
  margin-bottom: 0;
}

.section-more {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.section-more:hover {
  color: var(--text);
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-search {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 180px;
  color: var(--text);
}

.catalog-page .catalog-section {
  margin-bottom: 40px;
}

.catalog-page .videos {
  margin-top: 8px;
}

.catalog-page .videos .section-head {
  margin-bottom: 10px;
}

.catalog-page .videos-result-head {
  align-items: center;
  min-height: 42px;
}

.videos-result-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.videos-result-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  min-height: 1.4em;
  color: var(--text-muted);
  font-weight: 400;
}

.videos-result-desc .desc-mobile {
  display: none;
}

.videos-sort-wrap {
  flex: 0 0 auto;
}

.videos-sort-wrap.is-reserved {
  visibility: hidden;
  pointer-events: none;
}

.videos-sort-wrap.is-visible {
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 959px) {
  .catalog-page .videos-result-head {
    align-items: center;
  }

  .videos-result-desc .desc-desktop {
    display: none;
  }

  .videos-result-desc .desc-mobile {
    display: inline;
    white-space: nowrap;
  }
}

@media (min-width: 960px) {
  .videos-result-copy {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .videos-result-desc {
    white-space: nowrap;
  }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

@media (min-width: 1025px) {
  .home-main .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.videos-more-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
}

a.videos-more-note {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.videos-more-note:hover {
  border-color: var(--card-border-hover, #6d7586);
}

a.videos-more-note:hover .section-more {
  color: var(--text);
}

.videos-more-note p,
.videos-more-note .more-note-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

.more-note-cta-short {
  display: none;
}

@media (max-width: 740px) {
  .issues-more-note .more-note-cta-long {
    display: none;
  }

  .issues-more-note .more-note-cta-short {
    display: inline;
  }
}

.videos-balanced-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.video-card {
  overflow: hidden;
}

.thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #1f2937 0%, #312e81 100%);
}

.hot-card .hot-thumb.thumb {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  height: auto;
}

.thumb::before,
.thumb::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.thumb-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.video-card .thumb-label {
  left: 10px;
  right: 10px;
  bottom: 10px;
  font-size: 13px;
}

.thumb[data-thumb="press"] {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.2) 0 16%, transparent 17%),
    linear-gradient(135deg, #1e1b4b 0%, #4338ca 60%, #6366f1 100%);
}

.thumb[data-thumb="press"]::after {
  width: 88px;
  height: 88px;
  right: -18px;
  bottom: -22px;
  border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, 0.12);
}

.thumb[data-thumb="assembly"] {
  background:
    linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.1) 40% 56%, transparent 56%),
    linear-gradient(160deg, #134e4a 0%, #0f766e 48%, #115e59 100%);
}

.thumb[data-thumb="assembly"]::after {
  width: 120%;
  height: 18px;
  left: -10%;
  bottom: 36px;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(-8deg);
}

.thumb[data-thumb="briefing"] {
  background:
    radial-gradient(circle at 16% 84%, rgba(129, 140, 248, 0.4), transparent 42%),
    linear-gradient(180deg, #111827 0%, #312e81 100%);
}

.thumb[data-thumb="briefing"]::after {
  width: 46px;
  height: 46px;
  top: 16px;
  right: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.thumb[data-thumb="clash"] {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(135deg, #312e81, #4f46e5 55%, #1e1b4b);
}

.thumb[data-thumb="clash"]::after {
  width: 0;
  height: 0;
  right: 18px;
  top: 18px;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 32px solid rgba(255, 255, 255, 0.16);
}

.thumb[data-thumb="poll"] {
  background: linear-gradient(160deg, #334155 0%, #1e293b 100%);
}

.thumb[data-thumb="poll"]::after {
  width: 70px;
  height: 8px;
  right: 16px;
  top: 22px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 0 rgba(255, 255, 255, 0.12), 0 28px 0 rgba(255, 255, 255, 0.08);
}

.thumb[data-thumb="law"] {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

.thumb[data-thumb="trend"] {
  background: linear-gradient(135deg, #134e4a 0%, #1f2937 100%);
}

.thumb[data-thumb="news"] {
  background: linear-gradient(135deg, #1e1b4b 0%, #334155 100%);
}

.thumb[data-thumb="local"] {
  background: linear-gradient(135deg, #3f3f46 0%, #18181b 100%);
}

.hot-card .hot-thumb.has-photo.thumb[data-thumb] {
  background: #111;
}

.video-body {
  padding: 12px 14px 14px;
}

.video-body h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
}

.video-grid .video-card {
  position: relative;
}

.video-grid .thumb-leaning {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  margin-top: 0;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.2;
  color: #f3f4f6;
  background: #181b21;
  border: 1px solid #3a3f4b;
  box-shadow: none;
}

.video-grid .video-stats {
  padding-right: 88px;
}

.video-grid .video-body h3 {
  margin: 0 0 6px;
}

.video-grid .video-channel {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-grid .video-stats {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 32px;
  color: var(--text-soft);
  font-size: 12px;
  text-align: center;
}

.app-footer p {
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.6;
}

.app-footer p + p {
  margin-top: 4px;
}

@media (max-width: 740px) {
  .home-page .app-footer {
    width: 100%;
    padding: 28px 16px 44px;
    text-align: left;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-muted);
  }

  .home-page .app-footer p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .home-page .app-footer p + p {
    margin-top: 8px;
  }
}

.search-panel,
.mobile-nav {
  display: none;
}

.search-panel.open {
  display: block;
}

.mobile-nav.open {
  display: block;
}

.search-panel {
  position: fixed;
  right: 16px;
  top: calc(var(--header-h) + 8px);
  width: min(360px, calc(100% - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 50;
}

.search-panel input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
}

.search-panel p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 16px 16px;
}

.mobile-nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-nav-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  font-size: 14px;
}

.mobile-nav-search-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
}

.mobile-nav-auth {
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-auth:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.mobile-nav-account {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-nav-login,
.mobile-nav-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 15px;
}

.mobile-nav-login {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
}

.mobile-nav-signup {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-nav-nick {
  margin: 0 0 4px;
  padding: 8px 12px 4px;
  font-size: 15px;
  font-weight: 700;
}

.mobile-nav-account-links a,
.mobile-nav-account-links button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 16px;
}

.mobile-nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 650;
  background: var(--bg);
}

.mobile-nav-theme {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.mobile-nav-theme-label {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-soft);
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .rising-panel {
    position: static;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .channel-list {
    grid-template-columns: 1fr;
  }

  .ranking:not(.is-expanded) .channel-list .channel-card:nth-child(n + 6) {
    display: none;
  }

  .ranking-more {
    display: block;
  }

  .ranking-more.is-idle {
    display: none;
  }

  .ranking-more.is-open::after {
    content: " ⌃";
  }

  .identity h3 {
    white-space: normal;
  }

  .header-nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .header-auth,
  .header-theme-pc {
    display: none;
  }
}

@media (min-width: 861px) {
  .mobile-nav,
  .mobile-nav.open {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .channel-card__top {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: start;
  }

  .channel-card .rank {
    position: absolute;
    top: -2px;
    left: -2px;
    z-index: 2;
    width: 18px;
    height: 18px;
    font-size: 10px;
    border-radius: 6px;
  }

  .channel-card .identity {
    align-items: flex-start;
  }

  .channel-card .identity h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .channel-card .growth-corner {
    flex-shrink: 0;
    min-width: max-content;
  }

  .channel-card .metrics {
    margin-left: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 8px;
  }

  .channel-card .metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .channel-card .metric dt,
  .channel-card .metric dd {
    white-space: nowrap;
    word-break: keep-all;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 15px;
    letter-spacing: -0.02em;
  }

}

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

@media (max-width: 740px) {
  .home-page .home-main .video-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (min-width: 741px) {
  .hot {
    margin-bottom: 32px;
  }

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

  .hot-card {
    display: flex;
    flex-direction: column;
    background: #0c0e12;
    border: 1px solid #2a2e37;
    border-radius: 17px;
    box-shadow: none;
  }

  [data-theme="light"] .hot-card {
    border-color: #d6d9e0;
  }

  .hot-card::before {
    display: none;
  }

  .hot-card .hot-thumb,
  .hot-card .hot-thumb.thumb {
    position: relative;
    inset: auto;
    z-index: 0;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .hot-card .hot-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hot-shade {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    height: 148px;
    z-index: 1;
    background: linear-gradient(
      180deg,
      rgba(12, 14, 18, 0) 0%,
      rgba(12, 14, 18, 0.4) 32%,
      rgba(12, 14, 18, 0.78) 62%,
      #0c0e12 82%,
      #0c0e12 100%
    );
  }

  .hot-card .hot-mark.hot-rank {
    display: none;
  }

  .hot-kicker {
    top: 8px;
    left: auto;
    right: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    text-shadow: none;
  }

  .hot-body {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: -60px;
    padding: 6px 28px 28px;
    background: transparent;
  }

  .hot-body::before {
    content: "";
    display: block;
    flex-shrink: 0;
    height: calc(18px * 1.45 * 2 + 18px);
    pointer-events: none;
  }

  .hot-body h3 {
    position: absolute;
    top: 8px;
    left: 28px;
    right: 28px;
    z-index: 3;
    margin: 0;
    min-height: calc(1.45em * 2);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
  }

  .hot-channel {
    margin: 0 0 11px;
    font-size: 15px;
    font-weight: 500;
    color: #e5e7eb;
  }

  .hot-foot {
    display: block;
    margin-top: 0;
    font-size: 13px;
    color: #b4bac4;
  }

  .hot-foot .badge {
    position: absolute;
    right: 28px;
    bottom: 28px;
    margin-top: 0;
    padding: 3px 9px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(167, 173, 186, 0.45);
    color: #c4c9d2;
    font-size: 12px;
  }
}

@media (min-width: 861px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .stat-card {
    padding: 20px 22px 18px;
    border-radius: 15px;
    box-shadow: none;
    background: #181b21;
    border: 1px solid #2a2e37;
  }

  .stat-card dt {
    font-size: 13px;
    color: #9aa1ac;
  }

  .stat-card dd {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 700;
    color: #f3f4f6;
  }

  [data-theme="light"] .stat-card {
    background: #ffffff;
    border-color: #e6e8ec;
  }

  [data-theme="light"] .stat-card dt {
    color: #6b7280;
  }

  [data-theme="light"] .stat-card dd {
    color: #16181d;
  }
}

@media (min-width: 741px) and (max-width: 1119px) {
  .hot-shade {
    height: min(148px, 88%);
  }

  .hot-kicker {
    padding: 5px 9px;
    font-size: 11px;
  }

  .hot-body {
    margin-top: -52px;
    padding: 6px 20px 22px;
  }

  .hot-body::before {
    height: calc(16px * 1.4 * 2 + 14px);
  }

  .hot-body h3 {
    left: 20px;
    right: 20px;
    min-height: calc(1.4em * 2);
    font-size: 16px;
    line-height: 1.4;
  }

  .hot-channel {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .hot-foot {
    font-size: 12px;
  }

  .hot-foot .badge {
    right: 20px;
    bottom: 20px;
    padding: 3px 8px;
    font-size: 11px;
  }
}

@media (min-width: 741px) and (max-width: 1024px) {
  .hot-kicker {
    padding: 4px 8px;
    font-size: 10px;
  }

  .hot-body {
    margin-top: -44px;
    padding: 6px 14px 16px;
  }

  .hot-body::before {
    height: calc(15px * 1.35 * 2 + 12px);
  }

  .hot-body h3 {
    left: 14px;
    right: 14px;
    min-height: calc(1.35em * 2);
    font-size: 15px;
    line-height: 1.35;
  }

  .hot-channel {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .hot-foot {
    font-size: 11px;
  }

  .hot-foot .badge {
    right: 14px;
    bottom: 16px;
    padding: 2px 7px;
    font-size: 10px;
  }
}

@media (min-width: 741px) and (max-width: 860px) {
  .hot-grid {
    gap: 10px;
  }

  .hot-shade {
    height: min(148px, 90%);
  }

  .hot-kicker {
    padding: 4px 7px;
    font-size: 10px;
  }

  .hot-body {
    margin-top: -38px;
    padding: 4px 10px 14px;
  }

  .hot-body::before {
    height: calc(14px * 1.3 * 2 + 10px);
  }

  .hot-body h3 {
    left: 10px;
    right: 10px;
    min-height: calc(1.3em * 2);
    font-size: 14px;
    line-height: 1.3;
  }

  .hot-channel {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .hot-foot {
    font-size: 11px;
  }

  .hot-foot .badge {
    right: 10px;
    bottom: 12px;
    padding: 2px 6px;
    font-size: 10px;
  }
}

@media (min-width: 741px) and (max-width: 749px) {
  .hot-kicker {
    padding: 3px 6px;
    font-size: 9px;
  }

  .hot-body {
    margin-top: -32px;
    padding: 4px 8px 12px;
  }

  .hot-body::before {
    height: calc(13px * 1.28 * 2 + 8px);
  }

  .hot-body h3 {
    left: 8px;
    right: 8px;
    min-height: calc(1.28em * 2);
    font-size: 13px;
    line-height: 1.28;
  }

  .hot-channel {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .hot-foot {
    font-size: 10px;
  }

  .hot-foot .badge {
    right: 8px;
    bottom: 10px;
    padding: 2px 5px;
    font-size: 9px;
  }
}

@media (max-width: 740px) {
  .hot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hot-rest {
    display: contents;
  }

  .hot-card,
  .hot-rest .hot-card,
  .hot-card--lead {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    flex: none;
    background: #0c0e12;
    border: 1px solid #2a2e37;
    border-radius: 16px;
    box-shadow: none;
  }

  [data-theme="light"] .hot-card,
  [data-theme="light"] .hot-rest .hot-card,
  [data-theme="light"] .hot-card--lead {
    border-color: #d6d9e0;
  }

  .hot-card::before {
    display: none;
  }

  .hot-card .hot-thumb,
  .hot-card .hot-thumb.thumb {
    position: relative;
    inset: auto;
    z-index: 0;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .hot-card .hot-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hot-shade {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    height: 40%;
    z-index: 1;
    background: linear-gradient(
      180deg,
      rgba(12, 14, 18, 0) 0%,
      rgba(12, 14, 18, 0.22) 22%,
      rgba(12, 14, 18, 0.52) 48%,
      rgba(12, 14, 18, 0.78) 72%,
      rgba(12, 14, 18, 0.94) 90%,
      #0c0e12 100%
    );
  }

  .hot-marks,
  .hot-card .hot-mark.hot-rank {
    display: none;
  }

  .hot-card .hot-leaning {
    display: inline-flex;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    margin-top: 0;
    padding: 3px 8px;
    font-size: 12px;
  }

  .hot-kicker {
    top: 8px;
    left: auto;
    right: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    text-shadow: none;
  }

  .hot-body {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: calc(-1 * (18px * 1.35 * 2 + 6px));
    padding: 0 14px 14px;
    background: transparent;
  }

  .hot-body::before {
    content: "";
    display: block;
    flex-shrink: 0;
    height: calc(18px * 1.35 * 2 + 6px);
    pointer-events: none;
  }

  .hot-body h3 {
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    z-index: 3;
    margin: 0;
    min-height: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .hot-channel {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
  }

  .hot-foot {
    display: block;
    margin-top: 0;
    font-size: 13px;
    line-height: 1.3;
    color: #b4bac4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hot-foot .badge {
    display: none;
  }
}

@media (max-width: 479px) {
  .hot-card .hot-thumb,
  .hot-card .hot-thumb.thumb {
    aspect-ratio: 5 / 6;
  }

  .hot-card .hot-leaning {
    padding: 2px 7px;
    font-size: 11px;
  }

  .hot-kicker {
    padding: 4px 8px;
    font-size: 10px;
  }

  .hot-body {
    margin-top: calc(-1 * (16px * 1.32 * 2 + 4px));
    padding: 0 10px 10px;
  }

  .hot-body::before {
    height: calc(16px * 1.32 * 2 + 4px);
  }

  .hot-body h3 {
    left: 10px;
    right: 10px;
    font-size: 16px;
    line-height: 1.32;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .hot-channel {
    margin: 0 0 3px;
    font-size: 12px;
  }

  .hot-foot {
    font-size: 11px;
  }
}

.detail-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 24px;
}

#channel-root,
#channel-root .detail-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.detail-sidebar {
  display: none;
}

.detail-side-block {
  padding: 14px 14px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.detail-side-block h2 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.detail-sidebar .rising-panel {
  position: static;
  top: auto;
}

.detail-sidebar .rising-list {
  gap: 8px;
}

.detail-sidebar .rising-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
}

.detail-sidebar .rising-name .avatar {
  width: 44px;
  height: 44px;
}

.detail-sidebar .rising-text h3 {
  font-size: 13px;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.detail-sidebar .rising-text .badge {
  margin-top: 3px;
  font-size: 11px;
}

.detail-sidebar .rising-growth {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.detail-sidebar .rising-growth-value {
  padding: 3px 7px;
  font-size: 12px;
}

.detail-side-videos {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-side-video {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-side-video .thumb {
  width: 96px;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
}

.detail-side-video-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.detail-side-video-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

@media (min-width: 1100px) {
  #channel-root.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 20px;
  }

  .detail-sidebar {
    display: block;
  }
}

.detail-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.detail-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
}

.detail-hero.has-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 160px;
  background: var(--surface);
}

.detail-hero.has-banner .detail-hero-banner {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  filter: brightness(0.78) saturate(0.85);
}

.detail-hero.has-banner::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 62%, var(--surface) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.25) 42%, rgba(0, 0, 0, 0) 70%);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
}

.detail-hero.has-banner .detail-hero-text h1,
.detail-hero.has-banner .detail-hero-meta,
.detail-hero.has-banner .detail-summary {
  color: #f8fafc;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.9),
    0 2px 2px rgba(0, 0, 0, 0.65);
}

.detail-hero.has-banner .detail-more {
  color: #f0c85c;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.9),
    0 2px 2px rgba(0, 0, 0, 0.65);
}

.detail-hero.has-banner .detail-hero-meta,
.detail-hero.has-banner .detail-summary {
  color: rgba(248, 250, 252, 0.95);
}

.detail-hero .avatar {
  width: 84px;
  height: 84px;
}

.detail-hero-heading h1,
.detail-hero-text h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.detail-hero-meta .badge {
  margin-top: 0;
}

.detail-hero-subs-label,
.detail-hero-meta-sep {
  font-weight: 700;
  opacity: 1;
}

.detail-hero.has-banner .detail-hero-subs-label,
.detail-hero.has-banner .detail-hero-meta-sep {
  color: #f8fafc;
}

.detail-hero-subs-count {
  font-weight: 700;
}

.detail-hero-subs .detail-hero-subs-count {
  color: #f0c85c;
}

.detail-hero-views .detail-hero-subs-count {
  color: #f0c85c;
}

.detail-hero.has-banner .detail-hero-meta .badge {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(248, 250, 252, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-shadow: none;
}

.detail-desc {
  margin: 10px 0 0;
  max-width: 56ch;
}

.detail-desc.is-collapsed {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.detail-desc.is-collapsed .detail-summary {
  display: inline;
  white-space: nowrap;
}

.detail-desc.is-collapsed .detail-more {
  display: inline;
  margin: 0;
}

.detail-summary {
  display: inline;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-more {
  display: inline;
  margin: 0 0 0 0.15em;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #f0c85c;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  vertical-align: baseline;
}

.detail-desc:not(.is-collapsed) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 56ch;
}

.detail-desc:not(.is-collapsed) .detail-summary {
  display: block;
  width: auto;
}

.detail-desc:not(.is-collapsed) .detail-more {
  display: inline;
  align-self: flex-end;
  width: auto;
  margin: 6px 0 0;
}

.detail-more[hidden] {
  display: none;
}

.detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  margin-left: auto;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  background: #ff0033;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.detail-cta-stack {
  display: none;
}

.detail-cta:hover {
  background: #e6002e;
}

.detail-cta.is-disabled,
.detail-cta[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}

@media (min-width: 710px) {
  .detail-hero:not(.is-desc-expanded) {
    height: 164px;
    box-sizing: border-box;
  }

  .detail-hero-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .detail-hero-top {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    column-gap: 22px;
    height: 118px;
    min-height: 118px;
    max-height: 118px;
    align-items: center;
  }

  .detail-hero .avatar {
    width: 116px;
    height: 116px;
    justify-self: center;
    align-self: center;
  }

  .detail-hero-text {
    min-width: 0;
    height: 116px;
    max-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .detail-hero-heading h1,
  .detail-hero-text h1 {
    margin: 0 0 4px;
  }

  .detail-hero-meta {
    margin: 0;
    flex-wrap: nowrap;
    font-size: 16px;
    white-space: nowrap;
  }

  .detail-hero-meta .badge {
    font-size: 12px;
    padding: 1px 7px;
    line-height: 1.3;
  }

  .detail-hero-subs-count {
    font-size: 17px;
  }

  .detail-hero-desc-slot {
    margin-top: 12px;
  }

  .detail-hero-desc-slot .detail-desc {
    margin: 0;
  }

  .detail-hero .detail-cta {
    justify-self: center;
    align-self: center;
    margin-left: 0;
  }

  .detail-hero-expanded:empty {
    display: none;
  }

  .detail-hero-expanded:not(:empty) {
    margin-left: calc(150px + 22px);
    padding-top: 16px;
  }

  .detail-hero.is-desc-expanded .detail-hero-top {
    height: auto;
    min-height: 118px;
    max-height: none;
    grid-template-rows: 118px auto;
    align-items: start;
  }

  .detail-hero.is-desc-expanded .avatar,
  .detail-hero.is-desc-expanded .detail-cta {
    grid-row: 1;
    align-self: center;
  }

  .detail-hero.is-desc-expanded .detail-hero-text {
    grid-row: 1 / -1;
    height: auto;
    max-height: none;
    overflow: visible;
    justify-content: flex-start;
    padding-top: 14px;
  }

  .detail-hero.is-desc-expanded .detail-hero-desc-slot {
    display: none;
    min-height: 0;
    margin: 0;
  }

  .detail-hero.is-desc-expanded .detail-hero-text > .detail-desc {
    margin: 16px 0 0;
  }
}

@media (min-width: 710px) {
  .detail-hero .detail-cta-wide {
    display: none;
  }

  .detail-hero .detail-cta-stack {
    display: block;
    line-height: 1.25;
    text-align: center;
  }

  .detail-hero .detail-cta {
    flex-direction: column;
    min-height: 0;
    padding: 10px 12px;
    white-space: normal;
  }
}

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

.detail-metrics .stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: none;
}

.detail-block {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.detail-block h2 {
  margin: 0 0 14px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.detail-placeholder {
  margin: 0;
  padding: 28px 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.detail-video-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.channel-video-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.channel-video-more:hover {
  color: var(--text);
}

@media (min-width: 1100px) {
  .detail-main .detail-video-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .detail-main .detail-video-list .video-body {
    padding: 10px 12px 12px;
  }

  .detail-main .detail-video-list .video-body h3 {
    font-size: 13px;
  }
}

.video-card .thumb.has-photo {
  background: #111;
}

.video-card .thumb.has-photo::before,
.video-card .thumb.has-photo::after {
  display: none;
}

.video-card .thumb-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.video-card .live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 4px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.detail-metrics .stat-card dd.is-collecting {
  color: var(--text-muted);
  white-space: nowrap;
}

.detail-comments .opinion-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
}

.detail-comments .opinion-head h2 {
  margin: 0;
}

.opinion-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.opinion-lead {
  margin: -2px 0 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.opinion-composer {
  position: relative;
  margin: 0;
}

.opinion-composer textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  max-height: 240px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}

.opinion-composer textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 1px;
  border-color: var(--border-strong);
}

.opinion-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.opinion-counter {
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.opinion-submit {
  min-height: 36px;
  padding: 6px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.opinion-submit:hover:not(:disabled) {
  background: var(--accent-hover);
}

.opinion-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.opinion-error {
  margin: 8px 0 0;
  color: var(--down);
  font-size: 13px;
}

.opinion-error[hidden],
.opinion-empty[hidden],
.opinion-more[hidden] {
  display: none;
}

#opinion-list {
  margin-top: 16px;
}

.opinion-empty {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.opinion-row {
  padding: 14px 0 12px;
  border-top: 1px solid var(--border);
}

.opinion-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.opinion-time {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.opinion-body {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.opinion-more {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 0 2px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.opinion-more:hover {
  color: var(--text);
}

.opinion-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.opinion-captcha[hidden] {
  display: none;
}

.opinion-captcha {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.opinion-captcha-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #0f1115 42%, transparent);
}

.opinion-captcha-dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.opinion-captcha-dialog h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.opinion-captcha-lead {
  margin: 8px 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.opinion-captcha-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.opinion-captcha-code {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1.2;
  text-align: center;
}

.opinion-captcha-refresh {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.opinion-captcha-refresh:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: var(--bg);
  color: var(--text);
}

.opinion-captcha-refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.opinion-captcha-dialog input {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.12em;
}

.opinion-captcha-dialog input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 1px;
  border-color: var(--border-strong);
}

.opinion-captcha-error {
  margin: 8px 0 0;
  color: var(--down);
  font-size: 13px;
}

.opinion-captcha-error[hidden] {
  display: none;
}

.opinion-captcha-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.opinion-captcha-cancel,
.opinion-captcha-confirm {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.opinion-captcha-cancel {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}

.opinion-captcha-cancel:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text);
}

.opinion-captcha-confirm {
  border: 0;
  background: var(--accent);
  color: #fff;
}

.opinion-captcha-confirm:hover:not(:disabled) {
  background: var(--accent-hover);
}

.opinion-captcha-confirm:disabled,
.opinion-captcha-cancel:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 709px) {
  .detail-hero,
  .detail-hero.has-banner {
    height: auto;
    padding: 16px 14px 18px;
  }

  .detail-hero-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .detail-hero-top {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "avatar info"
      "cta cta";
    align-items: center;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    column-gap: 12px;
    row-gap: 12px;
  }

  .detail-hero .avatar {
    grid-area: avatar;
    width: 72px;
    height: 72px;
    justify-self: start;
    align-self: center;
  }

  .detail-hero-text {
    grid-area: info;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-top: 0;
  }

  .detail-hero-heading {
    min-width: 0;
    width: 100%;
    text-align: left;
  }

  .detail-hero-heading h1,
  .detail-hero-text h1 {
    display: block;
    overflow: hidden;
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .detail-hero-meta {
    flex-wrap: nowrap;
    gap: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
  }

  .detail-hero-desc-slot,
  .detail-hero.is-desc-expanded .detail-hero-desc-slot {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 8px;
    padding: 0;
    text-align: left;
  }

  .detail-hero-desc-slot .detail-desc,
  .detail-hero.is-desc-expanded .detail-hero-text > .detail-desc {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .detail-hero-expanded,
  .detail-hero-expanded:empty,
  .detail-hero-expanded:not(:empty) {
    display: none;
  }

  .detail-desc,
  .detail-desc:not(.is-collapsed) {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    text-align: left;
  }

  .detail-desc.is-collapsed {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
  }

  .detail-desc.is-collapsed .detail-summary {
    display: inline;
    white-space: nowrap;
  }

  .detail-summary {
    font-size: 13px;
    line-height: 1.45;
  }

  .detail-hero.has-banner .detail-cta,
  .detail-hero .detail-cta,
  .detail-cta {
    grid-area: cta;
    width: 100%;
    margin-left: 0;
    justify-self: stretch;
  }

  .detail-hero.is-desc-expanded .detail-hero-top {
    height: auto;
    min-height: 0;
    max-height: none;
    align-items: start;
  }

  .detail-hero.is-desc-expanded .avatar {
    align-self: start;
  }

  .detail-hero.is-desc-expanded .detail-hero-text {
    display: flex;
    height: auto;
    max-height: none;
    padding-top: 0;
  }
}

@media (max-width: 860px) {
  .detail-hero + .detail-metrics {
    margin-top: -9px;
  }

  .detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .detail-metrics .stat-card {
    padding: 12px 14px;
  }

  .detail-metrics .stat-card dt {
    font-size: 12px;
  }

  .detail-metrics .stat-card dd {
    margin-top: 4px;
    font-size: 22px;
  }

  .detail-video-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .detail-hero-heading h1,
  .detail-hero-text h1 {
    max-width: 280px;
  }
}

#channel-root .detail-selected {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

#channel-root .detail-selected-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}

#channel-root .detail-selected-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

#channel-root .detail-selected-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#channel-root .detail-selected-thumb .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

#channel-root .detail-selected-card-body {
  padding: 14px 16px 16px;
}

#channel-root .detail-selected-card-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

#channel-root .detail-selected-card-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

#channel-root .detail-selected-panel {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

#channel-root .detail-selected-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

#channel-root .detail-selected-title {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

#channel-root .detail-selected-channel {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text-muted);
}

#channel-root .detail-selected-meta {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

#channel-root .detail-selected-issues {
  margin-top: 22px;
}

#channel-root .detail-selected-issues-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

#channel-root .detail-selected-issue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#channel-root .detail-selected-issue-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

#channel-root .detail-selected-issue-chip:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

#channel-root .detail-selected-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ff0033;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

#channel-root .detail-selected-cta:hover {
  background: #e6002e;
}

#channel-root .detail-selected-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

@media (min-width: 1025px) {
  #channel-root .detail-selected {
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    align-items: stretch;
  }

  #channel-root .detail-selected-eyebrow {
    margin-bottom: 12px;
  }

  #channel-root .detail-selected-title {
    font-size: 20px;
    font-weight: 750;
  }

  #channel-root .detail-selected-channel {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
  }

  #channel-root .detail-selected-issues {
    margin-top: 26px;
  }

  #channel-root .detail-selected-issues-label {
    margin-bottom: 10px;
  }

  #channel-root .detail-selected-meta {
    margin-top: 20px;
    font-size: 13px;
  }

  #channel-root .detail-selected-cta {
    min-height: 56px;
    margin-top: 26px;
    padding: 10px 16px;
    font-size: 16px;
  }

  #channel-root .detail-selected-hint {
    margin-top: 12px;
  }
}

.header-auth {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-theme-pc {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
  padding: 0 8px;
  height: 38px;
}

.header-theme-pc:hover {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.header-theme-pc[hidden] {
  display: none !important;
}

.header-signup {
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.header-signup:hover {
  color: var(--text);
}

.header-login {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.header-login:hover {
  border-color: var(--border-strong);
  background: var(--bg);
}

.header-user-btn {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-btn:hover {
  color: var(--text);
  background: var(--bg);
}

.header-theme-menu {
  width: 100%;
  justify-content: flex-start;
  margin-top: 4px;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

@media (max-width: 860px) {
  .header-actions .header-auth,
  .header-actions .header-theme-pc {
    display: none;
  }
}

.header-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  min-width: 132px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.header-user-menu a,
.header-user-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.header-user-menu a:hover,
.header-user-menu button:hover {
  background: var(--bg);
}

.auth-main {
  width: min(440px, calc(100% - 32px));
  margin: 36px auto 64px;
}

.auth-card {
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.auth-card h1 {
  margin: 0 0 18px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.auth-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.auth-form {
  position: relative;
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-field input {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.auth-field input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 1px;
  border-color: var(--border-strong);
}

.auth-captcha .auth-field {
  margin-top: 8px;
}

.auth-captcha-label {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-captcha .opinion-captcha-error {
  margin: 8px 0 0;
  color: var(--down);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.auth-submit {
  min-height: 42px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

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

.auth-done {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-done[hidden] {
  display: none;
}

.auth-card .auth-done h1 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.auth-done-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.auth-done-lead + .auth-done-lead {
  margin-top: 4px;
}

.auth-done .auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 22px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-done-home {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}

.auth-done-home a {
  color: var(--text-muted);
  font-weight: 500;
}

.auth-done-home a:hover {
  color: var(--accent-fg);
}

.auth-links {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--accent-fg);
  font-weight: 600;
}

.auth-msg {
  margin: 0;
  font-size: 13px;
}

.auth-msg.is-error {
  color: var(--down);
}

.auth-account-name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.admin-main {
  width: min(720px, calc(100% - 32px));
  margin: 36px auto 64px;
}

.admin-section-title {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.admin-empty {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.admin-deletion {
  padding: 14px 0 12px;
  border-top: 1px solid var(--border);
}

.admin-deletion-meta {
  margin: 0 0 2px;
  color: var(--text-muted);
  font-size: 13px;
}

.admin-deletion-content {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.opinion-gate {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.opinion-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.opinion-gate-actions a,
.opinion-gate-actions button {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.opinion-gate-actions a {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
}

.opinion-gate-actions a.secondary,
.opinion-gate-actions button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.opinion-row-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.opinion-author {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}

.opinion-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.opinion-edited {
  color: var(--text-muted);
  font-size: 12px;
}

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

.opinion-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.opinion-actions button:hover {
  color: var(--text);
}

.opinion-edit-box textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

.opinion-row.is-editing .opinion-actions {
  display: none;
}

.opinion-edit-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.opinion-edit-cancel {
  flex: 0 0 auto;
  min-width: 84px;
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.opinion-edit-cancel:hover:not(:disabled) {
  border-color: var(--border-strong);
  color: var(--text);
}

.opinion-edit-actions .opinion-submit {
  flex: 0 0 auto;
  min-width: 84px;
  white-space: nowrap;
}

.opinion-confirm[hidden] {
  display: none;
}

.opinion-confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.opinion-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #0f1115 42%, transparent);
}

.opinion-confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 20px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.opinion-confirm-dialog p {
  margin: 0 0 16px;
  font-size: 15px;
}

.opinion-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
