:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #111820;
  --panel-2: #151f2a;
    padding: 0;
  --text: #f4f7fb;
  --muted: #91a2b5;
  --green: #21d07a;
  --red: #ff5470;
  --amber: #ffbe45;
  --blue: #54a7ff;
  --violet: #b685ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(84, 167, 255, 0.14), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(33, 208, 122, 0.10), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', Segoe UI, Arial, sans-serif;
}
  .header-mindset-panel .compact-gauge-card {
    padding: 18px;
  }

h1, h2, h3, h4, h5, h6, .kicker, .clock-panel strong, .score-ring span {
  font-family: 'Outfit', sans-serif;
}

.broadcast-shell {
  width: min(1920px, 100%);
  margin: 0 auto;
  padding: 12px 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--blue);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 3.9vw, 64px);
  line-height: 1;
}

h1 span {
  color: var(--green);
  margin: 0 10px;
}

h1 .pakistan-flag {
  display: inline-block;
  position: relative;
  width: 1.28em;
  height: 0.86em;
  margin-left: 14px;
  margin-right: 0;
  vertical-align: 0.01em;
  border-radius: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  box-shadow: 0 0 18px rgba(33, 208, 122, 0.22);
  transform-origin: left center;
  transform: perspective(160px) rotateY(-5deg);
}

h1 .pakistan-flag svg {
  display: block;
  width: 106%;
  height: 108%;
  margin: -2% 0 0 -3%;
  border-radius: inherit;
}

h1 .pakistan-flag::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2) 0 6%,
      rgba(0, 0, 0, 0.2) 6% 12%,
      rgba(255, 255, 255, 0.08) 12% 18%
    ),
    linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.18),
    rgba(0, 0, 0, 0.14),
    rgba(255, 255, 255, 0.12),
    rgba(0, 0, 0, 0.16)
  );
  background-size: 180% 100%, 240% 100%;
  mix-blend-mode: soft-light;
  animation: flag-shimmer 1.3s linear infinite;
  pointer-events: none;
}

@keyframes flag-shimmer {
  0% {
    background-position: 0% 0, 0% 0;
  }
  100% {
    background-position: 180% 0, 240% 0;
  }
}

.version-label {
  color: var(--muted);
  font-weight: 800;
  margin: 8px 0 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
}

.clock-panel {
  min-width: 170px;
  padding: 10px 14px;
  border: 1px solid rgba(84, 167, 255, 0.3);
  background: rgba(17, 24, 32, 0.9);
  border-radius: 8px;
  text-align: right;
  box-shadow: 0 0 24px rgba(84, 167, 255, 0.15);
}

.clock-panel p {
  color: var(--muted);
  margin-bottom: 4px;
}

.clock-panel strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  white-space: pre-line;
}

.hero-grid,
.metric-grid,
  .gauge-card {
    background: rgba(17, 24, 32, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  }

  .gauge-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
  }

  .gauge-side {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .gauge-productive {
    align-items: flex-start;
  }

  .gauge-entertainment {
    align-items: flex-end;
    text-align: right;
  }

  .gauge-emoji {
    font-size: 18px;
  }

  .gauge-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .gauge-pct {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
  }

  .gauge-bar-wrapper {
    position: relative;
    margin-bottom: 10px;
  }

  .gauge-bar-container {
    display: flex;
    height: 20px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
  }

  .gauge-bar-prod {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
    transition: width 0.7s ease-in-out;
  }

  .gauge-bar-ent {
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #ef4444);
    transition: width 0.7s ease-in-out;
  }

  .gauge-target-marker {
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: 50%;
    width: 2px;
    background: #fbbf24;
    transform: translateX(-50%);
    box-shadow: 0 0 8px #fbbf24;
  }

  .gauge-views-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .gauge-target-label {
    color: #fbbf24;
    font-size: 17px;
    font-weight: 900;
  }

  .gauge-status {
    text-align: center;
  }

  .gauge-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
  }

  .gauge-status-badge.synced {
    background: rgba(33, 208, 122, 0.18);
    color: #96f5c1;
  }
.ranking-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-grid {
  grid-template-columns: 1fr 1.45fr 0.9fr;
}

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

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

.ranking-grid.single {
  grid-template-columns: 1fr;
}

.panel,
.leader-card,
.comparison-card,
.alert-card {
  background: rgba(17, 24, 32, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  min-width: 0;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.panel:hover,
.leader-card:hover,
.comparison-card:hover,
.alert-card:hover {
  background: rgba(17, 24, 32, 0.75);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.leader-card {
  min-height: 290px;
  display: grid;
  align-content: space-between;
}

.leader-card h2 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  margin: 0;
}

.leader-card h2 .channel-link {
  font-size: inherit;
  line-height: inherit;
  font-weight: 900;
  text-align: left;
}

.leader-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.score-ring {
  width: 128px;
  height: 128px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, var(--panel) 56%, transparent 58%),
    conic-gradient(var(--green) var(--score, 55%), rgba(255, 255, 255, 0.08) 0);
}

.score-ring span {
  font-size: 34px;
  font-weight: 900;
}

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

.section-title span,
select {
  color: var(--muted);
  font-size: 14px;
}

select {
  min-width: 170px;
  background: #0c1219;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.compare-tile {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.compare-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.compare-tile strong {
  display: block;
  min-height: 42px;
  font-size: 17px;
  line-height: 1.15;
}

.channel-link {
  color: var(--text);
  cursor: pointer;
  background: transparent;
  border: 0;
  font: inherit;
  padding: 0;
  text-decoration: none;
}

.channel-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.stat-line b {
  color: var(--text);
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.live-dot {
  color: var(--red);
  font-weight: 900;
  animation: pulseLive 1.5s infinite;
}

.alert {
  padding: 10px;
  border-left: 3px solid var(--green);
  background: rgba(33, 208, 122, 0.08);
  margin-bottom: 10px;
  border-radius: 5px;
}

.alert p {
  color: var(--muted);
  margin: 3px 0 0;
  font-size: 13px;
}

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

.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 3fr 54px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 18px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 450ms ease;
}

.compact .bar-row {
  grid-template-columns: minmax(105px, 1fr) 2.5fr 58px;
}

canvas {
  width: 100%;
  height: 260px;
  display: block;
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 8px;
  text-align: left;
  font-size: 14px;
}

.ranking-table tbody tr {
  transition: background 0.15s ease;
}

.ranking-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ranking-table th {
  color: var(--muted);
  font-weight: 700;
}

.rank {
  color: var(--green);
  font-weight: 900;
}

.status {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(84, 167, 255, 0.14);
  color: #b9dcff;
  white-space: nowrap;
}

.status.Surging,
.status.Organic {
  background: rgba(33, 208, 122, 0.14);
  color: #b6f9d9;
}

.status.Cooling {
  background: rgba(255, 84, 112, 0.14);
  color: #ffc0ca;
}

.methodology {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
}

.methodology p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.disclaimer {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  margin: 10px 0 0;
}

.ticker-panel {
  margin-bottom: 12px;
  padding: 10px 14px;
}

.header-ticker {
  width: min(980px, calc(100vw - 420px));
  margin: 12px 0 0;
}

.header-mindset-panel {
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 18px;
  border-radius: 8px;
}

.header-mindset-panel .mindset-header {
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-mindset-panel .mindset-bar-container {
  height: 18px;
}

.header-mindset-panel .target-marker::after {
  top: -14px;
  font-size: 9px;
}

.header-mindset-panel .mindset-labels {
  font-size: 13px;
}

.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-ticker 150s linear infinite;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.ticker:hover {
  animation-play-state: paused;
}

@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.ticker-item {
  display: inline-block;
  margin-right: 56px;
}

.ticker-category {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 13px;
  margin-right: 6px;
}

.ticker-name {
  color: var(--text);
  margin-right: 8px;
}

.ticker-val {
  color: var(--amber);
}

.ticker-up {
  color: var(--green);
}

.ticker-down {
  color: var(--red);
}

.channel-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
}

.channel-modal.open {
  display: block;
}

.channel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.channel-modal-panel {
  position: absolute;
  top: 72px;
  right: 24px;
  width: min(420px, calc(100vw - 32px));
  background: linear-gradient(180deg, rgba(21, 31, 42, 0.98), rgba(8, 12, 18, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.45);
  padding: 18px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0c1219;
  color: var(--text);
  cursor: pointer;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.quick-grid div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 6px;
  padding: 10px;
}

.quick-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.quick-grid strong {
  font-size: 18px;
}

.clock-panel p {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.clock-panel strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.connection-status {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.connection-status.ok {
  color: var(--green);
}

.connection-status.warn {
  color: var(--amber);
}

.stale-data-status {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.stale-data-status.ok {
  color: var(--green);
}

.stale-data-status.warn {
  color: var(--amber);
}

.music-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s ease;
}

.music-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.music-toggle.playing {
  color: var(--green);
  border-color: rgba(33, 208, 122, 0.4);
  background: rgba(33, 208, 122, 0.1);
}

.modal-note {
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0;
}

.youtube-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--green);
  color: #06100b;
  font-weight: 900;
  text-decoration: none;
}

.mindset-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mindset-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.mindset-bar-wrapper {
  position: relative;
  margin-bottom: 8px;
}

.mindset-bar-container {
  display: flex;
  height: 18px;
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.target-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 50%;
  width: 2px;
  background: #fbbf24;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 8px #fbbf24;
}

.target-marker::after {
  content: "50% TARGET (Revolution)";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.mindset-bar-innovative {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transition: width 1s ease-in-out;
}

.mindset-bar-useless {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #ef4444);
  transition: width 1s ease-in-out;
}

.mindset-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.search-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  width: 250px;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--green);
}

.category-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.transmission-wall {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.82fr;
  grid-template-rows: auto auto auto;
  gap: 12px;
  margin-bottom: 14px;
}

.transmission-hero,
.transmission-kpis,
.transmission-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(17, 24, 32, 0.92), rgba(9, 14, 20, 0.92));
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.transmission-hero {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  padding: 18px;
  overflow: hidden;
}

.transmission-hero h2 {
  font-size: 40px;
  line-height: 0.96;
  margin-bottom: 10px;
  max-width: 820px;
}

.transmission-summary {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.32;
  margin: 0;
}

.transmission-score {
  width: 118px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #06100b;
  background: linear-gradient(135deg, var(--green), var(--amber));
  font-family: 'Outfit', sans-serif;
  font-size: 50px;
  font-weight: 900;
  box-shadow: 0 0 36px rgba(33, 208, 122, 0.24);
}

.transmission-kpis {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 150px;
  overflow: hidden;
}

.transmission-kpis div {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.transmission-kpis div:first-child {
  border-left: 0;
}

.transmission-kpis span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.transmission-kpis strong {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 2.7vw, 48px);
  line-height: 0.95;
  color: var(--text);
  overflow-wrap: anywhere;
}

.watching-now-kpi small {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.watching-now-kpi small.up {
  color: var(--green);
}

.watching-now-kpi small.down {
  color: var(--red);
}

.watching-now-kpi small.flat {
  color: var(--muted);
}

.transmission-panel {
  min-height: 256px;
  padding: 14px;
  overflow: hidden;
}

.compact-title {
  margin-bottom: 10px;
}

.compact-title h2 {
  font-size: 19px;
}

.broadcast-list {
  display: grid;
  gap: 8px;
}

.broadcast-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) minmax(70px, auto);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.broadcast-rank {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #06100b;
  background: var(--green);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}

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

.broadcast-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
  font-size: 15px;
}

.broadcast-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.broadcast-track {
  height: 5px;
  margin-top: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.broadcast-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.broadcast-row strong {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  text-align: right;
  white-space: nowrap;
}

.shorts-panel {
  border-color: rgba(255, 190, 69, 0.22);
  background:
    linear-gradient(180deg, rgba(23, 26, 23, 0.95), rgba(9, 14, 20, 0.94));
}

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

.shorts-card {
  position: relative;
  min-height: 202px;
  aspect-ratio: 9 / 16;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(33, 208, 122, 0.18), rgba(84, 167, 255, 0.08)),
    #090e14;
  overflow: hidden;
}

.shorts-card::before {
  content: "";
  position: absolute;
  inset: 10% 8% 16%;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  pointer-events: none;
}

.shorts-card span,
.shorts-card strong,
.shorts-card b,
.shorts-card p {
  position: relative;
  z-index: 1;
}

.shorts-card span {
  color: var(--amber);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.shorts-card strong {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.05;
}

.shorts-card b {
  color: var(--green);
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  line-height: 0.95;
}

.shorts-card p {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
  margin: 0;
}

.broadcast-alerts {
  display: grid;
  gap: 8px;
}

.broadcast-alert {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  background: rgba(255, 190, 69, 0.1);
}

.broadcast-alert.steady {
  border-left-color: var(--green);
  background: rgba(33, 208, 122, 0.08);
}

.broadcast-alert strong {
  font-size: 15px;
}

.broadcast-alert span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.individual-panel {
  border-color: rgba(84, 167, 255, 0.22);
}

.individual-leader-card {
  display: grid;
  gap: 7px;
}

.individual-category-row {
  grid-template-columns: 38px minmax(0, 1fr) minmax(42px, auto);
  background: rgba(33, 208, 122, 0.045);
}

.individual-category-row .broadcast-rank {
  font-size: 12px;
}

.individual-category-row.muted {
  opacity: 0.72;
}

.individual-category-row.muted strong {
  color: var(--muted);
}

.sector-feature-panel {
  border-color: rgba(33, 208, 122, 0.3);
  background:
    linear-gradient(180deg, rgba(13, 34, 28, 0.96), rgba(9, 14, 20, 0.94));
}

.sector-spotlight-panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(33, 208, 122, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(33, 208, 122, 0.10), rgba(84, 167, 255, 0.06)),
    rgba(17, 24, 32, 0.78);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
}

.sector-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.sector-card {
  min-height: 154px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 85% 10%, rgba(33, 208, 122, 0.22), transparent 28%),
    rgba(8, 13, 18, 0.92);
  overflow: hidden;
}

.sector-card:nth-child(2) {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 84, 112, 0.22), transparent 28%),
    rgba(8, 13, 18, 0.92);
}

.sector-card:nth-child(3) {
  background:
    radial-gradient(circle at 85% 10%, rgba(84, 167, 255, 0.26), transparent 28%),
    rgba(8, 13, 18, 0.92);
}

.sector-card:nth-child(4) {
  background:
    radial-gradient(circle at 85% 10%, rgba(182, 133, 255, 0.24), transparent 28%),
    rgba(8, 13, 18, 0.92);
}

.sector-card:nth-child(5) {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 190, 69, 0.25), transparent 28%),
    rgba(8, 13, 18, 0.92);
}

.sector-card:nth-child(6) {
  background:
    radial-gradient(circle at 85% 10%, rgba(33, 208, 122, 0.18), transparent 28%),
    rgba(8, 13, 18, 0.92);
}

.sector-card:nth-child(7) {
  background:
    radial-gradient(circle at 85% 10%, rgba(84, 167, 255, 0.22), transparent 28%),
    rgba(8, 13, 18, 0.92);
}

.sector-label {
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  color: #06100b;
  background: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sector-card strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  line-height: 1.02;
}

.sector-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  margin: 0;
}

.sector-card b {
  color: var(--green);
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  line-height: 0.95;
}

.sector-card em {
  color: var(--amber);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.sector-card-metrics {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sector-card-metrics span {
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
}

.sector-card.empty {
  border-style: dashed;
  opacity: 0.72;
}

.sector-card.empty b {
  color: var(--muted);
}

.productive-finder {
  margin-bottom: 14px;
}

.finder-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  margin-bottom: 14px;
}

.finder-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 14px;
}

.finder-list {
  display: grid;
  gap: 10px;
}

.productive-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.productive-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.productive-title {
  font-weight: 800;
  line-height: 1.25;
}

.productive-badge {
  background: rgba(33, 208, 122, 0.16);
  color: #b6f9d9;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.productive-meta,
.productive-why {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

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

.btn-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 6px;
  font-size: 12px;
  padding: 6px 10px;
  cursor: pointer;
}

.btn-action.primary {
  background: var(--green);
  border-color: rgba(33, 208, 122, 0.7);
  color: #06100b;
  font-weight: 700;
}

.finder-side {
  display: grid;
  gap: 10px;
}

.finder-side-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.finder-side-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.queue-item,
.habit-line,
.creator-line,
.replacement-line {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.mini-badge {
  border: 1px solid rgba(84, 167, 255, 0.45);
  color: #b9dcff;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.filter-btn.active {
  background: var(--green);
  color: #000;
  border-color: var(--green);
  font-weight: 600;
}

th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

th.sortable:hover {
  background: rgba(255, 255, 255, 0.1);
}

th.sortable::after {
  content: ' \21C5';
  opacity: 0.3;
  margin-left: 4px;
}

th.sortable.sort-asc::after {
  content: ' \2191';
  opacity: 1;
  color: var(--green);
}

th.sortable.sort-desc::after {
  content: ' \2193';
  opacity: 1;
  color: var(--green);
}

@media (max-width: 1100px) {
  .transmission-wall {
    grid-template-columns: 1fr 1fr;
  }

  .gauge-pct {
    font-size: 24px;
  }

  .transmission-hero,
  .transmission-kpis {
    grid-column: span 2;
  }

  .hero-grid,
  .metric-grid,
  .ranking-grid,
  .methodology {
    grid-template-columns: 1fr;
  }

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

  .finder-controls {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

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

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

@media (max-width: 720px) {
  .broadcast-shell {
    padding: 12px;
  }

  .transmission-wall,
  .transmission-hero,
  .transmission-kpis {
    display: block;
  }

  .transmission-hero,
  .transmission-kpis,
  .transmission-panel {
    margin-bottom: 12px;
  }

  .transmission-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .header-ticker {
    width: 100%;
  }

  .header-mindset-panel {
    width: 100%;
  }

  .clock-panel {
    width: 100%;
    text-align: left;
    margin-top: 12px;
  }

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