/* --- 基础全局设置 --- */
*, *:before, *:after { box-sizing: border-box; } 

html { height: 100%; overflow-x: hidden; }
body { 
    margin: 0; 
    padding: 0; 
    background: #0b0c11; 
    color: #fff; 
    font-family: -apple-system, "Helvetica Neue", Helvetica, sans-serif; 
    width: 100%; 
    min-height: 100%;
    -webkit-tap-highlight-color: transparent; 
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; 
}

.video-container { background: #000; width: 100%; position: relative; z-index: 10; }
.bofang_box { width: 100%; height: 100%; }
iframe { width: 100% !important; height: 100% !important; border: none; }

@media screen and (min-width: 769px) {
    body { overflow: hidden; }
    .video-container { position: absolute; inset: 0; height: 100%; }
    
    .pc-back-btn { position: absolute; top: 20px; left: 20px; z-index: 999; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; text-decoration: none; background: rgba(255, 255, 255, 0.15); border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: all 0.3s; }
    .pc-back-btn:hover { background: rgba(255, 255, 255, 0.3); border-color: rgba(255, 255, 255, 0.5); }
    .pc-back-btn svg { width: 20px; height: 20px; fill: #fff; }

    .side-toolbar { position: absolute; right: 10px; bottom: 240px; z-index: 99; display: flex; flex-direction: column; gap: 20px; align-items: center; width: 60px; }
    .nav-group { display: flex; flex-direction: column; gap: 12px; }
    .nav-circle { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
    .nav-circle svg { width: 18px; height: 18px; fill: #fff; }
    .side-item { cursor: pointer; text-align: center; text-decoration: none; color: inherit; }
    .side-item svg { width: 32px; height: 32px; fill: #fff; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); }
    .side-item span { display: block; font-size: 11px; margin-top: 5px; color: #fff; text-shadow: 1px 1px 3px #000; }
    
    .drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; z-index: 10000; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
    .drawer-content { position: fixed; left: 0; right: 0; bottom: 0; height: 80vh; background: #1c1e26; border-radius: 20px 20px 0 0; z-index: 10001; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1); display: flex; flex-direction: column; visibility: hidden; width: 100%; max-width: 100%; }
    .drawer-content.active { transform: translateY(0); visibility: visible; }
    .drawer-header { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2a2c35; flex-shrink: 0; }
    .drawer-header h2 { font-size: 16px; margin: 0; color: #fff; }
    .drawer-close { font-size: 30px; cursor: pointer; color: #666; line-height: 1; margin-left: auto; }
    .scroll-area { flex: 1; overflow-y: auto; padding: 20px; }
    
    .mobile-info-section, .mobile-footer, .mobile-back-item, #back-to-top { display: none !important; }
}

@media screen and (max-width: 768px) {
    body { overflow-y: auto; overflow-x: hidden; position: relative; }
    .pc-back-btn { display: none !important; }
    
    .video-container { height: 65vw; position: relative; width: 100%; } 
    
    .side-toolbar { display: flex; justify-content: space-around; align-items: center; padding: 12px 5px; background: #16171d; border-bottom: 1px solid #25262d; position: relative; z-index: 999; }
    .nav-group { display: flex; gap: 12px; }
    .nav-circle { width: 38px; height: 38px; background: #2a2c35; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
    .nav-circle svg { width: 18px; height: 18px; fill: #fff; }
    .side-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
    .side-item svg { width: 26px; height: 26px; fill: #ccc; }
    .side-item span { font-size: 11px; margin-top: 4px; color: #999; }
    
    #back-to-top { 
        position: fixed; 
        right: 20px; 
        bottom: 250px; 
        width: 45px; 
        height: 45px; 
        background: rgba(42, 44, 53, 0.95); 
        border: 1px solid rgba(255,255,255,0.2); 
        border-radius: 50%; 
        display: none; 
        align-items: center; 
        justify-content: center; 
        z-index: 99999; 
        backdrop-filter: blur(10px); 
        -webkit-backdrop-filter: blur(10px); 
        box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
    }
    #back-to-top svg { width: 22px; height: 22px; fill: #fff; pointer-events: none; }

    .mobile-info-section { display: none !important; }
    .drawer-mask, .drawer-header .drawer-close, .pc-intro-btn, #intro-drawer { display: none !important; }
    .drawer-content { position: static !important; height: auto !important; transform: none !important; visibility: visible !important; display: block !important; background: transparent !important; width: 100% !important; border-radius: 0; }
    .drawer-header { border-bottom: none; padding: 15px 15px 5px; }
    .drawer-header h2 { font-size: 15px; color: #fafafa; font-weight: bold; border-left: 3px solid #fe2c55; padding-left: 10px; }
    .scroll-area { padding: 10px 15px; overflow: visible; }

    .mobile-footer { padding: 30px 20px 80px; background: #0b0c11; text-align: center; border-top: 1px solid #1c1e26; margin-top: 20px; position: relative; }
    .footer-links { display: flex; justify-content: center; gap: 25px; margin-bottom: 15px; }
    .footer-links a { color: #888; text-decoration: none; font-size: 14px; }
    .footer-copy { font-size: 11px; color: #444; line-height: 1.8; }
}

.play-source-tabs { display: flex; gap: 10px; padding: 10px 15px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.play-source-tabs::-webkit-scrollbar { display: none; }
.tab-item { padding: 8px 18px; background: #2a2c35; border-radius: 6px; font-size: 13px; color: #999; cursor: pointer; white-space: nowrap; }
.tab-item.active { background: rgba(254, 44, 85, 0.1) !important; color: #fe2c55 !important; border: 1px solid rgba(254, 44, 85, 0.3); font-weight: bold; }

.ep-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ep-item { background: #2a2c35; color: #ccc; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; text-decoration: none; }
.ep-item.active { background: #fe2c55 !important; color: #fff !important; font-weight: bold; }

.intro-box { display: flex; gap: 15px; margin-bottom: 20px; }
.intro-poster { width: 100px; height: 140px; border-radius: 8px; object-fit: cover; }
.intro-text h3 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.intro-text h3 a { color: #fff; text-decoration: none; }
.intro-meta { font-size: 13px; color: #888; line-height: 1.8; }
.intro-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.intro-tag { display: inline-block; background: #2a2c35; color: #aaa; padding: 4px 10px; border-radius: 4px; font-size: 11px; text-decoration: none; border: 1px solid #333; }
.intro-content { border-top: 1px solid #2a2c35; padding-top: 15px; color: #888; line-height: 1.7; font-size: 14px; }
.none { display: none; }