﻿/* --- BIẾN CẤU HÌNH GIAO DIỆN 2026 --- */
.video-js.yt-like {
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #ff0033;
    /* Màu đỏ YouTube */
    --accent-glow: rgba(255, 0, 51, 0.6);
    --pill-height: 48px;
    /* Cao hơn chút cho dễ bấm */
    --icon-size: 24px;
    --anim-speed: 0.3s;
    font-family: "Roboto", "Arial", sans-serif;
}

/* Ẩn control bar mặc định khi chưa hover (tùy chọn) */
.video-js.yt-like.vjs-user-inactive .vjs-control-bar {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* --- CONTROL BAR CONTAINER --- */
.video-js.yt-like .vjs-control-bar {
    position: absolute !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    height: 60px;
    background: transparent !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    padding: 0 !important;
    z-index: 90 !important;
    pointer-events: none;
    /* Để click xuyên qua vùng trống */
}

/* Cho phép click vào các nút con */
.video-js.yt-like .vjs-control-bar>* {
    pointer-events: auto;
}

/* --- THANH PROGRESS (Nằm trên cùng của cụm controls) --- */
.video-js.yt-like .vjs-progress-control {
    position: absolute !important;
    bottom: calc(var(--pill-height) + 15px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 20px !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

/* Nền thanh trượt */
.video-js.yt-like .vjs-progress-holder {
    height: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    transition: height 0.2s ease, transform 0.2s ease !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Hover vào thanh trượt thì to ra */
.video-js.yt-like .vjs-progress-control:hover .vjs-progress-holder {
    height: 6px !important;
    transform: scaleY(1.2);
}

/* Màu đã load */
.video-js.yt-like .vjs-load-progress {
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
}

/* Màu đang chạy + Glow effect */
.video-js.yt-like .vjs-play-progress {
    background: var(--accent-color) !important;
    border-radius: 10px !important;
    box-shadow: 0 0 10px var(--accent-glow) !important;
    /* Glow đỏ */
}

/* Cục tròn (Scrubber) */
.video-js.yt-like .vjs-play-progress:before {
    content: '' !important;
    position: absolute;
    top: 50%;
    right: -6px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    /* Ẩn mặc định */
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Hiện cục tròn khi hover */
.video-js.yt-like .vjs-progress-control:hover .vjs-play-progress:before {
    transform: translateY(-50%) scale(1);
}

/* Ẩn spacer thừa */
.video-js.yt-like .vjs-spacer,
.video-js.yt-like .vjs-custom-control-spacer {
    display: none !important;
}

/* --- HAI VIÊN THUỐC (PILLS) LEFT & RIGHT --- */
.video-js.yt-like .yt-left,
.video-js.yt-like .yt-right {
    height: var(--pill-height) !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 99px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
    gap: 4px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Hover vào pill làm nó sáng lên xíu */
.video-js.yt-like .yt-left:hover,
.video-js.yt-like .yt-right:hover {
    background: rgba(40, 40, 40, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.video-js.yt-like .yt-left {
    flex-grow: 0;
}

.video-js.yt-like .yt-right {
    margin-left: auto !important;
    /* Đẩy sang phải */
}

/* --- ICONS & BUTTONS --- */
.video-js.yt-like .vjs-button {
    width: 40px !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    transition: transform 0.2s ease;
}

.video-js.yt-like .vjs-button:hover {
    transform: scale(1.1);
    /* Phóng to nhẹ khi hover nút */
}

/* Icon font */
.video-js.yt-like .vjs-button .vjs-icon-placeholder:before {
    font-size: 22px !important;
    line-height: var(--pill-height) !important;
    color: var(--text-primary) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Icon Play to hơn xíu */
.video-js.yt-like .yt-left .vjs-play-control .vjs-icon-placeholder:before {
    font-size: 28px !important;
}

/* --- TIME DISPLAY --- */
.video-js.yt-like .vjs-time-control {
    font-size: 14px !important;
    /* Tăng nhẹ kích thước cho rõ */
    font-weight: 800 !important;
    /* Làm đậm chữ số */
    line-height: var(--pill-height) !important;
    padding: 0 5px !important;
    align-items: center !important;
    color: var(--text-primary) !important;
}

.video-js.yt-like .vjs-current-time {
    color: var(--text-primary) !important;
}

.video-js.yt-like .vjs-duration {
    color: var(--text-secondary) !important;
}

.video-js.yt-like .vjs-time-divider {
    color: var(--text-secondary) !important;
    padding: 0 2px !important;
}

/* --- VOLUME SLIDER (ANIMATION TRƯỢT NGANG) --- */
.video-js.yt-like .vjs-volume-panel {
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    transition: width 0.3s ease;
    margin-right: 5px;
}

.video-js.yt-like .vjs-volume-control {
    width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-left: 0px !important;
}

/* Hover vào loa thì hiện thanh volume */
.video-js.yt-like .vjs-volume-panel:hover .vjs-volume-control,
.video-js.yt-like .vjs-volume-panel:focus-within .vjs-volume-control {
    width: 80px !important;
    opacity: 1 !important;
    margin-left: 8px !important;
}

.video-js.yt-like .vjs-slider-horizontal {
    height: 4px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

.video-js.yt-like .vjs-volume-level {
    background: #fff !important;
    border-radius: 4px !important;
}

.video-js.yt-like .vjs-volume-level:before {
    display: none !important;
    /* Bỏ cục tròn volume cho tinh tế */
}

/* --- SKIP BUTTONS CUSTOM (-10/+10) --- */
.video-js.yt-like .yt-skip-btn {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    background: rgba(255, 255, 255, 0.1) !important;
    /* Nền mờ nhẹ cho nút skip */
    border-radius: 50% !important;
    /* Tròn vo */
    margin: 0 4px !important;
}

.video-js.yt-like .yt-skip-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2) !important;
}

.video-js.yt-like .yt-skip-btn svg {
    width: 18px !important;
    height: 18px !important;
    fill: #fff !important;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

/* --- PLAYBACK RATE --- */
.video-js.yt-like .vjs-playback-rate .vjs-playback-rate-value {
    font-size: 14px !important;
    font-weight: 700;
    line-height: var(--pill-height) !important;
}

/* --- RESPONSIVE MOBILE (DƯỚI 480PX) --- */
@media (max-width: 480px) {
    .video-js.yt-like .vjs-control-bar {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        height: 44px !important;
        /* Tăng nhẹ để vùng chạm tốt hơn trên mobile */
    }

    .video-js.yt-like .vjs-button {
        width: 35px !important;
    }

    .video-js.yt-like {
        --pill-height: 42px;
    }

    .video-js.yt-like .vjs-time-control {
        padding: 0 !important;
    }

    .video-js.yt-like .yt-left,
    .video-js.yt-like .yt-right {
        padding: 0 8px !important;
        backdrop-filter: blur(10px);
    }

    /* Ẩn nút volume slider trên mobile, chỉ hiện icon mute */
    .video-js.yt-like .vjs-volume-control {
        display: none !important;
    }

    .video-js.yt-like .yt-skip-btn {
        width: 30px !important;
        height: 30px !important;
    }

    .video-js.yt-like .vjs-remaining-time {
        display: none !important;
    }
}

/* Tùy chỉnh nút Skip để giống ảnh nhất */
.video-js.yt-like .yt-skip-btn {
    width: 55px !important;
    /* Tăng chiều rộng để đủ chỗ cho chữ và mũi tên */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 2px !important;
}

.video-js.yt-like .yt-skip-btn:hover {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    transform: scale(1.05);
}

/* Ẩn các thành phần trên mobile theo yêu cầu trước đó */
@media (max-width: 480px) {

    .video-js.yt-like .vjs-remaining-time,
    .video-js.yt-like .vjs-time-control,
    .video-js.yt-like .vjs-control:not(.vjs-play-control):not(.vjs-fullscreen-control):not(.yt-skip-btn) {
        /* Chỉnh sửa: chỉ giữ lại Play, Fullscreen và Skip trên mobile */
    }

    .video-js.yt-like .yt-skip-btn {
        display: none !important;
        /* Ẩn nút skip trên mobile */
    }
}

/* Container thông báo ở giữa màn hình */
.vjs-center-alert-next {
    position: absolute;
    top: 50%;
    right: 15%;
    /* Vị trí lệch phải */
    transform: translateY(-50%) scale(0.8);
    z-index: 100;
    pointer-events: none;
    /* Không cản trở việc click vào video */
    opacity: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hiệu ứng khi được kích hoạt */
.vjs-center-alert-next.show {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-text {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
}

.alert-icon {
    width: 20px;
    height: 20px;
}

/* Ẩn bớt các thành phần thời gian trên Mobile như yêu cầu trước */
@media (max-width: 480px) {

    .vjs-remaining-time,
    .vjs-current-time,
    .vjs-duration,
    .vjs-time-divider {
        display: none !important;
    }

    .vjs-center-alert-next {
        right: 10%;
        /* Trên mobile lệch ít hơn để tránh bị che */
    }
}

/* Style chung cho cả 2 thông báo */
.vjs-center-alert-skip {
    position: absolute;
    top: 50%;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Vị trí nút bên trái */
.vjs-center-alert-skip.prev {
    left: 15%;
    transform: translateY(-50%) scale(0.8);
}

/* Vị trí nút bên phải */
.vjs-center-alert-skip.next {
    right: 15%;
    transform: translateY(-50%) scale(0.8);
}

/* Khi hiển thị */
.vjs-center-alert-skip.show {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-text {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
}

.alert-icon {
    width: 20px;
    height: 20px;
}

/* Responsive cho Mobile */
@media (max-width: 480px) {
    .vjs-center-alert-skip.prev {
        left: 10%;
    }

    .vjs-center-alert-skip.next {
        right: 10%;
    }

    .alert-text {
        font-size: 16px;
    }
}

.vjs-center-alert-skip {
    position: absolute;
    top: 50%;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Đậm hơn chút để dễ đọc số lớn */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 25px;
    /* Tăng padding ngang */
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: opacity 0.2s ease;
    min-width: 80px;
    /* Đảm bảo khung không quá bé */
    text-align: center;
}

.vjs-center-alert-skip.prev {
    left: 15%;
    transform: translateY(-50%) scale(0.9);
}

.vjs-center-alert-skip.next {
    right: 15%;
    transform: translateY(-50%) scale(0.9);
}

.vjs-center-alert-skip.show {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    animation: alertFlash 0.5s ease-out;
}

@keyframes alertFlash {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* --- VOLUME ALERT STYLE --- */
.vjs-center-alert-volume {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vjs-center-alert-volume.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    animation: alertFlash 0.5s ease-out;
}

.vjs-center-alert-volume .alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vjs-center-alert-volume .alert-icon {
    width: 24px;
    height: 24px;
}

.vjs-center-alert-volume .alert-text {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
}

.alert-text {
    color: white;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 22px;
    /* Chữ to rõ ràng */
    font-weight: 800;
    white-space: nowrap;
}


.vjs-menu-button-popup .vjs-menu {
    bottom: -23px;
    z-index: 99999 !important;
}

/* Progress để thấp hơn menu/pill */
.video-js.yt-like .vjs-progress-control {
    z-index: 50 !important;
}

/* Nâng 2 pill lên trên progress */
.video-js.yt-like .yt-left,
.video-js.yt-like .yt-right {
    position: relative !important;
    z-index: 200 !important;
}

/* Menu popup luôn trên cùng */
.video-js.yt-like .vjs-menu-button-popup {
    position: relative !important;
}

.video-js.yt-like .vjs-menu-button-popup .vjs-menu {
    z-index: 9999 !important;
    pointer-events: auto !important;
}

.video-js.yt-like .vjs-progress-control {
    pointer-events: none !important;
}

.video-js.yt-like .vjs-progress-control .vjs-progress-holder {
    pointer-events: auto !important;
}


.vjs-quality-menu-item-sub-label {
    display: none !important
}


/* 1. Trạng thái ẨN: Khi không có user-active (ổn định cho cả Mobile và Desktop) */
.video-js.yt-like:not(.vjs-user-active) .vjs-control-bar {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(15px) !important;
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s !important;
    pointer-events: none !important;
}

/* 2. Trạng thái HIỆN: Khi có user-active hoặc khi PAUSED */
.video-js.yt-like.vjs-user-active .vjs-control-bar,
.video-js.yt-like.vjs-paused .vjs-control-bar,
.video-js.yt-like.vjs-seeking .vjs-control-bar {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: opacity .2s ease, transform .2s ease, visibility 0s !important;
    pointer-events: none !important;
    /* Vẫn cho click xuyên qua bar */
}

/* 3. Đảm bảo các nhóm và nút bên trong luôn bấm được */
.video-js.yt-like .vjs-control-bar *,
.video-js.yt-like .yt-group,
.video-js.yt-like .vjs-settings-button {
    pointer-events: auto !important;
}

/* Đảm bảo menu cài đặt hiện lên trên cùng */
.vjs-menu {
    z-index: 2000 !important;
}

.yt-group {
    display: flex !important;
    align-items: center !important;
    justify-content: center;

    /* nền đen rất nhẹ */
    background: rgba(0, 0, 0, 0.12) !important;

    -webkit-backdrop-filter: brightness(0.9);
    backdrop-filter: brightness(0.9);

    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);

    height: 40px;
    padding: 0 6px;
    margin-right: 8px;
    box-sizing: border-box;

    box-shadow: none !important;

    transition: background-color .2s ease, border-color .2s ease;
}

.yt-group:hover {
    background: rgba(0, 0, 0, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.12);
}


.vjs-remaining-time {
    display: none !important;
}

.vjs-quality-menu-wrapper {
    display: none !important;
}

.vjs-playback-rate {
    display: none !important;
}

/* --- YT PILLS CSS --- */
/* Reset bar */
.video-js.yt-like .vjs-control-bar {
    background: none !important;
    background-color: transparent !important;
    height: 60px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 12px 8px 12px;
    /* Đẩy xuống chút để nhường chỗ cho progress bar */
    bottom: 0;
}

/* Progress Bar - Đưa lên trên để tránh đè lên nút */
.video-js.yt-like .vjs-progress-control {
    position: absolute !important;
    top: -12px !important;
    /* Đẩy lên trên hẳn để không đè lên nút */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 24px !important;
    background: transparent !important;
    z-index: 10 !important;
}

/* Button Style chung - Căn giữa tuyệt đối */
.yt-group .vjs-button {
    width: 36px !important;
    height: 36px !important;
    background: transparent !important;
    border: none;
    margin: 0 1px;
    border-radius: 50%;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    /* Reset vjs default */
}

.vjs-playback-rate,
.vjs-quality-menu-button,
.vjs-quality-selector,
.vjs-resolution-button,
.vjs-quality-button,
.vjs-hls-quality-selector,
.vjs-hd-label,
.vjs-quality-menu-button-badge {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    display: block;
}

.vjs-chapters-button,
.vjs-descriptions-button,
.vjs-subs-caps-button,
.vjs-audio-button,
.vjs-remaining-time,
.vjs-text-track-display {
    display: none !important;
}

.yt-group .vjs-button:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

.yt-group .vjs-icon-placeholder:before {
    font-size: 20px;
    line-height: 1 !important;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: static !important;
    display: block !important;
}

/* --- GROUP 1: PLAYBACK --- */
.yt-group-playback {
    padding: 0 6px;
}

.yt-group-playback .vjs-play-control .vjs-icon-placeholder:before {
    font-size: 24px;
}

/* Nút Skip center icon */
.yt-skip-btn {
    display: flex !important;
    align-items: center !important;
}

.yt-skip-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* --- GROUP 2: VOLUME --- */
.yt-group-volume {
    padding-right: 4px;
}

.yt-group-volume:hover .vjs-volume-control.vjs-volume-horizontal,
.vjs-volume-panel:focus-within .vjs-volume-control.vjs-volume-horizontal {
    width: 60px !important;
    opacity: 1 !important;
    margin-left: 4px;
}

.vjs-volume-control.vjs-volume-horizontal {
    width: 0;
    opacity: 0;
    margin: 0;
    transition: width 0.2s, opacity 0.2s;
}

.vjs-volume-panel {
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: 100%;
}

/* --- GROUP 3: TIME --- */
.yt-group-time {
    padding: 0 16px;
    min-width: auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
}

.vjs-time-control {
    align-items: center !important;
    padding: 0 !important;
    margin: 0 2px;
    min-width: auto !important;
    line-height: normal !important;
    height: auto !important;
}

.vjs-time-divider {
    min-width: auto !important;
    padding: 0 2px !important;
}

.vjs-current-time,
.vjs-time-divider,
.vjs-duration {
    display: flex !important;
}

/* --- GROUP 4: TOOLS (Right) --- */
.yt-group-tools {
    margin-left: auto !important;
    margin-right: 0 !important;
    padding: 0 4px;
    display: flex !important;
}

/* ÉP THỨ TỰ TOOLS GROUP */
.vjs-fullscreen-control {
    order: 100 !important;
}

.vjs-settings-button {
    order: 50 !important;
}

.vjs-picture-in-picture-control {
    order: 10 !important;
}

/* Xóa bóng control bar gốc */
.video-js .vjs-control-bar:before {
    display: none;
}

/* --- YT SETTINGS CSS --- */
.vjs-settings-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-settings-hd-badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -6px;
    background: #f00;
    /* YouTube Red */
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    padding: 1px 3px;
    border-radius: 2px;
    line-height: 1;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.vjs-settings-button svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.yt-settings-menu {
    position: absolute;
    bottom: 60px;
    right: 50px;
    width: 280px;
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.yt-settings-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yt-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    color: #fff;
}

.yt-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.yt-menu-icon {
    margin-right: 12px;
    stroke: #aaa;
    flex-shrink: 0;
}

.yt-menu-label {
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

.yt-menu-value {
    font-size: 13px;
    color: #aaa;
    margin-right: 8px;
}

.yt-menu-header {
    display: flex;
    align-items: center;
    padding: 8px 8px 8px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

.yt-menu-header span {
    font-size: 15px;
    font-weight: 500;
    margin-left: 4px;
}

.yt-menu-back {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-menu-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.yt-menu-check {
    width: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-menu-item.active .yt-menu-label {
    font-weight: 500;
}

/* --- YT THUMBNAIL PREVIEW CSS --- */
.vjs-thumbnail-preview {
    position: absolute;
    bottom: 40px;
    /* Above progress bar */
    left: 0;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.1s ease;
    z-index: 200;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vjs-thumbnail-preview.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.vjs-thumb-img {
    display: block;
    width: 160px;
    height: 90px;
    object-fit: cover;
    background: #111;
    border-radius: 4px;
    margin-bottom: 4px;
}

.vjs-thumb-time {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    padding: 4px 14px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    margin-top: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.vjs-thumb-canvas {
    border-radius: 8px;
    background: transparent;
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}


/* Hide default tooltip */
.video-js .vjs-progress-control:hover .vjs-mouse-display,
.video-js .vjs-progress-control:hover .vjs-time-tooltip {
    visibility: hidden;
}

/* Hide on Mobile */
@media (max-width: 768px) {
    .vjs-thumbnail-preview {
        display: none !important;
    }
}