.wpls-client-root {
    width: 100%;
    max-width: 840px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

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

.wpls-client-frame {
    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-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;
    cursor: pointer;
    background: #000000;
    z-index: 2;
}

.wpls-decoder-video {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0.001;
    pointer-events: none;
    z-index: -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: 4;
}

.wpls-client-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    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: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    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: 10;
}

.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: 6;
    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: 8px 14px 10px;
    z-index: 6;
    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: 12px;
}

.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-ctrl-live-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #ff3b5c;
    background: rgba(255, 59, 92, 0.14);
    border: 1px solid rgba(255, 59, 92, 0.35);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.wpls-live-pulse-dot {
    width: 6px;
    height: 6px;
    background: #ff3b5c;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff3b5c;
    animation: wplsLivePulse 1.4s infinite ease-in-out;
}

@keyframes wplsLivePulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #ff3b5c; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.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: 10;
    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); }
}
