/* ========== 播放地址模块样式（无边框） ========== */
.playlist-card {
    background: #fff;
    margin-bottom: 10px;
    overflow: hidden;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.playlist-header {
    background: #f8f8f8;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;  /* 不换行 */
    overflow-x: auto;   /* 超出可滚动 */
    -webkit-overflow-scrolling: touch;
}
.playlist-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.playlist-tabs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-shrink: 0;
}
/* 所有选项卡都有左边距，包括第一个 */
.playlist-tabs li {
    display: inline-block;
    margin-left: 30px;  /* PC端间距 */
}
.playlist-tabs li a {
    color: #666;
    padding: 5px 0;
    display: block;
    font-size: 14px;
    white-space: nowrap;
}
.playlist-tabs li.active a {
    color: #FF9900;
    border-bottom: 2px solid #FF9900;
}
.playlist-body {
    padding: 15px;
}

/* 排序栏样式 */
.playlist-sort-bar {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.sort-label {
    font-size: 13px;
    color: #999;
}
.sort-buttons {
    display: flex;
    gap: 10px;
}
.sort-btn {
    padding: 4px 12px;
    font-size: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}
.sort-btn:hover {
    background: #e9ecef;
}
.sort-btn.active {
    background: #FF9900;
    border-color: #FF9900;
    color: #fff;
}

/* 可滚动网格列表 */
.episode-scroll-container {
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 4px;
}
.episode-grid {
    margin: 0 -5px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 5px 0;
}
.episode-grid li {
    width: 12.5%;
    padding: 0 5px;
    margin-bottom: 10px;
    list-style: none;
    box-sizing: border-box;
}
.episode-grid li a {
    display: block;
    padding: 8px 5px;
    background-color: #f8f8f8;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    border: 1px solid #eee;
    text-decoration: none;
}
.episode-grid li a:hover {
    background-color: #FF9900;
    color: #fff;
    border-color: #FF9900;
}

/* 滚动条美化 */
.episode-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.episode-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.episode-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.episode-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #FF9900;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .episode-grid li {
        width: 25% !important;
    }
    .episode-grid li a {
        font-size: 12px;
        padding: 6px 3px;
    }
    .episode-scroll-container {
        max-height: 280px;
    }
    /* 移动端间距稍微小一点 */
    .playlist-tabs li {
        margin-left: 18px;
    }
}

/* 平板端适配 */
@media (min-width: 768px) and (max-width: 991px) {
    .episode-grid li {
        width: 20% !important;
    }
}

/* 小PC端适配 */
@media (min-width: 992px) and (max-width: 1199px) {
    .episode-grid li {
        width: 16.6666667% !important;
    }
}