.zp-wrap {
    display: flex;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    font-family: Roboto, Arial, sans-serif;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
}

.zp-wrap * { box-sizing: border-box; }

/* Plyr responsive override */
.zp-player-holder .plyr,
.zp-player-holder video,
.zp-player-holder iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    display: block;
}

/* Player column */
.zp-player-col {
    flex: 1;
    position: relative;
    min-width: 0;
}

/* Poster */
.zp-poster {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #111 center/cover no-repeat;
    cursor: pointer;
}
.zp-poster-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.6) 100%);
}
.zp-poster-text {
    position: absolute;
    bottom: 60px; left: 0; right: 0;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    pointer-events: none;
}
.zp-poster-title {
    font-size: 2em;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.zp-wrap .zp-poster-play {
    position: absolute !important;
    top: 50% !important; left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 64px !important; height: 64px !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,.6) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    transition: background .2s, transform .2s !important;
    backdrop-filter: blur(4px);
    box-sizing: border-box !important;
    min-width: 0 !important; min-height: 0 !important;
}
.zp-wrap .zp-poster-play:hover { background: rgba(0,0,0,.85) !important; transform: translate(-50%,-50%) scale(1.1) !important; }
.zp-wrap .zp-poster-play svg { flex-shrink: 0; }

/* Player holder */
.zp-player-holder { width: 100%; position: relative; }

/* Plyr center play button — match poster play style */
.zp-player-holder .plyr__control--overlaid {
    background: rgba(0,0,0,.6) !important;
    border: none !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transition: background .2s, transform .2s !important;
}
.zp-player-holder .plyr__control--overlaid:hover {
    background: rgba(0,0,0,.85) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}
.zp-player-holder .plyr__control--overlaid svg {
    width: 28px !important;
    height: 28px !important;
    margin-left: 4px;
}

/* Plyr YouTube-style overrides */
.zp-player-holder .plyr {
    --plyr-color-main: #ff0000;
    --plyr-control-icon-size: 16px;
    --plyr-control-spacing: 8px;
    --plyr-range-thumb-height: 10px;
    --plyr-range-thumb-background: #fff;
    --plyr-range-track-height: 3px;
    --plyr-range-fill-background: #ff0000;
    --plyr-audio-range-track-background: rgba(255,255,255,0.25);
    --plyr-video-range-track-background: rgba(255,255,255,0.25);
    --plyr-video-control-color: #fff;
    --plyr-video-controls-background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.75));
    --plyr-font-size-base: 12px;
    --plyr-font-size-time: 12px;
    font-size: 12px;
}
.zp-player-holder .plyr__controls {
    padding: 6px 8px 8px !important;
    gap: 4px !important;
}
.zp-player-holder .plyr__control {
    padding: 4px !important;
    border-radius: 3px !important;
}
.zp-player-holder .plyr__progress__container {
    margin: 0 4px !important;
}
.zp-player-holder .plyr__progress input[type=range],
.zp-player-holder .plyr__volume input[type=range] {
    background: transparent !important;
}
.zp-player-holder .plyr__progress input[type=range]::-webkit-slider-runnable-track,
.zp-player-holder .plyr__volume input[type=range]::-webkit-slider-runnable-track {
    background: rgba(255,255,255,0.25) !important;
    height: 3px !important;
    border-radius: 2px !important;
}

/* Download button */
.zp-download-btn {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 10;
    background: rgba(0,0,0,.6);
    border: none;
    color: #fff;
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    backdrop-filter: blur(4px);
}
.zp-download-btn:hover { background: rgba(0,0,0,.85); }
.zp-download-btn svg { width: 16px; height: 16px; fill: #fff; }
.zp-player-holder:hover .zp-download-btn { display: flex; }

/* Sidebar */
.zp-sidebar-col {
    width: 290px;
    flex-shrink: 0;
    background: #111;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #222;
}

.zp-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #1a1a1a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}
.zp-arrow { color: #888; font-size: 11px; }

/* Video list */
.zp-video-list {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.zp-video-list::-webkit-scrollbar { width: 4px; }
.zp-video-list::-webkit-scrollbar-thumb { background: #333; }

.zp-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #1e1e1e;
    gap: 10px;
    transition: background .15s;
}
.zp-item:hover { background: #1e1e1e; }
.zp-item.zp-active { background: #2a2a2a; }

.zp-item-thumb {
    width: 60px; height: 44px;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    background: #333;
    position: relative;
}
.zp-item-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.zp-thumb-empty { width: 100%; height: 100%; background: #2a2a2a; }

.zp-item-meta { flex: 1; min-width: 0; }
.zp-item-title {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zp-item-desc {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Footer */
.zp-sidebar-footer {
    padding: 8px 10px;
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    flex-shrink: 0;
}
.zp-search-row { display: flex; gap: 6px; margin-bottom: 6px; }
.zp-search {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #ccc;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 12px;
    outline: none;
}
.zp-search:focus { border-color: #555; }
.zp-nav-row { display: flex; justify-content: flex-end; gap: 4px; }
.zp-nav-btn {
    background: #2a2a2a;
    border: 1px solid #333;
    color: #ccc;
    width: 30px; height: 28px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.zp-nav-btn:hover { background: #3a3a3a; color: #fff; }

/* Hidden items from search */
.zp-item.zp-hidden { display: none; }

/* Responsive */
@media (max-width: 640px) {
    .zp-wrap { flex-direction: column; }
    .zp-sidebar-col { width: 100%; border-left: none; border-top: 1px solid #222; }
    .zp-video-list { max-height: 240px; }
}
