body {
    background-image: url('../public/images/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* 面包屑导航样式 */
.breadcrumb {
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9, #3498db);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #fff;
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.breadcrumb a:active {
    transform: translateY(0);
}

.breadcrumb .separator {
    margin: 0 0.8rem;
    color: #bdc3c7;
    font-weight: bold;
    position: relative;
    top: -2px;
}

.breadcrumb .separator::before {
    content: '›';
    font-size: 1.2rem;
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.container {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(1px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0);
}

.page-header {
    text-align: center;
    padding: 3rem 0;
    height: 300px;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}


.page-header.action-header {
    background-image: url('../public/images/banners/Action.jpeg');
}

.page-header.drama-header {
    background-image: url('../public/images/banners/drama.jpg');
}

.page-header.comedy-header {
    background-image: url('../public/images/banners/comedy.jpg');
}

.page-header.scifi-header {
    background-image: url('../public/images/banners/sci-fi.jpg');
}

.page-header.animation-header {
    background-image: url('../public/images/banners/Animation.png');
}

.page-header.romance-header {
    background-image: url('../public/images/banners/romance.jpg');
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.header-overlay {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}


.search-section {
    margin-bottom: 3rem;
}


.movies-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.section-header h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin: 0;
}


.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #3498db;
    color: white;
}

.filter-btn.active {
    background: #3498db;
    color: white;
}


.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}


.movie-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.movie-poster {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.movie-poster::before {
    content: '🎬';
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1.2rem 0.6rem 0.6rem;
    z-index: 2;
}

.movie-title-overlay {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.movie-info {
    padding: 0.8rem;
}

.movie-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    color: #666;
}

.movie-year {
    background: #ecf0f1;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.7rem;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.rating-stars {
    color: #f39c12;
}

.movie-description {
    color: #666;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-actions {
    display: flex;
    gap: 0.3rem;
}

.btn {
    padding: 0.3rem 0.6rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.btn-secondary:hover {
    background: #d5dbdb;
}


.pagination-section {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-btn {
    padding: 0.4rem 0.8rem;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #3498db;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-weight: 500;
    font-size: 0.85rem;
    color: #2c3e50;
}

.nav-links a.active {
    color: #3498db;
    font-weight: 600;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .movie-poster {
        height: 350px;
    }

    .filter-buttons {
        justify-content: center;
    }

    .pagination {
        padding: 0.8rem 1.5rem;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
    }

    .movie-poster {
        height: 300px;
    }

    .movie-info {
        padding: 1rem;
    }

    .movie-actions {
        flex-direction: column;
    }

    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: #666;
}

.loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.empty-state .btn {
    display: inline-block;
}