/* ================= 全局基础 ================= */
body { 
    font-family: system-ui, -apple-system, sans-serif; 
    background-color: #f8fafc; 
    color: #1e293b; 
}

/* ================= 工具类 ================= */
.glass { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(255,255,255,0.3); 
}

.aspect-video { aspect-ratio: 16 / 9; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ================= 滚动条 ================= */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }

/* ================= 动画 ================= */
.fade-enter-active, .fade-leave-active { transition: opacity 0.2s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ================= 播放器核心样式 ================= */
.player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.5);
    z-index: 0;
}

.artplayer-app, .native-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 10;
}

/* 移动端原生视频样式 (从 play.html 迁移) */
video.native-video { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    outline: none; 
    display: block; 
    background: #000; 
}
.mobile-logo { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    width: 80px; 
    opacity: 0.8; 
    pointer-events: none; 
    z-index: 20; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); 
}

/* 权限拦截遮罩 */
.auth-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

/* ================= 互动按钮激活态 ================= */
.btn-active { 
    color: #6366f1; 
    background-color: #eef2ff; 
    border-color: #c7d2fe; 
}
.btn-active i { color: #6366f1; }

.btn-rose-active { 
    color: #f43f5e; 
    background-color: #fff1f2; 
    border-color: #fecdd3; 
}
.btn-rose-active i { color: #f43f5e; }

.btn-amber-active { 
    color: #d97706; 
    background-color: #fffbeb; 
    border-color: #fde68a; 
}
.btn-amber-active i { color: #d97706; }

/* ================= ArtPlayer 主题适配 ================= */
.art-control {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent) !important;
}

.art-control-progress { height: 4px !important; }
.art-control-progress::-webkit-slider-thumb {
    width: 12px !important;
    height: 12px !important;
}

/* ================= 移动端适配 ================= */
@media (max-width: 768px) {
    .player-wrapper {
        border-radius: 0;
    }
}
