/**
 * tt888av.com &#x89C6;&#x9891;&#x64AD;&#x653E;&#x9875;&#x4E13;&#x7528;&#x6837;&#x5F0F;
 * &#x79FB;&#x52A8;&#x7AEF; SEO &#x4F18;&#x5316;&#x7248;&#x672C;
 */

/* ========== &#x5F15;&#x7528;&#x4E3B;&#x6837;&#x5F0F; ========== */
/* &#x4E3B;&#x6837;&#x5F0F;&#x5DF2;&#x5305;&#x542B;&#x5168;&#x5C40;&#x6837;&#x5F0F; */

/* ========== &#x64AD;&#x653E;&#x5668;&#x533A;&#x57DF; ========== */
.player-section { margin-top: 20px; }
.player-container { display: flex; gap: 20px; }
.player-main { flex: 1; }
.player-sidebar { width: 300px; }

/* &#x89C6;&#x9891;&#x64AD;&#x653E;&#x5668; */
.video-player { position: relative; padding-top: 56.25%; background: #000; border-radius: 10px; overflow: hidden; }
.video-player video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* &#x63A8;&#x8350;&#x89C6;&#x9891;&#x5361;&#x7247; */
.related-section { margin-top: 30px; }
.related-title-main { font-size: 22px; margin-bottom: 20px; padding-left: 15px; border-left: 4px solid #e94560; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.video-card { background: #1a1a2e; border-radius: 10px; overflow: hidden; transition: transform 0.3s; touch-action: manipulation; }
.video-card:hover { transform: translateY(-5px); }
.video-cover { position: relative; padding-top: 56.25%; background: #eee; border-radius: 6px; }
.video-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.video-info { padding: 12px; }
.video-title { font-size: 14px; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4; min-height: 36px; }
.video-meta { font-size: 12px; color: #999; }

/* &#x64AD;&#x653E;&#x524D;&#x5E7F;&#x544A; */
.pre-ad { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; display: flex; align-items: center; justify-content: center; z-index: 100; }
.pre-ad-content { text-align: center; }
.pre-ad-timer { position: absolute; top: 20px; right: 20px; background: rgba(0,0,0,0.7); padding: 5px 15px; border-radius: 5px; color: #fff; }
.pre-ad-skip { position: absolute; bottom: 20px; right: 20px; background: #e94560; padding: 10px 20px; border-radius: 5px; cursor: pointer; color: #fff; min-height: 44px; display: flex; align-items: center; }

/* &#x6682;&#x505C;&#x5E7F;&#x544A; */
.pause-ad { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.8); padding: 20px; border-radius: 10px; display: none; z-index: 50; text-align: center; }

/* &#x89C6;&#x9891;&#x4FE1;&#x606F; */
.video-detail-info { background: #1a1a2e; padding: 20px; border-radius: 10px; margin-top: 20px; }
.video-detail-title { font-size: 24px; margin-bottom: 15px; color: #fff; line-height: 1.3; }
.video-detail-meta { display: flex; gap: 20px; color: #999; margin-bottom: 15px; font-size: 14px; flex-wrap: wrap; }
.video-detail-desc { color: #ccc; line-height: 1.6; font-size: 14px; }

/* &#x8FD4;&#x56DE;&#x6309;&#x94AE; */
.back-btn { padding: 8px 20px; background: #e94560; border-radius: 5px; font-size: 14px; color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.back-btn:hover { background: #d63850; }

/* &#x5BFC;&#x822A;&#x4E0B;&#x65B9;&#x5E7F;&#x544A;&#x4F4D; */
.ad-header-nav { margin: 20px 0; text-align: center; }
.ad-header-nav img { max-width: 100%; height: auto; }

/* ========== &#x4FA7;&#x8FB9;&#x680F;&#x76F8;&#x5173;&#x5217;&#x8868; - &#x4E0E;&#x9996;&#x9875;&#x4FDD;&#x6301;&#x4E00;&#x81F4; ========== */
.sidebar-box { background: #fff; padding: 15px; border-radius: 10px; margin-bottom: 20px; }
.sidebar-title { font-size: 18px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.related-list { list-style: none; }
.related-list li { padding: 10px 0; border-bottom: 1px solid #eee; }
.related-list li:last-child { border-bottom: none; }
.related-list a { display: flex; gap: 10px; }
.related-list img { width: 100px; height: 60px; object-fit: cover; border-radius: 5px; }
.related-title { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* &#x79FB;&#x52A8;&#x7AEF;&#x9690;&#x85CF;&#x4FA7;&#x8FB9;&#x680F; */
@media screen and (max-width: 768px) {
    .sidebar-box { display: none; }
    .related-list a { flex-direction: column; }
    .related-list img { width: 100%; height: auto; aspect-ratio: 16/9; }
    .related-title { font-size: 14px; margin-top: 5px; }
}

/* ========== &#x9009;&#x96C6; ========== */
.episode-section { margin-top: 20px; }
.episode-title { font-size: 18px; margin-bottom: 15px; }
.episode-list { display: flex; gap: 10px; flex-wrap: wrap; }
.episode-btn { padding: 10px 20px; background: #2a2a3e; border-radius: 5px; transition: all 0.3s; }
.episode-btn:hover, .episode-btn.active { background: #e94560; }

/* ========== &#x5E95;&#x90E8; ========== */
.footer { background: #1a1a2e; padding: 30px 0; margin-top: 40px; text-align: center; color: #999; }

/* ========== &#x79FB;&#x52A8;&#x7AEF;&#x54CD;&#x5E94;&#x5F0F; ========== */
@media screen and (max-width: 768px) {
    .player-container { flex-direction: column; }
    .player-main { width: 100%; }
    .player-sidebar { width: 100%; margin-top: 20px; }
    
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .video-card { border-radius: 8px; }
    .video-info { padding: 8px; }
    .video-title { font-size: 13px; line-height: 1.4; min-height: 36px; }
    .video-meta { font-size: 11px; }
    
    .video-detail-info { padding: 15px; }
    .video-detail-title { font-size: 18px; }
    .video-detail-meta { font-size: 12px; gap: 10px; }
    .video-detail-desc { font-size: 13px; }
    
    .related-title-main { font-size: 18px; margin-bottom: 15px; }
    
    .back-btn { padding: 8px 15px; font-size: 13px; }
    .pre-ad-skip { min-height: 44px; padding: 10px 15px; font-size: 14px; }
    
    .episode-title { font-size: 16px; }
    .episode-list { gap: 8px; }
    .episode-btn { padding: 8px 15px; font-size: 13px; }
}

@media screen and (max-width: 480px) {
    .related-grid { gap: 8px; }
    .video-title { font-size: 12px; line-height: 1.3; min-height: 32px; }
    .video-detail-title { font-size: 16px; }
    .video-detail-info { padding: 12px; }
    .episode-btn { padding: 6px 12px; font-size: 12px; }
}

@media (hover: none) and (pointer: coarse) {
    .video-card { touch-action: manipulation; }
    .back-btn, .pre-ad-skip { min-height: 44px; }
}
