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

/* 默认亮色主题（背景 #F5F5F5） */
body {
    font-family: 'Inter', sans-serif;
    background: #F5F5F5;
    color: #1a1a1a;
    min-height: 100vh;
    overscroll-behavior: none;
}

.app {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 18px 60px;
}

.hero { text-align: center; margin: 20px 0 32px; }
h1 { font-size: 2.4rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 12px; color: #1a1a1a; }
.sub { font-size: 0.85rem; margin-top: 8px; color: #666; }

.search-wrapper { margin: 28px 0 24px; }
.search-glass {
    border-radius: 80px;
    border: 1px solid #ddd;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 5px 5px 5px 20px;
    transition: 0.3s;
}
.search-glass:focus-within { border-color: #aaa; box-shadow: 0 0 0 2px rgba(0,0,0,0.05); }
.search-glass input { flex:1; background: transparent; border: none; outline: none; padding: 14px 0; font-size: 1rem; color: #1a1a1a; }
.search-glass input::placeholder { color: #999; }

/* ========== 搜索按钮：炫彩渐变 ========== */
.search-btn {
    background: linear-gradient(90deg, #ff9800, #e91e63, #ff9800);
    background-size: 200% auto;
    border: none;
    color: #fff !important;
    font-weight: 600;
    cursor: pointer;
    transition: background-position 0.5s ease, transform 0.2s;
    border-radius: 60px;
    padding: 10px 24px;
}
.search-btn:hover {
    background-position: 100% 0;
    transform: scale(1.02);
    color: #fff !important;
}
@media (max-width: 768px) {
    .search-btn {
        font-size: 0;
        padding: 10px 16px;
    }
    .search-btn i {
        font-size: 1rem;
        margin: 0;
    }
}

/* ========== 换一批按钮：朴素样式 ========== */
.refresh-recommend {
    background: #e9e9ef;
    border: 1px solid #ccc;
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}
.refresh-recommend:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* ========== 热门关键词 ========== */
.hot-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 16px;
    padding: 8px 0 16px;
    overflow: visible;
}

.hot-tag {
    background: transparent;
    border: none;
    padding: 6px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2c;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    white-space: normal;
    word-break: keep-all;
    border-radius: 40px;
    margin: 0 -4px;
}
.hot-tag:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}
.hot-tag i, 
.hot-tag em { 
    font-style: normal; 
    margin-right: 4px;
    font-size: 1.05em;
}
body.skin-light .hot-tag {
    background: transparent;
    color: #2c2c2c;
}
body.skin-light .hot-tag:hover {
    background: #1a1a1a;
    color: #fff;
}
@media (max-width: 768px) {
    .hot-keywords {
        gap: 10px 16px;
    }
    .hot-tag {
        padding: 5px 12px;
        font-size: 13px;
    }
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 10px;
    padding: 8px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}
.filter-item {
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: 0.2s;
    color: #1a1a1a;
}
.filter-item.active,
.filter-item:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
    margin-top: 20px;
}
.movie-card {
    border-radius: 24px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.movie-card:hover {
    transform: scale(1.02);
    border-color: #aaa;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.poster {
    aspect-ratio: 2/3;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.movie-card:hover .poster img {
    transform: scale(1.2);
}
.remarks {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    color: #fff;
}
.m-title {
    margin-top: 10px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1a1a1a;
}
.source-tag {
    font-size: 9px;
    margin-top: 4px;
    color: #888;
}
.load-more-btn,
.pagination-controls {
    display: block;
    border: none;
    border-radius: 60px;
    padding: 12px;
    margin: 20px auto;
    width: 80%;
    text-align: center;
    background: #e9e9ef;
    color: #1a1a1a;
    border: 1px solid #ccc;
    cursor: pointer;
}
.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    width: auto;
    background: transparent;
}
.pagination-controls button {
    background: #e9e9ef;
    border: 1px solid #ccc;
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
}
.pagination-controls span {
    color: #1a1a1a;
}
.hidden {
    display: none !important;
}
.recommend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.recommend-header span {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}
footer {
    margin-top: 60px;
    text-align: center;
    font-size: 11px;
    color: #777;
}
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.stats-bar span {
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    color: #1a1a1a;
}
.go-top {
    position: fixed;
    bottom: 30px;
    right: 70px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
    border: 1px solid #ccc;
    color: #1a1a1a;
}
.go-top.show {
    opacity: 1;
}
@media (max-width: 768px) {
    .go-top {
        right: 20px;
        bottom: 20px;
    }
}

/* ========== 弹窗样式 ========== */
.popup-ad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-wrapper {
    position: relative;
    display: inline-block;
}
.popup-content {
    background: #ffffff;
    border-radius: 32px;
    padding: 24px;
    text-align: center;
    max-width: 420px;
    width: auto;
    min-width: 320px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
    position: relative;
}
.popup-content img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    border-radius: 20px;
    background: #f5f5f5;
    display: block;
    margin: 0 auto;
}
.popup-play-btn {
    width: 100%;
    margin-top: 20px;
    border: none;
    padding: 14px 24px;
    border-radius: 60px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    background: linear-gradient(90deg, #ff9800, #e91e63, #ff9800);
    background-size: 200% auto;
    color: #fff;
    transition: background-position 0.5s ease, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.popup-play-btn:hover {
    background-position: 100% 0;
    transform: scale(1.02);
}
.popup-close-btn {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 10;
}
.popup-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #fff;
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .popup-content {
        max-width: 85vw;
        width: 85vw;
        padding: 16px;
        min-width: auto;
    }
    .popup-content img {
        max-height: 55vh;
        object-fit: cover;
        border-radius: 16px;
    }
    .popup-play-btn {
        margin-top: 14px;
        padding: 12px 16px;
        font-size: 15px;
    }
    .popup-close-btn {
        width: 32px;
        height: 32px;
        top: -12px;
        right: -12px;
        font-size: 14px;
    }
}
body.skin-dark .popup-content {
    background: #1e1e1e;
    border-color: #333;
}
body.skin-dark .popup-content img {
    background: #2a2a2a;
}
body.skin-dark .popup-close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
body.skin-dark .popup-close-btn:hover {
    background: #fff;
    color: #121212;
}
body.skin-dark .popup-play-btn {
    background: linear-gradient(90deg, #ff9800, #e91e63, #ff9800);
    color: #fff;
}

/* 加载和无结果提示 */
.search-loading,
.no-result {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #888;
    white-space: nowrap;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.search-loading i,
.no-result i {
    margin-right: 8px;
}

/* 播放器模态框 */
.modal {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:1000;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,0.96);
    backdrop-filter:blur(8px);
}
.modal.lights-off {
    background:#000 !important;
    backdrop-filter:none;
}
.modal-content {
    width:100%;
    max-width:1100px;
    max-height:92vh;
    background:#ffffff;
    border-radius:32px;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-header {
    padding:16px 20px;
    display:flex;
    justify-content:space-between;
    border-bottom:1px solid #e0e0e0;
}
.player-body {
    flex:1;
    padding:16px 20px;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}
.video-wrapper {
    background:#000;
    border-radius:24px;
    aspect-ratio:16/9;
    overflow:hidden;
    position: relative;
    width:100%;
}
video {
    width:100%;
    height:100%;
    object-fit:contain;
}
.episodes {
    background:#f9f9fb;
    border-radius:28px;
    padding:16px;
    border:1px solid #e0e0e0;
}
.ep-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(70px,1fr));
    gap:10px;
    max-height:250px;
    overflow-y:auto;
}
.ep-item {
    text-align:center;
    padding:8px;
    border-radius:40px;
    background:#efefef;
    border:1px solid #ddd;
    cursor:pointer;
    color:#1a1a1a;
}
.ep-item.active,
.ep-item:hover {
    background:#1a1a1a;
    color:#fff;
}
.movie-desc {
    padding:14px 18px;
    font-size:12px;
    background:#f0f0f0;
    border-left:4px solid #1a1a1a;
    border-radius:24px;
    color:#1a1a1a;
}
.ep-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.next-btn,
.skin-btn,
.close-modal,
.fullscreen-btn {
    border: none;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: #e9e9ef;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.next-btn:hover,
.skin-btn:hover,
.close-modal:hover,
.fullscreen-btn:hover {
    background: #1a1a1a;
    color: #fff;
}
.close-modal {
    width: auto;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: bold;
}
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .modal-content {
        max-height: 90vh;
        justify-content: center;
    }
    .player-body {
        justify-content: center;
        padding: 12px;
        gap: 12px;
    }
    .video-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 16px;
    }
    .episodes {
        margin-top: 12px;
        max-height: 180px;
        overflow-y: auto;
    }
    .modal-header,
    .movie-desc {
        flex-shrink: 0;
    }
    .movie-desc {
        font-size: 11px;
        padding: 10px 12px;
    }
    .modal-header h3 {
        font-size: 14px;
        max-width: 160px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .skin-btn,
    .fullscreen-btn {
        font-size: 0;
        padding: 8px 12px;
        gap: 4px;
    }
    .skin-btn i,
    .fullscreen-btn i {
        font-size: 1.4rem;
        margin: 0;
    }
    .close-modal {
        padding: 6px 12px;
        font-size: 14px;
    }
    .ep-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        max-height: none;
        padding-bottom: 4px;
    }
    .ep-item {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 8px 16px;
        border-radius: 40px;
        font-size: 13px;
    }
}

/* 下拉刷新指示器 */
#pull-to-refresh-indicator {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% 100%;
    color: white;
    text-align: center;
    line-height: 60px;
    font-size: 16px;
    font-weight: bold;
    z-index: 10000;
    transition: top 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    animation: rainbowShift 1.5s linear infinite;
}
@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
#pull-to-refresh-indicator[data-state="ready"] {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    animation: none;
}
#pull-to-refresh-indicator[data-state="refreshing"] {
    background: linear-gradient(90deg, #11998e, #38ef7d);
    animation: none;
}
.version-refresh-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ff4757;
    color: #fff;
    padding: 12px 20px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 10002;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}
.version-refresh-bar button {
    background: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: bold;
    color: #ff4757;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hot-keywords {
        display: none;
    }
}
@media (max-width: 768px) {
    .stats-bar span:nth-child(2) {
        display: none;
    }
}
.app {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 18px 60px;
}
.hero,
.search-wrapper {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.recommend-header {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hot-keywords {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-top: 16px;
    padding: 8px 0 16px;
}
.grid {
    display: grid;
    gap: 18px;
    margin-top: 20px;
    width: 100%;
}
.grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (min-width: 769px) {
    .grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 16px;
    }
}
@media (min-width: 1400px) {
    .grid {
        grid-template-columns: repeat(8, minmax(0, 180px));
        justify-content: center;
    }
}
footer {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hot-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 12px 20px;
    margin-top: 16px;
    padding: 8px 0 16px;
    overflow: visible;
}
.hot-title {
    font-weight: 700;
    color: #1a1a1a;
    margin-right: 8px;
    white-space: nowrap;
    font-size: 15px;
    background: transparent !important;
    border: none !important;
    cursor: default;
    transition: none;
}
.hot-title:hover {
    background: transparent !important;
    color: #1a1a1a !important;
}
.hot-tag {
    background: transparent;
    border: none;
    padding: 6px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2c;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    white-space: normal;
    word-break: keep-all;
    border-radius: 40px;
}
.hot-tag:hover {
    background: #1a1a1a;
    color: #fff;
}
@media (max-width: 768px) {
    .hot-keywords {
        display: none;
    }
}
.hot-keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 20px;
    margin-top: 16px;
    padding: 8px 0 16px;
}
.hot-title-wrapper {
    white-space: nowrap;
    flex-shrink: 0;
}
.hot-title {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
    background: transparent !important;
    cursor: default;
}
.hot-title:hover {
    background: transparent !important;
    color: #1a1a1a !important;
}
.hot-tags-wrapper {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 10px;
}
.hot-tag {
    background: transparent;
    border: none;
    padding: 6px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #2c2c2c;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
    border-radius: 40px;
}
.hot-tag:hover {
    background: #1a1a1a;
    color: #fff;
}
@media (max-width: 768px) {
    .hot-keywords {
        display: none;
    }
}

/* ========== 暗色主题 ========== */
body.skin-dark {
    background: #121212;
    color: #e0e0e0;
}
body.skin-dark .app {
    background: transparent;
}
body.skin-dark h1,
body.skin-dark .hero .sub,
body.skin-dark .m-title,
body.skin-dark .filter-item,
body.skin-dark .stats-bar span,
body.skin-dark footer div,
body.skin-dark .recommend-header span,
body.skin-dark .hot-title {
    color: #e0e0e0;
}
body.skin-dark .search-glass {
    background: #1e1e1e;
    border-color: #333;
}
body.skin-dark .search-glass input {
    color: #e0e0e0;
}
body.skin-dark .search-glass input::placeholder {
    color: #888;
}
body.skin-dark .search-btn {
    background: linear-gradient(90deg, #ff9800, #e91e63, #ff9800);
    background-size: 200% auto;
    border: none;
    color: #fff !important;
}
body.skin-dark .search-btn:hover {
    background-position: 100% 0;
    color: #fff !important;
}
body.skin-dark .refresh-recommend {
    background: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}
body.skin-dark .refresh-recommend:hover {
    background: #ffffff;
    color: #121212;
    border-color: #ffffff;
}
body.skin-dark .filter-item,
body.skin-dark .load-more-btn,
body.skin-dark .pagination-controls button,
body.skin-dark .next-btn,
body.skin-dark .close-modal,
body.skin-dark .skin-btn,
body.skin-dark .fullscreen-btn {
    background: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}
body.skin-dark .filter-item:hover,
body.skin-dark .filter-item.active,
body.skin-dark .load-more-btn:hover,
body.skin-dark .pagination-controls button:hover,
body.skin-dark .next-btn:hover,
body.skin-dark .close-modal:hover,
body.skin-dark .skin-btn:hover,
body.skin-dark .fullscreen-btn:hover {
    background: #ffffff;
    color: #121212;
    border-color: #ffffff;
}
body.skin-dark .movie-card {
    background: #1e1e1e;
    border-color: #333;
}
body.skin-dark .movie-card:hover {
    border-color: #666;
    background: #2a2a2a;
}
body.skin-dark .poster {
    background: #2a2a2a;
}
body.skin-dark .source-tag {
    color: #aaa;
}
body.skin-dark .modal-content {
    background: #1e1e1e;
    border-color: #333;
}
body.skin-dark .modal-header {
    border-bottom-color: #333;
}
body.skin-dark .episodes {
    background: #252525;
    border-color: #333;
}
body.skin-dark .ep-item {
    background: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}
body.skin-dark .ep-item.active,
body.skin-dark .ep-item:hover {
    background: #ffffff;
    color: #121212;
}
body.skin-dark .movie-desc {
    background: #252525;
    border-left-color: #ffffff;
    color: #ccc;
}
body.skin-dark .stats-bar span {
    background: #1e1e1e;
    border-color: #333;
}
body.skin-dark .go-top {
    background: #1e1e1e;
    border-color: #444;
    color: #e0e0e0;
}
body.skin-dark .hot-tag {
    color: #ccc;
}
body.skin-dark .hot-tag:hover {
    background: #ffffff;
    color: #121212;
}
body.skin-dark .version-refresh-bar {
    background: #ff4757;
    color: #fff;
}

/* 底部统计栏 */
.stats-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
}
@media (max-width: 480px) {
    .stats-bar { gap: 6px; font-size: 11px; }
    .theme-icon { font-size: 0.9rem; padding: 2px 3px; }
}
.theme-toggle-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    background: transparent;
}
.theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border-radius: 40px;
    padding: 2px 5px;
    background: transparent;
    border: none;
}
.theme-icon.sun {
    color: #ff9800;
    text-shadow: 0 0 2px rgba(255,152,0,0.5);
}
.theme-icon.moon {
    color: #9aa6ff;
    text-shadow: 0 0 2px rgba(154,166,255,0.5);
}
.theme-icon.active {
    background: rgba(0,0,0,0.08);
    transform: scale(1.05);
    box-shadow: 0 0 6px currentColor;
}
body.skin-dark .theme-icon.active {
    background: rgba(255,255,255,0.15);
}
.theme-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}
.stats-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 12px;
}
.theme-toggle-icons {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    vertical-align: middle;
}
.theme-icon {
    display: inline-block;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
    border-radius: 40px;
    padding: 4px 6px;
}
.theme-icon.sun { color: #ff9800; }
.theme-icon.moon { color: #9aa6ff; }
.theme-icon.active {
    background: rgba(0,0,0,0.1);
    transform: scale(1.05);
}
.theme-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}
.stats-bar span {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.theme-toggle-wrapper {
    text-align: center;
    margin-top: 12px;
}
#themeToggleIcon {
    display: inline-block;
    cursor: pointer;
    font-size: 1.6rem;
    transition: all 0.2s ease;
    border-radius: 50%;
    padding: 8px;
    background: rgba(0,0,0,0.05);
    width: 44px;
    height: 44px;
    line-height: 1;
}
#themeToggleIcon.fa-sun {
    color: #ff9800;
    text-shadow: 0 0 4px rgba(255,152,0,0.5);
}
#themeToggleIcon.fa-moon {
    color: #9aa6ff;
    text-shadow: 0 0 4px rgba(154,166,255,0.5);
}
#themeToggleIcon:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.1);
}
body.skin-dark #themeToggleIcon {
    background: rgba(255,255,255,0.1);
}
body.skin-dark #themeToggleIcon:hover {
    background: rgba(255,255,255,0.2);
}
.stats-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
}
#themeToggleIcon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 8px;
}
#themeToggleIcon.fa-sun {
    color: #ff9800;
    text-shadow: 0 0 2px rgba(255,152,0,0.5);
}
#themeToggleIcon.fa-moon {
    color: #9aa6ff;
    text-shadow: 0 0 2px rgba(154,166,255,0.5);
}
#themeToggleIcon:hover {
    transform: scale(1.1);
    background: rgba(0,0,0,0.08);
}
body.skin-dark #themeToggleIcon:hover {
    background: rgba(255,255,255,0.15);
}
@media (max-width: 768px) {
    #themeToggleIcon {
        display: none !important;
    }
}
.hero h1 a {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    font-weight: normal;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ff9800, #e91e63);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.hero h1 i {
    font-size: 3rem;
    background: linear-gradient(135deg, #ffcc33, #ff6699);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    animation: bounceIcon 1s ease infinite;
    transition: transform 0.2s;
}
.hero h1 i:hover {
    animation: none;
    transform: scale(1.2) rotate(10deg);
}
@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.hero h1 a {
    background: linear-gradient(90deg, #ff8c00, #ff2e63, #ff8c00);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
    animation: bounceText 0.8s ease infinite, gradientFlow 3s linear infinite;
    display: inline-block;
}
@keyframes bounceText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.hero .sub {
    font-size: 0.9rem;
    margin-top: 6px;
    opacity: 0.8;
    letter-spacing: 1px;
}
body.skin-dark .hero h1 i {
    background: linear-gradient(135deg, #ffdd66, #ff88aa);
    background-clip: text;
    -webkit-background-clip: text;
}
body.skin-dark .hero h1 a {
    background: linear-gradient(90deg, #ffaa44, #ff5588, #ffaa44);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
}
.android-download-wrapper {
    position: absolute;
    top: calc(100% - 56px);
    left: calc(50% - -280px);
    transform: none;
    z-index: 10;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.android-icon {
    font-size: 28px;
    background: linear-gradient(135deg, #ff9800, #e91e63);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-color: rgba(255, 152, 0, 0.1);
    background-blend-mode: overlay;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.android-icon:hover {
    background: linear-gradient(135deg, #ff9800, #e91e63);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-color: rgba(255, 152, 0, 0.25);
    transform: scale(1.1);
}
.qrcode-popup {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    min-width: 140px;
    border: 1px solid #e0e0e0;
}
.qrcode-popup::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
}
.qrcode-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}
.qrcode-text {
    font-size: 12px;
    color: #333;
    text-align: center;
    margin: 0;
}
.android-download-wrapper:hover .qrcode-popup {
    display: flex;
}
body.skin-dark .qrcode-popup {
    background: #1e1e1e;
    border-color: #444;
}
body.skin-dark .qrcode-popup::after {
    border-top-color: #1e1e1e;
}
body.skin-dark .qrcode-text {
    color: #ccc;
}
@media (max-width: 768px) {
    .android-download-wrapper {
        display: none;
    }
}
/* 手机端播放器布局优化：视频优先，选集简介靠后 */
@media (max-width: 768px) {
    .modal-content {
        max-height: 95vh;
        display: flex;
        flex-direction: column;
    }
    .player-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        overflow-y: auto;
        min-height: 0;
    }
    .video-wrapper {
        flex-shrink: 0;
        aspect-ratio: 16 / 9;
        width: 100%;
        background: #000;
        border-radius: 16px;
        margin-bottom: 8px;
    }
    .episodes {
        flex-shrink: 0;
        max-height: 110px;
        overflow-y: auto;
        background: #f9f9fb;
        border-radius: 20px;
        padding: 10px;
    }
    .ep-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
    }
    .ep-item {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 6px 14px;
        font-size: 13px;
    }
    .movie-desc {
        flex-shrink: 0;
        max-height: 80px;
        overflow-y: auto;
        font-size: 11px;
        padding: 8px 12px;
        background: #f0f0f0;
        border-radius: 16px;
    }
    body.skin-dark .episodes {
        background: #252525;
    }
    body.skin-dark .movie-desc {
        background: #252525;
        color: #ccc;
    }
}
/* ========== 跨浏览器播放器布局修复 ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.modal-content {
    display: flex;
    flex-direction: column;
    width: 90vw;
    max-width: 1200px;
    height: 85vh;
    max-height: 85vh;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.player-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 20px;
    gap: 16px;
}
.video-wrapper {
    flex-shrink: 0;
    width: 100%;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}
@supports (aspect-ratio: 16/9) {
    .video-wrapper {
        aspect-ratio: 16 / 9;
    }
}
@supports not (aspect-ratio: 16/9) {
    .video-wrapper {
        height: 0;
        padding-bottom: 56.25%;
    }
    .video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.episodes {
    flex-shrink: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #f9f9fb;
    border-radius: 28px;
    padding: 16px;
    border: 1px solid #e0e0e0;
}
.movie-desc {
    flex-shrink: 0;
    max-height: 100px;
    overflow-y: auto;
    padding: 14px 18px;
    font-size: 12px;
    background: #f0f0f0;
    border-left: 4px solid #1a1a1a;
    border-radius: 24px;
}
@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        height: 90vh;
        max-height: 90vh;
    }
    .player-body {
        padding: 12px;
        gap: 12px;
    }
    .episodes {
        max-height: 110px;
        padding: 10px;
    }
    .movie-desc {
        max-height: 80px;
        font-size: 11px;
        padding: 8px 12px;
    }
    .ep-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 4px;
    }
    .ep-item {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 6px 14px;
    }
}
body.skin-dark .modal-content {
    background: #1e1e1e;
}
body.skin-dark .episodes {
    background: #252525;
    border-color: #333;
}
body.skin-dark .movie-desc {
    background: #252525;
    border-left-color: #fff;
    color: #ccc;
}
.skip-ad-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.5);
    border-radius: 40px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.skip-ad-btn:hover {
    background: #ff9800;
    color: #000;
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .skip-ad-btn {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}
/* ========== 会员登录按钮样式 ========== */
.user-area {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 100;
}
.user-btn {
    background: linear-gradient(90deg, #ff9800, #e91e63, #ff9800);
    background-size: 200% auto;
    border: none;
    color: #fff !important;
    font-weight: 600;
    cursor: pointer;
    transition: background-position 0.5s ease, transform 0.2s;
    border-radius: 60px;
    padding: 8px 18px;
}
.user-btn:hover {
    background-position: 100% 0;
    transform: scale(1.02);
}
.user-avatar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.6);
    padding: 5px 12px;
    border-radius: 40px;
    cursor: pointer;
    color: white;
}
.user-avatar i:first-child {
    font-size: 22px;
}
.user-dropdown {
    position: absolute;
    right: 0;
    top: 42px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 140px;
    display: none;
    z-index: 200;
    overflow: hidden;
}
.user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.user-dropdown a:hover {
    background: #f5f5f5;
}
.user-not-login, .user-logged-in {
    display: flex;
}
@media (max-width: 768px) {
    .user-area { right: 8px; top: 8px; }
    .user-avatar span { display: none; }
    .user-avatar { padding: 5px 10px; }
}

/* ========== 会员弹窗（仿广告弹窗风格，左侧大立体海报） ========== */
.auth-modal {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-modal-container {
    position: relative;
    width: 90%;
    max-width: 760px;           /* 稍微加宽，容纳更大海报 */
    max-height: 85vh;
    background: transparent;
    overflow: visible;
}
/* 关闭按钮 - 放在外部，文字“关” */
.auth-close-btn {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    z-index: 20;
    font-family: inherit;
}
.auth-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #fff;
    transform: scale(1.05);
}
/* 左右内容卡片 - 白色背景，圆角，增加阴影立体感 */
.auth-modal-content {
    display: flex;
    flex-wrap: nowrap;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(0,0,0,0.3);
    max-height: 85vh;
}
/* ========== 左侧电影区 - 大立体海报，无多余文字 ========== */
.auth-movie-side {
    flex: 1.2;
    background: linear-gradient(145deg, #f8f9ff, #ffffff); /* 轻微渐变增加质感 */
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}
/* 超大立体海报 */
.auth-movie-poster {
    width: 220px;               /* 原200 → 220 */
    height: 330px;             /* 原300 → 330 */
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.25); /* 更强阴影，立体感 */
    margin-bottom: 20px;
    transition: transform 0.2s;
}
.auth-movie-poster:hover {
    transform: scale(1.02);
}
/* 隐藏电影名称和备注 */
.auth-movie-title,
.auth-movie-remark {
    display: none;
}
/* 立即播放按钮 - 醒目 */
.auth-movie-play-btn {
    background: linear-gradient(90deg, #ff9800, #e91e63);
    border: none;
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    width: auto;
    min-width: 160px;
}
.auth-movie-play-btn:hover {
    transform: scale(1.02);
    opacity: 0.95;
}
/* 去掉底部提示 */
.auth-movie-tip {
    display: none;
}
/* ========== 右侧表单区 - 整体下移，间距拉大 ========== */
.auth-form-side {
    flex: 1;
    padding: 40px 24px 24px 24px;  /* 顶部内边距增大到40px → 输入框整体下移 */
    background: #ffffff;
    overflow-y: auto;
}
.auth-tabs {
    display: flex;
    gap: 24px;                   /* 标签间距加大 */
    border-bottom: 2px solid #eaeef2;
    margin-bottom: 36px;         /* 标签与表单间距拉大 */
}
.auth-tab {
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 18px;             /* 字体稍大 */
    font-weight: 600;
    color: #8e9aaf;
    cursor: pointer;
    transition: 0.2s;
}
.auth-tab.active {
    color: #ff6b4a;
    border-bottom: 3px solid #ff6b4a;
}
.auth-panel {
    display: none;
}
.auth-panel.active {
    display: block;
}
/* 输入框组 - 间距拉大，输入框变高 */
.auth-input-group {
    display: flex;
    align-items: center;
    background: #f8f9fc;
    border-radius: 60px;
    padding: 0 20px;
    margin-bottom: 28px;         /* 输入框之间间距加大 */
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}
.auth-input-group:focus-within {
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255,152,0,0.15);
    background: #fff;
}
.auth-input-group i {
    color: #ff9800;
    font-size: 18px;             /* 图标稍大 */
    width: 36px;
}
.auth-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 0;             /* 原14px → 16px，增加输入框高度 */
    font-size: 16px;             /* 字体稍大 */
    font-weight: 500;
    outline: none;
    color: #1e293b;
}
.auth-input-group input::placeholder {
    color: #a0aec0;
}
/* 提交按钮 - 更大更醒目 */
.auth-submit-btn {
    width: 100%;
    background: linear-gradient(90deg, #ff9800, #f5576c);
    border: none;
    color: white;
    padding: 14px;               /* 原12px → 14px */
    border-radius: 60px;
    font-weight: 700;
    font-size: 17px;             /* 字体稍大 */
    cursor: pointer;
    margin-top: 16px;            /* 原8px，加大上边距，避免拥挤 */
    transition: 0.25s;
    box-shadow: 0 8px 18px rgba(245,87,108,0.3);
}
.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(245,87,108,0.4);
}
/* 暗色主题适配 */
body.skin-dark .auth-modal-content {
    background: #1e1e2f;
}
body.skin-dark .auth-movie-side {
    background: #1e1e2f;
    border-right-color: #2d2d44;
}
body.skin-dark .auth-form-side {
    background: #1e1e2f;
}
body.skin-dark .auth-tabs {
    border-bottom-color: #2d2d44;
}
body.skin-dark .auth-tab {
    color: #9aa4bf;
}
body.skin-dark .auth-tab.active {
    color: #ffaa66;
}
body.skin-dark .auth-input-group {
    background: #2a2a3a;
    border-color: #3a3a50;
}
body.skin-dark .auth-input-group input {
    color: #edf2f7;
}
body.skin-dark .auth-input-group input::placeholder {
    color: #6b7280;
}
/* 手机端适配 */
@media (max-width: 640px) {
    .auth-modal-container {
        max-width: 95%;
    }
    .auth-modal-content {
        flex-wrap: wrap;
    }
    .auth-movie-side {
        flex: auto;
        flex-direction: row;
        padding: 16px;
        gap: 16px;
        text-align: left;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .auth-movie-card {
        display: flex;
        align-items: center;
        gap: 14px;
        width: 100%;
    }
    .auth-movie-poster {
        width: 100px;            /* 手机端适当缩小 */
        height: 150px;
        margin-bottom: 0;
    }
    .auth-movie-play-btn {
        padding: 8px 20px;
        font-size: 13px;
        min-width: 110px;
    }
    .auth-form-side {
        padding: 28px 18px 20px 18px; /* 手机端也保持下移 */
    }
    .auth-tabs {
        gap: 18px;
        margin-bottom: 28px;
    }
    .auth-tab {
        font-size: 16px;
    }
    .auth-input-group {
        padding: 0 16px;
        margin-bottom: 22px;
    }
    .auth-input-group input {
        padding: 14px 0;
        font-size: 15px;
    }
    .auth-submit-btn {
        padding: 12px;
        font-size: 16px;
        margin-top: 12px;
    }
    body.skin-dark .auth-movie-side {
        border-bottom-color: #2d2d44;
    }
}
/* 密码眼睛图标样式 */
.auth-input-group {
    position: relative;
}
.toggle-password {
    cursor: pointer;
    color: #999;
    font-size: 18px;             /* 稍大 */
    margin-left: 10px;
    transition: 0.2s;
    display: inline-block;
}
.toggle-password:hover {
    color: #ff9800;
}
body.skin-dark .toggle-password {
    color: #aaa;
}
body.skin-dark .toggle-password:hover {
    color: #ffaa66;
}