/* ZiPlayer Pro - Glassmorphism */
.ziplayer {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    direction: ltr;
    user-select: none;
}

.ziplayer video {
    width: 100%;
    display: block;
}

/* Big Play Button */
.zp-bigplay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 70px;
    color: white;
    cursor: pointer;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    transition: 0.3s;
}
.zp-bigplay.hide {
    opacity: 0;
    pointer-events: none;
}

/* Controls */
.zp-controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: 0.3s;
}
.ziplayer:hover .zp-controls {
    opacity: 1;
}

.zp-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    transition: 0.2s;
}
.zp-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* Progress Bar */
.zp-progress {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}
.zp-progress-fill {
    height: 100%;
    width: 0%;
    background: #ff8800;
    border-radius: 4px;
}
.zp-hover-time {
    position: absolute;
    bottom: 14px;
    padding: 2px 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    transform: translateX(-50%);
    display: none;
}

/* Quality Menu */
.zp-quality {
    position: absolute;
    bottom: 50px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    padding: 6px 10px;
    border-radius: 8px;
    display: none;
}
.zp-quality div {
    padding: 4px 8px;
    color: #fff;
    cursor: pointer;
}
.zp-quality div:hover {
    background: rgba(255,255,255,0.2);
}
/* Fix fullscreen centering */
.ziplayer:fullscreen video {
    object-fit: contain !important;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ziplayer:-webkit-full-screen video {
    object-fit: contain !important;
    width: 100%;
    height: 100%;
}

.ziplayer:-moz-full-screen video {
    object-fit: contain !important;
    width: 100%;
    height: 100%;
}
