:root {
    --poster-aspect: 1.7777778;
}
body, button {
    font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
}

body {
    --action: hsl(225 39% 40%);
--action-hover: hsl(225 46% 54.000004%);
--bg-1: hsl(217 19% 9%);
--bg-1-85: hsl(217 19% 9% / 85%);
--bg-2: hsl(217 12% 15.000001%);
--bg-3: hsl(217 9% 20%);
--bg-mg: hsl(217 7% 27.000002%);
--checkerboard: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDY0IDY0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHJlY3QgZmlsbD0iaHNsKDIxNyAxMiUgMTUuMDAwMDAxJSkiIGhlaWdodD0iMzIiIHdpZHRoPSIzMiIgeD0iMCIgeT0iMCIvPgogICAgPHJlY3QgZmlsbD0iaHNsKDIxNyAxMiUgMTUuMDAwMDAxJSkiIGhlaWdodD0iMzIiIHdpZHRoPSIzMiIgeD0iMzIiIHk9IjMyIi8+CiAgICA8cmVjdCBmaWxsPSJoc2woMjE3IDklIDIwJSkiIGhlaWdodD0iMzIiIHdpZHRoPSIzMiIgeD0iMCIgeT0iMzIiLz4KICAgIDxyZWN0IGZpbGw9ImhzbCgyMTcgOSUgMjAlKSIgaGVpZ2h0PSIzMiIgd2lkdGg9IjMyIiB4PSIzMiIgeT0iMCIvPgo8L3N2Zz4K");
--d-1: hsl(217 19% 9%);
--d-1-15: hsl(217 19% 9% / 15%);
--d-1-85: hsl(217 19% 9% / 85%);
--d-2: hsl(217 12% 15.000001%);
--d-3: hsl(217 9% 20%);
--danger: hsl(347 46% 37%);
--danger-hover: hsl(348 43% 51%);
--fg-1: hsl(0 0% 100%);
--fg-2: hsl(217 12% 80%);
--fg-3: hsl(217 8% 71%);
--fg-mg: hsl(217 6% 60.000004%);
--l-1: hsl(0 0% 100%);
--l-1-10: hsl(0 0% 100% / 10%);
--l-2: hsl(217 12% 80%);
--l-3: hsl(217 8% 71%);
--mg: hsl(217 5% 54.000004%);
--warning-bg: hsl(347 17% 21%);
--warning-fg: hsl(0 0% 100%);

}
@supports (color: oklch(0% 0 0)) {
    body {
        --action: oklch(45% 0.1 268);
--action-hover: oklch(56% 0.13 268);
--bg-1: oklch(20% 0.012 260);
--bg-1-85: oklch(20% 0.012 260 / 85%);
--bg-2: oklch(26.9% 0.012 260);
--bg-3: oklch(32% 0.012 260);
--bg-mg: oklch(38.7% 0.012 260);
--checkerboard: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDY0IDY0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPHJlY3QgZmlsbD0iaHNsKDIxNyAxMiUgMTUuMDAwMDAxJSkiIGhlaWdodD0iMzIiIHdpZHRoPSIzMiIgeD0iMCIgeT0iMCIvPgogICAgPHJlY3QgZmlsbD0iaHNsKDIxNyAxMiUgMTUuMDAwMDAxJSkiIGhlaWdodD0iMzIiIHdpZHRoPSIzMiIgeD0iMzIiIHk9IjMyIi8+CiAgICA8cmVjdCBmaWxsPSJoc2woMjE3IDklIDIwJSkiIGhlaWdodD0iMzIiIHdpZHRoPSIzMiIgeD0iMCIgeT0iMzIiLz4KICAgIDxyZWN0IGZpbGw9ImhzbCgyMTcgOSUgMjAlKSIgaGVpZ2h0PSIzMiIgd2lkdGg9IjMyIiB4PSIzMiIgeT0iMCIvPgo8L3N2Zz4K");
--d-1: oklch(20% 0.012 260);
--d-1-15: oklch(20% 0.012 260 / 15%);
--d-1-85: oklch(20% 0.012 260 / 85%);
--d-2: oklch(26.9% 0.012 260);
--d-3: oklch(32% 0.012 260);
--danger: oklch(45% 0.12 370);
--danger-hover: oklch(56% 0.14 370);
--fg-1: oklch(100% 0 0);
--fg-2: oklch(84% 0.012 260);
--fg-3: oklch(77% 0.012 260);
--fg-mg: oklch(68% 0.012 260);
--l-1: oklch(100% 0 0);
--l-1-10: oklch(100% 0 0 / 10%);
--l-2: oklch(84% 0.012 260);
--l-3: oklch(77% 0.012 260);
--mg: oklch(62.699997% 0.012 260);
--warning-bg: oklch(32% 0.03 364);
--warning-fg: oklch(100% 0 0);

    }
}

a {
    color: var(--fg-1);
    text-decoration: none;
}
a:hover { color: var(--fg-3); }
.actions a,
.actions button {
    align-items: center;
    background: var(--bg-2);
    border: none;
    border-radius: .2rem;
    color: var(--fg-1);
    column-gap: .3rem;
    cursor: pointer;
    display: flex;
    font-size: .9rem;
    padding: .3rem .4rem;
    white-space: nowrap;
}
.actions a:focus-visible,
.actions a:hover,
.actions button:focus-visible,
.actions button:hover {
    background: var(--bg-3);
}
/* TODO: Temporarily hidden - unhide in an upcoming version when we figured out
         layout questions around banner. */
.banner { display: none; }
body {
    background: var(--bg-1);
    color: var(--fg-2);
    margin: 0;
}
.browse {
    background: none;
    border: none;
    border-radius: .2rem;
    cursor: pointer;
    outline: none;
    padding: .2rem 0;
}
.browse:focus-visible {
    background: var(--fg-2);
    color: var(--bg-1);
}
button {
    color: var(--fg-2);
    font-size: inherit;
}
.caption {
    font-weight: 500;
    margin-top: .4rem;
}
.center {
    margin: 0 auto;
    padding-inline: 1rem;
}
.center .banner {
    border-radius: .5rem;
    max-width: 32rem;
}
.center .description a {
    text-decoration: underline;
    text-underline-offset: .3rem;
}
.center .description a:hover { text-decoration: none; }
.context_dot {
    border-radius: 50%;
    display: block;
    height: 1rem;
    width: 1rem;
}
.context_dot:focus-visible,
.context_dot:hover {
    box-shadow: 0 0 .15rem var(--mg);
}
.context_dot + .context_dot { margin-left: .3rem; }
#copy-link::after {
    color: var(--fg-2);
    padding-left: .5rem;
}
#copy-link.confirmed::after { content: var(--t-copied); }
#copy-link.failed::after { content: var(--t-failed); }
dialog.shortcuts {
    background: var(--bg-1);
    border-radius: .5rem;
    border: 1px solid var(--bg-3);
    box-shadow: 0 0 1rem var(--d-1-15);
    color: var(--fg-2);
    flex-direction: column;
    left: 0;
    margin: 0;
    padding: 3rem 3rem 2rem 3rem;
    position: fixed;
    row-gap: 1rem;
    top: 0;
    transform: translate(calc(50vw - 50%), calc(50dvh - 50%));
    z-index: 9;
}
dialog.shortcuts[open] { display: flex; }
dialog.shortcuts button {
    background: var(--action);
    border: none;
    border-radius: .2rem;
    color: var(--l-1);
    cursor: pointer;
    font-size: .9rem;
    padding: .3rem .4rem;
}
dialog.shortcuts button:hover { background: var(--action-hover); }
dialog.shortcuts form {
    margin-top: 1rem;
    text-align: center;
}
dialog.shortcuts h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}
dialog.shortcuts li {
    align-items: center;
    column-gap: 1.5rem;
    display: flex;
    font-size: .9rem;
    justify-content: space-between;
    line-height: 1.4;
    list-style: none;
}
dialog.shortcuts li > span {
    align-items: center;
    background: var(--bg-2);
    border-radius: .3rem;
    box-sizing: border-box;
    display: flex;
    font-family: monospace;
    font-size: .8rem;
    justify-content: center;
    min-height: 1.8rem;
    min-width: 1.8rem;
    padding: .1rem .5rem;
    white-space: nowrap;
}
dialog.shortcuts ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    row-gap: .5rem;
}
.feed_card {
    background: var(--bg-2);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    row-gap: 1rem;
}
.feed_card > * { margin: 0; }
.feed_card a { text-decoration: underline; }
.feed_card button { background: var(--bg-1); }
.feed_card h2 {
    align-items: center;
    display: flex;
    column-gap: .4em;
}
.feed_card h2 span { flex-grow: 1; }
.feed_grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
.flex { display: flex; }
.flex.align { align-items: center; }
.flex.align_start { align-items: flex-start; }
.flex.apart { justify-content: space-between; }
.flex.space { column-gap: .3rem; }
.flex.wrap { flex-wrap: wrap; }
footer {
    align-items: center;
    background: var(--bg-1);
    box-sizing: border-box;
    display: flex;
    font-size: .9rem;
    flex-wrap: wrap;
    gap: .7rem;
    justify-content: space-between;
    margin: 2rem auto 0 auto;
    padding: 1rem;
    width: 100%;
}
footer > div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}
footer a,
footer button {
    align-items: center;
    background: none;
    border: none;
    color: var(--fg-3);
    column-gap: .4rem;
    cursor: pointer;
    display: flex;
}
footer a:hover,
footer button:hover {
    color: var(--fg-1);
}
footer a:not(:hover) svg,
footer button:not(:hover) svg {
    color: var(--fg-mg);
}
h1 {
    color: var(--fg-1);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
}
h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 3rem;
}
header {
    align-items: center;
    column-gap: 1rem;
    display: flex;
    font-size: .9rem;
    justify-content: space-between;
    padding: .5rem .6rem .5rem 1rem;
}
header .navigation {
    align-items: center;
    column-gap: .1em;
    display: flex;
    flex-wrap: wrap;
}
header .navigation > :nth-child(1) { padding-inline-end: .3em; }
header .navigation > :nth-child(1) {
    align-items: center;
    column-gap: .3em;
    display: flex;
}
header .navigation > :nth-child(2) { padding-inline: .3em; }
header .navigation > :nth-child(3) { padding-inline-start: .3em; }
header .navigation > :not(:last-child) {  }
header .title { color: var(--fg-1); }
img {
    display: block;
    max-width: 100%;
}
.large_font { font-size: 1.6rem; }
.layout {
    display: flex;
    flex-direction: column;
    height: 100dvh;
}
.layout .growing { flex-grow: 1; }
.layout_split {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.links {
    font-size: .9rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}
.links > a {
    align-items: center;
    background: var(--bg-2);
    border-radius: .2rem;
    color: var(--fg-1);
    column-gap: .3rem;
    display: flex;
    padding: .3rem .4rem;
    width: max-content;
}
.links > a:not(:first-child) { margin-top: .5rem; }
.links > a:focus-visible,
.links > a:hover {
    background: var(--bg-3);
}
.logo {
    background: var(--fg-2);
    color: var(--bg-1);
    font-weight: 500;
    padding: .5rem;
}
.medium_font { font-size: 1.2rem; }
.outro_playlist_context > a,
.outro_playlist_context > button {
    align-items: center;
    border-radius: .3rem;
    column-gap: 1rem;
    display: flex;
    min-height: 2rem;
    outline: none;
    padding: .25rem 1rem;
    position: relative;
}
.outro_playlist_context > a:focus-visible,
.outro_playlist_context > a:hover,
.outro_playlist_context > button:focus-visible,
.outro_playlist_context > button:hover {
    background: var(--l-1-10);
}
.outro_playlist_context .description {
    align-items: flex-start;
    color: var(--l-1);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    margin-right: 1rem;
}
.outro_playlist_context .details {
    color: var(--l-3);
    font-size: .8rem;
}
.outro_playlist_context .label { font-size: .9rem;  }
.outro_playlist_context .number_context {
    background: var(--l-3);
    border-radius: .2rem;
    color: var(--d-1);
    font-size: .8rem;
    margin-bottom: .2rem;
    padding: .15rem .36rem;
}
.outro_playlist_context img {
    aspect-ratio: var(--poster-aspect);
    background: var(--d-1);
    border-radius: .3rem;
    display: block;
    flex-shrink: 0;
    height: 4rem;
    object-fit: contain;
}
.outro_playlist_context .replay_indicator {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-left: -.25rem;
    width: 2rem;
}
.outro_playlist_context .replay_indicator svg { font-size: 1.5rem; }
.outro_playlist_context .title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 min(5%, 3rem) 0;
    text-align: center;
}
.outro_video_context {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
}
.outro_video_context > button {
    align-items: center;
    column-gap: .3rem;
    display: flex;
}
.parent_context {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    font-size: .9rem;
    gap: .5rem;
    margin-bottom: .2rem;
}
.parent_context.inline {
    align-items: center;
    flex-direction: row-reverse;
}
.parent_context > div:nth-child(2) { display: flex; }
.parents {
    font-size: .9rem;
    margin-top: .2rem;
}
.player_controls {
    bottom: 0;
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%;
}
.player_controls button { padding: .9rem .7rem; }
.player_controls button svg { font-size: 1.4rem; }
.player_controls .control_pane {
    background: var(--d-1-85);
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
    display: flex;
    font-size: .9rem;
    justify-content: space-between;
}
.player_controls .control_pane button { font-size: .9rem; }
.player_controls .control_pane > div {
    align-items: center;
    display: flex;
}
.player_controls .control_pane input {
    opacity: 0;
    position: absolute;
    width: 100%;
}
.player_controls .left_playback_controls button:first-child { padding-left: .9rem; }
.player_controls .right_playback_controls button:last-child { padding-right: .9rem; }
.player_controls #select_subtitles {
    align-items: center;
    column-gap: .3rem;
    display: flex;
}
.player_controls .timeline {
    height: .8rem;
    position: relative;
}
.player_controls .timeline * { cursor: pointer; }
.player_controls .timeline .bar {
    bottom: 0;
    height: .3rem;
    pointer-events: none;
    position: absolute;
}
.player_controls .timeline:hover .bar { height: .35rem; }
.player_controls .timeline .bar.backdrop {
    background: var(--d-3);
    width: 100%;
    z-index: 1;
}
.player_controls .timeline .bar.outline {
    width: 100%;
    z-index: 3;
}
.player_controls .timeline input:focus-visible + .bar.outline { outline: 1px solid var(--l-1); }
.player_controls .timeline .bar.progress {
    background: var(--l-1);
    width: 0;
    z-index: 2;
}
.player_controls .timeline input {
    appearance: none;
    bottom: 0;
    left: 0;
    margin: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 3;
}
.player_intro {
    align-items: center;
    display: flex;
    justify-content: center;
}
.player_intro,
.player_outro {
    bottom: 2.9rem;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.player_outro {
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    overflow-y: auto;
    padding: min(5%, 3rem) 2.5% 2.5% 2.5%;
}
.player_wrapper {
    background: #000;
    border-radius: .5rem;
    color: var(--l-2);
    position: relative;
}
.player_wrapper a,
.player_wrapper button {
    color: var(--l-2);
}
.player_wrapper a:hover,
.player_wrapper button:hover {
    color: var(--l-1);
}
.player_wrapper button {
    background: none;
    border: none;
    cursor: pointer;
}
.player_wrapper button.dimmed { color: var(--mg); }
.player_wrapper button.dimmed:hover { color: var(--l-3); }
.player_wrapper > *:not(video) { z-index: 1; }
.player_wrapper:not([data-state="intro"]) .player_intro { display: none; }
.player_wrapper:not([data-state="outro"]) .player_outro { display: none; }
.player_wrapper:not([data-state="outro"]) .player_controls.hidden { display: none; }
.player_wrapper[data-state="outro"] video { opacity: .1; }
.player_wrapper:not(:fullscreen) video {
    aspect-ratio: var(--video-aspect);
    max-height: 60dvh;
}
/* With portrait (tablet/mobile) viewports we allow videos to be taller */
@media (max-aspect-ratio: 1/1) {
    .player_wrapper:not(:fullscreen) video { max-height: 68dvh; }
}
@media (max-aspect-ratio: 2/3) {
    .player_wrapper:not(:fullscreen) video { max-height: 76dvh; }
}
.playlist_context > a {
    align-items: center;
    border-radius: .3rem;
    display: flex;
    outline: none;
    position: relative;
}
.playlist_context > a:focus-visible,
.playlist_context > a:hover { background: var(--bg-2); }
.playlist_context > a:not(:last-child) {
    margin-bottom: .5rem;
}
.playlist_context .current::after {
    background: var(--action);
    border-radius: .1rem;
    content: '';
    height: 3rem;
    margin-left: -.2rem;
    width: .2rem;
}
.playlist_context .description {
    align-items: flex-start;
    color: var(--fg-1);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    padding: .2rem .8rem;
}
.playlist_context .details {
    color: var(--fg-3);
    font-size: .8rem;
}
.playlist_context .label { font-size: .9rem; }
.playlist_context .number_context {
    background: var(--fg-3);
    border-radius: .2rem;
    color: var(--bg-1);
    font-size: .8rem;
    margin-bottom: .2rem;
    padding: .15rem .36rem;
}
.playlist_context img {
    aspect-ratio: var(--poster-aspect);
    background: var(--d-1);
    border-radius: .3rem;
    display: block;
    flex-shrink: 0;
    height: 4rem;
    object-fit: contain;
}
.playlist_page {
    display: flex;
    flex-direction: column;
}
.playlist_page > a > div { flex-shrink: 0; }
.playlist_page > * {
    align-items: center;
    border-radius: .5rem;
    column-gap: 1rem;
    display: flex;
    outline: none;
    padding: .5rem;
}
.playlist_page > *:focus-visible,
.playlist_page > *:hover { background: var(--bg-2); }
.playlist_page .description {
    align-items: center;
    color: var(--fg-1);
    display: flex;
    flex-grow: 1;
}
.reading_width { max-width: 32rem; }
.release_date {
    color: var(--fg-3);
    display: inline-block;
    margin-top: .2rem;
}
.right_playback_controls { position: relative; }
.search {
    align-items: center;
    display: flex;
    position: relative;
}
.search button {
    background: transparent;
    border: none;
    color: var(--fg-3);
    cursor: pointer;
    padding: .3em;
    position: absolute;
    right: 0;
}
.search .icon {
    color: var(--fg-3);
    pointer-events: none;
    position: absolute;
}
.search input {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    color: var(--fg-3);
    font-size: 1em;
    outline: none;
    padding: .3em 1.4em calc(.3em - 1px) 1.4em;
    transition: width 200ms ease;
    width: 8rem;
}
.search input::placeholder {
    color: var(--fg-3);
    opacity: 1;
}
.search.query_present input,
.search input:focus {
    width: 10rem;
}
.search input:focus { border-bottom: 1px solid var(--mg); }
.search input:focus::placeholder { opacity: 0; }
.search:not(.query_present) button { display: none; }
.sidebar { flex-shrink: 0; }
.sidebar.hidden { display: none; }
.site_title {
    color: var(--fg-2);
    font-size: 1.17rem;
}
.site_tree {
    background: var(--bg-1);
    border: 1px solid var(--bg-3);
    border-radius: .5em;
    box-shadow: 0 0 2rem var(--d-1-15);
    box-sizing: border-box;
    display: flex;
    max-height: 80dvh;
    min-width: min(34rem, 100vw);
    overflow-y: auto;
    padding: 1rem;
    position: absolute;
    top: 3.2rem;
    z-index: 2;
}
.site_tree [role="status"]:not(:empty) {
    font-weight: 500;
    padding: .5rem;
}
.site_tree .elements {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.site_tree .elements a {
    align-items: center;
    border-radius: .2rem;
    display: flex;
}
.site_tree .elements a.current::before {
    background: var(--action);
    border-radius: .1rem;
    content: '';
    height: 1rem;
    margin-left: -.2rem;
    right: 0;
    width: .2rem;
}
.site_tree .elements a:focus-visible,
.site_tree .elements a:hover {
    background: var(--bg-2);
    color: var(--fg-1);
    outline: none;
}
.site_tree .elements a:not(.visible) { display: none; }
.site_tree .elements .collection > :nth-child(1),
.site_tree .elements .playlist > :nth-child(1) {
    align-items: center;
    display: flex;
    height: 1rem;
    justify-content: center;
    padding: .5rem;
    width: 1rem;
}
.site_tree .elements .collection > :nth-child(1) svg,
.site_tree .elements .playlist > :nth-child(1) svg {
    border-radius: 50%;
    color: var(--fg-1);
    font-size: .6rem;
    padding: .2rem;
}
.site_tree .elements .collection:hover > :nth-child(1) svg,
.site_tree .elements .playlist:hover > :nth-child(1) svg {
    background: var(--bg-1);
}
.site_tree .elements .collection > :nth-child(1):hover svg,
.site_tree .elements .playlist > :nth-child(1):hover svg {
    background: var(--fg-3);
    color: var(--bg-1);
}
.site_tree .elements .collection.expanded > :nth-child(1) svg,
.site_tree .elements .playlist.expanded > :nth-child(1) svg {
    transform: rotate(90deg);
}
.site_tree .elements .collection > :nth-child(2),
.site_tree .elements .playlist > :nth-child(2) {
    align-items: center;
    column-gap: .3rem;
    display: flex;
}
.site_tree .elements .collection > :nth-child(2) svg,
.site_tree .elements .playlist > :nth-child(2) svg {
    color: var(--mg);
    font-size: .5rem;
}
.site_tree .elements .collection > :nth-child(3),
.site_tree .elements .playlist > :nth-child(3) {
    color: var(--fg-3);
    margin-left: .3rem;
}
.site_tree .elements .video { padding: .5rem; }
.site_tree .elements .video.current::before { height: 3rem; }
.site_tree .elements .video > :nth-child(1) {
    aspect-ratio: var(--poster-aspect);
    border-radius: .2rem;
    height: 3rem;
    margin-left: 1.5rem;
}
.site_tree .elements .video > :nth-child(2) {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-left: .7rem;
    row-gap: .1rem;
}
.site_tree .elements .video > :nth-child(2) > :nth-child(2) {
    color: var(--fg-3);
    font-size: .8rem;
}
.site_tree .elements .placeholder { background: var(--bg-3); }
.site_tree:not(.open) { display: none; }
#speed .x { font-size: .8em; }
.selector_control {
    align-items: center;
    display: flex;
    height: 100%;
}
.selector_options {
    bottom: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    padding-bottom: .5rem;
    pointer-events: none;
    position: absolute;
    z-index: 4;
}
.selector_options.centered {
    left: 50%;
    transform: translateX(-50%);
}
.selector_options.right_aligned { right: .5rem; }
.selector_options:focus-within,
.selector_control.active:hover .selector_options {
    opacity: 1;
    pointer-events: auto;
}
.selector_options button {
    align-items: center;
    background: var(--d-1-85);
    display: flex;
    white-space: nowrap;
}
.selector_options button:first-child {
    border-top-left-radius: .4em;
    border-top-right-radius: .4em;
}
.selector_options button:last-child {
    border-bottom-left-radius: .4em;
    border-bottom-right-radius: .4em;
}
.selector_options button .active_marker_container {
    height: 1em;
    width: 1em;
}
.selector_options button svg { font-size: 1rem; }
.selector_options button:not(.active) svg { display: none; }
.selector_options button:not(:first-child) { padding-top: .5rem; }
.selector_options button:not(:last-child) { padding-bottom: .5rem; }
svg {
    fill: currentColor;
    display: block;
}
.thumbnail {
    aspect-ratio: var(--poster-aspect);
    background: var(--d-1);
    border-radius: .5rem;
    flex-shrink: 0;
    object-fit: contain;
}
.thumbnail_wrapper { position: relative; }
.thumbnail_wrapper .duration {
    background: var(--bg-1-85);
    border-radius: .2rem;
    bottom: calc(var(--poster-aspect) * 3%);
    color: var(--fg-1);
    font-size: .8rem;
    padding: .1rem .3rem;
    position: absolute;
    right: 3%;
}
.unlisted_badge {
    background: var(--bg-2);
    border-radius: .2rem;
    padding: .3rem;
}
.versions_ring {
    aspect-ratio: 1;
    height: min(20rem, 85%);
    opacity: .9;
    width: auto;
}
.versions_ring circle.backdrop {
    fill: var(--d-1);
    opacity: .9;
}
.versions_ring path { fill: var(--l-1); }
.versions_ring g {
    cursor: pointer;
    opacity: .9;
}
.versions_ring g:focus-visible,
.versions_ring g:hover {
    opacity: 1;
    outline: none;
}
.versions_ring text {
    fill: var(--d-1);
    font-size: 1.3rem;
}
.versions_ring rect.backdrop { fill: var(--l-1); }
.versions_ring text.size {
    fill: var(--d-3);
    font-size: 1rem;
}
.versions_ring.interacting g:not(:focus-visible):not(:hover) { opacity: .5; }
video {
    border-radius: .5rem;
    display: block;
    height: 100%;
    width: 100%;
}
.video_info { margin-bottom: 1.5rem; }
.video_info.top {
    align-items: center;
    column-gap: 3rem;
    display: flex;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
}
.video_title {
    color: var(--fg-1);
    font-size: 1.4rem;
    margin: 0;
    margin-bottom: .3em;
}
.videos {
    column-gap: 1rem;
    display: flex;
    flex-flow: row wrap;
    row-gap: 1rem;
}
.videos_grid {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 2rem;
    margin-top: 2rem;
}
.videos_grid .number {
    background: var(--fg-3);
    border-radius: .2rem;
    color: var(--bg-1);
    font-size: .8rem;
    padding: .1rem .3rem .1rem .3rem;
}
.videos_grid .release_date { font-size: .9rem; }
.videos_grid .thumbnail { height: auto; }
@media (width < 20rem) {
    .playlist_context img { height: 3rem; }
}
@media (width >= 20rem) and (width < 30rem) {
    .playlist_context img { height: calc(3rem + (100vw - 20rem) / 10); }
}
@media (max-width: 33.999rem) {
    .playlist_page > a > div { width: 50%; }
    .playlist_page .thumbnail { height: auto; }
}
@media (min-width: 34rem) {
    .playlist_page .thumbnail {
        height: 8rem;
        width: auto;
    }
}
@media (max-width: 25rem) {
    .outro_playlist_context .details { display: none; }
}
@media (min-width: 30rem) {
    .videos_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
    .outro_playlist_context img { display: none; }
}
@media (max-width: 35rem) {
    .outro_playlist_context .replay_indicator { display: none; }
}
@media (max-width: 40rem), (max-height: 40rem) {
    dialog.shortcuts[open] { padding: 2rem 1.5rem; }
    dialog.shortcuts form { margin-top: 1rem; }
    dialog.shortcuts h3 { font-size: 1rem; }
    dialog.shortcuts li { font-size: .8rem; }
    dialog.shortcuts li > span {
        min-height: 1.6rem;
        min-width: 1.6rem;
    }
    dialog.shortcuts ul { margin: 0; }
}
@media (max-width: 40rem) {
    .outro_playlist_context img { height: 3rem; }
    .parent_context { align-items: flex-start; }
    .video_info.top {
        align-items: flex-start;
        flex-direction: column;
    }
    .video_title { font-size: 1.2rem; }
}
@media (min-width: 44rem) {
    .videos_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 45rem) {
    .site_tree {
        background: linear-gradient(var(--bg-1), var(--bg-1-85));
        border: none;
        bottom: 0;
        box-shadow: unset;
        left: 0;
        max-height: unset;
        padding: .5rem;
        top: 2.5rem;
        width: 100vw;
    }
}
@media (min-width: 53rem) {
    .feed_grid { grid-template-columns: 1fr 1fr; }
}
@media (width < 55rem) {
    .sidebar { width: 100%; }
}
@media (width >= 55rem) {
    .layout_split { flex-direction: row; }
    .layout_split > :nth-child(1) { flex-grow: 1; }
    .playlist_context { margin-top: 6.3rem; }
    .sidebar {
        max-width: min(30rem, 33%);
        min-width: min(20rem, 33%);
    }
}
@media (width >= 55rem) and (width < 65rem) {
    .playlist_context img { height: calc(3rem + (100vw - 55rem) / 10); }
}
@media (min-width: 58rem) {
    .videos_grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 68rem) {
    .feed_grid { gap: 2rem; }
}
@media (min-width: 80rem) {
    .sidebar {
        max-height: calc(100dvh - 4rem);
        overflow-y: auto;
        width: 24rem;
    }
}
@media (min-width: 100rem) {
    .center { max-width: 80vw; }
    footer { width: 80vw; }
    .layout_split { gap: 2rem; }
}
@media (min-width: 110rem) {
    .videos_grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 134rem) {
    .videos_grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 135rem) {
    .feed_grid { grid-template-columns: 1fr 1fr 1fr; }
}

