/* 电影简介弹窗 */
.movie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  margin-top: 12px;
  z-index: 30;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.movie-modal.show {
  display: flex;
  opacity: 1;
}
.movie-modal-content {
  margin-top: 10px;
  background: #192734;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  color: #fff;
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
}
.movie-modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.movie-modal-poster {
  width: 150px;
  height: 225px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 20px;
}
.movie-modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}
.movie-modal-info {
  font-size: 14px;
  margin-top: 10px;
  color: #8899a6;
}
.movie-modal-synopsis {
  margin-bottom: 20px;
  white-space: pre-wrap;
  height: 80px;
  line-height: 1.6;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.movie-modal-ratings {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.movie-modal-rating {
  text-align: center;
}
.movie-modal-rating-value {
  font-size: 28px;
  font-weight: bold;
}
.movie-modal-rating-label {
  font-size: 14px;
  color: #8899a6;
}
.movie-modal-cast {
  margin-bottom: 20px;
}
.movie-modal-cast h4 {
  font-size: 18px;
  margin-bottom: 10px;
}
.movie-modal-cast-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.movie-modal-cast-member {
  font-size: 14px;
}
.movie-modal-reviews {
  margin-bottom: 20px;
}
.movie-modal-reviews h4 {
  font-size: 18px;
  margin-bottom: 10px;
}
.movie-modal-review {
  margin-bottom: 10px;
  font-style: italic;
}
.movie-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #8899a6;
}
/* 评论区域滚动容器 */
.movie-modal .reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.movie-modal .reviews-list {
  max-height: 320px;
  overflow: auto;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 8px 12px;
}
.movie-modal .reviews-list[data-loading="1"] {
  opacity: 0.6;
}
.movie-modal .reviews-footer {
  margin-top: 6px;
}
.movie-comment {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.movie-comment:last-child {
  border-bottom: none;
}
.movie-comment .meta {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 4px;
}
.movie-comment .content {
  white-space: pre-wrap;
  line-height: 1.5;
}
/* 按钮与提示 */
.btn {
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
}
.btn-primary {
  background: #1a73e8;
  color: #fff;
  border-color: transparent;
}
.hint {
  font-size: 12px;
  opacity: 0.85;
  margin-left: 8px;
}
/* 写评论弹窗 */
.comment-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}
.comment-modal-content {
  width: 60vw;
  background: #192734;
  color: #fff;
  border-radius: 12px;
  padding: 16px 16px 12px;
  position: relative;
}
.comment-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  cursor: pointer;
  font-size: 20px;
  opacity: 0.7;
}
#commentForm .row {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#commentForm input,
#commentForm textarea {
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
#commentForm .actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#nomForm .row {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#nomForm input,
#commentForm textarea {
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
#nomForm .actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#movieReviews.reviews-list {
  height: 150px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
@media (prefers-color-scheme: light) {
  .movie-modal {
    background: rgba(255,255,255,0.8);
  }
  .movie-modal-content {
    background: #e6e6e6;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    color: #000;
  }
  .movie-modal-title {
    color: #000;
  }
  .movie-modal-info {
    color: #666;
  }
  .movie-modal-rating-label {
    color: #666;
  }
  .movie-modal-close {
    color: #666;
  }
  .comment-modal-content {
    background: #fff;
    color: #000;
  }
}
@media (max-aspect-ratio: 1/1) {
  .movie-modal-synopsis {
    margin-bottom: 18px;
    height: 60px;
    line-height: 1.2;
    font-size: 12px;
  }
  .movie-modal-poster {
    width: 96px;
    height: 144px;
  }
  #movieReviews.reviews-list {
    height: 120px;
    font-size: 12px;
  }
  .comment-modal-content {
    width: 92vw;
  }
}
@-moz-keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@-webkit-keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@-o-keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
