.reddit-trends-page {
  background:
    radial-gradient(circle at 10% 8%, rgba(217, 239, 158, .36), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(35, 102, 77, .16), transparent 32%),
    var(--paper);
}

.reddit-trends-page .site-header { z-index: 80; }

.trend-hero {
  min-height: 680px;
  padding: 86px 0 92px;
  display: grid;
  grid-template-columns: 1.04fr .76fr;
  gap: 48px;
  align-items: center;
}

.trend-hero h1 {
  max-width: 800px;
  margin: 22px 0;
  font-size: clamp(50px, 7vw, 96px);
  line-height: 1.01;
  letter-spacing: -.08em;
}

.trend-hero-copy > p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.trend-hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trend-live-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 21, 17, .12);
  border-radius: 30px;
  background: #132119;
  color: white;
  box-shadow: 0 30px 80px rgba(17, 32, 22, .18);
}

.trend-live-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(217, 239, 158, .16);
  box-shadow: 0 0 0 60px rgba(217, 239, 158, .05);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.live-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #95ff66;
  box-shadow: 0 0 0 6px rgba(149, 255, 102, .12);
}

.trend-live-card small {
  display: block;
  margin-top: 54px;
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
  letter-spacing: .12em;
}

.trend-live-card h2 {
  margin: 10px 0 12px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.trend-live-card p {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  line-height: 1.8;
}

.trend-live-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trend-live-grid div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
}

.trend-live-grid b {
  display: block;
  font-size: 25px;
  color: var(--lime);
}

.trend-live-grid span {
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}

.trend-board { padding-bottom: 70px; }

.trend-top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hot-card {
  min-height: 250px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 21, 17, .1);
  border-radius: 26px;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 18px 60px rgba(21, 35, 26, .08);
}

.hot-card:first-child {
  background: #d9ef9e;
}

.hot-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(17, 21, 17, .08);
  border-radius: 50%;
}

.hot-card small {
  color: rgba(17, 21, 17, .48);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.hot-card h3 {
  margin: 42px 0 4px;
  font-size: 42px;
  letter-spacing: -.06em;
}

.hot-card p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hot-stats {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hot-stats span {
  padding: 8px 10px;
  border-radius: 99px;
  background: rgba(17, 21, 17, .06);
  font-size: 12px;
  font-weight: 800;
}

.trend-console {
  padding-top: 30px;
  padding-bottom: 88px;
}

.trend-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.trend-toolbar h2 {
  margin: 10px 0 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -.07em;
}

.trend-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trend-controls input {
  width: min(360px, 68vw);
  padding: 13px 15px;
  border: 1px solid rgba(17, 21, 17, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
  color: var(--ink);
  outline: none;
}

.trend-controls button,
.trend-tabs button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.trend-controls button {
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.trend-tabs {
  margin: 28px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trend-tabs button {
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(17, 21, 17, .06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.trend-tabs button.active {
  background: #15231a;
  color: var(--lime);
}

.trend-table-wrap {
  overflow: auto;
  border: 1px solid rgba(17, 21, 17, .1);
  border-radius: 26px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 18px 55px rgba(20, 32, 23, .08);
}

.trend-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.trend-table th {
  padding: 16px 18px;
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  background: #f4f1e8;
  color: rgba(17, 21, 17, .56);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.trend-table td {
  padding: 17px 18px;
  border-top: 1px solid rgba(17, 21, 17, .08);
  color: var(--ink);
  font-size: 14px;
}

.trend-table tr:hover td {
  background: rgba(217, 239, 158, .12);
}

.ticker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 11px;
  border-radius: 12px;
  background: #15231a;
  color: var(--lime);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
}

.company-name {
  display: block;
  max-width: 320px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.num-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.change-up { color: #17784b !important; }
.change-down { color: #b54437 !important; }
.change-flat { color: rgba(17, 21, 17, .48) !important; }

.heatbar {
  width: 150px;
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(17, 21, 17, .08);
}

.heatbar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d9ef9e, #2f6f4c);
}

.trend-method {
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.method-card {
  padding: 24px;
  border: 1px solid rgba(17, 21, 17, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .58);
}

.method-card span {
  color: rgba(17, 21, 17, .36);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.method-card h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.method-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 13px;
}

@media (max-width: 980px) {
  .trend-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 60px; }
  .trend-top-grid { grid-template-columns: 1fr; }
  .trend-toolbar { display: block; }
  .trend-controls { margin-top: 20px; justify-content: flex-start; }
  .trend-method { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .trend-hero h1 { font-size: 48px; }
  .trend-live-grid { grid-template-columns: 1fr; }
  .trend-method { grid-template-columns: 1fr; }
  .trend-controls input { width: 100%; }
}
