/* V160 PREVIEW ONLY — regular-season desk differentiation */
:root {
  --fdv160-ink: #111820;
  --fdv160-blue: #0b67a3;
  --fdv160-orange: #e84d16;
  --fdv160-paper: #fbf5ea;
  --fdv160-card: #fffdf9;
  --fdv160-rule: rgba(17,24,32,.14);
}

.fdv160-today-root .fdv160-game-card,
.fdv160-games-root .fdv160-game-card,
.fdv160-today-page .fdv160-game-card,
.fdv160-games-page .fdv160-game-card {
  position: relative;
  overflow: hidden;
}

.fdv160-game-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  pointer-events: none;
}

.fdv160-game-card.fdv160-live::before { background: var(--fdv160-orange); }
.fdv160-game-card.fdv160-final::before { background: var(--fdv160-blue); }
.fdv160-game-card.fdv160-scheduled::before { background: rgba(17,24,32,.18); }

.fdv160-game-card.fdv160-desk-lead {
  box-shadow: 0 0 0 1px rgba(232,77,22,.18), 0 8px 22px rgba(17,24,32,.06);
}

.fdv160-lead-badge,
.fdv160-watch-label,
.fdv160-phase-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fdv160-lead-badge {
  margin: 0 0 7px;
  color: var(--fdv160-orange);
}

.fdv160-why {
  margin-top: 7px !important;
  max-width: 78ch;
}

.fdv160-watch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: 9px;
  color: #655748;
  font-size: 12px;
  line-height: 1.35;
}

.fdv160-watch-label { color: var(--fdv160-blue); }

.fdv160-watch-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid rgba(11,103,163,.17);
  border-radius: 999px;
  background: rgba(11,103,163,.045);
  color: #35566f;
  font-size: 11px;
  line-height: 1.2;
}

.fdv160-hidden-duplicate { display: none !important; }

/* Game Files: visually become a permanent ledger instead of a second Today's NBA feed. */
.fdv160-games-root .fdv160-game-card,
.fdv160-games-page .fdv160-game-card {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

.fdv160-ledger-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.fdv160-phase-pill {
  padding: 5px 7px;
  border: 1px solid var(--fdv160-rule);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: #4d5358;
}

.fdv160-phase-pill.is-ready,
.fdv160-phase-pill.is-live,
.fdv160-phase-pill.is-final {
  border-color: rgba(11,103,163,.2);
  color: var(--fdv160-blue);
}

.fdv160-game-card.fdv160-live .fdv160-phase-pill.is-live {
  border-color: rgba(232,77,22,.28);
  background: rgba(232,77,22,.055);
  color: var(--fdv160-orange);
}

.fdv160-games-root .fdv160-why,
.fdv160-games-page .fdv160-why {
  color: #5f554b;
  font-size: 12px;
}

/* Morning After: rebuilt as a compact adaptive recap surface. */
.fdv160-ma-compact {
  display: grid;
  grid-template-columns: minmax(270px,.9fr) minmax(0,1.45fr) minmax(170px,.48fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
  padding: 16px;
  border-top: 3px solid var(--fdv160-blue);
  border-bottom: 1px solid var(--fdv160-rule);
  background: rgba(255,253,249,.58);
}

.fdv160-ma-brand {
  min-height: 238px;
  padding: 18px;
  border: 1px solid #dcc7a8;
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 48%, transparent 0 53px, rgba(232,77,22,.19) 54px 56px, transparent 57px),
    linear-gradient(135deg,#fffaf2,#fbf2e3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fdv160-ma-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fdv160-ma-fd {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 5px;
  background: #17130f;
  color: #f1592a;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.fdv160-ma-wordmark small,
.fdv160-ma-kicker,
.fdv160-ma-date,
.fdv160-ma-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fdv160-ma-wordmark small,
.fdv160-ma-kicker,
.fdv160-ma-stat-label { color: var(--fdv160-blue); }
.fdv160-ma-date { color: #75634f; }

.fdv160-ma-wordmark strong {
  display: block;
  margin-top: 2px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  line-height: 1;
  color: var(--fdv160-ink);
}

.fdv160-ma-brand-copy {
  max-width: 220px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 700;
  color: #201a15;
}

.fdv160-ma-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 3px 0;
}

.fdv160-ma-main h2 {
  margin: 8px 0 7px;
  max-width: 28ch;
  font-size: clamp(24px,2.4vw,37px);
  line-height: .98;
  letter-spacing: -.035em;
}

.fdv160-ma-dek {
  margin: 0 0 12px;
  max-width: 70ch;
  color: #675748;
  font-size: 13px;
  line-height: 1.45;
}

.fdv160-ma-games {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-top: auto;
}

.fdv160-ma-game {
  display: block;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(17,24,32,.12);
  border-radius: 6px;
  background: rgba(255,255,255,.7);
  color: inherit;
  text-decoration: none;
}

.fdv160-ma-game.is-lead {
  border-left: 4px solid var(--fdv160-orange);
}

.fdv160-ma-game-label {
  margin-bottom: 4px;
  color: var(--fdv160-orange);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fdv160-ma-score {
  color: #201a15;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}

.fdv160-ma-game-copy {
  margin-top: 4px;
  color: #6c5c4e;
  font-size: 11px;
  line-height: 1.3;
}

.fdv160-ma-more {
  margin-top: 7px;
  color: #6c5c4e;
  font-size: 11px;
}

.fdv160-ma-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-left: 15px;
  border-left: 1px solid rgba(17,24,32,.12);
}

.fdv160-ma-stats {
  display: grid;
  gap: 10px;
  margin-top: 9px;
}

.fdv160-ma-stat strong {
  display: block;
  margin-top: 2px;
  color: #1c1a18;
  font-size: 20px;
  line-height: 1;
}

.fdv160-ma-actions {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
}

.fdv160-ma-actions a {
  display: inline-flex;
  justify-content: center;
  padding: 8px 9px;
  border-radius: 6px;
  border: 1px solid rgba(11,103,163,.18);
  color: var(--fdv160-blue);
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}

.fdv160-ma-actions a:first-child {
  background: var(--fdv160-blue);
  color: white;
}

@media (max-width: 900px) {
  .fdv160-ma-compact { grid-template-columns: 1fr 1.45fr; }
  .fdv160-ma-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(17,24,32,.12);
  }
  .fdv160-ma-stats { grid-template-columns: repeat(3,1fr); margin: 0; }
  .fdv160-ma-actions { margin: 0; padding: 0; align-content: center; }
}

@media (max-width: 640px) {
  .fdv160-ma-compact { grid-template-columns: 1fr; padding: 12px; }
  .fdv160-ma-brand { min-height: 175px; }
  .fdv160-ma-main h2 { max-width: none; }
  .fdv160-ma-games { grid-template-columns: 1fr; }
  .fdv160-ma-rail { grid-column: auto; grid-template-columns: 1fr; }
  .fdv160-ma-stats { grid-template-columns: repeat(3,1fr); }
}

/* V160.1 runtime reconciliation: legacy Morning After must never remain below compact replacement. */
.fdv160-ma-legacy-hidden { display: none !important; }
.fdv160-ma-brand { min-height: 190px; }
.fdv160-ma-compact { padding: 13px; gap: 13px; }
.fdv160-ma-games { gap: 7px; }

/* V160.10 — Game Files is a ledger, not a second editorial feed. */
.fdv160-ledger-header,
.fdv160-ledger-row {
  display: grid;
  grid-template-columns: 120px minmax(180px,1.15fr) minmax(220px,1fr) 104px;
  gap: 14px;
  align-items: center;
}

.fdv160-ledger-header {
  margin: 18px 0 7px;
  padding: 0 16px;
  color: #786d60;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fdv160-games-root .fdv160-ledger-card,
.fdv160-games-page .fdv160-ledger-card {
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 7px;
}

.fdv160-ledger-source-hidden { display: none !important; }

.fdv160-ledger-row {
  min-height: 70px;
  padding: 11px 16px;
}

.fdv160-ledger-state {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #4f4a43;
}

.fdv160-ledger-state strong {
  color: var(--fdv160-orange);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fdv160-ledger-state span {
  color: var(--fdv160-blue);
  font-size: 10px;
  font-weight: 800;
}

.fdv160-ledger-game strong {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 19px;
  line-height: 1.05;
  color: var(--fdv160-ink);
}

.fdv160-ledger-game em {
  color: #8e8173;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
}

.fdv160-ledger-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fdv160-ledger-open {
  justify-self: end;
  color: var(--fdv160-blue) !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.fdv160-ledger-card.fdv160-live .fdv160-ledger-state strong { color: var(--fdv160-orange); }
.fdv160-ledger-card.fdv160-final .fdv160-ledger-state strong { color: var(--fdv160-blue); }

@media (max-width: 760px) {
  .fdv160-ledger-header { display: none; }
  .fdv160-ledger-row {
    grid-template-columns: 92px 1fr auto;
    gap: 9px;
  }
  .fdv160-ledger-contents { grid-column: 2 / 4; }
  .fdv160-ledger-open { grid-column: 3; grid-row: 1; }
  .fdv160-ledger-game strong { font-size: 17px; }
}

/* V160.10 — Today's NBA owns its editorial cards; legacy V159 row content stays hidden underneath. */
.fdv160-today-source-hidden { display: none !important; }

.fdv160-today-view {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr) 92px;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
}

.fdv160-today-state {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fdv160-today-state strong {
  color: var(--fdv160-orange);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fdv160-today-state span {
  color: var(--fdv160-blue);
  font-size: 10px;
  font-weight: 800;
}

.fdv160-today-main { min-width: 0; }

.fdv160-today-matchup strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--fdv160-ink);
  font-size: 21px;
  line-height: 1.02;
}

.fdv160-today-matchup i {
  display: inline-block;
  font-style: normal;
}

.fdv160-today-matchup i::before { content: " @ "; }

.fdv160-today-open {
  justify-self: end;
  color: var(--fdv160-blue) !important;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.fdv160-today-card .fdv160-watch { margin-top: 7px; }
.fdv160-today-card .fdv160-why { margin: 7px 0 0 !important; }

/* Homepage stays compact and magazine-like; standalone Today page gets the fuller editorial row. */
.fdv160-home-today .fdv160-today-view {
  display: block;
  padding: 11px 12px;
}

.fdv160-home-today .fdv160-today-state {
  margin-bottom: 6px;
}

.fdv160-home-today .fdv160-today-matchup strong { font-size: 17px; }
.fdv160-home-today .fdv160-today-open { display: none; }
.fdv160-home-today .fdv160-watch { gap: 4px 5px; }
.fdv160-home-today .fdv160-watch-chip { min-height: 20px; font-size: 10px; padding: 2px 6px; }
.fdv160-home-today .fdv160-why { font-size: 11px; line-height: 1.35; }

@media (max-width: 760px) {
  .fdv160-today-view {
    grid-template-columns: 78px minmax(0,1fr);
    gap: 10px;
  }
  .fdv160-today-open { grid-column: 2; justify-self: start; }
  .fdv160-today-matchup strong { font-size: 18px; }
}

/* V160.12 — standalone Today's NBA must fully own the legacy game-row geometry. */
.fdv160-standalone-today .fdv160-today-card {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  align-items: initial !important;
  padding: 0 !important;
}

.fdv160-standalone-today .fdv160-today-view {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box;
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
}

.fdv160-standalone-today .fdv160-today-main,
.fdv160-standalone-today .fdv160-today-matchup,
.fdv160-standalone-today .fdv160-why {
  min-width: 0 !important;
  width: auto !important;
  max-width: none;
}


/* V160.15 — Game File preview: structured facts, aligned starters, no generated narrative. */
.fdv160-preview-prose-hidden,
.fdv160-preview-longform-hidden,
.fdv160-starters-source-hidden { display: none !important; }

.fdv160-preview-page .fdv160-preview-hero {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 22px !important;
}

.fdv160-preview-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 10px;
  margin: 12px auto 18px;
  width: 100%;
  box-sizing: border-box;
}

.fdv160-preview-fact {
  background: #fffaf1;
  border: 1px solid #ded4c6;
  border-radius: 7px;
  padding: 10px 12px;
  min-width: 0;
}

.fdv160-preview-fact-label {
  display: block;
  margin-bottom: 4px;
  color: #e54b1a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fdv160-preview-fact-value {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.fdv160-preview-page .fdv160-preview-starters-table-panel {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box;
  color: #111827 !important;
  background: #fffaf1 !important;
}

.fdv160-starters-table {
  width: 100%;
  color: #111827;
}

.fdv160-starters-title {
  margin-bottom: 12px;
}

.fdv160-starters-title span {
  display: block;
  color: #e54b1a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fdv160-starters-title strong {
  display: block;
  margin-top: 2px;
  color: #111827;
  font-size: 20px;
  line-height: 1.1;
}

.fdv160-starters-grid {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  border-top: 1px solid #ded4c6;
  border-left: 1px solid #ded4c6;
}

.fdv160-starters-grid > * {
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid #ded4c6;
  border-bottom: 1px solid #ded4c6;
  color: #111827 !important;
  line-height: 1.2;
}

.fdv160-starters-head {
  background: #f4eadc;
  font-size: 12px;
  font-weight: 800;
}

.fdv160-starters-pos {
  color: #e54b1a !important;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.fdv160-starter-name {
  font-size: 13px;
  font-weight: 650;
}

.fdv160-preview-page .fdv160-preview-starters-table-panel,
.fdv160-preview-page .fdv160-preview-starters-table-panel * {
  color: #111827;
}

@media (max-width: 720px) {
  .fdv160-preview-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fdv160-starters-grid { grid-template-columns: 38px minmax(0,1fr) minmax(0,1fr); }
  .fdv160-starters-grid > * { padding: 7px 6px; }
  .fdv160-starter-name { font-size: 12px; }
}

