/* ==================================================================
   熊猫影视 - 全新粉色圆角 UI 完整重构版
   ================================================================== */
:root {
    --brand-orange: #f5a623;
    --brand-pink: #ffcdd2;
    --bg-pink-light: #ffecec;
    --bg-gray: #f8f8f8;
    --text-main: #333;
    --text-sub: #888;
    --white: #ffffff;
    --blue-grad: linear-gradient(to right, #87ceeb, #6495ed);
    --orange-grad: linear-gradient(to right, #f8b551, #f5a623);
    --pink-grad: linear-gradient(to right, #ffb6c1, #ff69b4);
}

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; padding: 0; background-color: var(--white); color: var(--text-main); font-size: 14px; }
* { box-sizing: border-box; }
a { color: var(--text-main); text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
.container { padding: 0; }

/* 头部、导航与搜索 */
.header-wrapper { background-color: var(--white); padding-top: 15px; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo-box { text-align: center; font-size: 22px; font-weight: bold; color: var(--brand-orange); margin-bottom: 15px; display: flex; justify-content: center; align-items: center; gap: 8px;}
.logo-box span { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--brand-orange); border-radius: 4px; }
.nav { display: flex; justify-content: space-around; padding: 0 10px 10px; border-bottom: 1px solid #eee; overflow-x: auto; white-space: nowrap; }
.nav a { padding: 5px 10px; font-size: 16px; color: var(--text-sub); }
.nav a.active, .nav a:hover { color: var(--brand-orange); font-weight: bold; border-bottom: 2px solid var(--brand-orange); }
.search-container { padding: 10px 15px; background-color: var(--white); }
.search-form { display: flex; background: var(--bg-gray); border-radius: 30px; padding: 3px; border: 1px solid #eee; }
.search-form input { flex-grow: 1; border: none; padding: 10px 15px; border-radius: 30px; background: transparent; font-size: 14px; outline: none; }
.search-form button { border: none; background: var(--brand-orange); color: var(--white); padding: 10px 25px; border-radius: 30px; font-size: 15px; font-weight: bold; cursor: pointer; }

/* 列表展示区 */
.section-title { font-size: 16px; padding: 15px; font-weight: bold; color: var(--text-sub); }
.video-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 15px 15px; }
.video-item { border-radius: 8px; overflow: hidden; position: relative; }
.video-item a { display: block; }
.video-item img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; border-radius: 8px; }
.video-item p { margin: 8px 0 0; text-align: left; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); font-weight: 500; }
.video-tag { position: absolute; bottom: 30px; right: 5px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }

/* 详情卡片 (粉色背景区) */
.detail-bg { background-color: var(--bg-pink-light); padding: 20px 15px; }
.content-card { display: flex; gap: 15px; align-items: flex-start; }
.content-poster { flex-shrink: 0; width: 110px; }
.content-poster img { width: 100%; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.content-details { flex: 1; }
.content-title { font-size: 18px; font-weight: 600; margin: 0 0 10px; color: var(--text-main); }
.content-meta p { margin: 5px 0; font-size: 13px; color: #777; }
.content-meta span { color: var(--brand-orange); }
.btn-group { display: flex; gap: 10px; margin-top: 15px; }
.btn-capsule { display: inline-flex; align-items: center; justify-content: center; padding: 8px 18px; border-radius: 25px; color: var(--white); font-size: 13px; border: none; cursor: pointer; text-decoration: none; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

/* 公告与选集 */
.notice-bar { background: var(--white); padding: 15px; border-bottom: 1px solid #eee; display: flex; align-items: center; font-size: 14px; gap: 10px; }
.notice-tag { background: var(--brand-orange); color: var(--white); padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.episode-section { background: var(--white); padding: 15px; }
.episode-title { font-size: 16px; margin-bottom: 15px; font-weight: bold; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-block; background-color: var(--bg-gray); padding: 8px 20px; border-radius: 20px; font-size: 13px; color: var(--text-main); }
.links a.current { background: var(--blue-grad); color: var(--white); font-weight: bold; border: none; }

/* 播放器与功能按钮 */
.player-wrapper { background: #333; }
.player-header { display: flex; justify-content: space-between; padding: 10px 15px; color: #fff; font-size: 13px; background: rgba(0,0,0,0.5); }
.player-container { position: relative; width: 100%; aspect-ratio: 16 / 9; background-color: #000; overflow: hidden; }
.player-container video { width: 100%; height: 100%; }
.action-buttons { display: flex; justify-content: space-around; padding: 15px; background: var(--white); border-bottom: 1px solid #eee; }
.action-btn { background: var(--bg-gray); padding: 8px 15px; border-radius: 20px; font-size: 13px; color: var(--text-main); display: flex; align-items: center; gap: 5px; }

/* 分页、筛选 */
.filter-box { background: var(--bg-gray); padding: 10px 15px; margin-bottom: 10px; font-size: 13px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; margin: 5px 0; gap: 10px; }
.filter-group a { padding: 4px 12px; border-radius: 15px; color: var(--text-sub); }
.filter-group a.active { background: var(--brand-orange); color: var(--white); }
.pagination { margin: 20px 0; display: flex; justify-content: center; gap: 15px; }
.pagination a, .pagination span { background: var(--bg-gray); padding: 8px 20px; border-radius: 20px; font-size: 14px; }
footer { text-align: center; padding: 30px 15px; font-size: 12px; color: #ccc; }



/* --- 修正后的筛选与公告样式 --- */

/* 公告栏 - 跑马灯 */
.notice-bar { 
    background: #fff; 
    padding: 0 15px; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    align-items: center; 
    font-size: 14px; 
    height: 40px; 
    overflow: hidden;
    position: relative;
}
.notice-tag { 
    background: #f5a623; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 12px; flex-shrink: 0; margin-right: 10px;
}
.notice-marquee {
    white-space: nowrap; display: inline-block; color: #555; text-decoration: none;
    animation: marquee 12s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 筛选器容器 - 修正为垂直堆叠结构 */
.filter-wrapper { 
    display: flex; 
    flex-direction: column; 
    background: var(--white); 
    padding: 10px 0; 
    border-bottom: 1px solid #eee;
}

/* 每一行都是一个独立的横向滑动条 */
.scroll-x {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 5px 15px;
    align-items: center;
    -webkit-overflow-scrolling: touch;
}
.scroll-x::-webkit-scrollbar { display: none; }

.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-label { color: #999; font-weight: bold; margin-right: 5px; flex-shrink: 0; font-size: 13px; }
.filter-group a { padding: 4px 12px; border-radius: 15px; color: #666; font-size: 13px; }
.filter-group a.active { background: var(--brand-orange); color: #fff; }