body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #f4f4f5;
  margin: 0;
  padding: 0 16px 40px;
}

header {
  text-align: center;
  padding: 24px 0 8px;
}

h1 {
  margin: 0;
  font-size: 2.2rem;
}

.subtitle {
  margin-top: 4px;
  color: #a1a1aa;
}

main {
  max-width: 1080px;
  margin: 0 auto;
}

/* Play style block */

.playstyle {
  background: #09090b;
  border-radius: 12px;
  padding: 12px 16px 16px;
  border: 1px solid #27272a;
  margin-top: 12px;
}

.playstyle-buttons {
  display: inline-flex;
  gap: 8px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.ps-btn {
  border-radius: 999px;
  border: 1px solid #3f3f46;
  background: #18181b;
  color: #e4e4e7;
  font-size: 0.85rem;
  padding: 6px 14px;
  cursor: pointer;
}

.ps-btn.ps-active {
  background: #22c55e1a;
  border-color: #22c55e;
}

.ps-btn:hover {
  border-color: #a1a1aa;
}

.playstyle-note {
  font-size: 0.8rem;
  color: #a1a1aa;
}

/* Status layout */

.status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}

.status-block,
.narrative,
.news,
.early,
.contracts,
.chain,
.chart {
  background: #09090b;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid #27272a;
}

h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

/* Sentiment meter */

.meter-wrapper {
  position: relative;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #991b1b, #facc15, #15803d);
  overflow: hidden;
  margin: 8px 0;
}

.meter-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  box-shadow: 0 0 10px rgba(248, 250, 252, 0.8);

  /* NEW: position by left %, center the bar around that point */
  left: 0;
  transform: translateX(-50%);
  transition: left 0.25s ease-out;
}

.meter-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.sentiment-label {
  font-size: 1.3rem;
  font-weight: 600;
}

.sentiment-label.small-label {
  font-size: 1.1rem;
}

#sentiment-score-text,
#news-sentiment-score-text {
  font-size: 0.9rem;
  color: #a1a1aa;
}

/* News & narrative */

.news ul,
#liq-gaps {
  list-style: none;
  padding-left: 0;
}

.news li {
  margin-bottom: 8px;
}

.news a {
  color: #a5b4fc;
  text-decoration: none;
}

.news a:hover {
  text-decoration: underline;
}

.news-empty {
  font-size: 0.85rem;
  color: #a1a1aa;
  font-style: italic;
}

.disclaimer {
  font-size: 0.8rem;
  color: #a1a1aa;
  margin-top: 12px;
}

footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #71717a;
}

/* Early entry & contracts */

.early,
.contracts,
.chain,
.chart {
  margin-top: 16px;
}

#early-triggers {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#early-triggers li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

#early-triggers li span.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #3f3f46;
  margin-right: 6px;
  text-transform: uppercase;
}

.tag-call {
  border-color: #22c55e;
}

.tag-put {
  border-color: #ef4444;
}

/* Contract cards */

.contracts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.contract-card {
  border-radius: 10px;
  border: 1px solid #27272a;
  padding: 10px 12px;
  font-size: 0.86rem;
  background: #050816;
}

.contract-card h3 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
}

.contract-meta {
  font-size: 0.78rem;
  color: #a1a1aa;
  margin-bottom: 4px;
}

.risk-pill {
  display: inline-block;
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

.risk-low {
  border: 1px solid #22c55e;
}

.risk-medium {
  border: 1px solid #eab308;
}

.risk-high {
  border: 1px solid #ef4444;
}

/* Options chain */

#options-chain {
  overflow-x: auto;
}

.chain-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.chain-table th,
.chain-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #27272a;
  text-align: right;
}

.chain-table th {
  font-weight: 600;
  color: #e4e4e7;
}

.chain-table td.label {
  text-align: left;
}

.chain-highlight-long {
  background: rgba(34, 197, 94, 0.12);
}

.chain-highlight-short {
  background: rgba(239, 68, 68, 0.12);
}

.chain-flag {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #a855f7;
  color: #e9d5ff;
}

.tiny-note {
  font-size: 0.75rem;
  color: #a1a1aa;
  margin-top: 8px;
}

/* TradingView chart */

.tv-chart {
  width: 100%;
  height: 420px;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .tv-chart {
    height: 360px;
  }
}


.liquidity-map {
  border-radius: 10px;
  background: #09090b;
  padding: 8px 10px 10px;
  border: 1px solid #27272a;
  max-height: 220px;
  overflow-y: auto;
  font-size: 0.78rem;
}

.liquidity-buckets {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.liquidity-buckets li {
  padding: 2px 0;
  font-size: 0.78rem;
  opacity: 0.9;
}

.liq-thick {
  color: #bbf7d0;
}

.liq-thin {
  color: #fed7aa;
}

.liq-spot::after {
  content: " • spot";
  font-size: 0.7rem;
  opacity: 0.9;
}

.liquidity-map.liquidity-thick {
  box-shadow: 0 0 0 1px rgba(34,197,94,0.25);
}

.liquidity-map.liquidity-thin {
  box-shadow: 0 0 0 1px rgba(248,113,113,0.25);
}

.small-note {
  font-size: 0.75rem;
  color: #a1a1aa;
}
