.vid-section-nav {
    display: flex;
    align-items: stretch;
    margin-bottom: 10px;
    color: var(--vid-text);
}

.vid-section-nav > .vid-tabs {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.vid-section-nav-post {
    justify-content: flex-end;
    max-width: 800px;
    margin: 8px auto;
    padding-inline: 10px;
}

.vid-section-nav .vid-retro-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    padding: 2px 7px;
    border: 1px solid var(--vid-border);
    background: var(--vid-panel-bg);
    color: var(--vid-text);
    cursor: pointer;
    font: bold 11px Arial, Helvetica, sans-serif;
    white-space: nowrap;
}

.vid-section-nav > .vid-tabs + .vid-retro-switch { border-left: 0; }

.vid-retro-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.vid-retro-switch-track {
    display: inline-grid;
    align-items: center;
    width: 24px;
    height: 13px;
    box-sizing: border-box;
    border: 1px solid #69707b;
    border-radius: 9px;
    padding-inline: 2px;
    background: #606873;
}

.vid-retro-switch-track::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.vid-retro-switch input:checked + .vid-retro-switch-track {
    border-color: #910000;
    background: #bd0000;
}

.vid-retro-switch input:checked + .vid-retro-switch-track::before { justify-self: end; }
.vid-retro-switch input:focus-visible + .vid-retro-switch-track { outline: 2px solid var(--vid-link); outline-offset: 2px; }

body.theme-dark:not(.yt2008) .master-container > main {
    background: rgba(17, 24, 39, 0.92);
    color: #e8e8e8;
    display: flow-root;
}

html body.yt2008 .vid-section-nav {
    border-bottom: 1px solid #999;
}

html body.yt2008 .vid-section-nav > .vid-tabs {
    border: 0 !important;
    margin-bottom: 0 !important;
}

html body.yt2008 .vid-section-nav .vid-retro-switch {
    border: 0;
    border-left: 1px solid #ccc;
    background: linear-gradient(#fff, #f0f0f0);
}

html body.yt2008 {
    --vid-header-from: #ececec !important;
    --vid-header-to: #d4d4d4 !important;
    --vid-header-text: #000 !important;
    color-scheme: light;
}

html body.yt2008,
html body.yt2008:is(.theme-dark, .skin-classic) {
    background: transparent !important;
}

html body.yt2008 #bg-image {
    display: block !important;
    background: #fff !important;
}

html body.yt2008 .master-container {
    background: #fff !important;
    color: #000 !important;
}

html body.yt2008 .master-container > main {
    display: flow-root;
    width: calc(100% - 20px);
    margin-inline: auto;
    box-sizing: border-box;
    border: 1px solid #999;
    border-top: 0;
    padding: 8px 10px 12px;
    background: #fff !important;
    color: #000 !important;
}

html body.yt2008 .master-container > main > :is(.vid-wrapper, .video-page-layout) {
    border: 0 !important;
    margin-inline: 0 !important;
    padding: 0 !important;
}

html body.yt2008 .master-container > main > .video-page-layout {
    margin-bottom: 8px !important;
}

html body.yt2008 .myspace-header :is(#themeToggleWrap, .theme-toggle-wrap) {
    display: none !important;
}

html body.yt2008 .myspace-header .top-nav .right {
    flex-direction: row;
    min-width: 0;
}

html body.yt2008 .vid-card-title { white-space: normal; }

html body.yt2008 .video-detail-title {
    display: block;
    color: #000 !important;
}

html body.yt2008 .vid-card .vid-card-actions {
    display: flex !important;
}

html body.yt2008 .vid-card .vid-card-actions :is(a, button) {
    color: #fff !important;
}

html body.yt2008 .vid-spotlight-media .vid-spotlight-thumb {
    width: 100%;
    max-width: none;
}

html body.yt2008 .vid-tabs a.vid-tab.active {
    border-bottom-color: #c00 !important;
}

html body.yt2008 #comments.video-comments-section,
html body.yt2008 #comments.video-comments-section :is(.cb-author-cell, .cb-content-cell, .comment-reply) {
    color: #000 !important;
    background: #fff !important;
    border-color: #ccc !important;
}

html body.yt2008 #comments.video-comments-section .heading,
html body.yt2008 #comments.video-comments-section .cb-author-cell,
html body.yt2008 .fr-site-footer .links {
    background: #eee !important;
    color: #000 !important;
}

html body.yt2008 :is(.video-page-layout, .watch-more-expanded) :is(.watch-list-creator, .video-author-name, .video-comments-section a) {
    color: var(--vid-link) !important;
}

html body.yt2008 #comments .comment-count-links .count {
    color: #a00 !important;
}

@media (max-width: 860px) {
    html body.yt2008 .vid-index-main { width: 100%; }
}

@media (max-width: 540px) {
    .vid-section-nav .vid-retro-switch { min-height: 34px; }
    html body.yt2008 .master-container > main { padding-inline: 6px; }

    html body.yt2008 .myspace-header :is(.top-nav, .navbar) {
        gap: 6px 8px;
        flex-wrap: wrap;
    }

    html body.yt2008 .myspace-header .top-nav .right {
        flex-basis: 100%;
        justify-content: space-between;
    }
    html body.yt2008 .myspace-header .search-form input { min-width: 0; width: 100%; }
    html body.yt2008 .myspace-header .yt08-util { display: none; }
    html body.yt2008 .vid-section-nav .vid-tab {
        padding-inline: 7px !important;
        font-size: 11px !important;
    }

    html body.yt2008 .myspace-header .main-nav li a {
        padding-inline: 5px !important;
        font-size: 11px !important;
    }

    html body.yt2008 .vid-spotlight-media { width: 100%; min-width: 0; }
}

html.fr-video-retro {
    --retro-trim: #999;
    --retro-panel: #f6f6f6;
    --retro-link: #0033cc;
    --retro-accent: #b40000;
    --retro-bevel: linear-gradient(#f9f9f9, #d8d8d8);
}

html body.yt2008 .vid-custom-panel {
    background: var(--retro-panel);
    color: #222;
    border-color: #bbb;
}

html body.yt2008 .vid-custom-list li {
    border-bottom-color: #d4d4d4;
}

html body.yt2008 .vid-custom-list input {
    accent-color: var(--retro-accent);
}

html body.yt2008 .vid-customize :is(.vid-custom-list button, .vid-custom-actions button) {
    min-height: 23px;
    padding: 2px 8px;
    background: var(--retro-bevel);
    color: #222;
    border: 1px solid var(--retro-trim);
    border-radius: 2px;
    font: bold 11px Arial, Helvetica, sans-serif;
}

html body.yt2008 .vid-customize button:enabled:hover {
    background: #fff;
}

html body.yt2008 .vid-customize button:focus-visible,
html.fr-video-retro #footer-music-bar button:focus-visible,
html.fr-video-retro body.yt2008 .fr-fot :is(a, button):focus-visible {
    outline: 2px solid var(--retro-link);
    outline-offset: -2px;
}

html body.yt2008 .vid-customize button:disabled {
    color: #666;
    background: #eee;
    cursor: default;
}

html body.yt2008 .vid-custom-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

html body.yt2008 .vid-custom-actions .vid-custom-status {
    margin: 0 auto 0 0;
    order: -1;
}

html body.yt2008 .vid-custom-panel small {
    display: block;
    margin-top: 5px;
    color: #555;
}

html.fr-video-retro body.yt2008 .fr-site-footer {
    box-sizing: border-box;
    width: calc(100% - 20px);
    margin-inline: auto;
    background: var(--retro-panel) !important;
    border: 1px solid #bbb;
    color: #444 !important;
    text-shadow: none;
}

html.fr-video-retro body.yt2008 .fr-site-footer a {
    text-shadow: none !important;
}

html.fr-video-retro body.yt2008 .fr-site-footer :is(.links, .copyright) {
    color: #444 !important;
}

html.fr-video-retro body.yt2008 .fr-site-footer .links li::after {
    color: #666 !important;
}

html.fr-video-retro #footer-music-bar.music-bar {
    background: var(--retro-bevel) !important;
    border-top-color: var(--retro-trim) !important;
    color: #222 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.fr-video-retro #footer-music-bar.music-bar::before {
    display: none !important;
}

html.fr-video-retro #footer-music-bar :is(.bar-title, .bar-now-playing, .bar-time-display, .bar-time-total) {
    color: #222 !important;
    text-shadow: none !important;
}

html.fr-video-retro #footer-music-bar .bar-btn,
html.fr-video-retro #footer-music-bar .bar-btn.playlist-btn,
html.fr-video-retro #footer-music-bar #frw-im-button {
    background: var(--retro-bevel) !important;
    border: 1px solid var(--retro-trim) !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    color: #222 !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html.fr-video-retro #footer-music-bar .bar-btn:is(:hover, :focus-visible) {
    background: #fff !important;
}

html.fr-video-retro #footer-music-bar .bar-btn:active,
html.fr-video-retro #footer-music-bar .bar-btn.playlist-btn:active {
    background: #ccc !important;
}

html.fr-video-retro #footer-music-bar #bar-playlist-btn {
    width: 30px !important;
    height: 28px !important;
}

html.fr-video-retro #footer-music-bar .bar-btn svg {
    color: #222 !important;
    fill: currentColor !important;
    filter: none !important;
}

html.fr-video-retro #footer-music-bar #bar-playlist-btn svg {
    display: block !important;
}

html.fr-video-retro #footer-music-bar #frw-im-button.has-notification {
    animation: none;
    border-color: var(--retro-accent) !important;
}

html.fr-video-retro #footer-music-bar :is(.messenger-label, .person-icon-glossy) {
    color: #222 !important;
    text-shadow: none !important;
}

html.fr-video-retro #footer-music-bar .person-icon-glossy {
    background: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html.fr-video-retro #footer-music-bar :is(.bar-progress, .volume-slider) {
    background: #bbb !important;
    border-color: var(--retro-trim) !important;
    box-shadow: none !important;
}

html.fr-video-retro #footer-music-bar .bar-progress-fill,
html.fr-video-retro #footer-music-bar .radio-wave-bar,
html.fr-video-retro #footer-music-bar .radio-live-dot,
html.fr-video-retro #footer-music-bar.music-bar--compact::after {
    background: var(--retro-accent) !important;
    box-shadow: none !important;
}

html.fr-video-retro #footer-music-bar .volume-slider::-webkit-slider-thumb {
    background: var(--retro-bevel) !important;
    border-color: var(--retro-trim) !important;
    box-shadow: none !important;
}

html.fr-video-retro #footer-music-bar .volume-slider::-moz-range-thumb {
    background: var(--retro-bevel) !important;
    border-color: var(--retro-trim) !important;
    box-shadow: none !important;
}

html.fr-video-retro #footer-music-bar .radio-mode .bar-progress::before {
    content: none;
}

html.fr-video-retro #footer-music-bar .radio-live-indicator {
    color: #800000;
    text-shadow: none;
}

html.fr-video-retro body.yt2008 .fr-fot {
    background: var(--retro-panel) !important;
    border-color: var(--retro-trim) !important;
    border-radius: 3px;
    box-shadow: 0 2px 7px #0003;
}

html.fr-video-retro body.yt2008 .fr-fot .fr-fot-pfp {
    border: 1px solid #bbb;
    border-radius: 0;
}

html.fr-video-retro body.yt2008 .fr-fot :is(.fr-fot-name, .fr-fot-undo, .fr-fot-mute) {
    color: var(--retro-link);
}

html.fr-video-retro body.yt2008 .fr-fot :is(.fr-fot-msg, .fr-fot-x, .fr-fot-confirm-msg) {
    color: #444;
}

html.fr-video-retro body.yt2008 .fr-fot .fr-fot-link:hover {
    background: #eee;
}

html.fr-video-retro body.yt2008 .fr-fot .fr-fot-x:hover {
    color: var(--retro-accent);
}

html.fr-video-retro body.yt2008 .fr-fot .fr-fot-bar {
    background: var(--retro-accent);
}
