:root {
    --zh-bg: #0E0E0E;
    --zh-panel: #1E1E1E;
    --zh-soft: #27272a;
    --zh-red: #BE123C;
    --zh-text: #ffffff;
    --zh-muted: #a1a1aa;
    --zh-line: #1E1E1E;
    --zh-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    background: var(--zh-bg);
    color: var(--zh-text);
    font-family: var(--zh-font);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--zh-bg);
    color: var(--zh-text);
}

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

img,
svg,
video,
iframe {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.skip-to-main-content {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 100;
    transform: translateY(-140%);
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--zh-red);
    color: #fff;
    transition: transform .2s ease;
}

.skip-to-main-content:focus {
    transform: translateY(0);
}

.zh-site {
    min-height: 100vh;
    padding: 24px 16px 0;
    background: var(--zh-bg);
    color: var(--zh-text);
}

.zh-header {
    position: relative;
    margin: 0 0 24px;
}

.zh-header-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

.zh-logo {
    margin: 0;
    font-size: 36px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.zh-logo a {
    display: inline-flex;
    align-items: baseline;
    color: var(--zh-text);
    transition: color .15s ease;
}

.zh-logo a:hover,
.zh-logo a:focus {
    color: var(--zh-red);
}

.zh-logo .logo-tail,
.footlogo .logo-tail {
    color: var(--zh-red);
}

.zh-search {
    position: relative;
    width: 100%;
}

.zh-search input {
    width: 100%;
    padding: 8px 40px 8px 16px;
    border: 0;
    border-radius: 4px;
    outline: 0;
    background: var(--zh-panel);
    color: var(--zh-text);
}

.zh-search input::placeholder {
    color: #9ca3af;
}

.zh-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translateY(-50%);
    border: 0;
    padding: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

.zh-search svg,
.zh-icon-button svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.zh-search-desktop {
    display: none;
}

.zh-header-actions {
    position: absolute;
    right: 0;
    top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0 9px;
    background: var(--zh-panel);
    color: var(--zh-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.zh-icon-button:hover,
.zh-icon-button.active {
    border-color: var(--zh-red);
    color: var(--zh-red);
}

.zh-search-toggle svg {
    width: 18px;
    height: 18px;
}

.zh-menu-toggle {
    flex-direction: column;
    gap: 4px;
}

.zh-menu-toggle span {
    width: 17px;
    height: 2px;
    background: currentColor;
}

.zh-mobile-search {
    display: none;
    margin: 0 0 16px;
}

.zh-mobile-search.expand {
    display: block;
}

.zh-nav-bar {
    width: 100%;
    overflow-x: hidden;
    margin: 0 0 24px;
    background: var(--zh-panel);
}

.zh-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
}

.zh-nav a {
    color: var(--zh-text);
    transition: color .15s ease;
}

.zh-nav a:hover,
.zh-nav a:focus,
.zh-nav a.active {
    color: var(--zh-red);
}

.zh-language-panel {
    display: none;
    margin: -12px 0 24px;
    padding: 12px;
    border: 1px solid rgba(190, 18, 60, .35);
    border-radius: 6px;
    background: #111;
}

.zh-language-panel.open {
    display: block;
}

.zh-language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zh-language-list a {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 4px;
    background: var(--zh-panel);
    color: var(--zh-text);
    font-size: 13px;
}

.zh-language-list a:hover,
.zh-language-list a.selected {
    color: var(--zh-red);
}

.zh-main {
    width: 100%;
}

.zh-content {
    min-height: 360px;
}

.zh-ad {
    margin: 20px 0;
    text-align: center;
}

.zh-heading {
    margin: 0 0 18px;
}

.zh-heading h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.zh-search-history {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--zh-muted);
    font-size: 14px;
}

.zh-search-history a {
    color: var(--zh-red);
}

.zh-search-history a:hover {
    text-decoration: underline;
}

.zh-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.zh-card {
    display: block;
    min-width: 0;
}

.zh-card-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.zh-card-thumb img,
.zh-no-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.zh-no-thumb {
    display: block;
    background: linear-gradient(135deg, #151515, #242424);
}

.zh-card:hover img {
    transform: scale(1.05);
}

.zh-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    padding: 4px 8px;
    border-radius: 6px;
    background: #000;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.zh-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    transition: opacity .3s ease;
}

.zh-play {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: #fff;
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .35));
    transition: opacity .3s ease;
}

.zh-play svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.zh-play polygon {
    fill: currentColor;
    stroke: none;
}

.zh-card:hover .zh-card-overlay,
.zh-card:hover .zh-play {
    opacity: 1;
}

.zh-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    color: var(--zh-text);
    font-size: 14px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.zh-card:hover .zh-card-title {
    color: var(--zh-red);
}

.zh-empty {
    padding: 32px 16px;
    border-radius: 6px;
    background: var(--zh-panel);
    color: var(--zh-muted);
    text-align: center;
}

.zh-pagination {
    margin: 32px 0;
}

.pagination-holder,
.pagination-holder ul,
.zh-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-holder li {
    list-style: none;
}

.pagination-holder a,
.pagination-holder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    max-width: 58px;
    min-height: 30px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--zh-panel);
    color: var(--zh-text);
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pagination-holder a:hover,
.pagination-holder .active,
.pagination-holder .current,
.pagination-holder span.current {
    border: 1px solid var(--zh-red);
    background: #000;
    color: var(--zh-red);
}

.zh-pagination-count {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    color: var(--zh-muted);
    font-size: 13px;
}

.zh-video-page {
    background: var(--zh-bg);
}

.zh-player-frame {
    position: relative;
    width: 100%;
}

.zh-line {
    width: 100%;
    background: var(--zh-line);
}

.zh-line-top,
.zh-line-wide {
    height: 4px;
}

.zh-player-box {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto 24px;
}

.zh-side-line {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 2px;
    background: var(--zh-line);
}

.zh-side-line-left {
    left: 0;
}

.zh-side-line-right {
    right: 0;
}

.zh-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 0 16px;
    background: #000;
}

.zh-player #player,
.zh-player .jwplayer {
    width: 100% !important;
    height: 100% !important;
}

.zh-video-title {
    width: 100%;
    padding: 0 16px;
    text-align: center;
}

.zh-video-title h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.zh-video-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 20px;
    padding: 0 16px;
    color: var(--zh-text);
    font-size: 14px;
}

.zh-video-description {
    margin: 0 16px 18px;
    color: var(--zh-text);
    font-size: 15px;
    text-align: center;
}

.zh-video-description a,
.zh-description a {
    color: var(--zh-red);
}

.zh-video-description a:hover,
.zh-description a:hover {
    text-decoration: underline;
}

.zh-video-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0 16px;
    color: var(--zh-text);
    font-size: 14px;
}

.zh-video-tags span {
    padding-left: 8px;
    font-weight: 700;
}

.zh-video-tags a {
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--zh-soft);
    color: var(--zh-text);
    transition: background .15s ease;
}

.zh-video-tags a:hover {
    background: #3f3f46;
}

.zh-line-bottom {
    height: 2px;
    margin: 24px 0 16px;
}

.zh-related {
    margin: 0 0 32px;
}

.zh-related-title {
    margin: 0 0 32px;
}

.zh-related-title h2 {
    display: inline-block;
    margin: 0;
    padding: 8px 16px;
    border-radius: 4px;
    background: var(--zh-panel);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
}

.zh-related-title h2 em {
    color: var(--zh-red);
    font-style: normal;
}

.zh-description {
    margin: 16px auto;
    max-width: 1180px;
    padding: 0 16px;
    color: var(--zh-text);
    font-size: 18px;
    line-height: 1.55;
    text-align: center;
}

.zh-footer-line {
    width: 100%;
    height: 4px;
    margin: 24px 0 0;
    background: var(--zh-line);
}

.zh-footer {
    margin: 48px 0 0;
    padding: 40px 16px;
    background: var(--zh-bg);
    color: #9ca3af;
    text-align: center;
}

.zh-footer-counters {
    margin: 0 0 16px;
}

.zh-copyright {
    font-size: 14px;
}

.global-adv,
.ad-slot,
.zh-ad {
    overflow: hidden;
}

.text-section,
.page-description {
    color: var(--zh-text);
}

.directory-card,
.error-card {
    background: var(--zh-panel);
    color: var(--zh-text);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

.section-head h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.section-head span {
    color: var(--zh-red);
    font-weight: 700;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.directory-card,
.model-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border-radius: 4px;
    background: var(--zh-panel);
    color: var(--zh-text);
    transition: color .15s ease, background .15s ease;
}

.directory-card:hover,
.model-tile:hover {
    background: #000;
    color: var(--zh-red);
}

.directory-card__letter,
.model-tile__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: #000;
    color: var(--zh-red);
    font-weight: 700;
}

.directory-card__content {
    display: grid;
    min-width: 0;
}

.directory-card__title,
.model-tile__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.directory-card__meta {
    color: var(--zh-muted);
    font-size: 12px;
}

.model-tile {
    display: block;
}

.model-tile__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0 0 8px;
    background: #000;
}

.model-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-tile__placeholder {
    width: 100%;
    height: 100%;
    font-size: 28px;
}

.load-more-row {
    margin: 32px 0;
}

.empty-state {
    padding: 24px 16px;
    border-radius: 4px;
    background: var(--zh-panel);
    color: var(--zh-muted);
    text-align: center;
}

.error-hero {
    padding: 24px 0 48px;
}

.error-hero__panel {
    display: grid;
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 6px;
    background: var(--zh-panel);
}

.error-hero__code {
    color: var(--zh-red);
    font-size: clamp(72px, 18vw, 180px);
    line-height: .85;
    font-weight: 800;
    letter-spacing: -.08em;
}

.error-hero__eyebrow {
    margin: 0 0 8px;
    color: var(--zh-red);
    font-weight: 700;
}

.error-hero h1 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.15;
}

.error-hero__text {
    margin: 0 0 18px;
    color: var(--zh-muted);
}

.error-hero__search {
    position: relative;
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
}

.error-hero__search input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 4px;
    background: #000;
    color: var(--zh-text);
}

.error-hero__search button,
.error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border: 0;
    border-radius: 4px;
    background: #000;
    color: var(--zh-text);
    cursor: pointer;
}

.error-hero__search button:hover,
.error-button:hover,
.error-button--primary {
    color: var(--zh-red);
}

.error-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html[dir="rtl"] .zh-header-row,
html[dir="rtl"] .zh-nav,
html[dir="rtl"] .zh-search-history,
html[dir="rtl"] .zh-video-tags {
    direction: rtl;
}

html[dir="rtl"] .zh-header-actions {
    left: 0;
    right: auto;
}

html[dir="rtl"] .zh-search input {
    padding-left: 40px;
    padding-right: 16px;
}

html[dir="rtl"] .zh-search button {
    left: 10px;
    right: auto;
}

@media (min-width: 768px) {
    .zh-header-row {
        flex-direction: row;
        align-items: center;
    }

    .zh-search-desktop {
        display: block;
        max-width: 160px;
        margin-left: auto;
    }

    .zh-header-actions {
        position: static;
    }

    .zh-search-toggle {
        display: none;
    }

    .zh-mobile-search {
        display: none !important;
    }

    .zh-menu-toggle {
        display: none;
    }

    .zh-nav-bar {
        display: block !important;
    }

    .zh-video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .directory-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .error-hero__panel {
        grid-template-columns: .8fr 1.2fr;
        align-items: center;
    }

    .zh-side-line {
        display: block;
    }

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

@media (max-width: 767px) {
    .zh-site {
        padding-top: 18px;
    }

    .zh-logo {
        max-width: calc(100% - 138px);
        font-size: 31px;
    }

    .zh-nav-bar {
        display: none;
    }

    .zh-site.expanded .zh-nav-bar {
        display: block;
    }

    .zh-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .zh-heading h1 {
        font-size: 20px;
    }

    .zh-video-grid {
        gap: 14px;
    }
}

@media (max-width: 460px) {
    .zh-site {
        padding-left: 12px;
        padding-right: 12px;
    }

    .zh-logo {
        font-size: 26px;
    }

    .zh-header-actions {
        gap: 5px;
    }

    .zh-icon-button {
        min-width: 32px;
        height: 31px;
        padding: 0 7px;
    }

    .zh-card-title {
        font-size: 13px;
    }
}
