:root {
  --bg: #070b14;
  --bg-soft: #0b1120;
  --panel: #101928;
  --panel-2: #0d1524;
  --panel-3: #162137;
  --text: #e9eefb;
  --muted: #93a1bd;
  --muted-2: #6f7f9f;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.24);
  --brand: #7c6cff;
  --brand-2: #22d3ee;
  --up: #34d399;
  --down: #fb7185;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(124, 108, 255, 0.18), transparent 65%),
    radial-gradient(800px 420px at 92% 0%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--brand-2);
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 21px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 17px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-main {
  min-height: 60vh;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 17px;
  box-shadow: 0 8px 24px rgba(124, 108, 255, 0.35);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand__text small {
  color: var(--muted);
  font-size: 11px;
}

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

.nav__link {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav__link:hover,
.nav__link.is-active {
  background: rgba(124, 108, 255, 0.12);
  color: var(--text);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(310px, 32vw);
}

.header-search input {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16, 25, 40, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.header-search input:focus {
  border-color: rgba(124, 108, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.15);
}

.header-search button {
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.header-search button:hover {
  color: var(--text);
  border-color: var(--brand);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 55% 20%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 74px 0 68px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(100deg, #a99bff 0%, #7c6cff 38%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
}

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 26px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(13, 21, 36, 0.9);
  box-shadow: var(--shadow);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}

.hero-search input::placeholder {
  color: var(--muted-2);
}

.hero-search button {
  padding: 11px 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #6656f5);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.hero-search button:hover {
  filter: brightness(1.08);
}

.hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero__quick a {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
}

.hero__quick a:hover {
  border-color: rgba(124, 108, 255, 0.5);
  color: var(--text);
}

.hero__panel {
  position: relative;
  min-height: 300px;
}

.hero-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 33, 55, 0.95), rgba(13, 21, 36, 0.92));
  box-shadow: var(--shadow);
}

.hero-card span {
  color: var(--muted);
  font-size: 12px;
}

.hero-card strong {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.hero-card small {
  color: var(--muted-2);
  font-size: 11px;
}

.hero-card--a {
  top: 10px;
  left: 2%;
  width: 220px;
  transform: rotate(-3deg);
}

.hero-card--b {
  top: 96px;
  right: 0;
  width: 190px;
  transform: rotate(2.5deg);
}

.hero-card--c {
  bottom: 0;
  left: 18%;
  width: 250px;
  transform: rotate(-1deg);
}

/* ---------- Generic sections ---------- */

.section {
  padding-top: 40px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 8px;
}

.page-head h1 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 3.4vw, 40px);
}

.page-head p {
  max-width: 760px;
  color: var(--muted);
}

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

.section-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13.5px;
}

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

.section-link {
  flex-shrink: 0;
  color: var(--brand-2);
  font-size: 13.5px;
}

.section-link:hover {
  color: #67e8f9;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 25, 40, 0.92), rgba(13, 21, 36, 0.92));
}

.panel--muted {
  background: rgba(13, 21, 36, 0.55);
}

.panel--table {
  padding: 10px 16px;
}

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

.two-col--wide {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

/* ---------- Stats ---------- */

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(16, 25, 40, 0.72);
}

.stat__label {
  color: var(--muted);
  font-size: 12.5px;
}

.stat__value {
  font-size: 25px;
  letter-spacing: -0.02em;
}

.stat__hint {
  color: var(--muted-2);
  font-size: 11.5px;
}

.stat-grid--profile {
  padding-top: 22px;
}

/* ---------- Channel cards ---------- */

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 44, 0.92), rgba(12, 19, 33, 0.92));
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.channel-card:hover {
  border-color: rgba(124, 108, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
}

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

.avatar-link {
  flex-shrink: 0;
}

.avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--panel-3), #1d2942);
  color: #fff;
  font-weight: 700;
  object-fit: cover;
  vertical-align: middle;
}

.avatar--sm {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.avatar--md {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.avatar--xl {
  width: 92px;
  height: 92px;
  font-size: 34px;
  border: 1px solid var(--line-strong);
}

.avatar--tone0 { background: linear-gradient(135deg, #7c6cff, #4f46e5); }
.avatar--tone1 { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.avatar--tone2 { background: linear-gradient(135deg, #f472b6, #db2777); }
.avatar--tone3 { background: linear-gradient(135deg, #34d399, #059669); }
.avatar--tone4 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.avatar--tone5 { background: linear-gradient(135deg, #818cf8, #6366f1); }

.channel-card__identity {
  min-width: 0;
}

.channel-card__title {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-card__handle {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 12px;
  white-space: nowrap;
}

.channel-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 22px;
}

.tag {
  padding: 2px 8px;
  border: 1px solid rgba(124, 108, 255, 0.28);
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.09);
  color: #c4bcff;
  font-size: 11.5px;
}

.tag--muted {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}

a.tag {
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

a.tag:hover {
  border-color: rgba(124, 108, 255, 0.65);
  color: #fff;
}

.channel-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.channel-card__stats dt {
  color: var(--muted-2);
  font-size: 11px;
}

.channel-card__stats dd {
  margin: 1px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.channel-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.channel-card__more {
  color: var(--muted);
  font-size: 12.5px;
}

.channel-card__more:hover {
  color: var(--brand-2);
}

.grade {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.grade--aplus { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; }
.grade--a { background: rgba(52, 211, 153, 0.13); color: #6ee7b7; }
.grade--b { background: rgba(34, 211, 238, 0.12); color: #67e8f9; }
.grade--c { background: rgba(251, 191, 36, 0.13); color: #fcd34d; }
.grade--dplus { background: rgba(251, 113, 133, 0.12); color: #fda4af; }
.grade--d { background: rgba(248, 113, 113, 0.13); color: #fca5a5; }
.grade--none { background: rgba(148, 163, 184, 0.08); color: var(--muted-2); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge--outline {
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.badge--danger {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.badge--warn {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.18);
  color: #67e8f9;
  font-size: 9px;
}

.verified--lg {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

.text-up { color: var(--up); }
.text-down { color: var(--down); }

/* ---------- Rows / lists ---------- */

.row-list {
  display: flex;
  flex-direction: column;
}

.channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}

.channel-row:last-child {
  border-bottom: 0;
}

.channel-row__rank {
  width: 30px;
  flex-shrink: 0;
  color: var(--muted-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.channel-row__identity {
  flex: 1;
  min-width: 0;
}

.channel-row__title {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-row__meta {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-row__score {
  flex-shrink: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.channel-row__change {
  width: 66px;
  flex-shrink: 0;
  text-align: right;
}

.change {
  color: var(--muted-2);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.change--up { color: var(--up); }
.change--down { color: var(--down); }
.change--new { color: var(--brand-2); }

/* ---------- Filters / toolbar / pagination ---------- */

.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 21, 36, 0.7);
}

.filter-bar__search,
.filter-bar__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.filter-bar label {
  color: var(--muted-2);
  font-size: 11.5px;
}

.filter-bar input,
.filter-bar select,
.submit-form input,
.board-date select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus,
.submit-form input:focus {
  border-color: rgba(124, 108, 255, 0.6);
}

.filter-bar__actions {
  display: flex;
  gap: 8px;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}

.list-toolbar__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.list-toolbar__count {
  color: var(--muted-2);
  font-size: 12.5px;
}

.chip {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
}

.chip:hover,
.chip.is-active {
  border-color: rgba(124, 108, 255, 0.55);
  background: rgba(124, 108, 255, 0.12);
  color: var(--text);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 26px 0 8px;
}

.pagination__link {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
}

.pagination__link:hover {
  border-color: var(--brand);
  color: var(--text);
}

.pagination__link.is-disabled {
  opacity: 0.35;
}

.pagination__current {
  color: var(--muted-2);
  font-size: 12.5px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand), #6656f5);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.08);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--muted);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--text);
}

/* ---------- Detail page ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 28px;
  color: var(--muted-2);
  font-size: 12.5px;
}

.breadcrumb a:hover {
  color: var(--brand-2);
}

.profile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 20px;
}

.profile__main {
  display: flex;
  gap: 20px;
  min-width: 0;
}

.profile__identity {
  min-width: 0;
}

.profile__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.profile h1 {
  font-size: clamp(26px, 3.4vw, 38px);
}

.profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.profile__meta a {
  color: var(--brand-2);
}

.profile__about {
  max-width: 820px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.profile__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.profile__updated {
  color: var(--muted-2);
  font-size: 11.5px;
}

/* ---------- Tabs ---------- */

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.tab {
  padding: 6px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

.tab:hover,
.tab.is-active {
  background: rgba(124, 108, 255, 0.16);
  color: var(--text);
}

.tabs--small .tab {
  padding: 5px 10px;
  font-size: 12px;
}

.tabs--board {
  margin-top: 22px;
}

.tabs--secondary {
  margin-top: 10px;
}

.board-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}

.board-date span,
.board-date small {
  color: var(--muted-2);
  font-size: 11.5px;
}

.board-date strong {
  font-size: 20px;
}

.rank-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 110px 78px;
  gap: 12px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
}

.rank-head span:nth-child(3),
.rank-head span:nth-child(4) {
  text-align: right;
}

/* ---------- Charts ---------- */

.chart-wrap {
  width: 100%;
  padding-top: 4px;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart--bars {
  min-height: 170px;
}

.chart__grid {
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 11.5px;
}

/* ---------- Metrics / ranks ---------- */

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

.metric-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.metric-list dt {
  color: var(--muted);
  font-size: 12.5px;
}

.metric-list dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.rank-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 9px;
}

.rank-chip {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(124, 108, 255, 0.05);
}

.rank-chip:hover {
  border-color: rgba(124, 108, 255, 0.5);
}

.rank-chip span {
  color: var(--muted-2);
  font-size: 11px;
}

.rank-chip strong {
  font-size: 18px;
}

.rank-chip small {
  color: var(--muted);
  font-size: 11px;
}

/* ---------- Posts ---------- */

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

.post-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(16, 25, 40, 0.72);
}

.post-card__thumb {
  flex-shrink: 0;
  width: 116px;
  height: 86px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--panel-3);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  min-width: 0;
}

.post-card__text {
  color: #cbd5e8;
  font-size: 13.5px;
  white-space: pre-line;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 11.5px;
}

/* ---------- Submit ---------- */

.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 20px;
  margin-top: 20px;
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.submit-form label {
  color: var(--muted);
  font-size: 13px;
}

.submit-form__row {
  display: flex;
  gap: 10px;
}

.submit-form__row input {
  flex: 1;
  padding: 12px 14px;
  font-size: 14px;
}

.form-hint {
  color: var(--muted-2);
  font-size: 12px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 13.5px;
}

.alert a {
  color: var(--brand-2);
}

.alert--success {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  color: #a7f3d0;
}

.alert--warn {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.07);
  color: #fde68a;
}

.alert--error {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}

.steps strong {
  display: block;
  color: var(--text);
}

/* ---------- Empty / CTA / 404 ---------- */

.empty-state {
  padding: 34px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.empty-state__icon {
  margin-bottom: 6px;
  color: var(--muted-2);
  font-size: 26px;
}

.empty-state h3 {
  margin-bottom: 4px;
  color: var(--text);
}

.empty-state p {
  font-size: 13px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border: 1px solid rgba(124, 108, 255, 0.32);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 180px at 85% 20%, rgba(34, 211, 238, 0.14), transparent 70%),
    linear-gradient(135deg, rgba(124, 108, 255, 0.15), rgba(13, 21, 36, 0.9));
}

.cta p {
  margin-top: 4px;
  color: var(--muted);
}

.not-found {
  padding-top: 90px;
  padding-bottom: 90px;
  text-align: center;
}

.not-found__code {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
}

.not-found h1 {
  margin: 14px 0 8px;
  font-size: 28px;
}

.not-found p {
  color: var(--muted);
}

.not-found__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.footnote {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.75);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  color: var(--muted-2);
  font-size: 12px;
}

.site-footer strong {
  color: var(--text);
  font-size: 14px;
}

.site-footer p {
  margin-top: 4px;
  max-width: 560px;
}

.site-footer__links {
  display: flex;
  gap: 16px;
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__copy {
  white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .hero__panel {
    display: none;
  }

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

  .filter-bar__search {
    grid-column: span 2;
  }

  .filter-bar__actions {
    grid-column: span 3;
    justify-content: flex-end;
  }

  .two-col--wide {
    grid-template-columns: 1fr;
  }

  .submit-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 10px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-search {
    width: min(100%, 280px);
    margin-left: auto;
  }

  .stats-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .profile {
    flex-direction: column;
  }

  .profile__side {
    align-items: flex-start;
  }

  .rank-head {
    display: none;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero__inner {
    padding: 40px 0 44px;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

  .page-head,
  .section-head,
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar__search,
  .filter-bar__actions {
    grid-column: span 2;
  }

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

  .profile__main {
    flex-direction: column;
  }

  .post-card {
    flex-direction: column;
  }

  .post-card__thumb {
    width: 100%;
    height: 150px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .board-date {
    align-items: flex-start;
  }

  .submit-form__row {
    flex-direction: column;
  }
}
