@charset "utf-8";

/* ================= 基础样式 ================= */
html { 
    overflow-y: scroll; 
    touch-action: manipulation; 
}
body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    background-color: #f3f4f6; 
    touch-action: manipulation;
}

/* 电脑端最大宽度限制 (保持手机壳样式) */
@media (min-width: 1024px) {
    #main-content-wrapper { max-width: 640px; }
}

/* ================= 轮播图样式 (新增核心部分) ================= */
/* 必须添加这部分，图片才能左右滚动 */
#banner-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* 平滑滚动效果 */
}

.banner-slide {
    min-width: 100%; /* 让每一张图都占满容器宽度 */
    height: 100%;
    position: relative;
    cursor: pointer;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 海报文字渐变背景 */
.banner-text-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* 从下到上的黑色渐变，防止文字看不清 */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    padding: 1rem;
    color: white;
    pointer-events: none;
}

/* 轮播图指示点容器 */
#banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

/* 指示点默认样式 (小白点) */
.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

/* 指示点激活样式 (变长条，全白) */
.banner-dot.active {
    width: 18px;
    background-color: #ffffff;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

/* ================= 通用工具样式 ================= */

/* 隐藏滚动条 */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 分类标签 */
.category-btn { padding-bottom: 4px; transition: color 0.3s ease; }
.category-btn.active { color: #1f2937; font-weight: 700; }
.category-btn.inactive { color: #4b5563; font-weight: 500; }

#underline { position: absolute; bottom: 5px; height: 3px; background-color: #ef4444; border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* 搜索源下拉菜单 */
.dropdown-item { font-size: 14px; }
.dropdown-item:hover { background-color: #f3f4f6; }

/* 选集按钮 */
.episode-item-new {
    display: block; width: 100%; padding: 8px 0; text-align: center;
    border-radius: 6px; font-size: 0.875rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s; border: 2px solid #e5e7eb;
}
.episode-item-new.active { background-color: #ef4444; color: white; border-color: #ef4444; }
.episode-item-new.inactive { background-color: #f9fafb; color: #374151; border-color: #e5e7eb; }

/* 简介展开/收起 */
.description-content.collapsed { max-height: 4.5rem; }
.description-content { overflow: hidden; transition: max-height 0.3s ease; }

/* 播放器容器 */
.video-container { position: relative; width: 100%; padding-top: 56.25%; background-color: black; }
#video-player { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; z-index: 10; 
    border-radius: 0.75rem; 
}

/* 修复输入框背景自动变色 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-transition: background-color 99999s ease-in-out 0s;
    transition: background-color 99999s ease-in-out 0s;
    -webkit-text-fill-color: #4b5563 !important; 
}
#main-content-wrapper { overflow: hidden; }

/* ================= 弹窗相关样式 ================= */

/* 弹窗背景遮罩 (深色) */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* 加深遮罩浓度，突显白色文字 */
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

/* 弹窗容器动画 */
.modal-container {
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.open .modal-container { transform: scale(1); }

/* APP 图标背景 (纯白) */
.app-icon-bg {
    background-color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}

/* 🌟 纯透明弹窗主体样式 (无边框、无背景) */
.modal-transparent-body {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* 下载按钮（V8 紧凑版 + 透明背景 + 极细边框） */
.download-btn-v4 {
    position: relative;
    background: transparent; /* 背景透明 */
    
    /* 边框颜色: 0.25 透明度，非常细致 */
    border: 1px solid rgba(255, 255, 255, 0.25); 
    
    color: #ffffff; 
    font-weight: 600;
    letter-spacing: 0.5px;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.download-btn-v4:hover {
    background: rgba(255, 255, 255, 0.15); 
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px); 
}
.download-btn-v4:active {
    transform: translateY(0); 
    background: rgba(255, 255, 255, 0.25);
}
/* ================= 选集列表：隐藏滚动条但允许滚动 ================= */
.hide-scrollbar-v::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge 隐藏 */
}
.hide-scrollbar-v {
    -ms-overflow-style: none;  /* IE 10+ */
    scrollbar-width: none;  /* Firefox */
}