.theme-icon-toggle {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    margin-inline-start: .5rem;
    border: 1px solid #e6d6ff;
    border-radius: 50%;
    color: #fff;
    background: transparent;
    cursor: pointer;
}
.theme-icon-toggle[hidden] { display: none; }
.theme-icon-toggle:hover { background: #ffffff20; }
.theme-icon-toggle svg, .download-jump svg {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.theme-icon-toggle .theme-sun { display: none; }
[data-theme="dark"] .theme-icon-toggle .theme-moon { display: none; }
[data-theme="dark"] .theme-icon-toggle .theme-sun { display: block; }
.video__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 4px solid #ccc;
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.video__heading .video__title { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; }
.video__heading a.download-jump {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .4rem .85rem;
    border-radius: 7px;
    color: #fff;
    background: #7952b3;
    text-decoration: none;
    font-weight: 650;
    box-shadow: 0 2px 5px #12092126;
    text-align: left;
}
.video__heading a.download-jump:hover { background: #67419f; }
.theme-icon-toggle:focus-visible, .download-jump:focus-visible { outline: 2px solid #bb94ed; outline-offset: 3px; }
#download-links { scroll-margin-top: 16px; }
:root[data-theme="dark"] {
    color-scheme: dark;
    --dark-bg: #18151e;
    --dark-panel: #24202d;
    --dark-surface: #302939;
    --dark-text: #f2edf6;
    --dark-muted: #c9bfd3;
    --dark-edge: #594d66;
    --dark-link: #d7b9ff;
}
[data-theme="dark"] body { color: var(--dark-text); background: var(--dark-bg); }
[data-theme="dark"] :is(.main, .pagination, #search-results-container) { background: var(--dark-panel); }
[data-theme="dark"] :is(.hero, .related, .info__row:nth-child(2n), .taxonomies__name, .pagination__item, .pagefind-ui__search-input) { background: var(--dark-surface); }
[data-theme="dark"] :is(.video__info, .taxonomies__name, .pagefind-ui__search-input, #search-results-container, .release__title a, #search-results li a) { color: var(--dark-text); }
[data-theme="dark"] :is(.info__title, .pagefind-ui__search-input)::placeholder, [data-theme="dark"] .info__title { color: var(--dark-muted); }
[data-theme="dark"] :is(.main a:not([class]), .taxonomies__count, .pagination a, .release__title a:hover, #search-results li a:hover) { color: var(--dark-link); }
[data-theme="dark"] :is(.pagination .current, .pagination .prev, .pagination .next, .pagination a:hover, .taxonomies__name:hover, .taxonomies__name:focus) { color: #fff; }
[data-theme="dark"] :is(.video__heading, .video__previews, #search-results li) { border-color: var(--dark-edge); }
[data-theme="dark"] :focus-visible { outline: 2px solid var(--dark-link); outline-offset: 3px; }
@media (max-width: 720px) {
    .theme-icon-toggle { grid-column: 3; grid-row: 1; margin: 0; }
    .video__heading { flex-wrap: wrap; gap: 10px; }
    .video__heading .video__title { flex-basis: 100%; }
    .video__heading a.download-jump { margin-inline-start: auto; }
}
