/* css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #4a1e7a;
    --secondary: #ff6b35;
    --tertiary: #ffa726;
    --dark: #2d0f4d;
    --light: #ffffff;
    --gray: #6c757d;
    --bg-light: #f8f9fa;
    --card-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --hover-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

body {
    background-color: var(--bg-light);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    flex: 1;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--tertiary);
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #e55a2b;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.2);
    color: var(--tertiary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(74, 30, 122, 0.8), rgba(74, 30, 122, 0.9)), 
                url('https://image.tmdb.org/t/p/w1280/7RyHsO4yDXtBv1zUU3mTpHeQ0d5.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

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

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Amazon  */
.btn-amazon {
    background: var(--secondary);
    color: white;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-amazon i {
    color: white;
    margin-right: 0.5rem;
}

.btn-amazon:hover {
    background: #e55a2b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-amazon:hover i {
    color: white;
}

/* Categories */
.categories {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 25px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary);
    display: inline-block;
}

/* Content Sections */
.content-section {
    margin: 3rem 0;
}

.content-section:first-of-type {
    margin-top: 0;
}

/* Category Sections */
.category-section {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.category-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
}

.view-all {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--primary);
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.movie-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.movie-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.movie-poster {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.movie-info {
    padding: 1rem;
}

.movie-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray);
    font-size: 0.9rem;
}

.rating {
    color: var(--secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.character {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.5rem;
    font-style: italic;
}

/* TV Specific Styles */
.tv-genres {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.tv-genre {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tv-genre:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.tv-networks,
.tv-status {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tv-networks strong,
.tv-status strong {
    color: var(--tertiary);
}

/* Movie Details */
.movie-detail {
    margin: 2rem 0;
}

.movie-header {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(74, 30, 122, 0.9), rgba(74, 30, 122, 0.7));
}

.movie-content {
    position: relative;
    display: flex;
    gap: 2rem;
    padding: 3rem;
    color: white;
}

.movie-poster-large {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.movie-poster-large img {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.movie-info-large {
    flex: 1;
}

.movie-info-large h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.movie-meta-large {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    align-items: center;
    flex-wrap: wrap;
}

.movie-meta-large .rating {
    color: var(--tertiary);
    font-size: 1.2rem;
}

.movie-genres {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.genre {
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.genre:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.movie-overview {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Movie Details Information */
.movie-details-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.detail-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-item strong {
    color: var(--tertiary);
}

.language-flag {
    background: var(--secondary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Actor Details */
.actor-detail {
    margin: 2rem 0;
}

.actor-header {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.actor-photo-large {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.actor-photo-large img {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.actor-info-large {
    flex: 1;
}

.actor-info-large h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.actor-meta {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.actor-meta strong {
    color: var(--secondary);
}

.actor-biography {
    margin-top: 2rem;
}

.actor-biography h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.actor-biography p {
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Actors Grid */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.actor-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.actor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.actor-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.actor-photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.actor-info {
    padding: 1rem;
}

.actor-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actor-known-for {
    color: var(--gray);
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Cast Section */
.cast-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.cast-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.cast-member {
    text-align: center;
    transition: transform 0.3s;
}

.cast-member:hover {
    transform: translateY(-5px);
}

.cast-member a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cast-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary);
    box-shadow: var(--card-shadow);
}

.cast-info {
    text-align: center;
}

.cast-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.cast-character {
    color: var(--gray);
    font-size: 0.8rem;
}

/* Search Results */
.search-results {
    margin: 2rem 0;
}

.search-prompt,
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.search-prompt i,
.no-results i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary);
    opacity: 0.7;
}

.search-prompt h3,
.no-results h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-light);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--bg-light);
}

.load-more-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Season Detail Page */
.season-detail {
    margin: 2rem 0;
}

.season-header {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.season-poster-large {
    flex-shrink: 0;
}

.season-poster-large img {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.season-info-large {
    flex: 1;
}

.season-info-large h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.season-meta {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.season-meta strong {
    color: var(--secondary);
}

.season-overview {
    margin-top: 2rem;
}

.season-overview h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.season-overview p {
    line-height: 1.7;
    font-size: 1.1rem;
}

.back-to-tv {
    margin-top: 2rem;
}

/* Seasons Section */
.seasons-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.seasons-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.season-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.season-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.season-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.season-poster {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.season-info {
    padding: 0.8rem;
    text-align: center;
}

.season-info h4 {
    margin: 0 0 0.3rem 0;
    font-size: 0.9rem;
    color: var(--primary);
}

.season-info p {
    margin: 0 0 0.3rem 0;
    font-size: 0.8rem;
    color: var(--gray);
}

.season-year {
    font-size: 0.7rem;
    color: var(--tertiary);
    font-weight: bold;
}

/* Episodes Section */
.episodes-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.episodes-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.episode-card {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.episode-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.episode-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.episode-content {
    display: flex;
    gap: 1rem;
    padding: 1rem;
}

.episode-poster {
    flex-shrink: 0;
    width: 200px;
}

.episode-poster img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.episode-info {
    flex: 1;
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.episode-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.episode-rating {
    background: var(--secondary);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.episode-date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.episode-overview {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Episode Detail Page */
.episode-detail {
    margin: 2rem 0;
}

/* 修复剧集页面图片与标题间距 */
.episode-header {
    display: flex;
    gap: 2rem;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.episode-still-large {
    flex-shrink: 0;
}

.episode-still-large img {
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.episode-info-large {
    flex: 1;
}

.episode-info-large h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.episode-info-large h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.episode-title-main {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.episode-meta-large {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.episode-meta-large .rating {
    color: var(--secondary);
    font-weight: 600;
}

.episode-overview-large {
    margin: 2rem 0;
}

.episode-overview-large h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.episode-overview-large p {
    line-height: 1.7;
    font-size: 1.1rem;
}

.episode-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Crew Section */
.crew-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.crew-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.crew-member {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.crew-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.crew-job {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

/* Guest Stars Section */
.guest-stars-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.guest-stars-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Videos Section */
.videos-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.videos-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.video-item {
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

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

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-thumbnail:hover .video-play-overlay {
    opacity: 1;
}

.video-play-overlay i {
    color: white;
    font-size: 2rem;
}

.video-info {
    padding: 1rem;
}

.video-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-type {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    background: white;
    border-radius: 10px;
}

.video-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.video-modal-close:hover {
    color: var(--primary);
}

#videoPlayer {
    width: 100%;
    height: 400px;
}

/* 分享按钮样式 */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid #ddd;
    border-radius: 25px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.share-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

/* 图片容器内的分享按钮样式 */
.movie-poster-large .share-buttons,
.actor-photo-large .share-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.movie-poster-large .share-btn,
.actor-photo-large .share-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    flex: 1;
    max-width: 120px;
    text-align: center;
    justify-content: center;
}

/* 分享按钮动画效果 */
.share-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 图片容器悬停效果 */
.movie-poster-large:hover img,
.actor-photo-large:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.movie-poster-large img,
.actor-photo-large img {
    transition: transform 0.3s ease;
}

/* Toast Notification */
.share-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.share-toast.show {
    transform: translateX(0);
}

.share-toast.success {
    background: #28a745;
}

.share-toast.error {
    background: #dc3545;
}

/* Ad Unit Styles */
.ad-section {
    margin: 2rem 0;
    padding: 1rem 0;
}

.ad-unit {
    text-align: center;
    margin: 1rem auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 100%;
    max-width: 1200px;
}

.ad-unit.header-ad,
.ad-unit.footer-ad {
    margin: 1rem auto;
    min-height: 90px;
}

.ad-unit.banner-ad {
    margin: 2rem auto;
    min-height: 90px;
}

.ad-unit.rectangle-ad {
    margin: 2rem auto;
    min-height: 250px;
}

.ad-unit.in-content-ad {
    margin: 2rem auto;
    min-height: 90px;
}


.ad-unit ins {
    margin: 0 auto !important;
    display: block !important;
    width: 100% !important;
}


.ad-unit:empty {
    background: transparent;
    animation: none;
}


.breadcrumbs {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    padding: 1rem 0;
    color: white;
    border-bottom: 2px solid var(--tertiary);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--tertiary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.breadcrumb-item a:hover {
    color: white;
    transform: translateY(-2px);
}

.breadcrumb-item.active {
    color: white;
    font-weight: 500;
    opacity: 0.9;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: rgba(255,255,255,0.5);
}

.breadcrumb-item i {
    font-size: 0.8rem;
}


.page-hero,
.movie-header,
.actor-header,
.season-header,
.episode-header {
    margin-top: 0;
}


@media (max-width: 768px) {
    .ad-unit {
        margin: 1rem 0;
    }
    
    .ad-unit.banner-ad,
    .ad-unit.in-content-ad {
        min-height: 100px;
    }
    
    .ad-unit.rectangle-ad {
        min-height: 250px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .movie-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .movie-poster-large img {
        width: 250px;
    }
    
    .movie-actions {
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: column;
        width: 100%;
    }
    
    .movie-actions .btn {
        width: 100%;
    }
    
    .actor-header {
        flex-direction: column;
        text-align: center;
    }
    
    .actor-photo-large img {
        width: 250px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .actors-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .actor-photo {
        height: 200px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    
    .season-header,
    .episode-header {
        flex-direction: column;
        text-align: center;
    }
    
    .episode-still-large {
        margin-bottom: 1.5rem;
    }
    
    .episode-still-large img {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        display: block;
    }
    
    .season-poster-large img {
        width: 250px;
    }
    
    .episode-content {
        flex-direction: column;
    }
    
    .episode-poster {
        width: 100%;
    }
    
    .episode-poster img {
        height: 200px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .seasons-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .crew-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .video-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #videoPlayer {
        height: 300px;
    }
    
    .load-more-section .btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .movie-poster-large .share-buttons,
    .actor-photo-large .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .movie-poster-large .share-btn,
    .actor-photo-large .share-btn {
        width: 100%;
        max-width: 150px;
    }
    
    .breadcrumbs {
        padding: 0.75rem 0;
    }
    
    .breadcrumb-item {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item i {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .actors-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .actor-photo {
        height: 180px;
    }
    
    .nav-links {
        gap: 0.3rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .movie-meta-large {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .season-poster-large img {
        width: 200px;
    }
    
    .episode-header {
        padding: 1rem;
    }
    
    .episode-actions {
        flex-direction: column;
    }
    
    .episode-actions .btn {
        width: 100%;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .video-modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    #videoPlayer {
        height: 250px;
    }
    
    .breadcrumb-list {
        gap: 0.3rem;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 0.3rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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