:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-strong: #f0f3f6;
  --text: #1e252d;
  --muted: #69727d;
  --line: #dfe5eb;
  --accent: #0f8b8d;
  --accent-strong: #096b6d;
  --accent-soft: #e1f4f3;
  --hot: #e04f3f;
  --yellow: #f2b84b;
  --green: #4b9c6b;
  --blue: #3978c0;
  --shadow: 0 16px 48px rgba(37, 46, 55, 0.11);
  --radius: 8px;
  --header-height: 76px;
  font-family:
    Inter,
    Pretendard,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    system-ui,
    sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111417;
  --surface: #191f24;
  --surface-strong: #222a30;
  --text: #edf2f6;
  --muted: #a5b0bb;
  --line: #303a42;
  --accent: #43b8ac;
  --accent-strong: #65d2c8;
  --accent-soft: #173532;
  --hot: #ff725f;
  --yellow: #f7c864;
  --green: #76bf8f;
  --blue: #72a7de;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(15, 139, 141, 0.1), transparent 290px),
    radial-gradient(circle at 100% 0%, rgba(242, 184, 75, 0.14), transparent 320px),
    var(--bg);
  color: var(--text);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.app-shell {
  width: min(1900px, 100%);
  margin: 0 auto;
  padding: 12px clamp(8px, 1.4vw, 20px) 34px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  padding: 6px 0;
  background: linear-gradient(180deg, var(--bg) 70%, rgba(246, 247, 249, 0));
}

[data-theme="dark"] .topbar {
  background: linear-gradient(180deg, var(--bg) 70%, rgba(17, 20, 23, 0));
}

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

.brand-mark {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.brand strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.1;
}

.brand small {
  display: block;
  max-width: 190px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(37, 46, 55, 0.07);
}

.search-wrap svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

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

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

.icon-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(37, 46, 55, 0.07);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  padding: 4px 0 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab,
.segment,
.source-chip,
.tag-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.tab {
  min-width: 60px;
  padding: 0 11px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 750;
}

.tab.active,
.tab:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

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

.content-area,
.insight-rail {
  min-width: 0;
}

.feed-toolbar {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.24rem, 2vw, 1.74rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.result-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.control-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(37, 46, 55, 0.06);
}

.sources-row {
  grid-column: 1 / -1;
}

.control-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.control-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.segmented,
.source-filters {
  display: flex;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.segment,
.source-chip,
.tag-chip {
  padding: 0 9px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  white-space: nowrap;
}

.segment.active,
.source-chip.active,
.source-chip:hover {
  color: color-mix(in srgb, var(--chip-color, var(--accent)) 72%, var(--text));
  background: color-mix(in srgb, var(--chip-color, var(--accent)) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--chip-color, var(--accent)) 34%, var(--line));
}

.source-chip {
  gap: 6px;
}

.source-chip span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  background: var(--chip-color, var(--accent));
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 900;
}

.community-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
  width: 100%;
  min-width: 0;
  padding-bottom: 8px;
  overflow-x: visible;
}

.community-board.single-source {
  grid-template-columns: minmax(0, 1fr);
}

.community-column {
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--source-color) 13%, transparent), transparent 120px),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--source-color) 34%, var(--line));
  border-top: 3px solid var(--source-color);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(37, 46, 55, 0.06);
  scroll-snap-align: start;
}

.community-header {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--source-color) 22%, var(--line));
}

.community-title {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.community-slot {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #fff;
  background: var(--source-color);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 950;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--source-color) 30%, transparent);
}

.community-title h2 {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-title span:not(.community-slot) {
  display: block;
  max-width: 92px;
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-live {
  flex: 0 0 auto;
  padding: 3px 5px;
  color: var(--source-color);
  background: color-mix(in srgb, var(--source-color) 11%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--source-color) 28%, var(--line));
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 950;
}

.column-post-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-post {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 5px;
  min-height: 58px;
  padding: 5px;
  border-bottom: 1px solid var(--line);
}

.compact-post:last-child {
  border-bottom: 0;
}

.compact-post:hover {
  background: color-mix(in srgb, var(--source-color) 7%, var(--surface));
}

.compact-rank {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: var(--source-color);
  background: color-mix(in srgb, var(--source-color) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--source-color) 30%, var(--line));
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 950;
}

.compact-body {
  min-width: 0;
}

.compact-meta {
  display: flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 720;
}

.compact-meta span {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.compact-meta svg {
  width: 9px;
  height: 9px;
}

.compact-title {
  display: -webkit-box;
  width: 100%;
  min-height: 33px;
  margin: 3px 0 4px;
  overflow: hidden;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.68rem;
  font-weight: 830;
  letter-spacing: 0;
  line-height: 1.28;
  text-align: left;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.compact-title:hover {
  color: var(--source-color);
}

.compact-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 19px;
  gap: 3px;
  align-items: center;
}

.compact-score {
  display: inline-grid;
  min-width: 23px;
  height: 18px;
  place-items: center;
  color: #fff;
  background: var(--source-color);
  border-radius: 6px;
  font-size: 0.59rem;
  font-weight: 950;
}

.compact-tags {
  display: flex;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.compact-tags span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tiny-save {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  color: var(--muted);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.tiny-save.saved {
  color: var(--source-color);
  background: color-mix(in srgb, var(--source-color) 11%, var(--surface));
  border-color: color-mix(in srgb, var(--source-color) 34%, var(--line));
}

.tiny-save svg {
  width: 12px;
  height: 12px;
}

.compact-heat {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  background: var(--surface-strong);
  border-radius: 999px;
}

.compact-heat span {
  display: block;
  width: var(--heat);
  height: 100%;
  background: linear-gradient(90deg, var(--source-color), var(--yellow), var(--hot));
  border-radius: inherit;
}

.column-empty {
  min-height: 70px;
  padding: 10px 7px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 720;
  line-height: 1.45;
}

.revenue-stack {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.money-panel,
.editorial-panel {
  min-width: 0;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(37, 46, 55, 0.06);
}

.editorial-panel {
  display: grid;
  gap: 10px;
}

.money-panel-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.money-panel h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
}

.live-badge,
.mini-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.live-badge {
  color: #fff;
  background: var(--hot);
}

.live-badge.trend {
  background: var(--accent);
}

.mini-button {
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  cursor: pointer;
}

.mini-button svg {
  width: 14px;
  height: 14px;
}

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

.video-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid color-mix(in srgb, var(--video-color) 25%, var(--line));
  border-radius: var(--radius);
}

.video-thumb {
  position: relative;
  display: grid;
  min-height: 76px;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--video-color) 80%, #fff), color-mix(in srgb, var(--video-color) 62%, #111)),
    var(--video-color);
}

.video-thumb svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.25));
}

.video-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--video-color);
  background: #fff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
}

.video-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 8px;
}

.video-copy span,
.video-copy em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-copy strong {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.82rem;
  line-height: 1.28;
}

.affiliate-disclosure {
  margin: 0 0 8px;
  padding: 7px 9px;
  color: color-mix(in srgb, var(--hot) 72%, var(--text));
  background: color-mix(in srgb, var(--hot) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--hot) 22%, var(--line));
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 800;
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-image {
  position: relative;
  display: block;
  height: 96px;
  overflow: hidden;
  background: var(--surface-strong);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-image span {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 4px 6px;
  color: #fff;
  background: rgba(30, 37, 45, 0.78);
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 850;
}

.product-copy {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.product-copy strong {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.8rem;
  line-height: 1.28;
}

.product-copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.product-meta span {
  margin: 0;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
}

.product-meta b {
  display: grid;
  min-width: 28px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: var(--hot);
  border-radius: 6px;
  font-size: 0.68rem;
}

.affiliate-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  color: #fff;
  background: #1e252d;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 850;
}

.affiliate-button svg {
  width: 14px;
  height: 14px;
}

.signal-list {
  display: grid;
  gap: 6px;
}

.signal-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.38fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  padding: 7px 9px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.signal-row div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.signal-row div:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

.signal-row span {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.signal-row strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-row em,
.signal-row small {
  color: var(--muted);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 760;
}

.signal-row div:last-of-type {
  display: grid;
  justify-items: end;
}

.signal-row b {
  color: var(--hot);
  font-size: 0.82rem;
}

.signal-row i {
  position: absolute;
  inset: auto auto 0 0;
  width: var(--signal-width);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--yellow), var(--hot));
}

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

.briefing-grid article {
  min-width: 0;
  padding: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.briefing-grid span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 7px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 900;
}

.briefing-grid h3 {
  margin: 8px 0 6px;
  font-size: 0.92rem;
  line-height: 1.35;
  word-break: keep-all;
}

.briefing-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.55;
  word-break: keep-all;
}

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

.post-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgba(37, 46, 55, 0.055);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.post-card:hover {
  border-color: rgba(15, 139, 141, 0.42);
  box-shadow: 0 14px 38px rgba(37, 46, 55, 0.1);
  transform: translateY(-1px);
}

.rank-block {
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px;
  justify-items: center;
}

.rank-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(15, 139, 141, 0.13), rgba(242, 184, 75, 0.15)),
    var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.06rem;
  font-weight: 900;
}

.heat-bar {
  width: 42px;
  height: 6px;
  overflow: hidden;
  background: var(--surface-strong);
  border-radius: 999px;
}

.heat-fill {
  display: block;
  width: var(--heat);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--yellow), var(--hot));
  border-radius: inherit;
}

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

.post-topline,
.post-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #fff;
  background: var(--badge, var(--accent));
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
  white-space: nowrap;
}

.time-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.post-title-button {
  display: block;
  width: 100%;
  margin: 7px 0;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.post-title-button:hover {
  color: var(--accent-strong);
}

.post-metrics {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.post-metrics span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.post-metrics svg {
  width: 14px;
  height: 14px;
}

.post-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  margin-top: 8px;
  overflow: hidden;
}

.tag-chip {
  min-height: 25px;
  padding: 0 8px;
  font-size: 0.74rem;
  background: transparent;
  cursor: default;
}

.post-side {
  display: flex;
  gap: 8px;
  align-items: center;
}

.score-pill {
  display: grid;
  min-width: 68px;
  min-height: 54px;
  place-items: center;
  padding: 5px 8px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.score-pill strong {
  color: var(--hot);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.score-pill span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.save-button {
  box-shadow: none;
}

.save-button.saved {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: rgba(15, 139, 141, 0.38);
}

.insight-rail {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.rail-panel {
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(37, 46, 55, 0.06);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 0.82rem;
  font-weight: 860;
}

.panel-title svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

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

.stat-grid div {
  min-height: 56px;
  padding: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-grid strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.stat-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 760;
}

.trend-list,
.source-ranking,
.saved-list {
  display: grid;
  gap: 5px;
}

.trend-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 8px;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.trend-button:hover {
  border-color: var(--accent);
}

.trend-button span:first-child {
  min-width: 0;
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-button span:last-child {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.ranking-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  min-height: 30px;
}

.ranking-row strong,
.ranking-row span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.ranking-track {
  height: 9px;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.ranking-fill {
  display: block;
  width: var(--width);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: inherit;
}

.saved-item {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.saved-item span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-empty {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 36px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state svg {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  color: var(--accent);
}

.empty-state strong {
  color: var(--text);
  font-size: 1.05rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(13, 18, 22, 0.54);
  backdrop-filter: blur(12px);
}

.detail-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  width: min(860px, 100%);
  max-height: min(680px, 92vh);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.detail-media {
  min-height: 360px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--media-a) 82%, #fff), transparent 62%),
    linear-gradient(45deg, color-mix(in srgb, var(--media-b) 76%, #fff), color-mix(in srgb, var(--media-c) 76%, #111));
}

.detail-media::before {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(255, 255, 255, 0.22) 46% 48%, transparent 48%),
    radial-gradient(circle at 52% 45%, rgba(255, 255, 255, 0.34), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.15) 0 1px, transparent 1px 20px);
  content: "";
}

.detail-body {
  min-width: 0;
  overflow-y: auto;
  padding: 34px 26px 24px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: var(--muted);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.detail-body h2 {
  margin: 0;
  font-size: clamp(1.32rem, 2.6vw, 2rem);
  line-height: 1.26;
  letter-spacing: 0;
}

.detail-body p {
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.72;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 820;
}

.primary-button {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.secondary-button {
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  cursor: pointer;
}

.primary-button svg,
.secondary-button svg {
  width: 17px;
  height: 17px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  min-width: min(300px, calc(100vw - 40px));
  padding: 12px 14px;
  color: #fff;
  background: #1e252d;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 760;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 16px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

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

.site-footer span,
.site-footer a {
  font-size: 0.76rem;
  font-weight: 720;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-footer a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.site-footer a:hover {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.info-layout {
  display: grid;
  gap: 14px;
  max-width: 940px;
  margin: 20px auto 0;
}

.info-hero,
.info-section {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(37, 46, 55, 0.06);
}

.info-hero h1 {
  margin-bottom: 8px;
}

.info-hero p,
.info-section p,
.info-section li {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.7;
  word-break: keep-all;
}

.info-section h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.info-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

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

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

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

  .insight-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 10px 10px 28px;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: auto;
    padding: 4px 0 10px;
  }

  .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 44px;
  }

  .brand small {
    max-width: 145px;
  }

  .category-tabs {
    gap: 7px;
    padding: 4px 0 14px;
  }

  .tab {
    min-width: 58px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .feed-toolbar {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 12px;
  }

  .eyebrow {
    font-size: 0.78rem;
  }

  h1 {
    font-size: 1.6rem;
    line-height: 1.18;
  }

  .result-meta {
    justify-content: flex-start;
    font-size: 0.82rem;
  }

  .result-meta span {
    min-height: 32px;
    padding: 0 10px;
  }

  .control-panel {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px;
  }

  .money-panel {
    padding: 8px;
  }

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

  .money-panel h2 {
    font-size: 0.88rem;
  }

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

  .video-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .video-thumb {
    min-height: 66px;
  }

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

  .product-image {
    height: 82px;
  }

  .signal-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .signal-row div:last-of-type {
    justify-items: start;
  }

  .control-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
  }

  .control-label {
    font-size: 0.78rem;
  }

  .segmented,
  .source-filters {
    gap: 6px;
    padding-bottom: 2px;
  }

  .segment,
  .source-chip,
  .tag-chip {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  .source-chip span {
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
  }

  .community-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .community-header {
    min-height: 46px;
    padding: 8px 10px;
  }

  .community-title {
    gap: 8px;
  }

  .community-slot {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  .community-title h2 {
    max-width: none;
    font-size: 1rem;
    line-height: 1.15;
  }

  .community-title span:not(.community-slot) {
    max-width: none;
    font-size: 0.68rem;
  }

  .community-live {
    display: inline-flex;
    padding: 4px 7px;
    font-size: 0.62rem;
  }

  .compact-meta,
  .compact-tags {
    display: none;
  }

  .compact-post {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 62px;
    padding: 7px 9px;
  }

  .compact-rank {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 0.74rem;
  }

  .compact-title {
    min-height: auto;
    margin: 0;
    -webkit-line-clamp: 2;
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .compact-bottom {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 32px;
    margin-top: 5px;
  }

  .compact-score {
    min-width: 30px;
    height: 24px;
    border-radius: 7px;
    font-size: 0.72rem;
  }

  .compact-heat {
    height: 3px;
    margin-top: 5px;
  }

  .tiny-save {
    display: grid;
    width: 28px;
    height: 28px;
    justify-self: end;
  }

  .tiny-save svg {
    width: 15px;
    height: 15px;
  }

  .post-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-number {
    width: 38px;
    height: 38px;
  }

  .heat-bar {
    width: 38px;
  }

  .post-side {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-left: 56px;
  }

  .score-pill {
    min-height: 44px;
  }

  .insight-rail {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

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

  .detail-media {
    min-height: 180px;
  }
}

@media (max-width: 440px) {
  .header-actions {
    gap: 6px;
  }

  .icon-button {
    width: 39px;
    height: 39px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    flex-basis: 39px;
    width: 39px;
    height: 39px;
  }

  .brand strong {
    font-size: 1.12rem;
  }

  .brand small {
    max-width: 118px;
    font-size: 0.72rem;
  }

  .post-card {
    gap: 9px;
    padding: 10px;
  }

  .post-side {
    padding-left: 47px;
  }

  .detail-body {
    padding-inline: 18px;
  }

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