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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    text-decoration: none;
}

.logo h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-size: 16px;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.search-section {
    text-align: center;
    width: 100%;
    max-width: 700px;
}

.search-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box {
    display: flex;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.search-box:focus-within {
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.3);
}

.search-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 16px;
    outline: none;
    border-right: 1px solid #eee;
}

.search-input::placeholder {
    color: #999;
}

.episode-input {
    padding: 18px 15px;
    border: none;
    font-size: 16px;
    outline: none;
    width: 100px;
    text-align: center;
}

.episode-input::placeholder {
    color: #999;
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.search-btn:active {
    transform: scale(0.98);
}

.hot-search {
    margin-top: 40px;
    text-align: left;
}

.hot-search-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-tag {
    background: #fff;
    color: #666;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hot-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
}

.no-history {
    color: #999;
    font-size: 14px;
    padding: 8px 0;
}

.results-section {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
    display: none;
}

.results-section.show {
    display: block;
}

.results-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #667eea;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.movie-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.movie-poster {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.movie-rating {
    color: #ff9800;
    font-weight: 600;
}

.footer {
    background: #333;
    color: #999;
    padding: 30px 0;
    margin-top: auto;
}

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

.footer-links a {
    color: #999;
    text-decoration: none;
    margin-left: 25px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav a {
        margin: 0 15px;
    }

    .search-title {
        font-size: 32px;
    }

    .search-btn {
        padding: 18px 25px;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .movie-poster {
        height: 200px;
    }

    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

/* 搜索结果样式 */
.search-results {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

/* 手机端响应式布局 */
@media (max-width: 1280px) {
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .search-input {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .episode-input {
        padding: 15px 12px;
    }
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .result-card {
        border-radius: 10px;
    }
    
    .card-info {
        padding: 10px;
    }
    
    .card-title {
        font-size: 13px;
    }
    
    .card-remark {
        font-size: 11px;
        padding: 30px 8px 8px;
    }
    
    .card-play-btn {
        width: 50px;
        height: 50px;
    }
    
    .card-episodes-badge {
        font-size: 11px;
        padding: 4px 9px;
        top: 8px;
        right: 8px;
    }
    
    .search-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .episode-input {
        padding: 12px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .result-card {
        border-radius: 8px;
    }
    
    .card-info {
        padding: 8px;
    }
    
    .card-title {
        font-size: 12px;
    }
    
    .card-remark {
        font-size: 10px;
        padding: 25px 6px 6px;
    }
    
    .search-box {
        border-radius: 25px;
    }
    
    .search-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .episode-input {
        padding: 10px 8px;
        font-size: 12px;
    }
}

.result-card {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-5px);
}

.card-poster-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.result-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-card:hover .result-poster {
    transform: scale(1.05);
}

.result-poster-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.placeholder-icon {
    font-size: 48px;
    opacity: 0.9;
}

.placeholder-text {
    color: #fff;
    font-size: 13px;
    opacity: 0.85;
    font-weight: 500;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.result-card:hover .card-overlay {
    opacity: 1;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.result-card:hover .card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-play-btn svg {
    margin-left: 3px;
}

.card-episodes-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.card-server-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: white;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 20px;
    z-index: 2;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
}

.card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.card-remark {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    color: white;
    padding: 40px 10px 10px;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 2;
}

.episodes-list {
    padding: 0 15px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.episode-tag {
    padding: 5px 10px;
    background: #e8f4fd;
    border: 1px solid #007bff;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
    font-size: 12px;
    transition: all 0.2s;
}

.episode-tag:hover {
    background: #007bff;
    color: #fff;
}

.search-input.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.search-input:focus {
    background: #f8f9fa;
}

.search-input::-webkit-search-cancel-button {
    cursor: pointer;
}

.pagination-section {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    color: #666;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 14px;
}

.page-link:hover:not(.active) {
    background: #f0f0f0;
    color: #667eea;
}

.page-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

.pagination-info {
    margin-top: 15px;
    font-size: 14px;
    color: #999;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 30px 40px;
    min-width: 320px;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    text-align: center;
}

.modal-body p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.search-progress {
    margin-bottom: 25px;
}

.progress-step {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.progress-step.completed {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.35);
}

.progress-step.active {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.55);
}

.step-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.progress-message {
    font-size: 17px;
    color: #222;
    margin-top: 15px;
    font-weight: 600;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    display: inline-block;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(232, 232, 232, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.loading-text {
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 60px 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-results .results-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding-left: 12px;
    border-left: 4px solid #667eea;
}

.results-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.total-count {
    color: #666;
    font-weight: 500;
}

.cache-info {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.cache-info.cached {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.cache-info.live {
    background: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.server-stats {
    margin: 15px 0;
    padding: 12px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    border-left: 3px solid #e9ecef;
}

@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
        align-items: flex-start;
    }
    
    .search-results .results-title {
        font-size: 16px;
        padding-left: 8px;
        border-left: 3px solid #667eea;
    }
    
    .results-stats {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .cache-info {
        padding: 4px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .search-results .results-title {
        font-size: 14px;
        padding-left: 6px;
        border-left: 2px solid #667eea;
    }
}

.no-results {
    text-align: center;
    font-size: 18px;
    color: #999;
    padding: 60px 0;
}

.episode-more {
    margin-top: 8px;
    text-align: center;
}

.episode-toggle {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 13px;
    transition: all 0.3s;
    cursor: pointer;
}

.episode-toggle:hover {
    background: #e0e0e0;
    color: #333;
}

.episode-toggle.expand {
    color: #667eea;
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.episode-toggle.expand:hover {
    background: rgba(102, 126, 234, 0.2);
}

.episode-toggle.collapse {
    color: #999;
    border-color: #ccc;
}

.episode-toggle.collapse:hover {
    background: #e8e8e8;
    color: #666;
}

.episodes-all {
    padding: 0 15px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.episodes-all::-webkit-scrollbar {
    width: 6px;
}

.episodes-all::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.episodes-all::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.episodes-all::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.episode-more-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.episode-more-tag:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.episodes-modal .modal-content {
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.episodes-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(238, 238, 238, 0.6);
    margin-bottom: 15px;
}

.episodes-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episodes-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.episodes-modal-close:hover {
    color: #333;
}

.episodes-modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

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

.episode-modal-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.episode-modal-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.episodes-modal-body::-webkit-scrollbar {
    width: 8px;
}

.episodes-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.episodes-modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.episodes-modal-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.movie-detail-page {
    min-height: 100vh;
    background: #f5f5f5;
}

.movie-hero-section {
    padding: 40px 0;
    color: #fff;
}

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

.back-button-wrapper {
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.movie-hero-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.movie-poster-wrapper {
    position: relative;
    flex-shrink: 0;
}

.movie-poster-large {
    width: 300px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.movie-poster-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: rgba(0, 0, 0, 0.3);
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    border-radius: 12px;
}

.movie-poster-wrapper:hover .poster-overlay {
    opacity: 1;
}

.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: transform 0.3s;
}

.movie-poster-wrapper:hover .play-icon {
    transform: scale(1.1);
}

.movie-info-wrapper {
    flex: 1;
    padding: 20px 0;
}

.movie-title-section {
    margin-bottom: 30px;
}

.movie-title-large {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.movie-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.movie-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.meta-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.meta-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.meta-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
}

.movie-rating-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    padding: 15px 25px;
    border-radius: 30px;
    margin-bottom: 20px;
    width: fit-content;
}

.rating-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-star {
    font-size: 24px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rating-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.movie-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 14px;
}

.movie-content-section {
    padding: 40px 0;
}

.content-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.tab-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.movie-description-card {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 20px;
}

.empty-state p {
    color: #999;
    font-size: 16px;
}

.movie-content-section .episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.episode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.episode-card:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.episode-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.episode-name {
    font-size: 13px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.related-section {
    padding: 40px 0 60px;
}

.section-title {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #333;
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.related-tag {
    padding: 12px 25px;
    background: #fff;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #eee;
}

.related-tag:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.not-found-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.not-found-content {
    text-align: center;
    background: #fff;
    padding: 60px 80px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.not-found-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 20px;
}

.not-found-content h2 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #333;
}

.not-found-content p {
    color: #999;
    margin: 0 0 30px 0;
}

.not-found-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-btn {
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #eee;
}

.action-btn.secondary:hover {
    background: #eee;
}

@media (max-width: 768px) {
    .movie-hero-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .movie-poster-large {
        width: 250px;
        height: 375px;
    }
    
    .movie-title-large {
        font-size: 28px;
    }
    
    .movie-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .movie-rating-card {
        margin-left: auto;
        margin-right: auto;
    }
    
    .content-tabs {
        flex-direction: column;
    }
    
    .movie-content-section .episodes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .not-found-content {
        padding: 40px 20px;
    }
}

/* 加载更多样式 */
.load-more-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    min-height: 100px; /* 确保有足够的高度让 Intersection Observer 检测到 */
}

.load-more-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.load-more-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

.load-more-indicator p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.no-more-indicator {
    display: none;
    padding: 30px 20px;
}

.no-more-indicator p {
    font-size: 16px;
    color: #999;
    margin: 0;
    padding: 10px 0;
}

/* 搜索提示 */
.search-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.progress-circle-container {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.progress-circle-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-percent {
    font-size: 12px;
    color: #667eea;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.search-status-text {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

.search-indicator p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* 到顶和到底按钮 */
.scroll-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.scroll-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.scroll-button:active {
    transform: translateY(0);
}

.scroll-to-top svg {
    transform: rotate(0deg);
}

.scroll-to-bottom svg {
    transform: rotate(0deg);
}

@media (max-width: 768px) {
    .scroll-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .scroll-button {
        width: 36px;
        height: 36px;
    }
}

.no-servers-warning {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.no-servers-warning::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.no-servers-warning::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.no-servers-warning .warning-icon {
    font-size: 60px;
    flex-shrink: 0;
    animation: bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.no-servers-warning .warning-content {
    flex: 1;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.no-servers-warning .warning-content h3 {
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 12px 0;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.no-servers-warning .warning-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.no-servers-warning .btn-primary {
    display: inline-block;
    background: #ffffff;
    color: #667eea;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.no-servers-warning .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9ff;
}

.no-servers-warning .btn-primary:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .no-servers-warning {
        flex-direction: column;
        padding: 30px 20px;
        gap: 15px;
    }
    
    .no-servers-warning .warning-icon {
        font-size: 50px;
    }
    
    .no-servers-warning .warning-content h3 {
        font-size: 20px;
    }
    
    .no-servers-warning .warning-content p {
        font-size: 14px;
    }
    
    .no-servers-warning .btn-primary {
        padding: 10px 25px;
        font-size: 14px;
    }
}
