/*
 * REDTUNE_FILE_CHARTER_v1
 * PLANE: Frontend
 * ROLE: Channel route presentation stylesheet
 * RESPONSIBILITY: Defines the responsive visual contract for canonical channel detail pages.
 * INPUTS: Semantic channel markup and shared design tokens.
 * OUTPUTS: Channel-specific hierarchy, metric, chart, list, and state presentation.
 * CALLERS: Canonical channel page generator.
 * SIDE_EFFECTS: None.
 * END_REDTUNE_FILE_CHARTER_v1
 */

.rt-channel-navigation {
  width: min(var(--rt-page), calc(100% - var(--rt-gutter) * 2));
  margin: clamp(28px, 4vw, 48px) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.rt-channel-navigation a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--rt-muted);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .015em;
  text-decoration: none;
  transition: color 160ms ease;
}

.rt-channel-navigation-icon {
  width: 16px;
  height: 16px;
  margin-right: 7px;
  flex: 0 0 auto;
  fill: currentColor;
}

.rt-channel-navigation a:hover,
.rt-channel-navigation a:focus-visible {
  color: var(--rt-text);
}

.channel-insight {
  width: min(var(--rt-page), calc(100% - var(--rt-gutter) * 2));
  max-width: none;
  min-width: 0;
  margin-inline: auto;
  padding-block: clamp(30px, 5vw, 68px) clamp(80px, 9vw, 132px);
  color: var(--rt-text);
  overflow-x: clip;
}

.channel-insight,
.channel-insight * {
  box-sizing: border-box;
}

.rt24-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
}

.rt24-stack {
  min-width: 0;
  display: grid;
  gap: clamp(38px, 6vw, 82px);
}

.rt24-section {
  min-width: 0;
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
  content-visibility: auto;
  contain-intrinsic-size: auto 540px;
}

.rt24-section > .rt24-section-title,
.rt24-section-title {
  margin: 0;
  color: var(--rt-ink);
  font-family: var(--rt-font-serif-bold);
  font-size: clamp(22px, 2.35vw, 32px);
  font-synthesis: none;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  text-wrap: balance;
}

.rt24-card,
.rt24-panel,
.rt24-hero,
.rt24-title-line,
.rt24-hero-copy,
.rt24-actions,
.rt24-kpi-text,
.rt24-head,
.rt24-chart-head,
.rt24-live-row,
.rt24-similar-card,
.rt24-similar-body {
  min-width: 0;
  max-width: 100%;
}

.rt24-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(380px, 31vw, 500px);
  padding: clamp(48px, 6vw, 86px);
  display: grid;
  grid-template-columns: clamp(180px, 16vw, 244px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
  overflow: hidden;
  border: 1px solid var(--rt-line-soft);
  border-radius: var(--rt-radius-xl);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--rt-shadow-soft);
  -webkit-backdrop-filter: var(--rt-blur);
  backdrop-filter: var(--rt-blur);
}

.rt24-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(280px, 38vw, 580px);
  aspect-ratio: 1;
  right: min(-12vw, -80px);
  bottom: min(-22vw, -180px);
  border-radius: 50%;
  background: color-mix(in srgb, var(--rt-accent-soft) 74%, transparent);
  filter: blur(2px);
  pointer-events: none;
}

.rt24-hero::after {
  content: none;
}

.rt24-hero > * {
  position: relative;
  z-index: 1;
}

.rt24-avatar-shell {
  width: clamp(180px, 16vw, 244px);
  height: clamp(180px, 16vw, 244px);
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: var(--rt-faint);
  box-shadow: 0 24px 60px rgba(17, 18, 20, .1);
}

.rt24-avatar,
.rt24-avatar-missing {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
}

.rt24-avatar {
  z-index: 2;
  opacity: 0;
  transition: opacity 180ms var(--rt-ease);
}

.rt24-avatar-missing {
  z-index: 1;
  border: 1px dashed var(--rt-line-strong);
  background: var(--rt-faint);
  transition: opacity 180ms var(--rt-ease);
}

.rt24-avatar-shell.is-loaded .rt24-avatar {
  opacity: 1;
}

.rt24-avatar-shell.is-loaded .rt24-avatar-missing {
  opacity: 0;
}

.rt24-avatar-shell.is-missing {
  display: none;
  box-shadow: none;
}

.rt24-hero.is-avatar-missing {
  grid-template-columns: minmax(0, 1fr);
}

.rt24-hero-copy,
.rt24-hero > div:not([class]) {
  min-width: 0;
  display: grid;
  gap: clamp(22px, 2.8vw, 34px);
}

.rt24-title-line {
  display: grid;
  gap: 12px;
}

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

.rt24-channel-chip {
  min-height: 32px;
  padding-inline: 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rt-line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: var(--rt-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.rt24-title {
  margin: 0;
  color: var(--rt-ink);
  font-family: var(--rt-font-serif-bold);
  font-size: clamp(32px, 3.2vw, 52px);
  font-synthesis: none;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.22;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.rt24-channel-open-meta {
  margin: 0;
  color: var(--rt-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1.6;
}

.rt24-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rt24-pill,
.rt-bookmark-button,
.rt-page-like-button,
.rt24-readmore {
  min-height: 44px;
  padding-inline: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rt-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--rt-text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 160ms var(--rt-ease),
    background-color 160ms var(--rt-ease),
    transform 160ms var(--rt-ease);
}

.rt24-hero .rt24-pill {
  min-height: 48px;
  padding-inline: 20px;
}

.rt24-hero .rt-bookmark-button,
.rt24-hero .rt-page-like-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
}

.rt24-pill:hover,
.rt-bookmark-button:hover,
.rt-page-like-button:hover,
.rt24-readmore:hover {
  border-color: var(--rt-line-strong);
  background: var(--rt-surface-strong);
  transform: translateY(-1px);
}

.rt24-pill:active,
.rt-bookmark-button:active,
.rt-page-like-button:active,
.rt24-readmore:active {
  transform: translateY(0);
}

.rt-bookmark-button.is-active,
.rt-bookmark-button[aria-pressed="true"] {
  color: var(--rt-accent);
}

.rt-page-like-button.is-active,
.rt-page-like-button[aria-pressed="true"] {
  color: var(--rt-down);
}

.rt24-action-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: var(--rt-subtle);
  font-size: 13px;
}

.rt24-hero > .rt24-action-counts,
.rt24-hero .rt-page-reaction-meta {
  position: absolute;
  right: clamp(32px, 5vw, 72px);
  bottom: clamp(28px, 4vw, 54px);
  justify-content: flex-end;
  color: var(--rt-subtle);
}

.rt24-count-pill {
  min-width: 0;
  min-height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  line-height: 1.35;
  box-shadow: none;
}

.rt24-count-pill .rt-symbol {
  color: var(--rt-subtle);
  font-size: 18px;
}

.rt24-count-label {
  color: var(--rt-muted);
}

.rt24-count-pill strong {
  color: var(--rt-text);
  font-family: var(--rt-font-metric);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rt24-share-row {
  position: relative;
  max-width: 100%;
  margin: clamp(-8px, -1vw, 0px) auto 0;
  display: inline-flex;
  justify-content: center;
  gap: 8px;
}

.rt24-share-row > .rt-tool-button {
  width: auto;
  height: 46px;
  min-width: 0;
  min-height: 46px;
  padding-inline: 15px;
  gap: 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
}

.rt24-share-more > .rt-tool-button {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
}

.rt24-share-row .rt-brand-icon,
.rt24-share-row .rt-brand-icon svg {
  width: 20px;
  height: 20px;
}

.rt24-share-more {
  position: static;
  z-index: 60;
  flex: 0 0 auto;
}

.rt24-share-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: auto;
  left: 50%;
  z-index: 80;
  width: min(332px, calc(100vw - 32px));
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid rgb(31 35 43 / 11%);
  border-radius: 16px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 18px 50px rgb(20 25 36 / 14%);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  backdrop-filter: blur(22px) saturate(1.16);
  transform-origin: top center;
  translate: -50% 0;
  animation: rt24-share-more-in 140ms var(--rt-ease-out) both;
}

.rt24-share-more-item {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--rt-text);
  font: inherit;
  font-size: 13px;
  font-weight: 580;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms var(--rt-ease), color 120ms var(--rt-ease);
}

.rt24-share-more-item:hover,
.rt24-share-more-item:focus-visible {
  background: var(--rt-neutral-3);
  color: var(--rt-ink);
  outline: 0;
}

.rt24-share-more-item .rt-brand-icon,
.rt24-share-more-item .rt-brand-icon svg {
  width: 19px;
  height: 19px;
}

.rt24-share-more-label {
  min-width: 0;
  padding-block: 2px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt24-share-row > .rt-tool-button > span.rt24-share-primary-label {
  display: inline;
  line-height: 1;
}

@keyframes rt24-share-more-in {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rt24-hero .rt-page-tools,
.rt24-hero .rt-share-actions {
  margin-top: 0;
}

.rt24-kpi-grid {
  min-width: 0;
  padding: clamp(30px, 4.5vw, 58px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  border: 1px solid var(--rt-line-soft);
  border-radius: var(--rt-radius-xl);
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--rt-shadow-soft);
}

.rt24-support-grid,
.rt24-avg-grid,
.rt24-promo-metrics {
  min-width: 0;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rt-line-soft);
  border-radius: var(--rt-radius-lg);
  background: var(--rt-line-soft);
}

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

.rt24-promo-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rt24-kpi,
.rt24-support-card,
.rt24-avg-card,
.rt24-promo-metric {
  min-width: 0;
  padding: clamp(18px, 2.8vw, 28px);
  display: grid;
  align-content: start;
  gap: 9px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .78);
  box-shadow: none;
}

.rt24-kpi {
  padding: 0;
  background: transparent;
}

.rt24-kpi .rt24-kpi-text {
  display: grid;
  gap: 10px;
}

.rt24-support-card {
  min-height: 172px;
  gap: 14px;
}

.rt24-kpi-label,
.rt24-support-label,
.rt24-avg-label,
.rt24-promo-title {
  overflow: hidden;
  color: var(--rt-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt24-kpi-label {
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 700;
  letter-spacing: 0;
}

.rt24-kpi-value,
.rt24-support-value,
.rt24-avg-value,
.rt24-promo-value {
  overflow: hidden;
  color: var(--rt-text);
  font-family: var(--rt-font-metric);
  font-size: clamp(21px, 2.4vw, 31px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt24-kpi-value {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.06;
}

.rt24-kpi-delta,
.rt24-kpi-rank,
.rt24-chart-current,
.rt24-results,
.rt24-live-empty,
.rt24-empty-note,
.rt24-similar-meta {
  color: var(--rt-muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.55;
}

.rt24-kpi-rank {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35em .55em;
}

.channel-metric__num,
.rt24-num,
.rt-rank-position,
.rt-rank-percent {
  font-family: var(--rt-font-metric);
  font-variant-numeric: tabular-nums;
}

.channel-metric__num,
.rt24-num {
  font-size: 1em;
  line-height: 1;
}

.channel-metric__unit,
.rt24-unit {
  margin-left: .16em;
  color: var(--rt-muted);
  font-size: 11px;
  font-weight: 450;
  line-height: 1;
  vertical-align: .12em;
}

.rt24-similar-card .rt24-unit,
.rt24-similar-meta .rt24-unit {
  margin-left: .08em;
  font-size: 1em;
  line-height: 1;
  vertical-align: baseline;
}

.rt-rank-change {
  display: inline-flex;
  align-items: center;
  gap: .2em;
  font-family: var(--rt-font-metric);
  font-variant-numeric: tabular-nums;
}

.rt-rank-icon {
  width: 1em;
  height: 1em;
  display: inline-grid;
  place-items: center;
  font-size: 1.05em;
  line-height: 1;
  vertical-align: -.16em;
}

.is-flat,
.rt24-kpi-delta.is-flat,
.rt24-kpi-rank.is-flat {
  color: var(--rt-flat);
}

.is-up,
.rt24-kpi-delta.is-up,
.rt24-kpi-rank.is-up,
.rtci-delta.is-positive {
  color: var(--rt-up);
}

.is-down,
.rt24-kpi-delta.is-down,
.rt24-kpi-rank.is-down,
.rtci-delta.is-negative {
  color: var(--rt-down);
}

.rt24-panel {
  min-width: 0;
  padding: clamp(22px, 3.3vw, 36px);
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  overflow: hidden;
  border: 1px solid var(--rt-line-soft);
  border-radius: var(--rt-radius-lg);
  background: rgba(255, 255, 255, .68);
  box-shadow: var(--rt-shadow-soft);
}

.rt24-head,
.rt24-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 20px;
}

.rt24-chart-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rt-line-soft);
  border-radius: var(--rt-radius);
  background: var(--rt-line-soft);
}

.channel-chart-card {
  min-width: 0;
  padding: clamp(14px, 1.8vw, 20px);
  border: 0;
  background: rgba(255, 255, 255, .78);
}

.rt24-chart-title {
  margin: 0;
  color: var(--rt-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.rt24-chart-stage {
  min-height: 48px;
  display: grid;
  justify-items: start;
  align-items: center;
}

.rt24-chart-stage svg {
  width: 100%;
  max-width: none;
  height: 48px;
  grid-area: 1 / 1;
}

.rt24-chart-empty {
  min-height: 48px;
  grid-area: 1 / 1;
  align-items: center;
  color: var(--rt-muted);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.rt24-activity-section .rt24-panel {
  gap: clamp(18px, 2.6vw, 30px);
}

.rt24-activity-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--rt-text);
  line-height: 1.25;
}

.rt24-activity-summary strong {
  font-family: var(--rt-font-metric);
  font-size: clamp(22px, 2.2vw, 30px);
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}

.rt24-activity-summary > span {
  color: var(--rt-muted);
  font-size: 14px;
  font-weight: 500;
}

.rt24-activity-maps {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.rt24-activity-heat {
  min-width: 0;
  display: grid;
  gap: 0;
}

.rt24-activity-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.rt24-activity-heat-head,
.rt24-activity-heat-row {
  display: grid;
  align-items: center;
  gap: 3px;
}

.rt24-activity-heat--hours .rt24-activity-heat-head,
.rt24-activity-heat--hours .rt24-activity-heat-row {
  min-width: 334px;
  grid-template-columns: 22px repeat(24, 10px);
}

.rt24-activity-heat--year .rt24-activity-heat-head,
.rt24-activity-heat--year .rt24-activity-heat-row {
  min-width: 710px;
  grid-template-columns: 22px repeat(53, 10px);
}

.rt24-activity-heat-head {
  min-height: 20px;
  color: var(--rt-muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.rt24-activity-heat-head span:not(:first-child) {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin-bottom: 6px;
  overflow: visible;
  text-align: left;
  white-space: nowrap;
}

.rt24-activity-heat--hours .rt24-activity-heat-head span:not(:first-child) {
  text-align: center;
}

.rt24-activity-axis {
  margin-right: 4px;
  color: var(--rt-muted);
  font-size: 12px;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.rt24-activity-heat-body {
  display: grid;
  gap: 3px;
}

.rt24-activity-cell,
.rt24-activity-legend span {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border-radius: 3px;
  background: var(--rt-faint);
  box-shadow: inset 0 0 0 1px var(--rt-line-soft);
}

.rt24-activity-cell[data-level="0"],
.rt24-activity-legend span[data-level="0"] {
  background: #edf2f7;
}

.rt24-activity-cell[data-level="1"],
.rt24-activity-legend span[data-level="1"] {
  background: #dbeafe;
}

.rt24-activity-cell[data-level="2"],
.rt24-activity-legend span[data-level="2"] {
  background: #93c5fd;
}

.rt24-activity-cell[data-level="3"],
.rt24-activity-legend span[data-level="3"] {
  background: #60a5fa;
}

.rt24-activity-cell[data-level="4"],
.rt24-activity-legend span[data-level="4"] {
  background: #2563eb;
}

.rt24-activity-cell[data-level="5"],
.rt24-activity-legend span[data-level="5"] {
  background: #1e40af;
}

.rt24-activity-cell.is-muted {
  opacity: .3;
}

.rt24-activity-legend {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: var(--rt-muted);
  font-size: 12px;
  line-height: 1;
}

.rt24-activity-legend span {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
}

.rt24-live-tools {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, auto) minmax(116px, auto) auto;
  align-items: center;
  gap: 10px;
}

.rt24-live-tools input,
.rt24-live-select-button,
.rt24-live-select-option {
  min-height: 48px;
  border: 1px solid var(--rt-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--rt-text);
  font: inherit;
}

.rt24-live-tools input,
.rt24-live-select-button {
  width: 100%;
  padding-inline: 15px;
}

.rt24-live-select-button,
.rt24-live-select-option {
  cursor: pointer;
  text-align: left;
}

.rt24-live-tools input:hover,
.rt24-live-select-button:hover {
  border-color: var(--rt-line-strong);
  background: var(--rt-surface-strong);
}

.rt24-live-tools input:focus-visible,
.rt24-live-select-button:focus-visible {
  outline: 2px solid var(--rt-accent);
  outline-offset: 3px;
}

.rt24-live-select {
  position: relative;
  min-width: 0;
}

.rt24-live-select-menu {
  position: absolute;
  z-index: 130;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  width: min(max(100%, 220px), calc(100vw - 32px));
  min-width: 220px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  display: none;
  gap: 2px;
  border-radius: var(--rt-radius);
}

.rt24-live-select.is-open .rt24-live-select-menu {
  display: grid;
}

.rt24-live-select-option {
  min-height: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: calc(var(--rt-radius) - 4px);
  background: transparent;
}

.rt24-results {
  font-variant-numeric: tabular-nums;
}

.rt24-live-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(14px, 1.8vw, 22px);
}

.rt24-live-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  overflow: hidden;
  border: 1px solid var(--rt-line-soft);
  border-radius: var(--rt-radius);
  background: rgba(255, 255, 255, .74);
  color: var(--rt-text);
  box-shadow: var(--rt-shadow-soft);
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
  transition:
    border-color 160ms var(--rt-ease),
    box-shadow 160ms var(--rt-ease),
    transform 160ms var(--rt-ease);
}

.rt24-live-row:hover {
  border-color: var(--rt-line-strong);
  box-shadow: var(--rt-shadow);
  transform: translateY(-2px);
}

.rt24-live-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--rt-faint);
}

.rt24-live-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 200ms var(--rt-ease);
}

.rt24-live-row:hover .rt24-live-thumb {
  transform: scale(1.018);
}

.rt24-live-badge,
.rt24-live-duration {
  position: absolute;
  z-index: 1;
  min-height: 28px;
  padding-inline: 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(17, 18, 20, .7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rt24-live-badge {
  top: 10px;
  left: 10px;
}

.rt24-live-duration {
  right: 10px;
  bottom: 10px;
}

.rt24-live-body {
  min-width: 0;
  padding: clamp(15px, 1.8vw, 20px);
  display: grid;
  gap: 14px;
}

.rt24-live-title {
  min-height: 3em;
  display: -webkit-box;
  overflow: hidden;
  color: var(--rt-ink);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rt24-live-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: 13px;
  border-top: 1px solid var(--rt-line-soft);
}

.rt24-live-metric {
  min-width: 0;
  padding-inline: 10px;
  display: grid;
  gap: 5px;
  border-left: 1px solid var(--rt-line-soft);
}

.rt24-live-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.rt24-live-metric:last-child {
  padding-right: 0;
}

.rt24-live-metric-label {
  overflow: hidden;
  color: var(--rt-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt24-live-metric-value {
  overflow: hidden;
  color: var(--rt-text);
  font-family: var(--rt-font-metric);
  font-size: clamp(17px, 1.45vw, 22px);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt24-live-metric.is-primary .rt24-live-metric-value {
  color: var(--rt-accent-ink);
}

.rt24-live-empty,
.rt24-empty-note {
  min-height: 160px;
  padding: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rt-line-soft);
  border-radius: var(--rt-radius-lg);
  background: rgba(255, 255, 255, .68);
  color: var(--rt-muted);
  text-align: center;
}

.rt24-overview {
  padding: clamp(22px, 3.2vw, 36px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.2vw, 22px);
}

.rt24-overview-body {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.rt24-overview-label,
.rt24-overview dt {
  color: var(--rt-ink);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.rt24-overview-text,
.rt24-overview dd {
  margin: 0;
  color: var(--rt-text);
  line-height: 1.9;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.rt24-overview-text.collapsible-content:not(.open) {
  max-height: 9.6em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent);
  mask-image: linear-gradient(180deg, #000 68%, transparent);
}

.rt24-readmore {
  width: fit-content;
  min-width: 104px;
  justify-self: start;
  appearance: none;
}

.rt24-readmore[hidden] {
  display: none !important;
}

.rt24-avg-spark,
.rt24-support-spark {
  width: 100%;
  height: 48px;
  margin-top: auto;
  display: block;
  opacity: .9;
}

.rt24-avg-spark {
  max-width: none;
}

.rt24-avg-spark--empty {
  min-height: 48px;
}

.rt24-avg-coverage {
  min-height: 18px;
  color: var(--rt-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.rt24-support-spark {
  max-width: 220px;
}

.rt24-similar-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rt24-similar-card {
  min-height: 92px;
  padding: 14px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--rt-line-soft);
  border-radius: var(--rt-radius);
  background: rgba(255, 255, 255, .64);
  color: inherit;
  transition:
    border-color 160ms var(--rt-ease),
    background-color 160ms var(--rt-ease),
    transform 160ms var(--rt-ease);
}

.rt24-similar-card:hover {
  border-color: var(--rt-line-strong);
  background: rgba(255, 255, 255, .86);
  transform: translateY(-1px);
}

.rt24-similar-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rt-faint);
  object-fit: cover;
}

.rt24-similar-name {
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--rt-text);
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rtci-delta {
  margin-top: 8px;
  color: var(--rt-flat);
  font-size: 13px;
}

.rt24-table-scroll,
.rt24-promo-table-wrap,
.rt24-promo-stack {
  width: 100%;
  min-width: 0;
}

.rt24-table-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.rt24-table-scroll:focus-visible {
  outline: 3px solid var(--rt-focus);
  outline-offset: 4px;
}

.rt24-table-hint {
  display: none;
  margin: 0 0 10px;
  color: var(--rt-muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
}

.rt24-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.rt24-table th,
.rt24-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--rt-line-soft);
  color: var(--rt-muted);
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.rt24-table th {
  color: var(--rt-text);
  font-size: 12px;
  font-weight: 650;
}

.rt24-promo-stack {
  display: grid;
  gap: 10px;
}

.rtci-pagination,
#rt-search-pagination,
.rt24-pagination {
  margin-block: clamp(18px, 3vw, 32px) clamp(10px, 2vw, 22px);
}

@media (max-width: 1080px) {
  .rt24-kpi-grid,
  .rt24-promo-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rt24-support-grid,
  .rt24-avg-grid,
  .rt24-chart-grid,
  .rt24-live-list,
  .rt24-similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rt24-live-tools {
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(130px, auto));
  }

  .rt24-results {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .rt24-hero {
    grid-template-columns: clamp(150px, 22vw, 190px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 48px);
  }

  .rt24-avatar-shell {
    width: clamp(150px, 22vw, 190px);
    height: clamp(150px, 22vw, 190px);
  }

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

@media (max-width: 700px) {
  .channel-insight {
    width: min(var(--rt-page), calc(100% - 24px));
    max-width: none;
    padding-block: 28px 88px;
  }

  .rt24-wrap {
    width: 100%;
    max-width: 100%;
  }

  .rt24-stack {
    gap: 48px;
  }

  .rt24-hero,
  .rt24-activity-maps,
  .rt24-live-tools,
  .rt24-live-list,
  .rt24-live-row,
  .rt24-overview {
    grid-template-columns: 1fr;
  }

  .rt24-hero,
  .rt24-panel {
    padding: 24px;
    border-radius: var(--rt-radius-lg);
  }

  .rt24-hero {
    min-height: 0;
    justify-items: center;
    gap: 24px;
    padding-block: 34px;
    text-align: center;
  }

  .rt24-avatar-shell {
    width: clamp(144px, 42vw, 188px);
    height: clamp(144px, 42vw, 188px);
  }

  .rt24-hero-copy,
  .rt24-title-line {
    justify-items: center;
  }

  .rt24-channel-meta,
  .rt24-actions {
    justify-content: center;
  }

  .rt24-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .rt24-hero > .rt24-action-counts,
  .rt24-hero .rt-page-reaction-meta {
    position: static;
    grid-column: 1 / -1;
    order: 3;
    justify-content: center;
    margin-top: 2px;
  }

  .rt24-share-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 8px auto 2px;
  }

  .rt24-share-row .rt-tool-button {
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .rt24-share-row > .rt-tool-button {
    width: auto;
    padding-inline: 13px;
  }

  .rt24-share-more > .rt-tool-button {
    width: 44px;
    padding: 0;
  }

  .rt24-share-row .rt-brand-icon,
  .rt24-share-row .rt-brand-icon svg {
    width: 20px;
    height: 20px;
  }

  .rt24-share-row .rt-brand-icon--hb,
  .rt24-share-row .rt-brand-icon--hb svg {
    width: 20px;
    height: 20px;
  }

  .rt24-kpi-grid,
  .rt24-support-grid,
  .rt24-avg-grid,
  .rt24-promo-metrics,
  .rt24-chart-grid,
  .rt24-similar-grid {
    grid-template-columns: 1fr;
  }

  .rt24-kpi-grid {
    gap: 24px;
    padding: 28px 24px;
  }

  .rt24-live-tools {
    align-items: stretch;
  }

  .rt24-live-list {
    gap: 14px;
  }

  .rt24-live-thumb {
    width: 100%;
  }

  .rt24-live-body {
    padding: 16px;
  }

  .rt24-table {
    min-width: 680px;
  }

  .rt24-table-hint {
    display: block;
  }
}

@media (max-width: 430px) {
  .channel-insight {
    width: min(var(--rt-page), calc(100% - 16px));
  }

  .rt24-hero,
  .rt24-panel {
    padding-inline: 18px;
  }

  .rt24-share-row {
    max-width: 100%;
  }

  .rt24-share-more-menu {
    width: min(280px, calc(100vw - 24px));
  }

  .rt24-kpi-grid {
    padding-inline: 20px;
  }

  .rt24-live-metric {
    padding-inline: 7px;
  }

  .rt24-live-metric-label {
    font-size: 12px;
  }

  .rt24-live-metric-value {
    font-size: 16px;
  }

  .rt24-activity-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (hover: none), (pointer: coarse) {
  .rt24-pill,
  .rt-bookmark-button,
  .rt-page-like-button,
  .rt24-readmore,
  .rt24-live-select-option {
    min-height: 44px;
  }

  .rt24-live-row:hover,
  .rt24-similar-card:hover,
  .rt24-pill:hover,
  .rt-bookmark-button:hover,
  .rt-page-like-button:hover,
  .rt24-readmore:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt24-avatar,
  .rt24-avatar-missing,
  .rt24-pill,
  .rt-bookmark-button,
  .rt-page-like-button,
  .rt24-readmore,
  .rt24-live-row,
  .rt24-live-thumb,
  .rt24-similar-card {
    transition: none;
  }

  .rt24-live-row:hover,
  .rt24-live-row:hover .rt24-live-thumb,
  .rt24-similar-card:hover,
  .rt24-pill:hover,
  .rt-bookmark-button:hover,
  .rt-page-like-button:hover,
  .rt24-readmore:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .rt24-hero,
  .rt24-panel,
  .rt24-kpi-grid,
  .rt24-support-grid,
  .rt24-avg-grid,
  .rt24-promo-metrics,
  .rt24-live-row,
  .rt24-live-empty,
  .rt24-empty-note,
  .rt24-similar-card,
  .rt24-live-select-menu {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
    forced-color-adjust: auto;
  }

  .rt24-hero::before {
    display: none;
  }

  .rt24-live-badge,
  .rt24-live-duration {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .rt24-activity-cell,
  .rt24-activity-legend span {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
  }
}

/* Living Index detail layer: one editorial surface, media and data carry hierarchy. */
.channel-insight {
  padding-block: clamp(28px, 4vw, 58px) clamp(88px, 10vw, 152px);
}

.rt24-stack { gap: clamp(30px, 3.5vw, 44px); }
.rt24-section { gap: clamp(16px, 2vw, 24px); }

.rt24-stack > .rt24-section + .rt24-section {
  padding-top: 0;
  border-top: 0;
}

.rt24-section > .rt24-section-title,
.rt24-section-title {
  font-size: clamp(27px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -.025em;
}

.rt24-hero {
  min-height: clamp(350px, 30vw, 470px);
  padding: clamp(38px, 5vw, 72px) 0;
  grid-template-columns: clamp(152px, 15vw, 218px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 96px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.rt24-hero::before { display: none; }

.rt24-avatar-shell {
  width: clamp(152px, 15vw, 218px);
  height: clamp(152px, 15vw, 218px);
  border: 0;
  background: var(--rt-neutral-3);
  box-shadow: none;
}

.rt24-title {
  max-width: 18ch;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.rt24-channel-chip {
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rt-muted);
}

.rt24-kpi-grid {
  padding: clamp(28px, 4vw, 48px) 0;
  gap: clamp(24px, 3.5vw, 48px);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rt24-kpi {
  min-height: 144px;
  padding: 0;
  border: 0;
}

.rt24-kpi:first-child { padding-left: 0; border-left: 0; }
.rt24-kpi:last-child { padding-right: 0; }
.rt24-kpi + .rt24-kpi {
  padding-left: clamp(24px, 3.5vw, 48px);
  border-left: 1px solid var(--rt-line-soft);
}

.rt24-kpi-value .channel-metric__unit {
  margin-left: .22em;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 500;
  vertical-align: .08em;
}

.rt24-support-grid,
.rt24-avg-grid,
.rt24-promo-metrics,
.rt24-chart-grid {
  gap: clamp(20px, 3vw, 40px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.rt24-support-card,
.rt24-avg-card,
.rt24-promo-metric,
.channel-chart-card {
  background: transparent;
  border: 0;
}

.rt24-support-card:first-child,
.rt24-avg-card:first-child,
.rt24-promo-metric:first-child,
.channel-chart-card:first-child { border-left: 0; }

.rt24-panel {
  padding: clamp(28px, 4vw, 48px) 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rt24-live-row {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rt24-live-row:last-child { border-bottom: 0; }
.rt24-live-row:hover { transform: none; }

.rt24-similar-grid {
  gap: clamp(18px, 3vw, 36px);
  border: 0;
}

.rt24-similar-card {
  padding: clamp(18px, 2.2vw, 28px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rt24-similar-card:first-child { border-left: 0; }
.rt24-similar-card:hover { transform: none; color: var(--rt-accent-ink); }

@media (max-width: 700px) {
  .channel-insight { width: 100%; }
  .rt24-stack { gap: 48px; }
  .rt24-hero {
    grid-template-columns: 1fr;
    padding: 32px 0 38px;
    justify-items: start;
    gap: 26px;
    border-radius: 0;
    text-align: left;
  }
  .rt24-hero-copy,
  .rt24-title-line {
    width: 100%;
    justify-items: start;
  }
  .rt24-channel-meta,
  .rt24-actions { justify-content: flex-start; }
  .rt24-title {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 46px);
    letter-spacing: -.025em;
  }
  .rt24-kpi-grid { padding: 0; gap: 32px; }
  .rt24-kpi {
    min-height: 120px;
    padding: 24px 0;
    border: 0;
  }
  .rt24-kpi + .rt24-kpi {
    padding-left: 0;
    border-top: 1px solid var(--rt-line-soft);
    border-left: 0;
  }
  .rt24-kpi:first-child { border-top: 0; }
  .rt24-support-grid,
  .rt24-avg-grid,
  .rt24-promo-metrics,
  .rt24-chart-grid,
  .rt24-similar-grid { grid-template-columns: 1fr; }
  .rt24-support-card,
  .rt24-avg-card,
  .rt24-promo-metric,
  .channel-chart-card,
  .rt24-similar-card {
    border: 0;
  }
  .rt24-support-card:first-child,
  .rt24-avg-card:first-child,
  .rt24-promo-metric:first-child,
  .channel-chart-card:first-child,
  .rt24-similar-card:first-child { border-top: 0; }
  .rt24-panel { padding-inline: 0; border-radius: 0; }
}

/* Channel review surface: period trends, GitHub-like activity, video tiles. */
.rt24-period-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.rt24-trend-range {
  margin-left: auto;
  color: var(--rt-muted);
  font-size: 13px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rt24-period-controls {
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border-radius: 999px;
  background: var(--rt-neutral-3);
  scrollbar-width: none;
}

.rt24-period-controls::-webkit-scrollbar { display: none; }

.rt24-period-controls button {
  min-width: 62px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rt-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms var(--rt-ease);
}

.rt24-period-controls button:hover { color: var(--rt-text); }

.rt24-period-controls button.is-active,
.rt24-period-controls button[aria-pressed="true"] { color: var(--rt-text); }

.rt24-period-controls:not([data-rt-segment-ready]) button.is-active,
.rt24-period-controls:not([data-rt-segment-ready]) button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 1px 4px rgb(21 25 35 / 9%);
}

.rt24-period-controls button:focus-visible {
  outline: 2px solid var(--rt-accent);
  outline-offset: 2px;
}

/* Compatibility for channel pages generated before the twelve-chart switch. */
.rt24-period-grid {
  margin-top: clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.rt24-mini {
  min-width: 0;
  padding: clamp(18px, 2.6vw, 28px);
  display: grid;
  gap: 8px;
  border: 1px solid rgb(31 35 43 / 10%);
  border-radius: 18px;
  background: #fff;
}

.rt24-mini-label {
  color: var(--rt-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.rt24-mini-value {
  color: var(--rt-text);
  font-family: var(--rt-font-metric);
  font-size: clamp(21px, 2.4vw, 31px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1.15;
}

.rt24-mini-value .channel-metric__unit {
  margin-left: .2em;
  font-size: .68em;
  font-weight: 520;
}

.rt24-period-section .rt24-chart-grid,
.rt24-avg-section .rt24-avg-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.rt24-period-section .channel-chart-card {
  min-width: 0;
  min-height: 166px;
  padding: clamp(18px, 1.9vw, 21px);
  display: grid;
  align-content: stretch;
  gap: 12px;
  border: 1px solid rgb(31 35 43 / 8%);
  border-radius: 14px;
  background: #fff;
}

.rt24-avg-section .rt24-avg-card {
  min-height: 166px;
  padding: clamp(18px, 1.9vw, 21px);
  gap: 10px;
  border: 1px solid rgb(31 35 43 / 8%);
  border-radius: 14px;
  background: #fff;
}

.rt24-period-section .rt24-chart-head {
  display: grid;
  justify-content: stretch;
  gap: 9px;
}

.rt24-period-section .rt24-chart-title {
  color: var(--rt-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.4;
}

.rt24-period-section .rt24-chart-current {
  overflow: hidden;
  color: var(--rt-text);
  font-family: var(--rt-font-metric);
  font-size: clamp(21px, 2.4vw, 31px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rt24-period-section .rt24-chart-stage,
.rt24-period-section .rt24-chart-stage svg,
.rt24-period-section .rt24-chart-empty,
.rt24-avg-section .rt24-avg-spark,
.rt24-avg-section .rt24-avg-spark--empty {
  min-height: 56px;
  height: 56px;
}

.rt24-period-section .rt24-chart-stage,
.rt24-avg-section .rt24-avg-spark,
.rt24-avg-section .rt24-avg-spark--empty {
  margin-top: auto;
}

.rt24-avg-section .rt24-avg-label {
  font-size: 13px;
  line-height: 1.45;
}

.rt24-period-section .channel-chart-card.is-empty .rt24-chart-current,
.rt24-avg-section .rt24-avg-card.is-empty .rt24-avg-value {
  color: var(--rt-muted);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
}

.rt24-period-section .channel-chart-card.is-empty .rt24-chart-stage,
.rt24-avg-section .rt24-avg-card.is-empty .rt24-avg-spark--empty {
  opacity: .38;
}

.rt24-promo-status {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rt24-promo-status-item {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f7f7f5;
  color: var(--rt-muted);
  font-size: 12px;
  line-height: 1.35;
}

.rt24-live-tools {
  grid-template-columns: minmax(240px, 1fr) minmax(150px, auto) auto;
  overflow: visible;
}

.rt24-live-section .rt24-panel {
  overflow: visible;
}

/* Menus must paint outside the section; rows retain their own lazy rendering. */
.rt24-live-section {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

.rt24-live-select.is-open {
  z-index: 200;
}

.rt24-live-select-menu {
  right: 0;
  left: auto;
}

.rt24-live-row {
  border: 1px solid rgb(31 35 43 / 9%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(26 31 44 / 6%);
}

.rt24-live-row:hover {
  border-color: rgb(31 35 43 / 16%);
  box-shadow: 0 14px 36px rgb(26 31 44 / 10%);
  transform: translateY(-2px);
}

.rt24-live-metrics {
  padding-top: 0;
  border-top: 0;
}

.rt24-live-metric { border-left: 0; }

.rt24-video-pagination-shell {
  min-height: 44px;
}

.rt24-video-pagination-shell:empty {
  min-height: 0;
  display: none;
}



.rt24-activity-maps {
  width: 100%;
  gap: clamp(36px, 5vw, 56px);
}

.rt24-activity-heat {
  width: min(100%, 812px);
  margin-inline: auto;
  gap: 14px;
}

.rt24-activity-scroll {
  padding-inline: 12px 36px;
}

.rt24-activity-heat-title {
  margin: 0;
  color: var(--rt-text);
  font-size: 14px;
  font-weight: 650;
}

.rt24-activity-heat-head,
.rt24-activity-heat-row,
.rt24-activity-heat-body {
  gap: 3px;
}

.rt24-activity-heat--hours .rt24-activity-heat-head,
.rt24-activity-heat--hours .rt24-activity-heat-row {
  width: 764px;
  min-width: 764px;
  grid-template-columns: 22px repeat(24, minmax(0, 1fr));
}

.rt24-activity-heat--year .rt24-activity-heat-head,
.rt24-activity-heat--year .rt24-activity-heat-row {
  width: 764px;
  min-width: 764px;
  grid-template-columns: 22px repeat(53, 11px);
}

.rt24-activity-heat-body,
.rt24-activity-legend {
  width: 764px;
  min-width: 764px;
  margin-inline: auto;
}

.rt24-activity-legend {
  justify-content: center;
}

.rt24-overview-section .rt24-overview {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgb(31 35 43 / 10%);
  border-radius: 18px;
  background: #fff;
}

.rt24-similar-grid {
  gap: clamp(12px, 1.5vw, 18px);
}

.rt24-similar-card {
  border: 1px solid rgb(31 35 43 / 10%);
  border-radius: 16px;
  background: #fff;
}

.rt24-similar-card:hover {
  border-color: rgb(31 35 43 / 20%);
  background: #fff;
}

.rt24-similar-avatar[hidden] + .rt24-similar-body {
  grid-column: 1 / -1;
}

.rt24-activity-cell,
.rt24-activity-legend span {
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgb(31 35 43 / 5%);
}

.rt24-activity-cell.is-muted {
  visibility: hidden;
  opacity: 0;
  box-shadow: none;
}

/* Quiet section surfaces keep headings editorial while grouping each body. */
.rt24-section > .rt24-panel {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgb(31 35 43 / 8%);
  border-radius: 18px;
  background: #fdfdfd;
  box-shadow: 0 8px 24px rgb(31 35 43 / 2.5%);
}

.rt24-promo-section .rt24-promo-metric {
  border: 1px solid rgb(31 35 43 / 10%);
  border-radius: 14px;
  background: #fff;
}

.rt24-promo-section .rt24-promo-table-wrap {
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid var(--rt-line-soft);
}

.rt24-promo-videos {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin-top: 32px;
}

.rt24-promo-section .rt24-table th + th,
.rt24-promo-section .rt24-table td + td {
  border-left: 1px solid var(--rt-line-soft);
}

@media (max-width: 700px) {
  .rt24-section > .rt24-panel {
    padding: 20px;
    border-radius: 16px;
  }

  .rt24-period-controls { width: 100%; }
  .rt24-trend-range { font-size: 12px; }
  .rt24-period-controls button {
    min-width: 0;
    padding-inline: 6px;
    flex: 1 1 0;
    font-size: 12px;
  }
  .rt24-period-grid { grid-template-columns: 1fr; }
  .rt24-live-tools { grid-template-columns: 1fr auto; }
  .rt24-live-tools input { grid-column: 1 / -1; }
  .rt24-results { grid-column: auto; align-self: center; }
  .rt24-live-row { border-radius: 16px; }
  .rt24-live-select-menu {
    right: 0;
    left: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .rt24-period-section .rt24-chart-grid,
  .rt24-avg-section .rt24-avg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .rt24-period-section .rt24-chart-grid,
  .rt24-avg-section .rt24-avg-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt24-period-controls button,
  .rt24-video-page-btn,
  .rt24-share-more-item { transition: none; }

  .rt24-share-more-menu { animation: none; }
}

@media (forced-colors: active) {
  .rt24-section > .rt24-panel,
  .rt24-promo-section .rt24-promo-metric {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
}

/* Channel detail refinements. Load after the original channels.css.
   All rules are scoped to the channel content; shared site chrome is untouched. */

.channel-insight {
  --channel-card-line: rgb(31 35 43 / 10%);
  --channel-card-shadow: 0 2px 8px rgb(31 35 43 / 2%);
  padding-block-start: clamp(24px, 3vw, 40px);
}

.channel-insight .rt24-stack {
  gap: clamp(32px, 3.4vw, 44px);
}

.channel-insight .rt24-section {
  gap: 22px;
}

.channel-insight .rt24-section-title {
  font-size: clamp(27px, 2.7vw, 36px);
  line-height: 1.3;
}

.channel-insight .rt24-hero {
  min-height: 0;
  padding: 28px 0 12px;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px clamp(32px, 4vw, 56px);
}

.channel-insight .rt24-hero.is-avatar-missing {
  grid-template-columns: minmax(0, 1fr);
}

.channel-insight .rt24-avatar-shell {
  width: 160px;
  height: 160px;
}

.channel-insight .rt24-hero-copy {
  gap: 24px;
}

.channel-insight .rt24-title-line {
  gap: 12px;
}

.channel-insight .rt24-title {
  width: 100%;
  min-width: 0;
  max-width: none;
  font-size: clamp(44px, 3.6vw, 48px);
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: wrap;
}

.channel-insight .rt24-channel-open-meta {
  font-size: 13px;
  line-height: 1.7;
}

.channel-insight .rt24-actions {
  gap: 10px;
}

/* Keep the existing right alignment, with enough room for wrapped counters. */
.channel-insight .rt24-hero > .rt24-action-counts,
.channel-insight .rt24-hero .rt-page-reaction-meta {
  position: static;
  inset: auto;
  grid-column: 1 / -1;
  justify-self: end;
  justify-content: flex-end;
  margin: 0;
  gap: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
}

.channel-insight .rt24-share-row {
  margin-block: -12px 0;
  gap: 8px;
}

.channel-insight .rt24-share-row > .rt-tool-button,
.channel-insight .rt24-share-more > .rt-tool-button {
  height: 44px;
  min-height: 44px;
}

.channel-insight .rt24-share-more > .rt-tool-button {
  width: 44px;
  min-width: 44px;
}

.channel-insight .rt24-share-more-menu,
.channel-insight .rt24-live-select-menu {
  padding: 8px;
  border-radius: 16px;
}

.channel-insight .rt24-share-more-menu {
  background: rgb(255 255 255 / 60%);
  border-color: rgb(255 255 255 / 72%);
  box-shadow: 0 18px 50px rgb(20 25 36 / 14%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

@media (prefers-reduced-transparency: reduce) {
  .channel-insight .rt24-share-more-menu {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.channel-insight .rt24-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 24px 0 12px;
  gap: clamp(24px, 3vw, 40px);
}

.channel-insight .rt24-kpi {
  min-height: 124px;
}

.channel-insight .rt24-kpi + .rt24-kpi {
  padding-left: clamp(24px, 3vw, 40px);
}

.channel-insight .rt24-kpi .rt24-kpi-text {
  gap: 0;
}

.channel-insight .rt24-kpi-label + .rt24-kpi-value {
  margin-top: 10px;
}

.channel-insight .rt24-kpi-value + .rt24-kpi-delta {
  margin-top: 14px;
}

.channel-insight .rt24-kpi-delta + .rt24-kpi-rank {
  margin-top: 6px;
}

.channel-insight .rt24-kpi-label {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.channel-insight .rt24-kpi-value {
  font-size: 40px;
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.channel-insight .rt24-kpi-delta,
.channel-insight .rt24-kpi-rank {
  font-size: 12px;
  line-height: 1.65;
}

.channel-insight .rt24-kpi-rank {
  gap: 2px 7px;
}

.channel-insight .rt24-section > .rt24-panel {
  padding: clamp(24px, 2.6vw, 32px);
  gap: 24px;
  border-color: var(--channel-card-line);
  border-radius: 18px;
  background: #fdfdfd;
  box-shadow: var(--channel-card-shadow);
}

.channel-insight .rt24-period-section .rt24-chart-grid,
.channel-insight .rt24-avg-section .rt24-avg-grid {
  gap: 14px;
}

.channel-insight .rt24-period-section .channel-chart-card,
.channel-insight .rt24-avg-section .rt24-avg-card,
.channel-insight .rt24-promo-section .rt24-promo-metric {
  padding: 20px;
  border-color: var(--channel-card-line);
  border-radius: 14px;
  box-shadow: var(--channel-card-shadow);
}

.channel-insight .rt24-period-section .channel-chart-card,
.channel-insight .rt24-avg-section .rt24-avg-card {
  min-height: 172px;
  gap: 12px;
}

.channel-insight .rt24-period-section .rt24-chart-head {
  gap: 10px;
}

.channel-insight .rt24-period-section .rt24-chart-title,
.channel-insight .rt24-avg-section .rt24-avg-label {
  overflow: visible;
  white-space: normal;
  font-family: var(--rt-font-sans);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

.channel-insight .rt24-period-section .rt24-chart-current,
.channel-insight .rt24-avg-section .rt24-avg-value {
  font-size: clamp(24px, 2.2vw, 29px);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.channel-insight .rt24-period-section .channel-chart-card.is-empty .rt24-chart-current,
.channel-insight .rt24-avg-section .rt24-avg-card.is-empty .rt24-avg-value {
  font-size: 20px;
  letter-spacing: 0;
}

.channel-insight .rt24-inline-metric,
.channel-insight .channel-metric {
  gap: 0;
}

.channel-insight .rt24-unit,
.channel-insight .channel-metric__unit {
  margin-left: .25em;
  color: var(--rt-muted);
  font-size: max(11px, .4em);
  font-weight: 450;
  line-height: 1;
  vertical-align: baseline;
}

/* Observed change beside the selected period's final value. */
.channel-insight .rt24-period-section .rt24-chart-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
}

.channel-insight .rt24-period-section .rt24-chart-values .rt24-chart-current {
  max-width: 100%;
}

.channel-insight .rt24-period-section .rt24-chart-change {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.channel-insight .rt24-period-section .rt24-chart-change.is-positive { color: #087d48; }
.channel-insight .rt24-period-section .rt24-chart-change.is-negative { color: #b42318; }

.channel-insight .rt24-avg-coverage {
  font-size: 12px;
  line-height: 1.5;
}

.channel-insight .rt24-live-list {
  gap: 20px;
}

.channel-insight .rt24-live-row {
  border-color: var(--channel-card-line);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgb(31 35 43 / 4%);
}

.channel-insight .rt24-live-row:hover {
  box-shadow: 0 8px 22px rgb(31 35 43 / 7%);
}

.channel-insight .rt24-live-body {
  padding: 18px;
  gap: 16px;
}

.channel-insight .rt24-live-title {
  line-height: 1.6;
}

.channel-insight .rt24-live-metric {
  gap: 6px;
}

.channel-insight .rt24-live-metrics {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(82px, 1fr);
}

.channel-insight .rt24-live-metric-value {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.25;
}

.channel-insight .rt24-live-metric-value.is-empty {
  color: var(--rt-muted);
  font-size: 12px;
  font-weight: 450;
}

.channel-insight .rt24-similar-card {
  padding: 20px;
  border-color: var(--channel-card-line);
  border-radius: 14px;
  box-shadow: var(--channel-card-shadow);
}

.channel-insight .rt24-similar-grid {
  grid-auto-rows: 1fr;
}

.channel-insight .rt24-similar-name {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
}

.channel-insight .rt24-overview-text {
  line-height: 1.9;
}

.channel-insight .rt24-activity-legend {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .channel-insight {
    padding-block-start: 20px;
  }

  .channel-insight .rt24-stack {
    gap: 36px;
  }

  .channel-insight .rt24-section {
    gap: 18px;
  }

  .channel-insight .rt24-section-title {
    font-size: 28px;
    line-height: 1.35;
  }

  .channel-insight .rt24-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 0 8px;
    gap: 24px;
  }

  .channel-insight .rt24-avatar-shell {
    width: 144px;
    height: 144px;
  }

  .channel-insight .rt24-title {
    font-size: 32px;
    line-height: 1.28;
    letter-spacing: -.025em;
  }

  .channel-insight .rt24-hero-copy {
    gap: 20px;
  }

  .channel-insight .rt24-hero > .rt24-action-counts,
  .channel-insight .rt24-hero .rt-page-reaction-meta {
    justify-self: start;
    justify-content: flex-start;
    gap: 6px 10px;
  }

  .channel-insight .rt24-share-row {
    margin-block: -12px 0;
  }

  .channel-insight .rt24-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    gap: 0;
  }

  .channel-insight .rt24-kpi {
    min-height: 0;
    padding: 22px 0;
  }

  .channel-insight .rt24-kpi:first-child {
    padding-top: 0;
  }

  .channel-insight .rt24-kpi:last-child {
    padding-bottom: 0;
  }

  .channel-insight .rt24-kpi + .rt24-kpi {
    padding-left: 0;
  }

  .channel-insight .rt24-kpi-label + .rt24-kpi-value {
    margin-top: 8px;
  }

  .channel-insight .rt24-kpi-value + .rt24-kpi-delta {
    margin-top: 12px;
  }

  .channel-insight .rt24-kpi-delta + .rt24-kpi-rank {
    margin-top: 4px;
  }

  .channel-insight .rt24-kpi-value {
    font-size: 40px;
  }

  .channel-insight .rt24-section > .rt24-panel {
    padding: 20px;
    gap: 20px;
    border-radius: 16px;
  }

  .channel-insight .rt24-live-body {
    padding: 18px;
  }

  .channel-insight .rt24-live-metric-value {
    font-size: 19px;
  }

  .channel-insight .rt24-activity-scroll {
    padding-inline: 0 20px;
  }

  .channel-insight .rt24-similar-card {
    padding: 18px;
  }
}

@media (max-width: 430px) {
  .channel-insight .rt24-section > .rt24-panel {
    padding: 16px;
  }

  .channel-insight .rt24-period-section .channel-chart-card,
  .channel-insight .rt24-avg-section .rt24-avg-card,
  .channel-insight .rt24-promo-section .rt24-promo-metric {
    padding: 18px;
  }

  .channel-insight .rt24-live-body {
    padding: 16px;
  }

  .channel-insight .rt24-live-metric {
    padding-inline: 6px;
  }

  .channel-insight .rt24-live-metric:first-child {
    padding-left: 0;
  }

  .channel-insight .rt24-live-metric:last-child {
    padding-right: 0;
  }

  .channel-insight .rt24-live-metric-value {
    font-size: 18px;
  }
}

@media (forced-colors: active) {
  .channel-insight .rt24-live-select-menu,
  .channel-insight .rt24-share-more-menu,
  .channel-insight .rt24-section > .rt24-panel,
  .channel-insight .rt24-period-section .channel-chart-card,
  .channel-insight .rt24-avg-section .rt24-avg-card,
  .channel-insight .rt24-promo-section .rt24-promo-metric,
  .channel-insight .rt24-live-row,
  .channel-insight .rt24-live-row:hover,
  .channel-insight .rt24-similar-card {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  .channel-insight .rt24-share-more-menu,
  .channel-insight .rt24-live-select-menu {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.rt24-channel-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.rt24-channel-tags .rt24-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.rt24-upcoming-time { display: block; margin-top: 12px; color: var(--rt-text-muted, #6e6d69); font-size: 14px; }
