/* ==========================================================================
   Mydesi-style skin for VTube
   Loaded after css/theme.min.css and css/custom.css.
   ========================================================================== */

:root {
    color-scheme: dark;
    --site-width: 1500px;
    --outer: #000000;
    --bg: #0d0d0f;
    --surface: #141417;
    --surface-2: #1b1b20;
    --border: #26262c;
    --thumb-bg: #000000;
    --text: #e9eaec;
    --text-dim: #a0a4ad;
    --text-mute: #6e727c;
    --accent: #f5c518;
    --accent-ink: #15161a;
    --live: #35c759;
    --radius: 8px;
    --radius-lg: 12px;
    --head: "Archivo Black", "Roboto", sans-serif;
    --logo: "Archivo", "Archivo Black", "Roboto", sans-serif;
    --body: "Roboto", -apple-system, "Segoe UI", sans-serif;
    --serif: "Lora", Georgia, serif;
    --gap: 14px;
    --side-w: 212px;
    --rail-w: 300px;
    --header-h: 66px;
}

html[data-theme="light"] {
    color-scheme: light;
    --outer: #e9eaec;
    --bg: #ffffff;
    --surface: #f6f7f8;
    --surface-2: #eceef0;
    --border: #dcdee2;
    --thumb-bg: #0d0d0f;
    --text: #15161a;
    --text-dim: #4b5059;
    --text-mute: #80858f;
    --accent: #c2410c;
    --accent-ink: #ffffff;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    background: var(--outer);
    scrollbar-color: var(--border) transparent;
    scrollbar-width: thin;
}

body {
    margin: 0;
    padding: 0 !important;
    background: var(--outer);
    color: var(--text);
    font: 15px/1.5 var(--body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body .site,
#page.site {
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
}

html body a {
    color: inherit;
    text-decoration: none;
}

html body a:hover {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.container,
.container-lg,
.container-xl,
.container-md {
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    padding-right: 12px;
    padding-left: 12px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 12px;
    color: var(--text);
    font-family: var(--body);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 24px;
    line-height: 1.25;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 17px;
    margin-top: 0;
}

p {
    margin: 0 0 12px;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

#wrapper-navbar {
    position: relative;
    z-index: 50;
    background: var(--bg);
}

.header-nav {
    height: auto;
    line-height: 1.2;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding-top: env(safe-area-inset-top, 0px);
}

/* !important is required: the markup also carries Bootstrap's d-md-flex
   and d-flex utilities, which declare display with !important. */
.header-nav > .container {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 400px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: var(--header-h);
    padding: 0 16px;
}

.logo-search {
    display: contents !important;
}

.header-nav .logo {
    grid-column: 1;
    display: flex;
    align-items: center;
    height: auto;
    min-width: 0;
}

.header-nav .logo h1 {
    margin: 0;
    font-size: inherit;
    line-height: 1;
    font-weight: 400;
}

.header-nav .logo a,
.header-nav .logo a.logo-img {
    display: inline-flex;
    align-items: baseline;
    margin: 0;
    padding: 0;
    font-size: 30px;
    line-height: 1;
    color: var(--text);
    white-space: nowrap;
}

.header-nav .logo a:hover {
    color: var(--text);
}

.logo-text {
    display: inline-flex;
    align-items: baseline;
    height: auto;
    padding: 0;
    background: transparent;
    color: var(--text);
    font-family: var(--logo);
    font-size: 30px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    line-height: 1;
    text-transform: none;
}

.logo-word-1,
h1 .logo-word-1 {
    margin-right: 0.22em;
    color: var(--text);
}

.logo-word-2 {
    color: var(--text-mute);
}

.header-nav .logo a.logo-text::after {
    content: "";
}

.logo-img img {
    max-height: 36px;
    width: auto;
}

/* Search */
.header-search {
    grid-column: 2;
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 0;
}

.header-search form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: auto;
}

.header-search input {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 40px 0 14px;
    position: static;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 15px;
    line-height: 40px;
    transition: border-color .15s ease, background .15s ease;
}

.header-search input::placeholder {
    color: var(--text-mute);
}

.header-search input:focus {
    outline: none;
    border-color: var(--text-mute) !important;
    background: var(--surface-2) !important;
    color: var(--text) !important;
}

.header-search #searchsubmit {
    position: absolute;
    right: 2px;
    top: 2px;
    left: auto;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-mute);
    font-size: 14px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.header-search #searchsubmit:hover {
    filter: none;
    color: var(--text);
    background: var(--surface);
}

.header-search #searchsubmit i {
    position: static;
    top: 0;
    color: inherit;
    font-size: 15px;
    line-height: 1;
}

/* Right side of the header */
.header-actions {
    grid-column: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.header-nav > .container > .membership {
    grid-column: 3;
    justify-self: end;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* Compact membership shown inside the mobile header. */
.logo-search > .membership {
    display: none !important;
}

.user-mobile a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text-dim);
    font-size: 15px;
}

.user-mobile a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.membership .user-mobile i.fa-user,
.membership .user-mobile .fa {
    top: 0;
    color: inherit;
    font-size: 16px;
}

.logo-search > .header-search {
    grid-column: 2;
}

.header-nav h2,
.header-title {
    display: none !important;
}

.md-theme-toggle {
    grid-column: 4;
    justify-self: end;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text-dim);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.md-theme-toggle:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--text-mute);
}

.md-theme-toggle svg {
    width: 16px;
    height: 16px;
}

/* Membership */
.membership .welcome {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dim);
}

.membership .welcome img,
.membership .welcome .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.membership .btn,
.membership .btn-primary {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--accent) !important;
    border-radius: 999px;
    background: var(--accent) !important;
    color: var(--accent-ink) !important;
    font-size: 13px;
    font-weight: 600;
}

.membership .btn:hover,
.membership .btn-primary:hover {
    filter: brightness(1.06);
    background: var(--accent) !important;
    color: var(--accent-ink) !important;
    border-color: var(--accent) !important;
}

.membership .login-link {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
}

.membership .login-link:hover {
    color: var(--text);
    border-color: var(--text-mute);
}

/* Logged-in user dropdown */
.membership ul {
    padding: 8px 0;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    overflow: hidden;
}

.membership ul li.welcome {
    padding: 4px 15px 10px;
    color: var(--text);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.membership ul li a {
    border-top: 0;
    color: var(--text-dim);
}

.membership ul li a:hover {
    background: var(--surface-2) !important;
    color: var(--text) !important;
}

/* Navigation strip: primary menu + tags as chips */
.navbar {
    padding: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    min-height: 0;
}

.navbar > .container {
    display: block;
    padding: 0 10px;
}

.navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    width: 100%;
}

ul.navbar-nav {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start !important;
    gap: 4px;
    width: 100%;
    margin: 0 !important;
    padding: 7px 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

ul.navbar-nav::-webkit-scrollbar {
    display: none;
}

ul.navbar-nav li {
    flex: 0 0 auto;
    display: flex;
    position: static;
}

ul.navbar-nav li a,
ul.navbar-nav li.tag-menu a,
.navbar-dark .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    float: none;
    height: auto;
    margin: 0;
    padding: 4px 11px;
    border: 1px solid var(--border) !important;
    border-radius: 6px;
    background: var(--surface) !important;
    color: var(--text-dim) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

ul.navbar-nav li a:hover,
ul.navbar-nav li.tag-menu a:hover,
.navbar-dark .navbar-nav .nav-link:hover {
    background: var(--surface-2) !important;
    border-color: var(--text-mute) !important;
    color: var(--text) !important;
}

ul.navbar-nav li a.btn-primary,
ul.navbar-nav li a.btn-primary:hover {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-ink) !important;
    font-weight: 600;
}

.navbar-toggler,
.hamburger {
    display: none !important;
}

/* Mobile: custom.css turns the collapsed menu into a full-height absolute
   overlay (90vh, z-index 99999) that covers the video player. Keep the chip
   strip in normal flow on phones instead. */
@media (max-width: 767.98px) {
    .navbar {
        height: auto;
    }

    .navbar > .container {
        height: auto;
    }

    .navbar-collapse {
        position: static;
        height: auto;
        overflow: visible;
        z-index: auto;
    }

    .navbar-dark .navbar-collapse ul.navbar-nav,
    ul.navbar-nav {
        flex-direction: row;
        height: auto !important;
        background: transparent;
    }
}

/* Mobile header: logo left, cartoonish search below, compact icons */
@media (max-width: 900px) {
    .header-nav > .container {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
        min-height: 58px;
        padding: 0 12px;
    }

    .header-nav > .container > .membership {
        display: none !important;
    }

    .logo-search > .header-search {
        display: none !important;
    }

    .logo-search > .membership {
        grid-column: 2;
        justify-self: end;
        display: flex !important;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .md-theme-toggle {
        grid-column: 3;
    }

    #wrapper-navbar > .header-search {
        display: block;
        grid-column: 1 / -1;
        width: 100%;
        padding: 0 12px 10px;
    }
}

@media (max-width: 480px) {
    .header-nav .logo a,
    .logo-text {
        font-size: 25px;
        letter-spacing: -.8px;
    }

    .md-theme-toggle {
        width: 36px;
        height: 36px;
    }
}

/* --------------------------------------------------------------------------
   Layout: sidebar + main column
   -------------------------------------------------------------------------- */

#content,
.wrapper {
    padding: 0;
}

.cols {
    display: grid;
    grid-template-columns: var(--side-w) minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    width: 100%;
}

/* Listings already get their gutters from .cols. */
.container.home,
.container.md-listing {
    padding-left: 0;
    padding-right: 0;
}

.maincol {
    min-width: 0;
}

.side {
    align-self: start;
    display: grid;
    gap: 14px;
    min-width: 0;
    position: sticky;
    top: 12px;
}

.panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0;
}

.panel h1,
.panel h3 {
    margin: 0;
    padding: 9px 14px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.side-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-menu li + li {
    border-top: 1px solid var(--border);
}

.side-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.4;
    transition: background .15s ease, color .15s ease;
}

.side-menu a:hover,
.side-menu a.on {
    background: var(--surface-2);
    color: var(--text);
}

.side-menu .ic {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    opacity: .75;
}

.side-menu .more {
    color: var(--text-dim);
    font-size: 13px;
    font-style: italic;
}

@media (max-width: 900px) {
    .cols {
        grid-template-columns: minmax(0, 1fr);
        padding: 10px;
    }

    .side {
        display: none;
    }
}

/* Section heads */
.sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 13px;
}

.sec-head h1,
.sec-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.sec-head h1:before,
.sec-head h2:before {
    content: "";
    width: 3px;
    height: 17px;
    border-radius: 2px;
    background: var(--accent);
    flex: 0 0 auto;
}

.sec-head .all {
    color: var(--text-mute);
    font-size: 12.5px;
    white-space: nowrap;
}

.sec-head .all:hover {
    color: var(--text);
}

/* --------------------------------------------------------------------------
   Video cards
   -------------------------------------------------------------------------- */

.video-loop {
    margin: 0;
    padding: 0;
    overflow: visible;
}

.video-loop.video-loop-padding {
    padding: 0;
}

.video-loop .row.no-gutters,
.related-videos .row.no-gutters,
.video-loop > .row {
    margin: 0 -7px;
    display: flex;
    flex-wrap: wrap;
}

.video-loop .row.no-gutters > [class*="col-"],
.related-videos .row.no-gutters > [class*="col-"],
.video-loop > .row > [class*="col-"] {
    padding-right: 7px;
    padding-left: 7px;
    margin-bottom: 14px;
}

/* Empty ad placeholders must not leave a hole in the grid. */
.video-loop .row.no-gutters > [class*="col-"]:empty,
.related-videos .row.no-gutters > [class*="col-"]:empty {
    display: none;
}

.video-loop .col-6.col-md-3,
.video-loop .col-6.col-md-4,
.related-videos .col-6.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.video-block {
    position: relative;
    margin: 0;
    background: var(--surface);
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
    transition: background .15s ease;
}

.video-block.related-video-block {
    margin: 0;
}

.video-block a {
    display: block;
}

.video-block a.thumb {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: var(--thumb-bg);
}

.video-block .no-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--thumb-bg);
    background-image: url("../img/no-thumb.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 34%;
    opacity: .55;
}

.video-block .video-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: cover;
    opacity: 0;
    border: 0;
    transition: transform .35s ease, opacity .3s ease-in-out;
}

.video-block .video-img.initial,
.video-block .video-img.loaded,
.video-block .video-img.error {
    opacity: 1;
}

.video-block:hover .video-img {
    transform: scale(1.045);
}

.video-block .video-preview,
.video-block .thumbs-rotation {
    position: absolute;
    inset: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    line-height: 0;
    pointer-events: none;
}

.video-block .video-preview video,
.video-block .thumbs-rotation video,
.video-block .video-preview iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

/* Hover playback: the preview video replaces the still thumbnail */
.video-block.is-previewing .video-img,
.video-block.is-previewing:hover .video-img {
    opacity: 0;
    transform: none;
}

.video-block.is-previewing .video-preview {
    z-index: 60;
}

.video-block.is-previewing .video-preview video {
    background: #000;
}

.video-block .lds-dual-ring {
    z-index: 1;
}

.video-block .video-debounce-bar {
    background: var(--accent);
}

.video-block a.infos {
    margin: 0;
    padding: 9px 11px 0;
}

.video-block a.infos span.title,
.video-block.video-block-cat a.infos span.title {
    display: block;
    max-height: none;
    padding: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s ease;
}

.video-block:hover a.infos span.title {
    color: var(--accent);
}

.video-block .video-datas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 6px;
    height: auto;
    margin: 0;
    padding: 5px 11px 11px;
    background: transparent;
    color: var(--text-mute);
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}

.video-block .views-number {
    display: inline-flex;
    align-items: center;
    color: var(--text-mute);
    font-size: 13px;
}

.video-block .views-number:before {
    content: "";
    width: 11px;
    height: 11px;
    margin-right: 4px;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.video-block .duration {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: var(--text-mute);
    font-size: 13px;
}

.video-block .duration:before {
    content: "";
    width: 11px;
    height: 11px;
    margin-right: 4px;
    flex: 0 0 auto;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.video-block .hd-video {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 3;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    pointer-events: none;
}

.video-block .rating {
    margin: 0;
    color: var(--text-mute);
    font-weight: 500;
}

/* Category tile */
.video-block.video-block-cat .thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-block.video-block-cat a.infos span.title {
    font-size: 14px;
    font-weight: 600;
}

.video-block.video-block-cat .video-datas {
    padding-top: 3px;
}

/* Responsive grid */
@media (max-width: 1100px) {

    .video-loop .col-6.col-md-3,
    .video-loop .col-6.col-md-4,
    .related-videos .col-6.col-md-3 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

@media (max-width: 700px) {

    .video-loop .col-6.col-md-3,
    .video-loop .col-6.col-md-4,
    .video-loop .col-6.col-md-4.col-lg-3,
    .related-videos .col-6.col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 460px) {

    .video-loop .col-6.col-md-3,
    .video-loop .col-6.col-md-4,
    .related-videos .col-6.col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Page header / filters
   -------------------------------------------------------------------------- */

.page-header {
    position: relative;
    margin: 0 0 14px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--radius-lg);
}

.page-header h1,
.page-header .page-title,
.page-header .widget-title,
.search-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.page-header h1:before,
.page-header .widget-title:before {
    content: "";
    width: 3px;
    height: 19px;
    border-radius: 2px;
    background: var(--accent);
    flex: 0 0 auto;
}

.page-header .taxonomy-description {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.6;
}

.search-title span.title {
    padding: 0;
    background: transparent;
    color: var(--text);
    line-height: inherit;
}

.search-title span.count {
    color: var(--text-mute);
    font-size: 13px;
    font-weight: 400;
}

/* Filters dropdown */
#filters {
    position: absolute;
    top: 14px;
    right: 16px;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
}

#filters .filters-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--text-dim);
    line-height: 1;
}

#filters .filters-select:hover {
    color: var(--text);
    border-color: var(--text-mute);
}

#filters .filters-select:after {
    content: "\f0d7";
    margin-left: 2px;
    font-family: fontAwesome;
    font-size: 12px;
    opacity: .7;
}

#filters .filters-options {
    top: calc(100% + 6px);
    right: 0;
    padding: 5px;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
    overflow: hidden;
}

#filters .filters-options span {
    display: block;
    width: auto;
    min-width: 210px;
}

#filters .filters-options span a {
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text-dim);
    font-weight: 400;
}

#filters .filters-options span a:hover,
#filters .filters-options span a.active {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 12px 13px;
    }

    #filters {
        position: static;
        display: block;
        margin-top: 10px;
    }

    #filters .filters-options {
        right: auto;
        left: 0;
    }
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    width: max-content;
    max-width: 100%;
    margin: 26px auto 8px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    overflow: hidden;
    list-style: none;
}

.page-item {
    display: inline-flex;
}

.page-item + .page-item {
    border-left: 1px solid var(--border);
}

.pagination .page-link,
.pagination-lg .page-link,
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.pagination .page-link:hover,
.pagination-lg .page-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.page-item.active .page-link,
.page-item.active .page-link:hover {
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
}

.page-item.disabled .page-link {
    opacity: .35;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Single video
   -------------------------------------------------------------------------- */

#single-wrapper {
    padding: 0;
}

.single-video-player {
    padding: 12px;
}

.single-video-player > .container {
    max-width: 100%;
    padding: 0;
}

.video-title h1 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.video-cat-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 14px;
}

.video-cat-tag a,
.video-cat-tag .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--border) !important;
    border-radius: 6px;
    background: var(--surface) !important;
    color: var(--text-dim) !important;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.video-cat-tag a:hover,
.video-cat-tag .btn:hover {
    background: var(--surface-2) !important;
    border-color: var(--text-mute) !important;
    color: var(--text) !important;
}

.video-cat-tag .btn-black {
    background: var(--surface-2) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.video-cat-tag .btn-black span {
    display: inline-flex;
    align-items: center;
    height: 18px;
    margin: 0;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--bg);
    color: var(--text-mute);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    top: 0;
}

.video-cat-tag .btn-primary {
    border-color: var(--accent) !important;
    background: var(--accent) !important;
    color: var(--accent-ink) !important;
    font-weight: 600;
}

.single-video-player > .container > .d-flex {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.video-left {
    flex: 1 1 auto;
    min-width: 0;
}

.video-sidebar {
    flex: 0 0 var(--rail-w);
    max-width: var(--rail-w);
    padding-left: 0 !important;
}

.video-wrapper {
    position: relative;
    margin-bottom: 12px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}

.video-wrapper .video-js,
.video-wrapper video,
.video-wrapper iframe {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.happy-under-player {
    margin-bottom: 12px;
    padding: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    line-height: 0;
    text-align: center;
}

.happy-under-player img {
    max-width: 100%;
}

.video-tracking {
    position: relative;
    margin-bottom: 12px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-tracking a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 600;
}

.video-tracking a:hover {
    filter: brightness(1.06);
}

.videos-infos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0 0 12px;
    padding: 11px 14px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    color: var(--text-dim);
    font-size: 13px;
}

.videos-infos #video-views {
    margin: 0;
    color: var(--text-dim);
    font-size: 13px;
}

.videos-infos #video-views .views-number {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.videos-infos #rating {
    margin: 0;
}

.videos-infos #rating .like,
.videos-infos #rating .dislike {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
}

.videos-infos #rating .like i,
.videos-infos #rating .dislike i {
    color: inherit;
    font-size: 14px;
}

.videos-infos #rating .btn {
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: var(--text-dim) !important;
}

.video-actions-header {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-left: auto;
}

.video-actions-header .tab-link,
#video-tabs button.tab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid var(--border) !important;
    border-radius: 999px;
    background: var(--surface-2) !important;
    color: var(--text-dim) !important;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.video-actions-header .tab-link:hover,
.video-actions-header .tab-link.active,
#video-tabs button.tab-link:hover,
#video-tabs button.tab-link.active {
    border-color: var(--text-mute) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
}

.video-actions-header .tab-link i {
    font-size: 12px;
}

.video-actions-content {
    padding: 0;
}

.video-content-row,
.video-description {
    margin: 0 0 12px;
    padding: 16px 18px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
}

.video-description .desc {
    color: var(--text-dim);
}

.video-description a {
    color: var(--accent);
}

.video-description h1,
.video-description h2,
.video-description h3,
.video-description h4 {
    color: var(--text);
}

.video-comments {
    margin: 0 0 12px;
    padding: 16px 18px;
    background: var(--surface);
    border-radius: var(--radius-lg);
}

.video-comments h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
}

.related-videos {
    margin-top: 18px;
}

.related-videos .sec-head {
    margin-bottom: 12px;
}

/* Sidebar rail on watch page */
.happy-player-beside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    text-align: center;
}

.happy-player-beside .zone-1,
.happy-player-beside .zone-2 {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    line-height: 0;
}

.video-sidebar .widget {
    margin-bottom: 12px;
    padding: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-sidebar .widget h3,
.video-sidebar .widget-title {
    margin: 0;
    padding: 9px 14px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .single-video-player > .container > .d-flex {
        flex-wrap: wrap;
    }

    .video-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 0;
    }

    .happy-player-beside {
        flex-direction: row;
    }

    .happy-player-beside .zone-1,
    .happy-player-beside .zone-2 {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .single-video-player {
        padding: 10px;
    }

    .video-title h1 {
        font-size: 17px;
    }

    .video-actions-header {
        margin-left: 0;
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Widgets / general sidebar
   -------------------------------------------------------------------------- */

.widget-area {
    width: 100%;
    min-width: 0;
}

.widget-area .widget {
    margin-bottom: 14px;
    padding: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.widget-area h3,
.widget-area .widget-title {
    margin: 0;
    padding: 9px 14px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.widget-area .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget-area .widget li a {
    display: block;
    padding: 8px 14px;
    color: var(--text-dim);
    font-size: 14px;
}

.widget-area .widget li + li {
    border-top: 1px solid var(--border);
}

.widget-area .widget li a:hover,
.widget-area .widget li.current-cat a {
    background: var(--surface-2);
    color: var(--text);
}

.vtt-tag-filter-widget {
    margin-bottom: 14px;
}

.vtt-tag-filter-widget ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.vtt-tag-filter-widget .cat-item-none {
    padding: 10px 14px;
    color: var(--text-mute);
}

.vtt-tag-filter-widget ul li a {
    display: block;
    padding: 8px 14px;
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
}

.vtt-tag-filter-widget ul li + li {
    border-top: 1px solid var(--border);
}

.vtt-tag-filter-widget ul li a:hover,
.vtt-tag-filter-widget ul li a.active,
.vtt-tag-filter-widget ul li.current-cat a {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 500;
}

.widget p {
    padding: 10px 14px;
    color: var(--text-dim);
    font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   Page content, entries, comments
   -------------------------------------------------------------------------- */

.entry-header .entry-title {
    margin-bottom: 8px;
    font-size: 20px;
}

.entry-header .entry-title a {
    color: var(--text);
}

.entry-header .entry-title a:hover {
    color: var(--accent);
}

.entry-meta,
.entry-footer {
    color: var(--text-mute);
    font-size: 12.5px;
}

.entry-content {
    margin: 0 0 14px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.75;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--text);
}

.entry-content a {
    color: var(--accent);
}

article.page p {
    color: var(--text-dim);
}

.archive-content h1 {
    margin-bottom: 14px;
    font-size: 22px;
}

/* Comments */
.comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list .comment-body,
.comment-list .comment {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.comment-list .comment:last-child {
    border-bottom: 0;
}

.comment-author,
.comment-metadata {
    font-size: 13px;
    color: var(--text-mute);
}

.comment-content {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 14px;
}

.comment-list .children {
    padding-left: 18px;
    list-style: none;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dim);
    font-size: 13px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.comment-form select {
    width: 100%;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
}

.comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--text-mute);
}

.comment-form .submit,
.comment-form input[type="submit"],
.btn,
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--border) !important;
    border-radius: 999px;
    background: var(--surface-2) !important;
    color: var(--text) !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.comment-form .submit:hover,
.comment-form input[type="submit"]:hover,
.btn:hover,
button[type="submit"]:hover {
    background: var(--surface) !important;
    border-color: var(--text-mute) !important;
    color: var(--text) !important;
}

.btn-primary,
input[type="submit"].btn-primary {
    border-color: var(--accent) !important;
    background: var(--accent) !important;
    color: var(--accent-ink) !important;
}

.btn-primary:hover,
input[type="submit"].btn-primary:hover {
    border-color: var(--accent) !important;
    background: var(--accent) !important;
    color: var(--accent-ink) !important;
    filter: brightness(1.06);
}

body .btn-black {
    border-color: var(--border) !important;
    background: var(--surface-2) !important;
    color: var(--text) !important;
}

body .btn-grey,
body .btn-grey-light {
    border-color: var(--border) !important;
    background: var(--surface) !important;
    color: var(--text-dim) !important;
}

body .btn-black:hover,
body .btn-grey:hover,
body .btn-grey-light:hover {
    border-color: var(--text-mute) !important;
    background: var(--surface-2) !important;
    color: var(--text) !important;
}

/* Search page heading */
.search-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   Tags / categories / actors listing pages
   -------------------------------------------------------------------------- */

.tags-letter-block {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.tag-letter {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--accent);
    font-family: var(--head);
    font-size: 16px;
}

.tag-items {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-dim);
    font-size: 12.5px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.tag-item a:hover {
    border-color: var(--text-mute);
    background: var(--surface-2);
    color: var(--text);
}

.tag-item .count {
    color: var(--text-mute);
    font-size: 10.5px;
    font-weight: 600;
}

.letter-group {
    width: 100%;
}

.letter-cell {
    width: 5%;
    height: 2em;
    padding-top: 8px;
    margin-bottom: 8px;
    float: left;
    background: var(--surface-2);
    color: var(--accent);
    text-align: center;
}

.row-cells {
    width: 70%;
    margin-right: 180px;
    float: right;
}

.title-cell {
    width: 30%;
    margin-bottom: 8px;
    float: left;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero / SEO text / ads
   -------------------------------------------------------------------------- */

.hero {
    margin-top: 26px;
}

.hero .container {
    max-width: var(--site-width);
}

.hero-text {
    margin-top: 0;
    padding: 16px 18px;
    border-top: 1px solid var(--border);
    color: var(--text-mute);
}

.hero-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-mute);
}

.hero-text h1 {
    color: var(--text);
    font-size: 20px;
}

.happy-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px 0;
    overflow: hidden;
}

.happy-section img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

#wrapper-footer {
    position: relative;
    margin-top: 30px;
    padding: 0 12px 34px;
}

#wrapper-footer .container {
    max-width: var(--site-width);
    padding: 0;
}

.site-footer {
    margin-top: 0;
    padding: 24px 16px 0;
    border-top: 1px solid var(--border);
}

.footer-menu-container {
    margin-bottom: 16px;
}

.menu-footer-menu-container,
.footer-menu-container > .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-footer-menu-container ul,
.menu-footer-menu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-footer-menu-container li {
    display: inline-flex;
    float: none;
    margin: 0;
}

.menu-footer-menu-container li a,
.site-footer .footer-menu-container a {
    color: var(--text-dim);
    font-size: 13.5px;
    text-decoration: none;
    transition: color .15s ease;
}

.menu-footer-menu-container li a:hover,
.site-footer .footer-menu-container a:hover {
    color: var(--accent);
    text-decoration: none;
}

.site-info {
    padding-top: 4px;
    color: var(--text-mute);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.site-info a {
    color: var(--text-dim);
}

.site-info a:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.skip-link,
.sr-only-focusable {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 600;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

.clear {
    clear: both;
}

.mh800 {
    min-height: 0;
}

.note {
    color: var(--text-mute);
    font-size: 12.5px;
}

.empty,
.error-404 .page-content {
    color: var(--text-mute);
}

.error-404 .page-content {
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
}

/* Generic forms */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--text-mute) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
}

/* Keep the submit form readable on the dark skin. */
.video-submit-area input,
.video-submit-area textarea,
.video-submit-area select {
    border-color: var(--border) !important;
    background: var(--surface) !important;
    color: var(--text) !important;
}

.video-submit-area input:focus,
.video-submit-area textarea:focus,
.video-submit-area select:focus {
    border-color: var(--text-mute) !important;
    color: var(--text) !important;
}

/* Login / register modal */
.modal-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

.modal-header {
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
    color: var(--text);
}

.modal-header .close {
    color: var(--text);
    opacity: .7;
    text-shadow: none;
}

.modal-header .close:hover {
    color: var(--text);
    opacity: 1;
}

.modal-body {
    color: var(--text-dim);
}

.modal-body label,
.modal-body p,
.modal-body .lost-password a {
    color: var(--text-dim);
}

.modal-body input {
    height: 42px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.modal-footer {
    border-top: 1px solid var(--border);
    color: var(--text-mute);
}

.modal-footer a {
    color: var(--text);
}

#wpst-user-modal h3 {
    border-bottom-color: var(--border);
    color: var(--text);
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-mute);
}

/* Prevent horizontal overflow on narrow screens */
@media (max-width: 640px) {
    .video-loop .row.no-gutters,
    .related-videos .row.no-gutters,
    .video-loop > .row {
        margin-left: -5px;
        margin-right: -5px;
    }

    .video-loop .row.no-gutters > [class*="col-"],
    .related-videos .row.no-gutters > [class*="col-"],
    .video-loop > .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 10px;
    }
}
