.wpls-client-root {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box !important;
    position: relative;
    left: 0;
    right: 0;
}

.wpls-client-root * {
    box-sizing: border-box;
}

.wpls-client-frame {
    display: flex;
    flex-direction: column;
    background: var(--wpls-ply-bg, #0f121d);
    border-radius: var(--wpls-ply-rad, 18px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    transition: all 0.2s;
}

.wpls-client-frame.wpls-tabs-bottom .wpls-client-viewport {
    order: 1;
}

.wpls-client-frame.wpls-tabs-bottom .wpls-client-divider-line {
    order: 2;
}

.wpls-client-frame.wpls-tabs-bottom .wpls-client-header-suite {
    order: 3;
    padding-top: 10px;
    padding-bottom: 12px;
}

.wpls-client-frame.wpls-no-frame-bg {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.wpls-client-header-suite {
    background: transparent;
}

.wpls-filter-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 8px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.wpls-filter-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.wpls-country-filters,
.wpls-category-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: max-content;
}

.wpls-filter-pill {
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    outline: none;
}

.wpls-filter-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.wpls-filter-pill.active {
    background: #009ef7;
    border-color: #009ef7;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 158, 247, 0.4);
}

.wpls-client-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
    background: transparent;
}

.wpls-client-ch-row {
    display: flex;
    align-items: center;
    gap: var(--wpls-tab-gap, 8px);
    flex-wrap: wrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.wpls-client-ch-row::-webkit-scrollbar {
    display: none;
}

.wpls-client-loading-txt {
    font-size: 12px;
    color: #8a94a6;
}

.wpls-client-ch-btn {
    padding: 7px 16px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.15s;
    outline: none;
    background: var(--wpls-tab-inact-bg, #1a1e2d);
    color: var(--wpls-tab-inact-col, #ffffff);
    border-radius: var(--wpls-tab-rad, 8px);
    white-space: nowrap;
}

.wpls-client-ch-btn:hover {
    transform: translateY(-1px);
    background: #252b3d;
}

.wpls-client-ch-btn.active {
    background: var(--wpls-tab-act-bg, #ff2d55);
    color: var(--wpls-tab-act-col, #ffffff);
    font-weight: 800;
    box-shadow: 0 0 14px rgba(255, 45, 85, 0.45);
}

.wpls-client-vcount {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(241, 65, 108, 0.15);
    border: 1px solid rgba(241, 65, 108, 0.3);
    color: #f1416c;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.wpls-client-vdot {
    width: 6px;
    height: 6px;
    background: #f1416c;
    border-radius: 50%;
    animation: wplsLivePulse 1.5s infinite;
}

@keyframes wplsLivePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.wpls-client-divider-line {
    width: 100%;
    height: var(--wpls-div-thk, 2px);
    background: var(--wpls-div-col, #ff3b5c);
}

.wpls-client-viewport {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000000;
    overflow: hidden;
}

.wpls-render-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    z-index: 3;
    pointer-events: none;
}

.wpls-decoder-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    z-index: 2;
    pointer-events: auto;
    opacity: 1;
}

.wpls-match-badge {
    display: none !important;
}

.wpls-client-blur-mask {
    position: absolute;
    top: var(--wpls-blur-y, 3.2%);
    left: var(--wpls-blur-x, 2.8%);
    width: var(--wpls-blur-w, 9%);
    height: var(--wpls-blur-h, 5.8%);
    backdrop-filter: blur(var(--wpls-blur-rad, 14px)) brightness(0.9);
    -webkit-backdrop-filter: blur(var(--wpls-blur-rad, 14px)) brightness(0.9);
    border-radius: 6px;
    pointer-events: none;
    z-index: 10;
}

.wpls-client-badge {
    position: absolute;
    top: var(--wpls-bdg-y, 3.2%);
    left: var(--wpls-bdg-x, 2.8%);
    background: var(--wpls-bdg-bg, #e50914);
    color: var(--wpls-bdg-col, #ffffff);
    padding: 3px 8px;
    border-radius: var(--wpls-bdg-rad, 4px);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    z-index: 50 !important;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.wpls-client-bicon {
    font-size: 9px;
    line-height: 1;
}

.wpls-client-bdot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: wplsLivePulse 1.5s infinite;
}

.wpls-client-watermark {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 5;
}

.wpls-client-error-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 29, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 30;
}

.wpls-client-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 20;
    cursor: pointer;
}

.wpls-client-big-play-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #009ef7;
    border: 2px solid rgba(255, 255, 255, 0.95);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 158, 247, 0.55), 0 8px 30px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    outline: none;
    padding: 0;
}

.wpls-client-big-play-btn:hover {
    transform: scale(1.1);
    background: #008be5;
    box-shadow: 0 6px 30px rgba(0, 158, 247, 0.8), 0 10px 36px rgba(0, 0, 0, 0.8);
}

.wpls-client-big-play-btn svg {
    margin-left: 4px;
    fill: #ffffff;
}

.wpls-bottom-control-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 4px 14px 4px;
    z-index: 25;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wpls-client-viewport:hover .wpls-bottom-control-bar,
.wpls-client-viewport.controls-active .wpls-bottom-control-bar {
    opacity: 1;
}

.wpls-timeline,
.wpls-timeline-buffered,
.wpls-timeline-progress {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.wpls-ctrl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wpls-ctrl-left,
.wpls-ctrl-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpls-ctrl-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: transform 0.15s, color 0.15s;
}

.wpls-ctrl-btn:hover {
    color: #009ef7;
    transform: scale(1.1);
}

.wpls-ctrl-time {
    color: #dddddd;
    font-size: 11.5px;
    font-weight: 700;
    font-family: monospace;
}



.wpls-client-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 15;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.wpls-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #ff3b5c;
    border-radius: 50%;
    animation: wplsSpin 0.8s linear infinite;
}

.wpls-loader-text {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes wplsSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .wpls-client-frame {
        border-radius: min(var(--wpls-ply-rad, 18px), 12px);
    }
    .wpls-client-tabs-bar {
        padding: 8px 10px;
        gap: 8px;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .wpls-client-ch-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        padding: 2px 2px 4px 2px;
        width: 100%;
        max-width: 100%;
    }
    .wpls-client-ch-row::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    .wpls-client-ch-btn {
        flex-shrink: 0;
        padding: 6px 13px;
        font-size: 11.5px;
        border-radius: min(var(--wpls-tab-rad, 8px), 6px);
    }
    .wpls-client-vcount {
        padding: 2px 6px;
        font-size: 9.5px;
        flex-shrink: 0;
    }
    .wpls-bottom-control-bar {
        padding: 4px 8px;
    }
    .wpls-ctrl-btn {
        padding: 6px;
    }
    .wpls-client-badge {
        font-size: 10px;
        padding: 3px 8px;
        top: 8px;
        left: 8px;
    }
    .wpls-client-big-play-btn {
        width: 52px;
        height: 52px;
    }
    .wpls-client-big-play-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .wpls-client-frame {
        border-radius: min(var(--wpls-ply-rad, 18px), 8px);
    }
    .wpls-client-tabs-bar {
        padding: 6px 8px;
        gap: 6px;
    }
    .wpls-client-ch-btn {
        padding: 5px 11px;
        font-size: 11px;
    }
}
