* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #1a1a1a;
    color: #fff;
    line-height: 1.6;
}

/* 头部导航 */
.header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #00d4ff;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.nav-menu a:hover {
    color: #00d4ff;
}

.back-btn {
    background: #333;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #00d4ff;
}

/* 主要内容 */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 视频标题 */
.video-header {
    text-align: center;
    margin-bottom: 20px;
}

.video-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #00d4ff;
}

.video-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 播放器容器 */
.player-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.player-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

#dplayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 播放列表和相关推荐 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.episode-list {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #00d4ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.episodes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.episode-btn {
    background: #333;
    color: #ccc;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    text-decoration: none;
    text-align: center;
}

.episode-btn:hover {
    background: #555;
    color: #fff;
}

.episode-btn.active {
    background: #00d4ff;
    color: #fff;
}

/* 移除相关推荐的样式 */
.related-videos,
.related-item,
.related-poster,
.related-info,
.related-title,
.related-meta {
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .container {
        padding: 15px;
    }
    
    .video-title {
        font-size: 20px;
    }
    
    .video-info {
        font-size: 12px;
        gap: 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .episodes {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .episode-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .video-header {
        margin-bottom: 15px;
    }
    
    .video-title {
        font-size: 18px;
    }
    
    .episode-list {
        padding: 15px;
    }
    
    .episodes {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
}

/* DPlayer 自定义样式 */
.dplayer {
    border-radius: 8px;
}

.dplayer-video-wrap {
    border-radius: 8px;
}

/* 字幕样式 */
.dplayer .dplayer-subtitle {
    bottom: 15% !important;
    font-size: 1.7vw !important;  /* PC端普通模式字体大小 */
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif !important;
    font-weight: 400 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
    position: absolute !important;
    /*width: 100% !important;*/
    text-align: center !important;
    z-index: 40 !important;
    letter-spacing: 0.5px !important;
    /*padding: 0 20px !important;*/
    transform: none !important;
}

.dplayer.dplayer-fullscreen .dplayer-subtitle {
    font-size: 1.5vw !important;  /* PC端全屏模式字体大小 */
    bottom: 12% !important;
}

/* 移动端字幕样式 */
@media (max-width: 768px) {
    .dplayer .dplayer-subtitle {
        font-size: 3.5vw !important;  /* 移动端普通模式字体大小 */
        bottom: 15% !important;
    }
    
    .dplayer.dplayer-fullscreen .dplayer-subtitle {
        font-size: 4vw !important;  /* 移动端全屏模式字体大小 */
        bottom: 18% !important;
    }
}

/* 加载状态 */
.loading-player {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #000;
    border-radius: 8px;
    color: #999;
    font-size: 16px;
}

.loading-player i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 播放器 iframe 高度适配 */
#kdjPlayer {
    width: 100%;
    height: 600px; /* 默认 PC 端高度 */
}

@media only screen and (max-width: 768px) {
    #kdjPlayer {
        height: 200px; /* 移动端高度 */
    }
}


/* 隐藏网页全屏按钮 */
.dplayer .dplayer-full-in-icon {
    display: none !important;
}