
/* Detail block sections */
.detail-block {
  margin-top: 16px;
}
.detail-block h3 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

/* Status bar (from status.js) */
.status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.status--loading {
  background: var(--bg-surface);
}
.status--error {
  background: rgba(255, 77, 109, 0.06);
  border-color: rgba(255, 77, 109, 0.2);
}
.status--warning {
  background: rgba(240, 179, 75, 0.06);
  border-color: rgba(240, 179, 75, 0.2);
}
.status--success {
  background: rgba(62, 207, 122, 0.04);
  border-color: rgba(62, 207, 122, 0.1);
}

.status__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-surface);
  font-size: 13px;
  font-weight: 700;
}

.status--error .status__icon {
  background: rgba(255, 77, 109, 0.15);
  color: var(--accent-error);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status__body {
  flex: 1;
  min-width: 0;
}
.status__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-strong);
}
.status__desc {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}
.status__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.status__meta .retry {
  border: 0;
  background: transparent;
  color: var(--accent-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.status__meta .retry:hover {
  background: var(--bg-surface-hover);
}

.status-badges {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.src-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.src-badge.official {
  background: rgba(88, 169, 255, 0.12);
  color: #9ac5ff;
}
.src-badge.semi {
  background: rgba(240, 179, 75, 0.12);
  color: #f0dba0;
}
.src-badge.community {
  background: rgba(180, 140, 255, 0.12);
  color: #c8b4ff;
}

/* Detail cover */
.detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tag styles in detail */
.detail-tags span {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.detail-tags span.live {
  background: rgba(62, 207, 122, 0.12);
  border-color: rgba(62, 207, 122, 0.3);
  color: #9fe3b8;
}
.detail-tags span.soon {
  background: rgba(255, 77, 109, 0.12);
  border-color: rgba(255, 77, 109, 0.3);
  color: #ff8a9e;
}
.detail-tags span.preview {
  background: rgba(88, 169, 255, 0.12);
  border-color: rgba(88, 169, 255, 0.3);
  color: #9ac5ff;
}

/* Card accent colors */
.card--accent-warm { --card-accent: #f0c41a; }
.card--accent-teal { --card-accent: #9ad7c2; }
.card--accent-blue { --card-accent: #58a9ff; }
.card--accent-orange { --card-accent: #d4a574; }
.card--accent-red { --card-accent: #e86a6a; }
.card--accent-pink { --card-accent: #e879a9; }
.card--accent-violet { --card-accent: #c4a1ff; }
/* Ending soon flag - overrides display:none from hud.css default */
.ending-soon-flag {
  position: absolute;
  top: 28px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 77, 109, 0.85);
  color: #fff;
  letter-spacing: 0.02em;
  z-index: 2;
}
.soon-tag {
  display: inline;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 77, 109, 0.15);
  color: #ff7088;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Card preview state */
.card.preview .cover .badge {
  background: rgba(88, 169, 255, 0.85);
  color: #041018;
}
/* Game meta */
.game-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Detail tags spans (already in status bar section but also for detail) */
.detail-tags span.done {
  background: rgba(122, 130, 148, 0.12);
  border-color: rgba(122, 130, 148, 0.3);
  color: var(--text-muted);
}
/* ---- Missing classes from render.js ---- */

/* Card base */
.briefing-card {
  border-radius: var(--radius-md);
}

/* Chevron toggle */
.chev {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
}
.collapsed .chev {
  transform: rotate(-90deg);
}

/* Track ticks */
.track-ticks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(25% - 1px),
    rgba(255, 255, 255, 0.08) calc(25% - 1px),
    rgba(255, 255, 255, 0.08) 25%
  );
  opacity: 0.4;
}

/* Pct row */
.pct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.pct-num.metric {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Date cells */
.dates--foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  margin: 8px -2px 0;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.date-cell {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.date-cell em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}
.date-cell .metric {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-main);
}
.date-cell.end .metric {
  color: var(--accent-primary);
}

/* Game row states */
.game-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.game-count.is-zero {
  color: var(--text-muted);
  opacity: 0.6;
}
.game-empty {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.game-loading {
  opacity: 0.6;
}

/* Wiki link accent */
.tool-link.wiki {
  border-color: rgba(88, 169, 255, 0.3);
  color: #9ac5ff;
}

/* Card cover in cover-fallback state */
.cover.cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
}
/* Bar wrapper for card body */
.bar.briefing-body {
  padding: 8px 12px 12px;
}
/* Dates wrapper */
.dates {
  display: flex;
}

/* Mid section container */
.mid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
