/* Cookie Cutter Custom Player Control Bar */
.cc-custom-player-ui {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-player-controls-bar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
}

.cc-player-controls-bar .cc-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.cc-player-controls-bar .cc-btn:hover {
    color: #6366F1;
    transform: scale(1.1);
}

.cc-progress-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.cc-progress-bar {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.cc-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6366F1;
    cursor: pointer;
}

.cc-time-display {
    font-size: 11px;
    color: #9CA3AF;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cc-custom-player-ui.cc-cp-autohide.cc-is-idle {
    opacity: 0 !important;
}

/* Control Bar Base */
.cc-player-controls-bar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    box-sizing: border-box;
}

/* Icons */
.cc-player-controls-bar .cc-btn svg, 
.cc-player-controls-bar .cc-btn i,
.cc-player-controls-bar .cc-btn .et-pb-icon { /* 🛑 NEW: Target Divi's custom font icon wrapper */
    width: 18px;
    height: 18px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Preset: Cookie Cutter Default */
/* Preset: Cookie Cutter Standard */
.cp-style-cc-default {
    background: rgba(20, 20, 20, 0.9); /* Standard dark web UI */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    color: #ffffff; /* High contrast text/icons */
}
.cp-style-cc-default .cc-btn {
    color: #ffffff;
    transition: opacity 0.2s;
}
.cp-style-cc-default .cc-btn:hover {
    opacity: 0.8;
}
/* Cookie Cutter Purple Accents */
.cp-style-cc-default .cc-progress-bar::-webkit-slider-thumb { 
    background: #6366F1; 
}
.cp-style-cc-default .cc-progress-bar::-moz-range-thumb { 
    background: #6366F1; 
}
.cp-style-cc-default .cc-time-display {
    color: #E5E7EB; 
}

/* Preset: Glassmorphism (Light) */
.cp-style-glassmorphism {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.cp-style-glassmorphism .cc-btn {
    color: #ffffff;
}
.cp-style-glassmorphism .cc-progress-bar::-webkit-slider-thumb { 
    background: #ffffff; /* Clean white accent for light glass */
}

.cp-style-glassmorphism .cc-time-display {
    color: #ffffff;
}

/* Interactive Elements */
.cc-progress-bar {
    width: 100%; height: 4px; appearance: none;
    background: rgba(255, 255, 255, 0.3); border-radius: 2px;
}
.cc-progress-bar::-webkit-slider-thumb {
    appearance: none; width: 12px; height: 12px; border-radius: 50%; cursor: pointer;
}
/* 🛑 Prevent sub-pixel thumbnail bleed on aspect-ratio wrappers */
.cc-custom-player-target iframe,
.cc-custom-player-target video {
    width: calc(100% + 2px) !important;
    height: calc(100% + 2px) !important;
    top: -1px !important;
    left: -1px !important;
}