/* ============================================================
   FapTube — Premium Dark OLED Design System v2.0
   Style: Dark Mode (OLED) | Font: DM Sans | CTA: #E11D48
   ============================================================ */

/* === Google Fonts: DM Sans === */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* === Base Reset === */
.v-hide,
[v-cloak] {
    display: none !important
}

a {
    text-decoration: none;
    font-family: inherit;
    color: inherit
}

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

/* === Design Tokens === */
:root {
    /* Layout */
    --holder-width: 1350px;
    --default-holder-sides: 8px;
    --default-grid-gap: 8px;
    --grid-gap-default: 8px;
    --grid-gap-footer: 16px;

    /* Grid columns */
    --1-column: repeat(1, 1fr);
    --2-columns: repeat(2, 1fr);
    --3-columns: repeat(3, 1fr);
    --4-columns: repeat(4, 1fr);
    --5-columns: repeat(5, 1fr);
    --6-columns: repeat(6, 1fr);
    --7-columns: repeat(7, 1fr);
    --8-columns: repeat(8, 1fr);
    --videos-grid: var(--1-column);
    --videos-grid-gap: var(--default-grid-gap);
    --videos-banner-display: none;

    /* OLED Dark Color System */
    --bg-base:          #060610;
    --bg-surface:       #0d0d1a;
    --bg-elevated:      #131324;
    --bg-card:          #0f0f1e;
    --bg-input:         #1a1a2e;
    --bg-hover:         #1e1e34;

    /* Borders */
    --border-subtle:    rgba(255, 255, 255, 0.06);
    --border-default:   rgba(255, 255, 255, 0.09);
    --border-strong:    rgba(255, 255, 255, 0.14);

    /* Text */
    --text-primary:     #f8fafc;
    --text-secondary:   #94a3b8;
    --text-muted:       #64748b;
    --text-color-default: #f8fafc;

    /* Accent / CTA */
    --color-red:        #E11D48;
    --color-red-hover:  #f43f5e;
    --color-red-glow:   rgba(225, 29, 72, 0.25);
    --color-green:      #22c55e;
    --color-gray:       #64748b;

    /* Legacy compatibility */
    --body-background-color: #060610;
    --box-shadow-color: rgba(255, 255, 255, 0.06);
    --box-shadow-top:    inset 0 1px var(--border-subtle);
    --box-shadow-left:   inset 1px 0 var(--border-subtle);
    --box-shadow-right:  inset -1px 0 var(--border-subtle);
    --box-shadow-bottom: inset 0 -1px var(--border-subtle);
    --box-shadow-inset:  inset 0 0 0 1px var(--border-subtle);

    /* Header */
    --header-top-height: 56px;
    --header-top-background: #0a0a18;
    --header-bottom-height: 40px;
    --header-bottom-background: #070713;

    /* Typography */
    --font-weight-default: 400;
    --font-size-default: 14px;
    --heading-line-height: 48px;
    --heading-font-size: 18px;
    --heading-font-weight: 600;
    --heading-color: #f8fafc;

    /* Pill carousel */
    --pills-height: 36px;

    /* Radius & Effects */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --radius-pill: 99px;
    --transition-fast:  150ms ease;
    --transition-base:  220ms ease;
    --transition-slow:  300ms ease;
}

@media (min-width: 576px) {
    :root {
        --heading-font-size: 20px;
        --videos-grid: var(--2-columns);
        --videos-banner-display: none
    }
}
@media (min-width: 768px) {
    :root { --videos-grid: var(--3-columns) }
}
@media (min-width: 992px) {
    :root {
        --videos-grid: var(--4-columns);
        --videos-banner-column: 3 / 5;
        --videos-banner-display: flex
    }
}
@media (min-width: 1080px) {
    :root {
        --videos-grid: var(--5-columns);
        --videos-banner-column: 4 / 6;
        --videos-banner-display: flex
    }
}

/* === Typography & Body === */
:active { outline: none }
:focus  { outline: none }

body,
html {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-text-size-adjust: 100%;
    color: var(--text-primary);
    font-weight: var(--font-weight-default);
    font-size: var(--font-size-default);
    background: var(--body-background-color);
    line-height: 1.5;
}

body,
html,
h1, h2, h3, h4, h5, h6,
ul, li, p, form, button, select, input {
    list-style: none;
    border: none;
    padding: 0;
    margin: 0;
}

input,
textarea {
    font-family: inherit
}

button {
    background: none;
    color: inherit;
    cursor: pointer;
}

/* ============================================================
   HEADER
   ============================================================ */
.-h-ng-header-holder {
    height: var(--header-top-height); /* mobile: only top bar */
    top: calc(-1 * var(--header-top-height));
    position: sticky;
    z-index: 25;
    transition: top 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .-h-ng-header-holder {
        height: calc(var(--header-top-height) + var(--header-bottom-height));
        top: calc(-1 * (var(--header-top-height) + var(--header-bottom-height)));
    }
}

.-h-ng-header { height: inherit }

.-h-ng-header-holder[data-scroll="up"] { top: 0 }

.-h-box {
    height: var(--header-top-height);
    position: relative;
}

.-h-top {
    display: flex;
    align-items: center;
    height: var(--header-top-height);
    background: var(--header-top-background);
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
    position: relative;
}

.-h-bottom {
    position: relative;
    height: var(--header-bottom-height);
    background: var(--header-bottom-background);
    border-bottom: 1px solid var(--border-subtle);
    display: none; /* hidden on mobile — use bottom nav instead */
    width: 100%;
    vertical-align: top;
}

@media (min-width: 768px) {
    .-h-bottom { display: inline-block }
}

.-h-holder {
    max-width: var(--holder-width);
    margin: 0 auto;
    width: 100%;
}

.-h-row {
    position: relative;
    width: 100%;
    height: var(--header-top-height);
    max-width: var(--holder-width);
    margin: 0 auto;
    display: flex;
}

.-h-button {
    background: transparent;
    color: var(--color-red);
    width: 48px;
    height: var(--header-top-height);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.-h-button:hover { color: var(--color-red-hover) }

.-h-menu { width: 96px }

.-h-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.-h-logo img {
    transition: opacity var(--transition-fast);
    max-height: 32px;
}
.-h-logo img:hover { opacity: 0.85 }

.-h-logo-svg { height: 16px }

.-h-user {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.-h-magnum {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.-h-others {
    flex-grow: 1;
    align-items: center;
}

.-h-genre,
.-h-search,
.-h-others,
.-h-language {
    position: relative;
    display: none;
}

.-h-push {
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: right;
    cursor: pointer;
    opacity: 0.6;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 500;
    gap: 6px;
    transition: opacity var(--transition-fast);
}
.-h-push:hover { opacity: 1 }

/* Mobile Search Bar */
.-h-mobile-search {
    background: var(--bg-elevated);
    display: flex;
    position: absolute;
    height: auto;
    z-index: 5;
    width: 100%;
    top: 50%;
    left: 0;
    right: 0;
    padding: 0 12px;
    box-sizing: border-box;
    transform: translateY(-50%);
    align-items: center;
    gap: 8px;
}

.-h-mobile-search .-h-search-form {
    margin: 0;
    flex: 1;
    min-width: 0;
    width: auto;
}

.-h-mobile-search-close {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color var(--transition-fast);
}
.-h-mobile-search-close:hover { color: var(--color-red) }
.-h-mobile-search-close svg { display: block }

/* Search Form */
.-h-search-form {
    background: var(--bg-input);
    height: 36px;
    display: grid;
    grid-template-columns: auto 40px;
    width: 100%;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-default);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.-h-search-form:focus-within {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px var(--color-red-glow);
}

.-h-search-label { display: flex }

.-h-search-input {
    border: none;
    height: 36px;
    background: transparent;
    padding: 0 14px;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
    font-family: inherit;
}
.-h-search-input::placeholder { color: var(--text-muted) }

.--h-search-button {
    width: 40px;
    color: var(--text-secondary);
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}
.--h-search-button:hover { color: var(--color-red) }

@media screen and (min-width: 768px) {
    .-h-row { gap: 12px }
    .-h-menu, .-h-magnum { display: none }
    .-h-logo {
        padding: 0 var(--grid-gap-default);
        flex-grow: unset;
    }
    .-h-search {
        width: 100%;
        max-width: 520px;
        position: relative;
        align-items: center;
    }
    .-h-genre,
    .-h-search,
    .-h-others,
    .-h-language { display: flex }
}

@media screen and (min-width: 1024px) {
    .-h-logo-svg { height: 20px }
    .-h-ng-header-holder {
        height: 96px;
        z-index: 50;
        top: -96px;
    }
    .-h-search-input { font-size: 14px }
}

@media (min-width: 1350px) {
    .-h-logo { padding-left: 0 }
}

/* === Header User Menu === */
.-h-user-wrap { position: relative }

.-h-user-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-elevated);
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    min-width: 210px;
    z-index: 60;
}

.-h-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.-h-auth-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background var(--transition-fast), transform var(--transition-fast);
    font-family: inherit;
}
.-h-auth-btn:hover { transform: translateY(-1px) }

.-h-auth-signin {
    background: var(--color-red);
    color: white;
}
.-h-auth-signin:hover { background: var(--color-red-hover) }

.-h-auth-signup {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}
.-h-auth-signup:hover { background: var(--bg-card); border-color: var(--border-strong) }

.-h-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-red);
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.-h-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.-h-user-name {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.-h-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}
.-h-user-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.-h-user-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}

/* === Header Nav Bottom Bar === */
.header-nav-list {
    display: grid;
    grid-auto-columns: auto;
    grid-auto-flow: column;
    overflow: hidden;
    grid-gap: 4px;
    align-items: center;
    height: 100%;
}

.header-nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: var(--header-bottom-height);
    padding: 0 8px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    letter-spacing: 0.06em;
}
.header-nav-link:hover { color: var(--text-primary); background: var(--bg-hover) }

.header-nav-link span b { color: var(--color-red) }

.header-nav-desktop { display: none }

@media (max-width: 767px) {
    .header-nav-list { margin: 0 -2px }
    .header-nav-list-overflow {
        display: inline-block;
        vertical-align: top;
        width: 100%;
        overflow: hidden;
    }
    .header-nav-link + .header-nav-link {
        border-left: 1px solid var(--border-subtle);
    }
}

@media (min-width: 576px) {
    .header-nav-link { font-size: 12px }
    .header-nav-link:hover {
        box-shadow: inset 0 -2px var(--color-red);
        background: transparent;
    }
}

@media (min-width: 768px) {
    .header-nav-desktop { display: flex }
}

/* ============================================================
   MOBILE NAV SIDEBAR
   ============================================================ */
.mobile-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 100;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s, opacity 0.25s;
}

.mobile-nav.active {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.mobile-nav-inner {
    position: absolute;
    top: 0; left: 0;
    width: 280px;
    height: 100%;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-default);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active .mobile-nav-inner { transform: translateX(0) }

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-header .logo {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.mobile-nav-header .logo img {
    max-height: 28px;
    max-width: 100%;
    object-fit: contain;
}

.mobile-nav-close {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}
.mobile-nav-close:hover { color: var(--color-red); border-color: var(--color-red) }

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 8px 8px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    margin-bottom: 2px;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
}
.mobile-nav-link--hot { color: var(--color-red) }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.-main {
    min-height: calc(100vh - 96px - 96px);
    padding: 0 6px;
}

@media (min-width: 768px) {
    .-main { padding: 0 4px }
}

.-section { margin-bottom: 10px }
.-section-short { margin-bottom: 10px; min-height: 240px }

.-holder {
    max-width: var(--holder-width);
    margin: 0 auto;
}

.-holder-section {
    max-width: var(--holder-width);
    margin: 0 auto;
    padding: 0 12px;
}

@media (min-width: 1350px) {
    .-holder-section { padding: 0 }
}

.video-page-top { padding-top: 14px }

.-flex            { display: flex }
.-items-center    { display: flex; align-items: center }
.-justify-center  { display: flex; justify-content: center }
.-grow            { flex-grow: 1 }

/* === Colors === */
.-color-red   { color: var(--color-red); fill: var(--color-red) }
.-color-green { color: var(--color-green); fill: var(--color-green) }
.-color-white { color: var(--text-primary); fill: var(--text-primary) }
.-box-shadow-bottom { box-shadow: var(--box-shadow-bottom) }

/* ============================================================
   HEADINGS
   ============================================================ */
.-heading-one {
    line-height: var(--heading-line-height);
    font-size: var(--heading-font-size);
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 85%;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.-under-heading-one {
    font-size: .85em;
    opacity: .5;
    font-weight: 300;
}

.-heading-two {
    line-height: 44px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 85%;
    letter-spacing: -0.01em;
}

.-heading-two-wrap {
    white-space: normal;
    text-overflow: initial;
    overflow: visible;
    max-width: 100%;
}

.-heading-arrow {
    display: inline-block;
    vertical-align: top;
    width: auto;
    position: relative;
}

.-heading-arrow:after {
    content: '';
    position: absolute;
    right: -20px;
    left: auto;
    top: 50%;
    bottom: auto;
    margin-top: -8px;
    width: 18px;
    height: 18px;
    background: transparent url('data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBmaWxsPSJub25lIi8+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik04LjU5IDE2LjU5TDEzLjE3IDEyIDguNTkgNy40MSAxMCA2bDYgNi02IDYtMS40MS0xLjQxeiIvPjwvc3ZnPg==') no-repeat center center;
    background-size: 28px 28px;
}

@media (min-width: 576px) {
    .-heading-one  { text-overflow: initial; overflow: initial }
    .-heading-two  { text-overflow: initial; overflow: initial }
}

.-shadow-after { position: relative; overflow: hidden }
.-shadow-after:after {
    content: "";
    box-shadow: 0 -1px rgba(225, 29, 72, 0.5);
    position: absolute;
    left: 0;
    top: 100%;
    width: 64px;
    height: 1px;
}

/* ============================================================
   VIDEO GRID
   ============================================================ */
.videos-list {
    display: grid;
    grid-template-columns: var(--videos-grid);
    grid-gap: var(--videos-grid-gap);
    grid-row-gap: 16px;
}

.videos-list-large-thumbs {}

@media (min-width: 992px) {
    .videos-list-large-thumbs { grid-template-columns: repeat(3, 1fr) }
}

@media (min-width: 1280px) {
    .videos-list-large-thumbs { grid-template-columns: repeat(4, 1fr) }
}

/* ============================================================
   VIDEO CARD
   ============================================================ */
.video-item {
    display: grid;
    grid-template-rows: auto 34px 22px;
    grid-row-gap: 8px;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-item-svg {
    transition: transform var(--transition-base);
    background-color: var(--bg-card);
    background-size: cover;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Thumbnail wrapper */
.video-item-thumb {
    position: relative;
    overflow: hidden;
    display: flex;
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.video-item-block {
    display: block;
    flex-grow: 1;
    line-height: 0;
    font-size: 0;
}

.video-item-media {
    position: relative;
    width: 100%;
    aspect-ratio: 390 / 219;
    overflow: hidden;
    background-color: var(--bg-card);
}

.video-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), filter 0.35s ease;
}

.video-item:hover .video-item-img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.video-item-link {
    cursor: pointer;
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    z-index: 4;
}

/* Hover overlay gradient on thumb */
.video-item-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    border-radius: var(--radius-md);
}
.video-item:hover .video-item-thumb::after { opacity: 1 }

/* Full tag badge (top-left) */
.video-item-full-tag {
    position: absolute;
    z-index: 2;
    top: 7px;
    left: 7px;
    height: 20px;
    background: rgba(0,0,0,0.75);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 10px;
    line-height: 20px;
    font-weight: 700;
    padding: 0 7px 0 0;
    text-decoration: none;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.video-item-full-tag-star {
    float: left;
    width: 20px;
    height: inherit;
    text-align: center;
    color: #fff;
    background: var(--color-red);
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-right: 6px;
}

/* Stats overlay (bottom-left) */
.video-item-stats,
[data-vi="stats"] {
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    line-height: 22px;
    display: flex;
    font-size: 11px;
    backdrop-filter: blur(4px);
}

.video-item-star-gray,
[data-vi="star"] {
    background: rgba(255,255,255,0.15);
    font-size: 16px;
    padding: 0 4px;
    color: white;
}

/* Duration + HD badge (bottom-right) */
[data-vi="bottom"] {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    z-index: 2;
    bottom: 0;
    background: rgba(0, 0, 0, 0.72);
    height: 22px;
    margin: unset;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    gap: 4px;
}

.video-item-time,
[data-vi="time"] { padding: 0 2px }

.video-item-hd,
[data-vi="hd"] {
    font-weight: 700;
    font-size: 10px;
    color: #fbbf24;
    letter-spacing: 0.05em;
}

/* Title */
.video-item-title {
    text-overflow: ellipsis;
    color: var(--text-secondary);
    height: 32px;
    overflow: hidden;
    font-size: 13px;
    line-height: 16px;
    font-weight: 500;
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.video-item-title:hover {
    color: var(--text-primary);
    cursor: pointer;
}
.video-item:hover .video-item-title { color: var(--text-primary) }

/* Meta row */
.video-item-bottom {
    line-height: 18px;
    color: var(--text-muted);
    display: flex;
    column-gap: 6px;
    padding: 0 var(--default-grid-gap);
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
}

[data-vi="views"] {
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
}

[data-vi="badge"] {
    text-transform: uppercase;
    margin-left: 5px;
    color: black;
    background: rgba(255,255,255,0.18);
    border-radius: 3px;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
}

.video-item-site { font-size: 12px }
.video-item-site:hover { color: var(--text-primary); cursor: pointer }

.video-item-gap { flex-grow: 1 }

.video-item-actor {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.video-item-actor:hover { color: var(--text-primary); cursor: pointer }

.video-item-spacer { padding: 0 3px; font-size: 12px; line-height: 13px }

@media (min-width: 575px) {
    .video-item-title  { padding: 0 }
    .video-item-bottom { padding: 0 }
    [data-vi="bottom"] { right: 0 }
}

@media (min-width: 768px) {
    .video-item-spacer { display: none }
    [data-vi="actor-1"] { display: none }
}

/* ============================================================
   PILLS CAROUSEL (Category Tags)
   ============================================================ */
.pills-carousel {
    position: relative;
    height: var(--pills-height);
    overflow: hidden;
}

.-pc-scrollable {
    position: relative;
    z-index: 5;
    white-space: nowrap;
    overflow-y: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.-pc-scrollable::-webkit-scrollbar { display: none }

.-pc-fake {
    transform: translateX(0);
    transition-duration: .15s;
    transition-timing-function: cubic-bezier(.05, 0, 0, 1);
    will-change: transform;
    display: inline-block;
    white-space: nowrap;
}

.-pc-item {
    color: var(--text-secondary);
    text-align: center;
    height: var(--pills-height);
    line-height: var(--pills-height);
    font-size: 13px;
    padding: 0 16px;
    margin: 0 0 0 6px;
    min-width: 60px;
    display: inline-block;
    background: var(--bg-elevated);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-default);
    user-select: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    font-weight: 500;
}
.-pc-item:last-child { margin-right: 8px }
.-pc-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.-pc-btn {
    position: absolute;
    z-index: 10;
    top: 0;
    bottom: 0;
    background: none;
    border: 0;
    width: calc(var(--pills-height) + 20px);
    cursor: pointer;
    display: none;
}

.-pc-left {
    text-align: left;
    left: 0;
    background: linear-gradient(90deg, var(--bg-base) 40%, transparent 100%);
}
.-pc-left .-pc-arrow:after { margin: -5px 0 -5px -2px; transform: rotate(45deg) }

.-pc-right {
    text-align: right;
    right: 0;
    background: linear-gradient(275deg, var(--bg-base) 40%, transparent 100%);
}
.-pc-right .-pc-arrow:after { margin: -5px 0 -5px -6px; transform: rotate(-135deg) }

.-pc-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--pills-height);
    height: var(--pills-height);
    border-radius: 50%;
    transition: background var(--transition-fast);
}
.-pc-arrow:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    border-left: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
}
.-pc-arrow:hover { background: var(--bg-hover) }
.-pc-arrow:hover:after { border-color: var(--text-primary) }

@media (min-width: 1024px) {
    .-pc-scrollable { padding-bottom: 0 }
    .-pc-btn { display: block }
    .-pc-item { margin: 0 6px 0 0 }
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.pager-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    height: 40px;
    padding: 0 18px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-default);
    user-select: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

a.pager-item:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.pager-dots,
.pager-skip { display: flex }

.pager-active {
    background-color: var(--color-red) !important;
    border-color: var(--color-red) !important;
    color: white !important;
    box-shadow: 0 0 16px var(--color-red-glow);
}

@media (min-width: 768px) {
    .pager-item { height: 44px; padding: 0 22px }
    .pager-dots { background: transparent }
    .pager-dots, .pager-skip { display: flex }
}

@media (max-width: 480px) {
    .pager-item { height: 36px; padding: 0 12px; font-size: 12px }
}

/* ============================================================
   SEO COLLAPSIBLE
   ============================================================ */
.-less-section {
    transition: max-height 500ms ease;
    max-height: 60px;
    overflow: hidden;
    line-height: 1.6;
    position: relative;
}
.-less-content {
    line-height: 1.7;
    color: var(--text-secondary);
}
.-less-content a { color: var(--text-primary) }
.-less-section[data-active="true"] { max-height: none }

.-less-actions {
    position: relative;
    text-align: center;
    margin-top: 12px;
    height: 24px;
}
.-less-actions::before {
    content: "";
    background: var(--border-subtle);
    position: absolute;
    height: 1px;
    width: 100%;
    top: 49%;
    left: 0;
    z-index: 0;
}
.-less-actions[data-active=""] { opacity: 0 }

.-less-button {
    position: relative;
    line-height: 24px;
    background: var(--body-background-color);
    cursor: pointer;
    padding: 0 16px;
    color: var(--color-red);
    font-size: 12px;
    text-transform: uppercase;
    z-index: 1;
    font-weight: 600;
    letter-spacing: 0.06em;
    transition: color var(--transition-fast);
}
.-less-button:hover { color: var(--color-red-hover) }

/* ============================================================
   HOME MORE LINKS
   ============================================================ */
.home-more-desktop {
    transition: all var(--transition-fast);
    display: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1em;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
}
.home-more-desktop:hover {
    color: var(--text-primary);
    border-color: var(--border-strong);
    background: var(--bg-hover);
}

@media (min-width: 768px) { .home-more-desktop { display: block } }

.home-more-mobile {
    display: block;
    padding: 9px;
    margin: 0 12px;
    font-size: 14px;
    line-height: 16px;
    text-transform: capitalize;
    text-align: center;
    color: var(--text-primary);
    background: var(--bg-elevated);
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.home-more-mobile:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

@media (min-width: 1024px) { .home-more-mobile { display: none } }

/* Inline nav sort tabs */
.home-inline-nav {
    overflow: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    margin-bottom: 16px;
    display: block;
}
.home-inline-nav a {
    white-space: nowrap;
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    line-height: 32px;
    margin: 0 6px;
    font-weight: 600;
    opacity: .45;
    transition: opacity var(--transition-fast);
}
.home-inline-nav a.active {
    opacity: 1;
    background: var(--bg-elevated);
    padding: 0 14px;
    border: 1px solid var(--border-default);
}
@media (min-width: 768px) { .home-inline-nav { display: none } }

/* ============================================================
   FOOTER
   ============================================================ */
.-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    color: var(--text-secondary);
    background: var(--bg-surface);
}

.-footer-holder {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: var(--grid-gap-footer);
}

@media (min-width: 768px) {
    .-footer-holder {
        grid-template-columns: 280px auto;
        min-height: 240px;
    }
}

.-footer-group-title {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: grid;
    align-items: center;
    grid-template-columns: auto 24px;
    width: 100%;
    height: 36px;
}

@media (min-width: 576px) {
    .-footer-group-title {
        padding-bottom: 10px;
        margin-bottom: 10px;
        box-shadow: inset 0 -1px var(--border-subtle);
    }
}

.-footer-group-about {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    background: var(--bg-elevated);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.-footer-group-about > div {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.-footer-group-panel {
    display: none;
    padding: 10px 0;
    grid-template-columns: 1fr;
    grid-gap: 4px;
    flex-direction: column;
    width: 100%;
}
.-footer-group-panel[data-active="true"] { display: grid }

.-footer-group-link {
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    transition: color var(--transition-fast);
}
.-footer-group-link:hover { color: var(--text-primary) }

.-footer-group-more {
    background: none;
    color: var(--text-muted);
    transition: transform var(--transition-base);
}
.-footer-group-more[data-active="true"] { transform: rotate(180deg) }

@media (min-width: 575px) {
    .-footer-group-about {
        grid-template-columns: repeat(4, 1fr);
        grid-gap: var(--grid-gap-footer);
        background: none;
        padding: 0;
        border-radius: unset;
        border: none;
    }
    .-footer-group-panel { display: grid }
    .-footer-group-more  { display: none }
}

.-footer-legal {
    height: 72px;
    border-top: 1px solid var(--border-subtle);
}

.-footer-legal-first { height: 24px }

.-footer-legal-second {
    display: grid;
    grid-template-columns: 1fr;
    line-height: 24px;
    font-size: 12px;
    text-align: center;
    color: var(--text-muted);
}

@media (min-width: 576px) {
    .-footer-legal-second { grid-template-columns: 1fr 1fr }
    .-footer-legal-left   { text-align: left }
    .-footer-legal-right  { text-align: right }
}

.-footer-paper-holder { min-height: 56px; padding: 10px 0 }

.footer-paper-form { display: flex; height: 40px; border-radius: var(--radius-sm); overflow: hidden }

.footer-paper-label { display: flex; flex-grow: 1 }

.footer-paper-input {
    flex-grow: 1;
    font-size: 14px;
    padding: 0 12px;
    border: none;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-right: none;
    width: 100%;
    font-family: inherit;
}
.footer-paper-input:focus { outline: none; border-color: var(--color-red) }

.footer-paper-button {
    background-color: var(--color-red);
    color: white;
    border: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.footer-paper-button:hover { background: var(--color-red-hover) }

.footer-paper-success { color: var(--color-green) }

.footer-phrases {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 12px;
}

.footer-phrases-title {
    box-shadow: inset 0 -1px var(--border-subtle);
    text-transform: uppercase;
    padding: 10px 0;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.footer-phrases-text { color: var(--text-muted); font-size: 13px; line-height: 1.7 }

.footer-alternate-holder { text-align: center; line-height: 18px; margin-bottom: 18px }
.footer-alternate-wrapper { display: inline-grid; grid-template-columns: repeat(5, 1fr); grid-gap: 10px }
.footer-alternate-link { display: inline-flex; flex-direction: column; align-items: center; color: var(--text-muted) }
.footer-alternate-link:hover { color: var(--text-primary) }

.footer-navigation-section { min-height: 76px }
@media (min-width: 768px) { .footer-navigation-section { display: none } }

/* ============================================================
   ADVERTISEMENT
   ============================================================ */
.advertisement-mobile-holder {
    overflow: hidden;
    position: relative;
    text-align: center;
    display: block;
    margin: 0 auto;
    width: 300px;
    height: 100px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

@media (min-width: 576px) { .advertisement-mobile { grid-column: span 2 } }
@media (min-width: 768px) { .advertisement-mobile { grid-column: span 3 } }
@media (min-width: 992px) { .advertisement-mobile { display: none } }

.-f-banners {
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    height: 310px;
    padding: var(--grid-gap-default);
}
@media (min-width: 1024px) { .-f-banners { height: 290px } }

/* ============================================================
   VIDEO CATEGORY CAROUSEL (mobile)
   ============================================================ */
@media (max-width: 768px) {
    .videos-category-carousel {
        position: relative;
        z-index: 1;
    }
    .videos-category-carousel:after {
        content: '';
        position: absolute;
        z-index: 2;
        right: 0; top: 0; bottom: 0; left: auto;
        width: 24px;
        background-image: linear-gradient(to right, transparent, var(--bg-base));
    }
    .videos-category-carousel .videos-list {
        grid-template: 1fr / none;
        grid-auto-flow: column;
        grid-auto-columns: 90vw;
        overflow-x: scroll;
        padding-bottom: 10px;
        position: relative;
        z-index: 1;
        gap: 0;
    }
    .videos-category-carousel .videos-list .video-item {
        padding-right: 10px;
        display: grid;
    }
}
@media (min-width: 576px) { .videos-category-carousel .videos-list { grid-auto-columns: 46vw } }
@media (min-width: 768px) { .videos-category-carousel .videos-list { grid-auto-columns: 32vw } }

/* ============================================================
   AUTH MODALS
   ============================================================ */
.auth-modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    backdrop-filter: blur(6px);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.modal-open { overflow: hidden }

.modal-inner {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(14px) scale(0.97);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.auth-modal.active .modal-inner {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-content { padding: 32px }

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: -0.02em;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    padding: 4px;
    transition: color var(--transition-fast);
}
.close-btn:hover { color: var(--text-primary) }

/* Form Elements */
.auth-form .form-group { margin-bottom: 16px }

.auth-form label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    height: 44px;
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-form input:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px var(--color-red-glow);
    outline: none;
}
.auth-form input.error { border-color: var(--color-red) }

/* Error Messages */
.error-message { display: none; font-size: 12px; color: var(--color-red); margin-top: 4px }
.error-message.show { display: block }

/* Submit Button */
.btn-submit {
    width: 100%;
    height: 46px;
    background: var(--color-red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
    letter-spacing: 0.02em;
}
.btn-submit:hover {
    background: var(--color-red-hover);
    box-shadow: 0 4px 20px var(--color-red-glow);
    transform: translateY(-1px);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none }
.btn-submit .btn-loading { display: none }
.btn-submit.loading .btn-text { visibility: hidden }
.btn-submit.loading .btn-loading {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}

/* Spinner */
.spinner { width: 22px; height: 22px; animation: spin 0.8s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }

/* Form Message */
.form-message {
    display: none;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-top: 12px;
}
.form-message.show { display: block }
.form-message.success { background: rgba(34,197,94,0.12); color: var(--color-green) }
.form-message.error   { background: rgba(225,29,72,0.12); color: var(--color-red) }

/* Form Footer */
.form-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted) }
.form-footer .switch-modal { color: var(--color-red); font-weight: 600; margin-left: 4px }
.form-footer .switch-modal:hover { color: var(--color-red-hover) }

/* Turnstile */
.turnstile-container { display: flex; justify-content: center }

/* ============================================================
   VIDEO PAGE
   ============================================================ */
.player-row {
    display: flex;
    gap: var(--grid-gap-default);
    align-items: flex-start;
    flex-wrap: wrap;
}

.player-left {
    flex-grow: 1;
    min-width: 0;
    position: relative;
    width: 100%;
}

.player-right {
    display: none;
    padding-left: 0;
    flex: 1 1 315px;
    position: relative;
    width: 100%;
    margin-top: var(--grid-gap-default);
}

@media (min-width: 1024px) {
    .player-row { flex-wrap: nowrap }
    .player-right {
        display: flex;
        flex-direction: column;
        flex: 0 0 320px;
        padding-left: 16px;
        width: auto;
        margin-top: 0;
    }
}

.player-section { position: relative; z-index: 1 }
.player-video { position: relative; display: flex }

/* Player poster */
.player-poster-svg {
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.player-poster-abs {
    position: absolute;
    left: 0; top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.28);
}

.player-poster-play {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border: 0;
    outline: none;
    padding: 16px;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(225, 29, 72, 0.8);
    backdrop-filter: blur(4px);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.player-poster-play:hover {
    background: var(--color-red);
    transform: scale(1.08);
    box-shadow: 0 0 40px var(--color-red-glow);
}

.player-poster-loading {
    display: block;
    align-self: center;
    margin: 0 auto;
    width: 42px;
    height: 42px;
    padding: 5px;
}
.player-poster-loading:after {
    content: " ";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-width: 3px;
    border-style: solid;
    border-color: var(--text-primary) transparent var(--text-primary) transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
    0%   { transform: rotate(0deg) }
    100% { transform: rotate(360deg) }
}

/* Below video ad */
.below-video { display: none; padding: 6px 0; text-align: center }
@media (min-width: 768px) { .below-video { display: block } }

/* Headings in video page */
.-heading { color: var(--heading-color); font-size: var(--heading-font-size); font-weight: var(--heading-font-weight) }
.-heading-similar { line-height: 44px }

.-flex-vertical  { display: flex; flex-direction: column }
.-grid-inline    { display: inline-grid; grid-auto-flow: column; grid-auto-columns: auto }
.-grid-gap       { grid-gap: var(--grid-gap-default) }

/* VPA: Video Page Actions */
.vpa-stats    { width: 100% }
.vpa-actions  { padding-top: 10px; width: 100% }

.vpa-stats-grid {
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    row-gap: 4px;
    font-size: 13px;
}

@media (min-width: 575px) {
    .vpa-stats   { flex-grow: 1; width: auto }
    .vpa-actions { padding-top: 0; width: auto }
}

.vpa-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(70px, 1fr));
    gap: var(--grid-gap-default);
    position: relative;
}
@media (min-width: 575px) {
    .vpa-list {
        grid-auto-flow: column;
        grid-auto-columns: auto;
        grid-template-columns: none;
    }
}

.vpa-item { display: flex; flex: 1 1 0; justify-content: center; align-items: flex-end }

.vpa-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
    user-select: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
}
.vpa-button:hover {
    color: var(--color-red);
    border-color: var(--color-red-glow);
    background: var(--bg-hover);
}

.vpa-button-fake { transition: color 0.2s ease }
.vpa-button-fake.is-active { color: var(--color-red) }

.vpa-button.favorited { color: var(--color-green) }
.vpa-button.favorited svg { filter: drop-shadow(0 0 6px rgba(34,197,94,0.4)) }

.vpa-button span {
    padding-top: 4px;
    font-size: 11px;
    text-transform: capitalize;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.vpa-holder {
    margin-top: var(--grid-gap-default);
    height: 80px;
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 575px) {
    .vpa-holder {
        margin-top: 0;
        height: 60px;
        grid-template-columns: 2fr 1fr;
    }
}

.vpa-stats { padding-top: 20px }

/* VPC: Video Page Channel */
.vpc-holder {
    box-shadow: var(--box-shadow-bottom);
    padding: var(--grid-gap-default);
    display: flex;
    flex-direction: column;
}
.vpc-stats { display: flex; flex-grow: 1 }
.vpc-title { font-size: 16px; font-weight: 600; transition: color var(--transition-fast) }
.vpc-title:hover { color: var(--color-red) }
.vpc-pipe { width: 1px; height: 11px; background-color: var(--border-default); display: inline-block; vertical-align: middle }
.vpc-join { display: flex; flex-grow: 1; justify-content: center; align-items: center; padding-top: var(--grid-gap-default); flex-wrap: wrap; gap: 5px }

@media (min-width: 575px) {
    .vpc-holder { flex-direction: row }
    .vpc-join { flex-grow: initial; padding: 0 }
}

/* VPR: Video Page Right sidebar */
.vpr-section { flex-grow: 1 }
.vpr-first {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: var(--grid-gap-default);
    min-height: 250px;
    width: 300px;
}

/* Related Links (tags) */
.related-link {
    padding: 0 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-pill);
    display: inline-block;
    margin: 0 6px 8px 0;
    text-transform: capitalize;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 28px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
@media (max-width: 575px) {
    .related-link { white-space: normal; line-height: 1.4; padding: 6px 12px }
}
.related-link:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: white;
}

.related-list { padding: 10px 0 }

/* Mobile under-player ad */
.-up-mobile { display: block; padding: 20px 0 }
.-up-mobile-holder { position: relative; max-width: 300px; margin: 0 auto; height: 100px; overflow: hidden }
@media (min-width: 768px) { .-up-mobile { display: none } }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   WRAPPER
   ============================================================ */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.wrapper .-main { flex: 1 }

/* ============================================================
   VIDEO INFO BLOCK (vi-*)
   ============================================================ */

/* Server selector */
.vi-servers {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 12px;
}

.vi-server-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Override inline styles injected by JS for server buttons */
.vi-server-list .pu-link a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 16px !important;
    background: var(--bg-hover) !important;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-pill) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    border: 1px solid var(--border-default) !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s !important;
    min-height: 36px !important;
}

.vi-server-list .pu-link a:hover {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-strong) !important;
}

.vi-server-list .pu-link.active a,
.vi-server-list .pu-link a[style*="#e52637"],
.vi-server-list .pu-link a[style*="e52637"] {
    background: var(--color-red) !important;
    color: white !important;
    border-color: var(--color-red) !important;
    box-shadow: 0 0 12px var(--color-red-glow) !important;
}

/* Main info container */
.vi-info {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Title */
.vi-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin: 0;
}

@media (min-width: 576px) {
    .vi-title { font-size: 20px }
}

/* Stats + Actions row */
.vi-meta-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 576px) {
    .vi-meta-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Stats */
.vi-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.vi-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vi-stat svg { flex-shrink: 0; opacity: 0.7 }
.vi-stat-sep { opacity: 0.35; font-size: 16px; line-height: 1 }
.vi-stat--time { font-style: italic }

/* Action buttons row */
.vi-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Base action button */
.vi-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
    height: 38px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-default);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
    font-family: inherit;
    min-height: 44px; /* Touch target */
}

.vi-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

/* Like button active */
.vi-btn.vpa-button-fake.is-active {
    background: rgba(225, 29, 72, 0.12);
    color: var(--color-red);
    border-color: var(--color-red);
}

/* Save button */
.vi-btn--save {
    background: var(--bg-elevated);
}
.vi-btn--save.favorited {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-green);
    border-color: var(--color-green);
}
.vi-btn--save:hover {
    border-color: var(--color-red);
    color: var(--color-red);
    background: rgba(225, 29, 72, 0.08);
}
.vi-btn--save.favorited:hover {
    border-color: var(--color-green);
    color: var(--color-green);
    background: rgba(34, 197, 94, 0.15);
}

/* Mobile: compact buttons */
@media (max-width: 400px) {
    .vi-btn span { display: none }
    .vi-btn {
        padding: 0;
        width: 44px;
        justify-content: center;
    }
}

/* Channel info */
.vi-channel {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.vi-channel-avatar {
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    line-height: 0;
    transition: opacity var(--transition-fast);
}
.vi-channel-avatar:hover { opacity: 0.85 }

.vi-channel-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.vi-channel-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vi-channel-name:hover { color: var(--color-red) }

.vi-channel-date {
    font-size: 12px;
    color: var(--text-muted);
}

.vi-channel-cats {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

/* Description */
.vi-desc {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
}

.vi-desc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.vi-desc-meta strong { color: var(--text-secondary) }

.vi-desc-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Tags */
.vi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 4px;
}

/* ============================================================
   MOBILE — 2-COLUMN GRID FROM 480px
   ============================================================ */
@media (min-width: 480px) and (max-width: 575px) {
    :root { --videos-grid: var(--2-columns) }
}

/* ============================================================
   MOBILE — BOTTOM NAVIGATION BAR
   ============================================================ */
.mobile-bnav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    align-items: stretch;
    /* Glass effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 -1px 0 var(--border-subtle), 0 -8px 24px rgba(0,0,0,0.4);
}

/* Hide on desktop */
@media (min-width: 768px) {
    .mobile-bnav { display: none }
}

.mobile-bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: none;
    background: none;
    border: none;
    padding: 6px 4px;
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
    border-radius: 0;
    min-height: 44px;
    position: relative;
    font-family: inherit;
}

.mobile-bnav-item svg {
    transition: transform var(--transition-fast);
}

.mobile-bnav-item:hover,
.mobile-bnav-item:active {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.mobile-bnav-item--active {
    color: var(--color-red);
}

.mobile-bnav-item--active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: var(--color-red);
    border-radius: 0 0 2px 2px;
}

.mobile-bnav-item--search {
    color: var(--text-primary);
    background: var(--color-red);
    border-radius: 14px;
    margin: 6px 8px;
    flex: none;
    width: 50px;
    height: 48px;
    padding: 0;
    box-shadow: 0 4px 16px var(--color-red-glow);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.mobile-bnav-item--search span { display: none }
.mobile-bnav-item--search:hover {
    background: var(--color-red-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 20px var(--color-red-glow);
    color: white;
}

/* ============================================================
   MOBILE — BODY PADDING FOR BOTTOM NAV
   ============================================================ */
@media (max-width: 767px) {
    .-main {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }
    .-footer {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    }
}

/* ============================================================
   MOBILE — HEADER REFINEMENTS
   ============================================================ */
@media (max-width: 767px) {
    /* Better touch targets in header */
    .-h-button,
    .-h-push,
    .-h-magnum > button {
        min-width: 44px;
        min-height: 44px;
    }

    /* Logo always centered on mobile */
    .-h-logo {
        flex-grow: 1;
        justify-content: center;
    }

    /* Compact header */
    :root {
        --header-top-height: 52px;
        --header-bottom-height: 38px;
    }

    /* Slightly larger logo on mobile */
    .-h-logo img {
        max-height: 28px;
    }

    /* Mobile search bar - more prominent */
    .-h-mobile-search {
        padding: 0 12px;
        gap: 10px;
    }

    .-h-search-form {
        height: 40px;
    }

    /* Bottom nav bar scrollable categories */
    .header-nav-list-overflow {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .header-nav-list-overflow::-webkit-scrollbar { display: none }

    .header-nav-link {
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }
}

/* ============================================================
   MOBILE — VIDEO CARDS
   ============================================================ */
@media (max-width: 575px) {
    /* 2-column grid from 480px */
    @media (min-width: 480px) {
        .videos-list { grid-template-columns: repeat(2, 1fr); grid-gap: 8px }
    }

    .video-item {
        grid-template-rows: auto 28px 20px;
        grid-row-gap: 6px;
    }

    .video-item-thumb { border-radius: 8px }

    /* Tighter title on mobile */
    .video-item-title {
        font-size: 12px;
        line-height: 14px;
        height: 28px;
    }

    /* Smaller meta row */
    .video-item-bottom {
        font-size: 11px;
        padding: 0;
    }

    /* Duration/HD badge smaller */
    [data-vi="bottom"] {
        font-size: 10px;
        height: 19px;
        padding: 0 4px;
    }
    [data-vi="hd"] { font-size: 9px }
}

/* ============================================================
   MOBILE — PILLS CAROUSEL
   ============================================================ */
@media (max-width: 767px) {
    .pills-carousel {
        height: auto;
        overflow: visible;
        padding-bottom: 0;
    }

    .-pc-scrollable {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .-pc-item {
        height: 32px;
        line-height: 32px;
        font-size: 12px;
        padding: 0 12px;
        margin: 0 0 0 5px;
        min-width: 50px;
    }
}

/* ============================================================
   MOBILE — PAGINATION
   ============================================================ */
@media (max-width: 575px) {
    .pager { gap: 6px; padding: 28px 8px }
    .pager-item {
        height: 40px;
        min-width: 40px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 8px;
    }
    /* Hide dots on very small screens */
    .pager-dots { display: none }
}

/* ============================================================
   MOBILE — MODAL FULLSCREEN
   ============================================================ */
@media (max-width: 575px) {
    .modal-inner {
        margin: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        max-height: 92vh;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    }
    .auth-modal.active .modal-inner {
        transform: translateY(0);
        opacity: 1;
    }
    .modal-content { padding: 24px 20px }
    /* Drag handle indicator */
    .modal-inner::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: var(--border-strong);
        border-radius: 2px;
        margin: 12px auto 0;
    }
}

/* ============================================================
   MOBILE — FOOTER ACCORDION
   ============================================================ */
@media (max-width: 574px) {
    .-footer { padding-top: 20px }

    .-footer-group-about {
        border-radius: var(--radius-sm);
        overflow: hidden;
    }

    .-footer-group-title {
        cursor: pointer;
        padding: 0 4px;
        user-select: none;
        height: 44px; /* Touch target */
    }

    .-footer-group-panel {
        padding: 8px 4px 12px;
    }

    .-footer-group-link {
        padding: 8px 0; /* Larger touch target */
        min-height: 40px;
    }

    .footer-phrases { padding: 0 8px }
    .footer-phrases-text { font-size: 12px }
}

/* ============================================================
   MOBILE — SEO SECTION
   ============================================================ */
@media (max-width: 575px) {
    .-less-content { font-size: 13px; line-height: 1.65 }
    .-less-button { font-size: 11px }
}

/* ============================================================
   MOBILE — VIDEO PAGE
   ============================================================ */
@media (max-width: 767px) {
    .vpa-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .vpa-button {
        padding: 10px 8px;
        font-size: 12px;
        min-height: 44px;
        justify-content: center;
    }

    .vpa-button span { font-size: 10px }

    .related-link {
        font-size: 11px;
        line-height: 30px;
        padding: 0 10px;
        margin: 0 5px 7px 0;
    }
}

/* ============================================================
   MOBILE — SCROLL BEHAVIOR
   ============================================================ */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

/* Custom scrollbar (webkit) */
::-webkit-scrollbar { width: 6px; height: 6px }
::-webkit-scrollbar-track { background: transparent }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted) }

/* ============================================================
   MOBILE — SAFE AREA (iPhone notch/home indicator)
   ============================================================ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-bnav {
        height: calc(60px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================================
   MOBILE — MOBILE NAV SIDEBAR IMPROVEMENTS
   ============================================================ */
@media (max-width: 767px) {
    .mobile-nav-inner {
        width: min(280px, 85vw);
    }

    .mobile-nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0 12px;
        margin-bottom: 2px;
    }
}

/* ============================================================
   MOBILE — SECTION SPACING
   ============================================================ */
@media (max-width: 575px) {
    .-section { margin-bottom: 8px }
    .-main { padding: 0 6px }
    .-heading-one { font-size: 16px; line-height: 36px }
    .-heading-two { font-size: 14px; line-height: 34px }
}
