/* Illiberal Chronology — single-recording context controls, v2. Context-ready cards only. */
.ic-context-shell { --ic-context-accent: #f2d38a; position: relative; }
.ic-context-shell .ic-context-player {
  --time-range: none; --time-display: none; --duration-display: none;
  /* Receiver/native overlays cannot show the bounded, highlighted timeline. */
  --cast-button: none; --airplay-button: none; --pip-button: none;
}
.ic-context-panel {
  background: #12171e; color: #f3f1eb; border-top: 1px solid #343e4b;
  padding: 16px 18px 14px; font: 14px/1.45 system-ui, sans-serif;
}
.ic-context-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ic-context-mode { display: flex; flex-direction: column; gap: 3px; }
.ic-context-mode strong { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ic-context-clock { color: #bcc5d2; font-size: 12px; font-variant-numeric: tabular-nums; }
.ic-context-panel button {
  min-height: 40px; padding: 8px 12px; border: 1px solid #657284; border-radius: 6px;
  color: #f3f1eb; background: #202935; font: inherit; font-weight: 650; cursor: pointer;
}
.ic-context-panel button:hover { background: #303e50; }
.ic-context-panel button:focus-visible, .ic-context-track:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
.ic-context-panel button:disabled { opacity: .55; cursor: wait; }
.ic-context-toggle { border-color: var(--ic-context-accent) !important; }
.ic-context-track { position: relative; height: 44px; margin: 14px 0 0; border-radius: 5px; }
.ic-context-rail { position: absolute; inset: 13px 0; border-radius: 4px; overflow: hidden; background: #374250; }
.ic-context-highlight {
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%;
  background: var(--ic-context-accent); border-left: 2px solid #fff; border-right: 2px solid #fff;
}
.ic-context-playhead { position: absolute; top: 7px; bottom: 7px; width: 3px; left: 0; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px #10141a, 0 0 6px #000; }
.ic-context-playhead::before { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; top: -2px; left: -3px; background: #fff; }
.ic-context-track input {
  position: absolute; inset: 0; width: 100%; height: 44px; margin: 0; opacity: 0;
  cursor: pointer; touch-action: pan-y;
}
.ic-context-labels { display: flex; justify-content: space-between; gap: 12px; color: #bfc8d5; font-size: 12px; font-variant-numeric: tabular-nums; }
.ic-context-legend { margin: 10px 0; display: flex; align-items: center; gap: 8px; color: #edf0f5; font-size: 12px; }
.ic-context-swatch { flex: 0 0 20px; height: 8px; border: 1px solid #fff; background: var(--ic-context-accent); }
.ic-context-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ic-context-actions button { font-size: 12px; min-height: 40px; }
.ic-context-status { min-height: 2.8em; margin: 10px 0 0; color: #bfc8d5; font-size: 12px; }
.ic-context-panel [hidden] { display: none !important; }
.ic-context-shell[data-mode="context"] { border-color: var(--ic-context-accent); }
.ic-context-shell.ic-context-animating .ic-context-highlight { transition: left 650ms cubic-bezier(.22,.7,.2,1), width 650ms cubic-bezier(.22,.7,.2,1); }
.ic-context-shell.ic-context-animating .ic-context-playhead { transition: left 650ms cubic-bezier(.22,.7,.2,1); }
.ic-context-shell.ic-context-animating .ic-context-rail { animation: ic-context-reveal 650ms ease-out; }
@keyframes ic-context-reveal { 0% { box-shadow: 0 0 0 0 var(--ic-context-accent); } 45% { box-shadow: 0 0 0 4px #b1bcc53b; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ic-context-setup-error { padding: 12px; border: 1px solid #b66363; color: #ffbaba; font-size: 14px; }
.ic-context-shell:fullscreen, .ic-context-shell:-webkit-full-screen {
  width: 100%; height: 100%; max-width: none; margin: 0; background: #000;
  display: flex; flex-direction: column; overflow: auto; border: 0;
}
.ic-context-shell:fullscreen .video-frame, .ic-context-shell:-webkit-full-screen .video-frame {
  flex: 1 1 auto; min-height: 0; height: 0; width: 100%; aspect-ratio: auto;
  --media-object-fit: contain;
}
.ic-context-shell:fullscreen .ic-context-panel { flex: 0 0 auto; width: 100%; max-width: 1200px; align-self: center; }
@media (max-width: 520px) {
  .ic-context-panel { padding: 12px; }
  .ic-context-panel button { min-height: 44px; }
  .ic-context-status { min-height: 4.2em; }
  .ic-context-labels { gap: 6px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ic-context-shell *, .ic-context-shell *::before { animation: none !important; transition: none !important; }
}


.ic-context-shell .ic-context-player { --seek-backward-button: none; --seek-forward-button: none; }
.ic-context-shell .ic-context-highlight { min-width: 2px; }
.ic-context-retry { border-color: #e49d77 !important; }
.ic-context-shell .ic-context-status { overflow-wrap: anywhere; }
