.history { padding-block: clamp(1.5rem, 5vw, 3.5rem); }
.history h1 { font-size: clamp(2rem, 6vw, 3.6rem); letter-spacing: -.055em; margin-bottom: 1.35rem; line-height: 1.05; }
.history-coverage { margin-bottom: 1rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; padding: .85rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
.filters label { display: grid; gap: .28rem; font-size: .875rem; font-weight: 700; min-width: 0; flex: 1 1 8.5rem; }
.filters .search-field { flex: 2 1 100%; }
.filters input, .filters select, .history-button { min-height: 2.75rem; padding: .5rem .65rem; font: inherit; border: 1px solid #a2aaa0; border-radius: .35rem; background: #fff; color: inherit; }
.filters select, .filters input { width: 100%; font-size: 1rem; }
.history-button { cursor: pointer; }
.page-size { display: flex; align-items: center; gap: .35rem; font-size: .875rem; }
.page-size select { min-height: 2.75rem; font: inherit; }
.history-button:disabled { cursor: default; opacity: .5; }
#status, #count { margin-block: .75rem; color: var(--muted); }
#status:empty { display: none; }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: .55rem; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 48rem; }
th, td { text-align: left; padding: .7rem .65rem; border-bottom: 1px solid var(--line); }
thead { background: #edf1e9; }
th { white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f3f6ee; }
td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
td:first-child { width: 34%; min-width: 11.5rem; overflow-wrap: anywhere; }
.video-link { text-align: left; padding: .3rem 0; border: 0; background: none; color: #163d30; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.video-id { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.pages { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
#player { width: min(46rem, calc(100% - 1.4rem)); max-height: calc(100dvh - 1.4rem); overflow: auto; border: 1px solid var(--line); border-radius: .6rem; }
#player::backdrop { background: #141c19bd; }
.player-header { display: flex; align-items: start; justify-content: space-between; gap: .65rem; margin-bottom: .65rem; }
.player-header h2 { font-size: clamp(1rem, 4vw, 1.4rem); overflow-wrap: anywhere; }
#embed iframe { display: block; width: 100%; aspect-ratio: 16/9; min-height: 200px; border: 0; background: #171917; }
#player p, #player h3 { margin-top: .9rem; }
#player dl { margin: .45rem 0 .75rem; }
#player dl div { display: grid; grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr); gap: .55rem; padding: .4rem 0; border-top: 1px solid var(--line); }
#player dt { color: var(--muted); font-size: .85rem; }
#player dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
#events details { padding: .45rem 0; margin: 0; }
