/* Netflix风格 Swiper Coverflow 3D效果 */
.netflix-carousel-module {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.netflix-carousel-module .module-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.netflix-carousel-module .module-title {
    margin: 0;
}

/* 视图切换区域 */
.view-switcher-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-switcher-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* 视图切换按钮 */
.view-switcher {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    min-width: 70px;
    height: 40px;
    padding: 0 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-btn-text {
    font-size: 14px;
    font-weight: 500;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.view-btn.active {
    background: #e50914;
    color: #fff;
}

/* 普通列表视图 */
.netflix-grid-view {
    padding: 0 20px;
}

.netflix-swiper {
    width: 100%;
    padding: 80px 0 100px;
    position: relative;
}

.netflix-swiper .swiper-wrapper {
    align-items: center;
}

.netflix-swiper .swiper-slide {
    width: 240px;
    height: 360px;
    position: relative;
    transition: all 0.3s ease;
}

/* 卡片样式 */
.netflix-card {
    width: 100%;
    height: 100%;
    position: relative;
}

.netflix-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.netflix-card-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.netflix-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.netflix-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.netflix-play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.netflix-play-icon i {
    font-size: 32px;
    color: #fff;
    margin-left: 6px;
}

/* 信息区域 */
.netflix-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.netflix-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netflix-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.netflix-badge {
    background: rgba(229, 9, 20, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.netflix-score {
    color: #46d369;
    font-weight: 600;
}

.netflix-card-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #d2d2d2;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 操作按钮 */
.netflix-card-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.netflix-btn {
    height: 40px;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
}

.netflix-btn-play {
    flex: 1;
    background: #fff;
    color: #000;
    padding: 0 20px;
}

.netflix-btn-play:hover {
    background: rgba(255, 255, 255, 0.85);
}

.netflix-btn-add,
.netflix-btn-info {
    width: 40px;
    background: rgba(42, 42, 42, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.netflix-btn-add:hover,
.netflix-btn-info:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.netflix-btn i {
    font-size: 16px;
}

/* 标签 */
.netflix-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.netflix-tag {
    font-size: 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Swiper激活状态 */
.netflix-swiper .swiper-slide-active .netflix-card-image {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.netflix-swiper .swiper-slide-active .netflix-card-overlay {
    opacity: 1;
}

.netflix-swiper .swiper-slide-active .netflix-play-icon {
    transform: scale(1);
}

.netflix-swiper .swiper-slide-active .netflix-card-info {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.netflix-swiper .swiper-slide-active .netflix-card-image img {
    transform: scale(1.05);
}

/* 导航按钮 */
.netflix-nav-prev,
.netflix-nav-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.netflix-nav-prev:after,
.netflix-nav-next:after {
    font-size: 24px;
    font-weight: 900;
}

.netflix-nav-prev:hover,
.netflix-nav-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.netflix-nav-prev.swiper-button-disabled,
.netflix-nav-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 分页器 */
.netflix-pagination {
    bottom: 20px !important;
}

.netflix-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
}

.netflix-pagination .swiper-pagination-bullet-active {
    background: #e50914;
    width: 32px;
    border-radius: 6px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .netflix-swiper .swiper-slide {
        width: 220px;
        height: 330px;
    }
}

@media (max-width: 1200px) {
    .netflix-swiper .swiper-slide {
        width: 200px;
        height: 300px;
    }
    
    .netflix-card-title {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .netflix-swiper .swiper-slide {
        width: 280px;
        height: 420px;
    }
    
    .netflix-card-info {
        padding: 20px;
    }
    
    .netflix-card-title {
        font-size: 18px;
    }
    
    .netflix-play-icon {
        width: 60px;
        height: 60px;
    }
    
    .netflix-play-icon i {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .netflix-carousel-module {
        padding: 40px 0;
    }
    
    .netflix-carousel-module .module-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-switcher-wrapper {
        align-self: flex-end;
    }
    
    /* 移动端按钮稍微缩小 */
    .view-btn {
        min-width: 60px;
        height: 36px;
        padding: 0 16px;
    }
    
    .view-btn-text {
        font-size: 13px;
    }
    
    .netflix-swiper {
        padding: 60px 0 80px;
    }
    
    .netflix-swiper .swiper-slide {
        width: 240px;
        height: 360px;
    }
    
    .netflix-card-info {
        padding: 16px;
    }
    
    .netflix-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .netflix-card-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .netflix-btn {
        height: 36px;
        font-size: 13px;
    }
    
    .netflix-btn-add,
    .netflix-btn-info {
        width: 36px;
    }
    
    .netflix-nav-prev,
    .netflix-nav-next {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 559px) {
    .netflix-carousel-module {
        padding: 30px 0;
    }
    
    .netflix-carousel-module .module-heading {
        padding: 0 15px;
    }
    
    .netflix-grid-view {
        padding: 0 15px;
    }
    
    .netflix-swiper {
        padding: 40px 0 60px;
    }
    
    .netflix-swiper .swiper-slide {
        width: 200px;
        height: 300px;
    }
    
    .netflix-card-info {
        padding: 12px;
    }
    
    .netflix-card-title {
        font-size: 14px;
        -webkit-line-clamp: 1;
    }
    
    .netflix-card-meta {
        font-size: 12px;
        gap: 8px;
    }
    
    .netflix-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .netflix-card-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 12px;
    }
    
    .netflix-card-actions {
        gap: 8px;
    }
    
    .netflix-btn {
        height: 32px;
        font-size: 12px;
    }
    
    .netflix-btn-play {
        padding: 0 12px;
    }
    
    .netflix-btn-add,
    .netflix-btn-info {
        width: 32px;
    }
    
    .netflix-btn i {
        font-size: 14px;
    }
    
    .netflix-play-icon {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }
    
    .netflix-play-icon i {
        font-size: 20px;
    }
    
    .netflix-nav-prev,
    .netflix-nav-next {
        width: 40px;
        height: 40px;
    }
    
    .netflix-nav-prev:after,
    .netflix-nav-next:after {
        font-size: 18px;
    }
    
    .netflix-card-tags {
        display: none;
    }
}

/* 暗色主题适配 */
body .netflix-card-image {
    background: #0a0a0a;
}

body .netflix-card-title {
    color: #fff;
}

body .netflix-card-desc {
    color: #d2d2d2;
}

