:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e67e22;
    --bg-light: #f8f9fa;
    --text-dark: #333;
}

/* 双栏布局核心 */
.main-layout {
    display: flex;
    gap: 30px;
}
.movie-detail {
    flex: 7;  /* 70%宽度 */
}
.hot-ranking {
    flex: 3;  /* 30%宽度 */
}

/* 电影详情卡片 */
.detail-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.movie-header {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}
.poster-container {
    flex: 0 0 200px;
}
.poster-container img{
    max-width: 330px;
}
.movie-poster {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.movie-info {
    flex: 1;
}
.movie-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #666;
}
.rating {
    color: var(--accent);
    font-weight: bold;
}
.movie-description {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* 新增内容样式 */
.section-title {
    font-size: 1.4rem;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    color: var(--primary);
    display: flex;
    align-items: center;
}
.section-title i {
    margin-right: 10px;
    color: var(--accent);
}

.section-title a{
    font-size: 1.2rem;
    margin-left: auto; /*文字靠右对其*/
}

/* 演职员表 */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}
.cast-card {
    text-align: center;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.cast-card:hover {
    transform: translateY(-5px);
}
.cast-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 2px solid var(--secondary);
}
.cast-name {
    font-weight: 600;
    margin-bottom: 5px;
}
.cast-role {
    color: #777;
    font-size: 0.9rem;
}

/* 剧照展示 */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.gallery-item {
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.gallery-item:hover {
    transform: scale(1.05);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 奖项信息 */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.award-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.award-name {
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}
.award-category {
    color: #666;
    margin-bottom: 10px;
}
.award-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}
.award-won {
    background: #d4edda;
    color: #155724;
}
.award-nominated {
    background: #fff3cd;
    color: #856404;
}

/* 用户评论 */
.review-card {
    padding: 20px;
    border-radius: 8px;
    background: var(--bg-light);
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar, .user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
}
.review-rating {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}
.review-content {
    line-height: 1.7;
}

/* 实时热榜样式 */
.ranking-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}
.ranking-list {
    list-style: none;
}
.ranking-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}
.ranking-item:hover {
    background-color: #f9f9f9;
}
.ranking-number {
    font-size: 1.2rem;
    font-weight: bold;
    width: 30px;
    text-align: center;
    margin-right: 15px;
}
.top-1 { color: #ff9900; }
.top-2 { color: #dc3545; }
.top-3 { color: #28a745; }
.ranking-movie-title {
    font-weight: 600;
    margin-bottom: 3px;
}
.ranking-movie-meta {
    font-size: 0.9rem;
    color: #777;
}

/* 评论表单样式 - start */
.comment-form {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.comment-form-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.comment-form-title i {
    margin-right: 10px;
    color: var(--accent);
}

.comment-input {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}

.comment-input:focus {
    outline: none;
    border-color: var(--secondary);
}

/* 表情包区域 - 单独一行 */
.emoji-section {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #eee;
}

.emoji-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #666;
}

.emoji-panel {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5px;
}

.emoji-option {
    font-size: 1.5rem;
    cursor: pointer;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.emoji-option:hover {
    background: #f0f0f0;
    transform: scale(1.2);
}

/* 操作区域 - 评分、验证码和按钮在同一行 */
.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.rating-container {
    display: flex;
    align-items: center;
}

.rating-label {
    margin-right: 10px;
    font-weight: 500;
    color: #666;
}

.star-rating {
    display: flex;
    direction: row;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    width: 25px;
    height: 25px;
    margin: 0 2px;
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.star-rating label:before {
    content: '★';
}

.star-rating input:checked ~ label {
    color: #ccc;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked + label,
.star-rating input:checked + label ~ label {
    color: #ff9900;
}

.captcha-container {
    display: flex;
    align-items: center;
}

.captcha-label {
    margin-right: 10px;
    font-weight: 500;
    color: #666;
}

.captcha-code {
    display: inline-block;
    width: 60px;
    height: 30px;
    background: linear-gradient(45deg, #2c3e50, #3498db);
    color: white;
    text-align: center;
    line-height: 30px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-right: 10px;
}

.refresh-captcha {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 10px;
    transition: background 0.3s;
}

.refresh-captcha:hover {
    background: #e6e6e6;
}

.captcha-input {
    width: 105px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.submit-comment-btn {
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.submit-comment-btn:hover {
    background: #2980b9;
}
/* 评论表单样式 - end */

/* 全屏海报查看模态框  start*/
.poster-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.poster-modal.active {
    opacity: 1;
    visibility: visible;
}

.poster-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.poster-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.poster-modal.active .poster-modal-img {
    transform: scale(1);
}

.poster-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.poster-modal-close:hover {
    color: #ff9900;
}
/* 全屏海报查看模态框 end*/

