/* joohalab-lms-player custom premium skin styling */
.jl-premium-player-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    aspect-ratio: 16 / 9;
    user-select: none;
}

.jl-premium-player-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
}

/* Watermark styles */
.jl-player-watermark-overlay {
    position: absolute;
    top: 15%;
    left: 15%;
    transition: filter 0.35s ease;
    filter: opacity(1);
    z-index: 9;
    pointer-events: none;
    font-family: 'Pretendard', sans-serif;
    font-weight: 800;
    user-select: none;
}

/* Big center play overlay */
.jl-player-center-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 80px;
    height: 80px;
    background: rgba(193, 141, 113, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.jl-premium-player-container.playing .jl-player-center-play-overlay {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}
.jl-player-center-play-overlay:hover {
    background: #8d654f;
    transform: translate(-50%, -50%) scale(1.08);
}
.jl-player-center-play-overlay svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    margin-left: 4px;
}

/* Custom Controls Bar */
.jl-player-controls-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) 70%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    z-index: 11;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}
.jl-premium-player-container.playing.controls-hidden .jl-player-controls-bar {
    transform: translateY(100%);
    opacity: 0;
}

.jl-player-controls-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-top: 4px;
}

/* Timeline seeker styles */
.jl-player-timeline-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}
.jl-player-timeline-container:hover {
    height: 8px;
}
.jl-player-timeline-progress {
    height: 100%;
    background: #c18d71;
    border-radius: 3px;
    width: 0;
    position: relative;
}
.jl-player-timeline-handle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.jl-player-timeline-container:hover .jl-player-timeline-handle {
    transform: translateY(-50%) scale(1);
}

/* Control buttons style */
.jl-player-ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.2s;
    outline: none;
}
.jl-player-ctrl-btn:hover {
    background-color: rgba(255,255,255,0.15);
}
.jl-player-ctrl-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Time display */
.jl-player-time-display {
    color: #ddd;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Pretendard', sans-serif;
    margin-left: 8px;
    margin-right: auto;
}

/* Volume container */
.jl-player-volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}
.jl-player-volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}
.jl-player-volume-progress {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    width: 100%;
}
.jl-player-volume-handle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
}

/* Speed controller selectors in bar */
.jl-player-speed-pill-group {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 2px;
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.15);
}
.jl-player-speed-pill {
    background: none;
    border: none;
    color: #ccc;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Pretendard', sans-serif;
}
.jl-player-speed-pill.active {
    background: #c18d71;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Toast alert inside player */
.jl-player-toast {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(26, 21, 18, 0.9);
    border: 1px solid rgba(193, 141, 113, 0.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: 'Pretendard', sans-serif;
    pointer-events: none;
    opacity: 0;
    z-index: 12;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}
.jl-player-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* YouTube Player specific overrides */
.jl-premium-player-container.youtube-player .jl-player-center-play-overlay {
    display: none !important;
}
