@layer utilities {
    .content-auto {
        content-visibility: auto;
    }

    .video-container {
        @apply relative w-full bg-black rounded-lg overflow-hidden shadow-2xl;
    }

    .custom-video-controls {
        @apply absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent p-4 opacity-0 transition-opacity duration-300;
    }

    .video-container:hover .custom-video-controls {
        @apply opacity-100;
    }

    .control-btn {
        @apply text-white hover:text-primary transition-colors duration-200 cursor-pointer;
    }

    .progress-bar {
        @apply h-1 bg-gray-600 rounded-full overflow-hidden cursor-pointer;
    }

    .progress-filled {
        @apply h-full bg-primary rounded-full transition-all duration-100;
    }

    .video-item {
        @apply flex items-center p-3 rounded-lg mb-2 cursor-pointer transition-all duration-200 border-l-4 border-transparent hover:bg-secondary/50;
    }

        .video-item.active {
            @apply border-primary bg-secondary/80;
        }

    .video-thumbnail {
        @apply w-20 h-12 object-cover rounded mr-3 bg-gray-700;
    }

    .scrollbar-thin {
        scrollbar-width: thin;
    }

        .scrollbar-thin::-webkit-scrollbar {
            width: 6px;
        }

        .scrollbar-thin::-webkit-scrollbar-track {
            @apply bg-gray-800 rounded-full;
        }

        .scrollbar-thin::-webkit-scrollbar-thumb {
            @apply bg-gray-600 rounded-full hover:bg-gray-500;
        }
}

#videoList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar {
    background-color: #141414;
}
.video-thumbnail {
    width: 80px;
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .video-thumbnail svg {
        color: var(--text-secondary);
    }

.video-info {
    flex: 1;
}

.yz-neighborcourse-item 
{
    display: flex;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.03);
}
    .yz-neighborcourse-item:hover {
   /*     background: rgba(255, 255, 255, 0.1);*/
        background: #2e2e2e;
    }
.yz-neighborcourse-item-selected, .yz-neighborcourse-item-selected:hover{
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #1456f0;
}
.yz-neighborcourse-item .name {
    color: #e5e7eb;
    font-size: 14px;
}
.yz-neighborcourse-item .desc {
    color: #9ca3af;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.section-title span {
    color: #9ca3af;
}
h1.text-white, nav a {
    color: #9ca3af !important;
}
    h1.text-white img{

    width:25px;
    margin-right:8px;
    }
h1.text-white {
    display: inline-flex;
    align-items:center;
}
    .warning-title {
        display: flex;
        align-items: center;
        color: rgba(239, 68, 68, 0.4);
        font-weight: 600;
        margin-bottom: 8px;
    }
    .warning-title svg {
        margin-right: 8px;
    }
.warning-text {
    font-size: 13px;
    color: #535963;
    line-height: 1.5;
}
.warning-card {
    /*background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);*/
    padding: 15px;
    border-radius: 6px;
    border:solid 1px #1a1a1a;
}
.copyright {

    font-size:12px;
    color: #9ca3af;
}
.text-primary {
    color: #3b82f6!important;
}
body.bg{
    background: #0b0b0b;
}
header.bg, footer.bg {
    background: #141414;
}
footer p a{
padding-left:10px;
}
/* 以下整体滚动条设置 */
#videoList {
    scrollbar-width: thin; /* Firefox支持 */
    scrollbar-color: #4a5568 transparent; /* 滑块颜色 | 完全透明轨道#718096*/
}

    /* WebKit浏览器定制（Chrome/Safari/Edge） */
    #videoList::-webkit-scrollbar {
        width: 8px; /* 保持纤细 */
        height: 8px; /* 横向滚动条同理 */
    }

    #videoList::-webkit-scrollbar-track {
        background: transparent; /* 关键：完全透明轨道 */
        border-left: 1px solid rgba(229, 231, 235, 0.3); /* 极细淡灰色竖线（可选） */
    }

    #videoList::-webkit-scrollbar-thumb {
        background: #718096; /* 中性灰滑块 */
        border-radius: 4px; /* 轻微圆角 */
        border: 2px solid transparent; /* 透明边框增加间距 */
        background-clip: padding-box; /* 防止背景色溢出 */
    }

        #videoList::-webkit-scrollbar-thumb:hover {
            background: #4a5568; /* 悬停时颜色加深 */
        }
/* 以上整体滚动条设置 */