/* 电影详情页专用样式 */

/* 面包屑导航 */
.breadcrumb-nav { margin-top: 70px; background: #141414; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0.6rem 0; }
.breadcrumb { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; }
.breadcrumb-item { font-size: 0.9rem; color: #b3b3b3; }
.breadcrumb-item + .breadcrumb-item::before { content: '›'; padding: 0 0.5rem; color: #666; }
.breadcrumb-item a { color: #b3b3b3; text-decoration: none; transition: color 0.2s; }
.breadcrumb-item a:hover { color: #e50914; }
.breadcrumb-item.active { color: #fff; }

.detail-hero { min-height: 70vh; background-size: cover; background-position: center; padding: 4rem 0; position: relative; }
.detail-poster { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.5); transition: all 0.3s ease; }
.detail-poster:hover { transform: scale(1.02); box-shadow: 0 15px 50px rgba(229, 9, 20, 0.4); }
.detail-poster img { width: 100%; display: block; }
.detail-info { padding: 2rem 0; }
.detail-title { font-size: 3rem; font-weight: bold; margin-bottom: 1rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
.detail-tagline { font-size: 1.1rem; }
.detail-meta { display: flex; gap: 2rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.detail-meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; }
.detail-rating { display: flex; align-items: center; gap: 1rem; }
.rating-score { font-size: 2.5rem; font-weight: bold; color: #ffc107; }
.rating-stars { display: flex; gap: 0.2rem; }
.rating-stars i { color: #ffc107; font-size: 1.2rem; }
.detail-genres { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.genre-badge { background: rgba(229, 9, 20, 0.2); border: 1px solid #e50914; color: #fff; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.9rem; text-decoration: none; transition: all 0.3s ease; }
.genre-badge:hover { background: rgba(229, 9, 20, 0.5); color: #fff; }
.detail-overview { font-size: 1.1rem; line-height: 1.8; color: #b3b3b3; margin-bottom: 2rem; }
.detail-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.detail-actions .btn { padding: 0.8rem 2rem; border-radius: 30px; font-weight: 600; transition: all 0.3s ease; }
.detail-actions .btn-primary { background: #e50914; border: none; }
.detail-actions .btn-primary:hover { background: #b20710; transform: scale(1.05); box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4); }
.detail-actions .btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.05); }
.detail-content { padding: 4rem 0; }
.content-section { margin-bottom: 4rem; }
.section-title { font-size: 2rem; font-weight: bold; margin-bottom: 2rem; display: flex; align-items: center; gap: 0.5rem; }
.section-title i { color: #e50914; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2rem; }
.cast-card { text-align: center; transition: all 0.3s ease; }
.cast-card:hover { transform: translateY(-5px); }
.cast-avatar { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; border: 3px solid rgba(255, 255, 255, 0.1); transition: all 0.3s ease; background: #2f2f2f; }
.cast-card:hover .cast-avatar { border-color: #e50914; box-shadow: 0 0 20px rgba(229, 9, 20, 0.4); }
.cast-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cast-name { font-weight: 600; margin-bottom: 0.3rem; }
.cast-character { color: #b3b3b3; font-size: 0.9rem; }
.images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.image-card { cursor: pointer; transition: all 0.3s ease; }
.image-card:hover { transform: scale(1.05); }
.image-wrapper { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: all 0.3s ease; }
.image-card:hover .image-wrapper img { transform: scale(1.1); }
.reviews-section { background: #221f1f; padding: 3rem; border-radius: 15px; }
.review-form { background: rgba(255, 255, 255, 0.05); padding: 2rem; border-radius: 12px; margin-bottom: 3rem; }
.rating-input { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.rating-input i { font-size: 2rem; color: #666; cursor: pointer; transition: all 0.2s ease; }
.rating-input i:hover, .rating-input i.active { color: #ffc107; transform: scale(1.2); }
.review-form textarea { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; border-radius: 8px; padding: 1rem; width: 100%; min-height: 120px; resize: vertical; }
.review-form textarea:focus { outline: none; border-color: #e50914; background: rgba(255, 255, 255, 0.15); }
.review-list { display: flex; flex-direction: column; gap: 2rem; }
.review-item { background: rgba(255, 255, 255, 0.05); padding: 1.5rem; border-radius: 12px; transition: all 0.3s ease; }
.review-item:hover { background: rgba(255, 255, 255, 0.08); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.review-user { display: flex; align-items: center; gap: 1rem; }
.review-avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; }
.review-user-info h5 { margin: 0; font-size: 1rem; }
.review-date { color: #b3b3b3; font-size: 0.85rem; }
.review-content { color: #b3b3b3; line-height: 1.6; }

@media (max-width: 768px) {
    .detail-title { font-size: 2rem; }
    .detail-meta { gap: 1rem; }
    .rating-score { font-size: 2rem; }
    .cast-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1.5rem; }
    .cast-avatar { width: 120px; height: 120px; }
    .images-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 576px) {
    .detail-hero { padding: 2rem 0; }
    .detail-title { font-size: 1.5rem; }
    .detail-actions { flex-direction: column; }
    .detail-actions .btn { width: 100%; }
    .cast-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .cast-avatar { width: 100px; height: 100px; }
}

/* 视频卡片网格 */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.video-card { border-radius: 12px; overflow: hidden; transition: all 0.3s ease; cursor: pointer; background: #221f1f; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(229,9,20,0.3); }
.video-thumbnail { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.video-card:hover .video-thumbnail img { transform: scale(1.05); }
.video-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 60px; height: 60px; border-radius: 50%; background: rgba(229,9,20,0.85);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem;
    transition: all 0.3s ease; }
.video-card:hover .video-play-btn { background: #e50914; transform: translate(-50%,-50%) scale(1.1); }
.video-title { padding: 0.8rem 1rem; font-weight: 500; font-size: 0.95rem; color: #e5e5e5; }

/* 视频弹窗 */
.video-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; 
    background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; }
.video-modal.show { display: flex; }
.video-modal-content { position: relative; width: 90%; max-width: 960px; }
.video-modal-close { position: absolute; top: -40px; right: 0; background: none; border: none; 
    color: #fff; font-size: 2rem; cursor: pointer; transition: color 0.3s; }
.video-modal-close:hover { color: #e50914; }
.video-embed-wrapper { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; }
.video-embed-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; }

/* 分享 Toast */
.share-toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); 
    background: #e50914; color: #fff; padding: 0.8rem 2rem; border-radius: 30px; font-weight: 500;
    z-index: 9999; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.share-toast.show { opacity: 1; }

/* 分享按钮 */
.btn-share { border-radius: 30px; font-weight: 600; transition: all 0.3s ease; }
.btn-share:hover { background: rgba(255,255,255,0.15); transform: scale(1.05); }

/* 电影卡片中的收藏按钮（推荐区域覆盖样式） */
.movies-grid .movie-card .movie-overlay { gap: 0.8rem; }
.movies-grid .movie-card .btn-favorite { width: 42px; height: 42px; }
.movies-grid .movie-card .btn-play { width: 42px; height: 42px; }
