.movie-explorer, .movie-explorer * { box-sizing: border-box; }
.movie-explorer { margin: 1.2rem 0 1.5rem; min-width: 0; color: #263b47; }
.movie-explorer [hidden] { display: none !important; }
.movie-explorer :focus-visible { outline: 2px solid #216b94; outline-offset: 3px; }
.movie-explorer-controls { padding: .85rem; border: 1px solid #d6dfe4; border-radius: 5px; background: #f8fafb; }
.movie-explorer-movies { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; }
.movie-explorer-controls label { display: flex; flex-direction: column; gap: .25rem; min-width: 0; font-size: .85rem; font-weight: 600; }
.movie-explorer-controls select { width: 100%; min-width: 0; max-width: 100%; padding: .4rem .5rem; border: 1px solid #b6c4ce; border-radius: 3px; color: #263b47; background: #fff; font: inherit; font-weight: 400; }
.movie-explorer-settings { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem 1.2rem; margin-top: .8rem; }
.movie-explorer-settings > label { flex: 1 1 10rem; }
.movie-explorer-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: .8rem 0 .2rem; font-size: .85rem; }
.movie-explorer-film-label { font-weight: 650; }
.movie-explorer-styles { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: #50616c; font-size: .8rem; }
.movie-explorer-style { display: inline-flex; align-items: center; gap: .4rem; }
.movie-explorer-swatch { display: inline-block; width: 1.7rem; height: 0; border-top: 2px solid currentColor; }
.movie-explorer-swatch.exponential { border-top-style: dashed; }
.movie-explorer-swatch.power { border-top-style: dotted; }
.movie-explorer-swatch.observed { width: 5px; height: 5px; border: 0; border-radius: 50%; background: #778791; opacity: .65; }
.movie-explorer-swatch.interval { height: .65rem; border: 0; background: currentColor; opacity: .25; }
.movie-explorer-chart { position: relative; min-width: 0; width: 100%; }
.movie-explorer-chart svg { display: block; width: 100%; max-width: 100%; height: auto; overflow: hidden; }
.movie-explorer-grid line { stroke: #e3e8eb; stroke-width: 1; }
.movie-explorer-tick { stroke: #89969f; stroke-width: 1; }
.movie-explorer-tick-label { fill: #52636f; font-size: 12px; font-family: inherit; }
.movie-explorer-axis-label { fill: #263b47; font-size: 13px; font-family: inherit; }
.movie-explorer-cursor { stroke: #71808a; stroke-width: 1; stroke-dasharray: 3 3; }
.movie-explorer-overlay { cursor: crosshair; touch-action: pan-y; }
.movie-explorer-overlay:focus-visible { outline: none; stroke: #216b94; stroke-width: 2; }
.movie-explorer-tooltip { position: absolute; z-index: 2; padding: .55rem .7rem; border: 1px solid #c6d1d8; border-radius: 4px; background: rgba(255,255,255,.97); box-shadow: 0 2px 9px #20364320; color: #263b47; font-size: .78rem; line-height: 1.4; pointer-events: none; font-variant-numeric: tabular-nums; }
.movie-explorer-tooltip-movie { margin-top: .4rem; }
.movie-explorer-tooltip-movie > * { display: block; }
.movie-explorer-date { color: #647580; }
.markdown-body .movie-explorer-note, .markdown-body .movie-explorer-status { margin: .4rem 0; color: #5a6d79; font-size: .8rem; line-height: 1.5; }
.movie-explorer button { padding: .3rem .7rem; font: inherit; cursor: pointer; }
.movie-explorer-legend button { padding: .2rem .3rem; border: 1px solid transparent; border-radius: 3px; background: transparent; color: inherit; font: inherit; text-align: left; }
.movie-explorer-legend button:hover { border-color: #b6c4ce; background: #f2f6f8; }
.movie-explorer-legend button[aria-pressed="false"] { opacity: .4; }
.movie-explorer-legend .movie-explorer-film-label { font-weight: 650; }
.movie-explorer-readout { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.movie-explorer-fallback img { display: block; width: 100%; height: auto; }
.movie-explorer-parameters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: .8rem 1.5rem; margin-top: .8rem; font-size: .8rem; font-variant-numeric: tabular-nums; }
.markdown-body .movie-explorer-parameter-card h4 { margin: 0 0 .3rem; font-size: .85rem; }
.markdown-body .movie-explorer-parameter-table { display: table; width: 100%; margin: 0; border-collapse: collapse; }
.markdown-body .movie-explorer-parameter-table tr { border: 0; background: transparent; }
.markdown-body .movie-explorer-parameter-table th, .markdown-body .movie-explorer-parameter-table td { padding: .2rem .3rem; border: 0; text-align: right; white-space: nowrap; }
.markdown-body .movie-explorer-parameter-table th:first-child { text-align: left; padding-left: 0; }
.movie-explorer-parameter-table thead { color: #647580; }
.movie-explorer-parameter-table tbody th { font-weight: 400; }
@media (max-width: 540px) {
  .movie-explorer-controls { padding: .65rem; }
  .movie-explorer-movies { grid-template-columns: 1fr; }
  .movie-explorer-settings { gap: .55rem .9rem; }
  .movie-explorer-settings > label { flex-basis: 100%; }
  .movie-explorer-tick-label { font-size: 11px; }
  .movie-explorer-axis-label { font-size: 12px; }
}
