/*
Theme Name: 91PorLV Template
Theme URI: https://www.91porlv.com/
Author: 91PorLV
Description: 91PorLV WordPress video template.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: porlv-template
*/

body {
    background: #0f0f0f;
    color: #f5f5f5;
    padding-top: 94px;
}

a { color: inherit; }

.porlv-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 12px 40px;
}

.porlv-section {
    margin: 24px 0 30px;
}

.porlv-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid #ffd21f;
    padding-left: 10px;
    margin-bottom: 14px;
}

.porlv-section-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.porlv-section-head a {
    color: #ffd21f;
    font-size: 14px;
}

.porlv-video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.video-item {
    position: relative;
    min-width: 0;
}

.video-item a {
    display: block;
    text-decoration: none;
}

.porlv-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 3px;
}

.porlv-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.porlv-duration {
    position: absolute;
    right: 6px;
    bottom: 5px;
    background: rgba(0,0,0,.78);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 2px;
}

.porlv-title {
    margin: 8px 0 6px;
    color: #f4f4f4;
    font-size: 14px;
    line-height: 1.35;
    height: 38px;
    overflow: hidden;
}

.porlv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 20px;
}

.porlv-tags span,
.porlv-tags a {
    color: #bdbdbd;
    font-size: 12px;
    line-height: 1.2;
}

.porlv-partners {
    background: #161616;
    border: 1px solid #2b2b2b;
    border-radius: 4px;
    padding: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.porlv-partners .porlv-section-head {
    margin-bottom: 12px;
    border-left-color: #ff8800;
}

.porlv-partner-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.porlv-partner-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px 10px 16px;
    background: #202020;
    border: 1px solid #363636;
    border-radius: 3px;
    color: #f2f2f2;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    overflow: hidden;
}

.porlv-partner-card::before {
    content: "";
    width: 4px;
    height: 18px;
    margin-right: 10px;
    border-radius: 2px;
    background: #ff8800;
    flex: 0 0 auto;
}

.porlv-partner-card::after {
    content: ">";
    margin-left: auto;
    color: #ff8800;
    font-size: 16px;
    line-height: 1;
    opacity: .75;
}

.porlv-partner-card:hover {
    background: #292929;
    border-color: #ff8800;
    color: #fff;
}

.porlv-partner-card span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.porlv-adbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 8px 0 24px;
}

.porlv-adbar a {
    display: block;
    background: #171717;
    color: #ffd21f;
    border: 1px solid #303030;
    border-radius: 3px;
    text-align: center;
    padding: 8px 4px;
    font-size: 14px;
    text-decoration: none;
}

.porlv-player-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 12px 40px;
}

.player-container {
    background: #000;
    aspect-ratio: 16 / 9;
    width: 100%;
}

.player-container iframe,
.player-container video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.porlv-single-title {
    font-size: 22px;
    line-height: 1.35;
    margin: 16px 0 10px;
    color: #fff;
}

.porlv-meta {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 12px;
}

.porlv-search-title {
    font-size: 20px;
    margin: 0 0 16px;
}

.porlv-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 8px;
}

.porlv-pagination .page-numbers {
    min-width: 34px;
    padding: 7px 10px;
    background: #1d1d1d;
    color: #eee;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
}

.porlv-pagination .current {
    background: #ffd21f;
    color: #111;
}

.porlv-logo-img {
    display: block;
    max-width: 224px;
    height: auto;
}

.porlv-mobile-search {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 8;
    background: #171717;
    padding: 10px 12px;
}

.porlv-mobile-search.is-open {
    display: block;
}

.porlv-mobile-search form {
    display: flex;
}

.porlv-mobile-search input {
    flex: 1;
    min-width: 0;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    padding: 9px 10px;
}

.porlv-mobile-search button {
    background: #ffd21f;
    border: 0;
    padding: 0 14px;
}

.porlv-drawer-head {
    min-height: 44px;
    padding: 2px 0 10px;
}

.porlv-drawer-logo {
    width: 168px;
    height: auto;
    object-fit: contain;
}

.dx-drawer .dx-collapse {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

.dx-drawer .video-submenu {
    display: block;
    max-height: 620px;
    overflow: hidden;
    transition: max-height .25s ease;
}

.dx-drawer .video-menu-item.collapsed .video-submenu {
    max-height: 0;
}

.dx-drawer .video-menu-item.collapsed .video-menu-arrow {
    transform: rotate(0deg);
}

.dx-drawer .video-menu-arrow {
    transform: rotate(180deg);
}

.dx-drawer .h5-submenu a {
    border-radius: 4px;
    background: #181818;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    word-break: keep-all;
}

.dx-drawer:not(.dx-drawer--open) {
    pointer-events: none;
}

.dx-drawer.dx-drawer--open {
    pointer-events: auto;
}

.dx-overlay:not(.porlv-overlay-open) {
    display: none !important;
    pointer-events: none;
}

.dx-overlay.porlv-overlay-open {
    display: block;
}

@media (max-width: 767px) {
    body { padding-top: 58px; }
    .porlv-main,
    .porlv-player-wrap { padding-left: 10px; padding-right: 10px; }
    .porlv-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
    .porlv-partners { padding: 12px 10px; }
    .porlv-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .porlv-partner-card { min-height: 40px; padding: 8px 9px 8px 10px; font-size: 13px; }
    .porlv-partner-card::before { width: 3px; height: 16px; margin-right: 7px; }
    .porlv-partner-card::after { font-size: 14px; }
    .porlv-adbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .porlv-title { font-size: 13px; height: 36px; }
    .porlv-section-head h2 { font-size: 18px; }
    .porlv-single-title { font-size: 18px; }
    .porlv-logo-img { max-width: 188px; }
}
