#pt-body {
    --wc-surface: #fff;
    --wc-tint: #edf5fa;
    --wc-text: #142438;
    --wc-border: #dae6ee;
    --wc-accent: #00688f;
}

:root:has(.night-mode-css) #pt-body {
    --wc-surface: #141d28;
    --wc-tint: #202f3e;
    --wc-text: #e9f4fa;
    --wc-border: #304456;
    --wc-accent: #78d5f3;
}

#pt-body > header.navbar-fixed-top {
    border-bottom: 1px solid var(--wc-border);
    background: var(--wc-surface) !important;
}

.pt_header_nav .search-header .form-group {
    max-width: 680px;
    margin-inline: auto;
}

.pt_header_nav.navbar-findcond .search-header input {
    height: 40px;
    padding-inline: 16px;
    border: 1px solid var(--wc-border);
    border-radius: 12px 0 0 12px;
}

.pt_header_nav.navbar-findcond .search-header .btn {
    min-width: 50px;
    height: 40px;
    border-radius: 0 12px 12px 0;
}

#pt-body .pt_sec_nav_cats {
    background: var(--wc-surface);
    border-bottom: 1px solid var(--wc-border);
    box-shadow: none;
}

#pt-body .pt_sec_nav_slide > div a {
    color: var(--wc-text);
    background: var(--wc-tint);
    border: 1px solid transparent;
    border-radius: 9px;
    padding-inline: 14px;
    line-height: 30px;
}

#pt-body .pt_sec_nav_slide > div a:hover {
    border-color: var(--wc-accent);
}

#pt-body .pt_sec_nav_slide > div a.active {
    color: var(--wc-surface);
    background: var(--wc-text);
    font-weight: 700;
}

.home-page-categories .title h4 {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 750;
    letter-spacing: -.025em;
}

.home-page-categories .videos .wc-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 20px;
    margin: 0;
}

.wc-video-grid::before,
.wc-video-grid::after {
    display: none;
}

.wc-video-grid > div {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0;
}

.home-page-categories .videos .video-list-image a,
.video-latest-list .video-thumb a {
    border-radius: 14px;
}

.wc-video-grid .video-list-title a {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.wc-home-empty {
    min-height: 260px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    padding: 30px;
    background: linear-gradient(145deg, var(--wc-surface), var(--wc-tint));
    border: 1px solid var(--wc-border);
    border-radius: 24px;
    color: var(--wc-text);
}

.wc-home-empty > svg {
    width: 52px;
    height: 52px;
    padding: 12px;
    background: var(--wc-surface);
    border: 1px solid var(--wc-border);
    border-radius: 16px;
    color: var(--wc-accent);
}

.wc-home-empty > h3 {
    margin: 0;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 750;
    letter-spacing: -.025em;
}

.video-player-page {
    max-width: 1560px;
    margin-inline: auto;
}

.video-player-page .pt_video_player {
    background: #080d14;
    border-radius: 16px;
    isolation: isolate;
}

.video-player-page .pt_video_player video {
    border-radius: inherit;
    background: #080d14;
}

.video-player-page .video-title {
    font-weight: 750;
    letter-spacing: -.025em;
}

.video-player-page .related-videos .video-thumb a {
    border-radius: 10px;
}

.wc-buffering {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.wc-buffering[hidden] {
    display: none;
}

.wc-buffering::before {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, .38);
    border-top-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 9px rgba(8, 13, 20, .65);
    background: rgba(8, 13, 20, .65);
    animation: wc-buffer .75s linear infinite;
}

@keyframes wc-buffer {
    to { transform: rotate(360deg); }
}

@media (min-width: 1500px) {
    .home-page-categories .videos .wc-video-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home-page-categories .videos .wc-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .home-page-categories .videos .wc-video-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .video-player-page .pt_video_player {
        border-radius: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wc-buffering::before {
        animation: none;
    }
}
