/* Game preview pages (templates/nfl/preview.html). Tokens come from base.css. */
body { min-height: 100vh; display: flex; flex-direction: column; }
.pv { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 24px 20px 80px; display: flex; flex-direction: column; gap: 16px; }
.pv-back { font-size: 13.5px; color: var(--text3); text-decoration: none; }
.pv-back:hover { color: var(--accent); }

.pv-hero { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 20px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.pv-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pv-team.r { justify-content: flex-end; text-align: right; }
.pv-team img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.pv-team b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.pv-team span { font-size: 12.5px; color: var(--text3); }
.pv-mid { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12.5px; color: var(--text3); text-align: center; }
.pv-kicker { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); }

.pv-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.pv-card h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.pv-card h3 { font-size: 12px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .4px; margin: 18px 0 6px; }
.pv-card p { font-size: 14.5px; line-height: 1.6; color: var(--text2); }
.pv-lead { color: var(--text) !important; }
.pv-headline { font-size: 18px !important; font-weight: 650; color: var(--text) !important; line-height: 1.4 !important; margin-bottom: 8px; }
.pv-muted { color: var(--text3) !important; }
.pv-fine { font-size: 12.5px !important; color: var(--text3) !important; margin-top: 16px; }

.pv-score { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 6px; }
.pv-side { background: var(--bg3); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.pv-abbr { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--c); }
.pv-pts { font-family: var(--mono); font-size: 34px; font-weight: 650; margin: 6px 0 0; }
.pv-sub { font-size: 12px; color: var(--text3); }
.pv-bar { height: 6px; border-radius: 3px; background: var(--bg4); margin: 10px 0 4px; overflow: hidden; }
.pv-bar i { display: block; height: 100%; border-radius: 3px; }
.pv-lines { display: flex; gap: 10px; margin-top: 8px; }
.pv-lines div { background: var(--bg3); border-radius: var(--radius-sm); padding: 8px 14px; }
.pv-lines dt { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .4px; }
.pv-lines dd { font-family: var(--mono); font-size: 15px; font-weight: 650; }

.pv-list { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.55; color: var(--text2); }
.pv-src { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.pv-src a { color: var(--accent); text-decoration: none; }
.pv-src a:hover { text-decoration: underline; }
.pv-src span { color: var(--text3); font-size: 12px; margin-left: 8px; }
.pv-loading[hidden] { display: none; }  /* display:flex would otherwise beat the hidden attribute */
.pv-loading { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text3); }
.pv-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border2); border-top-color: var(--accent); animation: pv-spin .8s linear infinite; flex-shrink: 0; }
@keyframes pv-spin { to { transform: rotate(360deg); } }

/* The game page's link to the preview (templates/nfl/matchup.html) */
.pv-teaser { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; text-decoration: none;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); }
.pv-teaser:hover { border-color: var(--accent); }
.pv-teaser b { display: block; color: var(--text); font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.pv-teaser span { color: var(--text3); font-size: 13.5px; line-height: 1.5; }
.pv-teaser em { font-style: normal; color: var(--accent); font-weight: 600; font-size: 13.5px; white-space: nowrap; }

@media (max-width: 600px) {
  .pv-hero { grid-template-columns: 1fr 1fr; }
  .pv-mid { grid-column: 1 / -1; order: -1; }
  .pv-team img { width: 40px; height: 40px; }
  .pv-team b { font-size: 15px; }
  .pv-teaser { flex-direction: column; align-items: flex-start; }
}

/* The preview as a section of a game page (templates/nba/game.html) */
.pv-inline p { font-size: 14.5px; line-height: 1.6; color: var(--text2); }
.pv-inline h3 { font-size: 12px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .4px; margin: 16px 0 6px; }
.pv-inline .pv-fine { font-size: 12.5px; color: var(--text3); margin: 0; }
.pv-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.pv-empty .pv-actions { border-top: 0; padding-top: 0; margin-top: 12px; }
.pv-ask, .pv-gen { font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--accent); background: var(--accentdim); color: var(--accent); }
.pv-gen { background: var(--accent); color: #fff; }
.pv-ask:hover, .pv-gen:hover { filter: brightness(1.08); }
.pv-gen:disabled { opacity: .7; cursor: progress; }
