/* TechStream Template - Video Player Styles */

/* Player Container */
.player-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 1rem 2rem;
}

/* Player Section */
.player-section {
  margin-bottom: 3rem;
}

.video-main-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .video-main-container {
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .player-section {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

/* Video Container */
.video-container {
  position: relative;
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 255, 204, 0.2),
    0 0 120px rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
}

/* 影片海报容器 */
.movie-poster-container {
  position: relative;
}

.poster-frame {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 204, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 255, 204, 0.2),
    0 0 120px rgba(0, 255, 204, 0.1);
  position: relative;
  aspect-ratio: 2/3;
  transition: all 0.3s ease;
}

.poster-frame:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 25px 80px rgba(0, 255, 204, 0.3),
    0 0 150px rgba(0, 255, 204, 0.2);
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.poster-frame:hover .movie-poster {
  transform: scale(1.05);
}

.poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.poster-frame:hover .poster-overlay {
  opacity: 1;
}

.poster-info {
  margin-bottom: 1rem;
}

.poster-title {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poster-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.poster-rating,
.poster-year,
.poster-duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.poster-rating i,
.poster-year i,
.poster-duration i {
  color: var(--neural-primary);
  font-size: 0.8rem;
}

.poster-actions {
  display: flex;
  gap: 0.5rem;
}

.poster-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 6px;
  color: var(--neural-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.poster-btn:hover {
  background: var(--neural-primary);
  color: var(--bg-primary);
  box-shadow: var(--glow-primary);
}

.poster-btn.active {
  background: var(--neural-primary);
  color: var(--bg-primary);
}

/* 移动端海报尺寸调整 */
@media (max-width: 768px) {
  .poster-frame {
    aspect-ratio: 16/9;
    height: 200px;
  }
  
  .poster-title {
    font-size: 1rem;
  }
  
  .poster-actions {
    gap: 0.3rem;
  }
  
  .poster-btn {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .video-main-container {
    gap: 1rem;
  }
  
  .poster-frame {
    height: 150px;
  }
  
  .poster-overlay {
    padding: 1rem;
  }
  
  .poster-title {
    font-size: 0.9rem;
  }
}

/* Video Player */
.techstream-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
  padding: 3rem 1rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.techstream-player:hover .video-controls,
.techstream-player.show-controls .video-controls {
  opacity: 1;
  visibility: visible;
}

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

.controls-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Progress Bar */
.video-progress {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.video-progress:hover {
  height: 7px;
}

.progress-filled {
  height: 100%;
  background: linear-gradient(90deg, var(--neural-primary), var(--neural-accent));
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(0, 255, 204, 0.3);
  border-radius: 3px;
}

/* Control Buttons */
.control-btn {
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neural-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.control-btn:hover {
  background: rgba(0, 255, 204, 0.2);
  box-shadow: var(--glow-primary);
  transform: scale(1.1);
}

.control-btn:active {
  transform: scale(0.95);
}

.play-pause-btn {
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
}

/* Volume Control */
.volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.volume-filled {
  height: 100%;
  background: var(--neural-primary);
  border-radius: 2px;
  width: 70%;
}

/* Time Display */
.time-display {
  color: var(--text-primary);
  font-family: var(--font-secondary);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Quality & Speed Selectors */
.select-btn {
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  color: var(--neural-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.8rem;
}

.select-btn:hover {
  background: rgba(0, 255, 204, 0.2);
  box-shadow: var(--glow-primary);
}

/* Video Info */
.video-info {
  color: var(--text-primary);
}

.video-header {
  margin-bottom: 1.5rem;
}

.video-title {
  font-family: var(--font-secondary);
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.meta-item i {
  color: var(--neural-primary);
}

.video-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-height: 100px;
  overflow: hidden;
  position: relative;
}

.video-description.expanded {
  max-height: none;
}

.video-description:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(transparent, var(--bg-primary));
}

/* Video Tags */
.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.video-tags:empty {
  display: none;
}

/* Handle various tag output formats */
.video-tags a,
.video-tags span,
.video-tags .tag,
.video-tags li {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.25);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-tags a:hover,
.video-tags span:hover,
.video-tags .tag:hover,
.video-tags li:hover {
  background: var(--neural-primary);
  border-color: var(--neural-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.video-tags ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents;
}

.video-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 20px;
  color: var(--neural-primary);
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.video-tag:hover {
  background: rgba(0, 255, 204, 0.2);
  box-shadow: var(--glow-primary);
}

/* Action Buttons */
.video-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 8px;
  color: var(--neural-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.action-btn:hover {
  background: rgba(0, 255, 204, 0.2);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

.action-btn.active {
  background: var(--neural-primary);
  color: var(--bg-primary);
  box-shadow: var(--glow-primary);
}

.action-btn.like-btn.active {
  background: #ff6b6b;
  border-color: #ff6b6b;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
}

.action-btn.favorite-btn.active {
  background: #ffc107;
  border-color: #ffc107;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

.action-btn .count {
  font-size: 0.8rem;
  opacity: 0.8;
}

.action-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.action-btn:hover i {
  transform: scale(1.15);
}

.action-btn.active i {
  animation: action-pulse 0.4s ease;
}

@keyframes action-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Loading Animation */
.video-player-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.loading-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.neural-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(0, 255, 204, 0.3);
  border-top: 3px solid var(--neural-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--neural-primary);
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Episodes Section */
.episodes-section {
  margin-bottom: 3rem;
}

.episodes-container {
  margin-top: 2rem;
}

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

.episodes-header h3 {
  font-family: var(--font-secondary);
  color: var(--text-primary);
  font-size: 1.3rem;
  margin: 0;
}

.episode-filter select {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  cursor: pointer;
}

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

.episode-item {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.episode-item:hover {
  border-color: var(--neural-primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

.episode-item.active {
  background: var(--neural-primary);
  color: var(--bg-primary);
  border-color: var(--neural-primary);
}

.episode-number {
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
}

.episode-quality {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Sources Container */
.sources-container {
  margin-top: 2rem;
}

.source-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.source-item {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.source-item:hover {
  border-color: var(--neural-primary);
  box-shadow: var(--glow-primary);
  transform: translateX(5px);
}

.source-item.active {
  background: var(--neural-primary);
  color: var(--bg-primary);
  border-color: var(--neural-primary);
}

.source-info {
  flex: 1;
}

.source-name {
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.3rem;
}

.source-quality {
  font-size: 0.8rem;
  opacity: 0.8;
}

.source-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neural-success);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Details Section */
.details-section {
  margin-bottom: 3rem;
}

.details-container {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 12px;
  padding: 2rem;
}

.detail-group {
  margin-bottom: 2rem;
}

.detail-group:last-child {
  margin-bottom: 0;
}

.detail-title {
  font-family: var(--font-secondary);
  color: var(--neural-primary);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.detail-value {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

/* Related Section */
.related-section {
  margin-bottom: 3rem;
}

.related-section .section-header,
.news-section .section-header,
.comments-section .section-header {
  margin-bottom: 1.5rem;
}

.related-section .section-title,
.news-section .section-title,
.comments-section .section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.related-section .title-icon,
.news-section .title-icon,
.comments-section .title-icon {
  color: var(--neural-primary);
  font-size: 1.1rem;
}

.related-section .title-text,
.news-section .title-text,
.comments-section .title-text {
  flex: 1;
}

.title-energy-bar {
  width: 60px;
  height: 3px;
  background: rgba(0, 255, 204, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-left: 1rem;
}

.title-energy-bar .energy-fill {
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, var(--neural-primary), var(--neural-secondary));
  border-radius: 2px;
  animation: energy-pulse 2s ease-in-out infinite;
}

@keyframes energy-pulse {
  0%, 100% { width: 60%; opacity: 1; }
  50% { width: 100%; opacity: 0.8; }
}

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

.related-movie-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.related-movie-card:hover {
  border-color: var(--neural-primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-5px);
}

.related-movie-poster {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

.related-movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-movie-info {
  padding: 1rem;
}

.related-movie-title {
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-movie-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Comments Section */
.comments-section {
  margin-bottom: 3rem;
}

.comments-container {
  margin-top: 2rem;
}

.comment-form {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-header h4 {
  font-family: var(--font-secondary);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.comment-input {
  width: 100%;
  min-height: 100px;
  background: var(--bg-primary);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-primary);
  resize: vertical;
  font-family: var(--font-primary);
}

.comment-input:focus {
  outline: none;
  border-color: var(--neural-primary);
  box-shadow: var(--glow-primary);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-item {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neural-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: var(--font-weight-bold);
}

.comment-author {
  flex: 1;
}

.comment-name {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.comment-time {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.comment-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

.comments-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

/* =============================================
   FAQ & Hot Rankings Section
   ============================================= */
.faq-ranking-section {
  margin-bottom: 3rem;
}

.faq-ranking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.faq-container,
.hot-ranking-container {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 204, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
}

.faq-container .section-header,
.hot-ranking-container .section-header {
  margin-bottom: 1.2rem;
}

.faq-container .section-title,
.hot-ranking-container .section-title {
  font-size: 1.1rem;
}

/* FAQ Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 255, 204, 0.1);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 255, 204, 0.3);
  background: rgba(0, 255, 204, 0.05);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--neural-primary);
  color: var(--bg-primary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  padding-left: 28px;
}

/* Hot Rankings Styles */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ranking-item:hover {
  background: rgba(0, 255, 204, 0.1);
  border-color: rgba(0, 255, 204, 0.3);
  transform: translateX(5px);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.rank-number.top3 {
  background: linear-gradient(135deg, #ff6b6b, #ffa500);
  color: #fff;
}

.rank-title {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-item:hover .rank-title {
  color: var(--neural-primary);
}

.rank-heat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.rank-heat i {
  color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
  .player-container {
    margin: 0 auto;
    padding: 75px 0.5rem 1rem;
  }

  /* Player Controls Mobile */
  .video-controls {
    padding: 2rem 0.8rem 0.8rem;
  }

  .controls-row {
    gap: 0.5rem;
  }

  .controls-left {
    gap: 0.4rem;
  }

  .controls-right {
    gap: 0.3rem;
  }

  .control-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .play-pause-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .select-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .time-display {
    font-size: 0.75rem;
  }

  .volume-slider {
    width: 50px;
  }

  .video-title {
    font-size: 1.5rem;
  }

  .video-meta {
    gap: 1rem;
  }

  .video-actions {
    gap: 0.5rem;
  }

  .action-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .episodes-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .related-movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  /* FAQ & Rankings Responsive */
  .faq-ranking-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faq-container,
  .hot-ranking-container {
    padding: 1.2rem;
  }

  .faq-question {
    font-size: 0.9rem;
  }

  .faq-answer {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .video-controls {
    padding: 1.5rem 0.5rem 0.5rem;
  }

  .controls-left .volume-container {
    display: none;
  }

  .controls-right .subtitle-btn,
  .controls-right .pip-btn {
    display: none;
  }

  .control-btn {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .play-pause-btn {
    width: 32px;
    height: 32px;
  }

  .select-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
  }

  .time-display {
    font-size: 0.7rem;
  }
}

/* Player Minimized Mode */
.player-minimized {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 180px;
  background: var(--bg-secondary);
  border: 1px solid var(--neural-primary);
  border-radius: 8px;
  box-shadow: var(--glow-primary);
  z-index: 9999;
  overflow: hidden;
}

.player-minimized .video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-minimized-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
}

.minimized-btn {
  width: 30px;
  height: 30px;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid var(--neural-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neural-primary);
  cursor: pointer;
}

/* Error States */
.player-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--neural-danger);
}

.player-error i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.player-error h3 {
  font-family: var(--font-secondary);
  margin-bottom: 0.5rem;
}

.player-error p {
  color: var(--text-secondary);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .neural-spinner {
    animation: none;
  }
  
  .source-status {
    animation: none;
  }
  
  .loading-text {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .video-controls {
    background: rgba(0, 0, 0, 0.9);
  }
  
  .control-btn,
  .action-btn {
    border-width: 2px;
  }
}

/* 海报加载动画 */
.poster-frame.loading {
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

.poster-frame.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 204, 0.2),
    transparent
  );
  animation: poster-shimmer 2s infinite;
}

@keyframes poster-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 海报错误状态 */
.poster-frame.error {
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.poster-frame.error::before {
  content: '◈';
  font-size: 3rem;
  color: var(--neural-warning);
}

/* 海报悬停效果增强 */
.poster-frame {
  cursor: pointer;
}

.poster-frame:not(.loading):hover .poster-overlay {
  opacity: 1;
  backdrop-filter: blur(10px);
}

/* 播放中海报状态 */
.poster-frame.playing {
  border-color: var(--neural-success);
  box-shadow: 
    0 25px 100px rgba(0, 255, 136, 0.3),
    0 0 200px rgba(0, 255, 136, 0.2);
}

/* 收藏按钮动画效果 */
.poster-btn.favorite-poster-btn.active {
  background: var(--neural-secondary);
  border-color: var(--neural-secondary);
  animation: favorite-pulse 0.5s ease;
}

@keyframes favorite-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* 响应式海报尺寸优化 */
@media (min-width: 1400px) {
  .poster-frame {
    height: 400px;
  }
  
  .poster-title {
    font-size: 1.3rem;
  }
  
  .poster-actions {
    gap: 1rem;
  }
  
  .poster-btn {
    padding: 1rem;
    font-size: 1rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .video-main-container {
    grid-template-columns: 2fr 1fr;
  }
  
  .poster-frame {
    height: 300px;
  }
  
  .poster-title {
    font-size: 1rem;
  }
}

/* 暗色模式海报优化 */
:root[data-theme="matrix"] .poster-frame {
  border-color: var(--neural-success);
  box-shadow: 
    0 20px 60px rgba(0, 255, 0, 0.2),
    0 0 120px rgba(0, 255, 0, 0.1);
}

:root[data-theme="matrix"] .poster-btn:hover {
  background: var(--neural-success);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

/* =============================================
   Share Modal
   ============================================= */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.share-modal.active {
  opacity: 1;
  visibility: visible;
}

.share-modal .modal-content {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  box-shadow:
    0 25px 80px rgba(0, 255, 204, 0.2),
    0 0 100px rgba(0, 255, 204, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.share-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.share-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(0, 255, 204, 0.15);
}

.share-modal .modal-header h3 {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  color: var(--text-primary);
}

.share-modal .modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-modal .modal-close:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.4);
  color: #ff6b6b;
  transform: rotate(90deg);
}

.share-modal .modal-body {
  padding: 1.5rem;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-option:hover {
  background: rgba(0, 255, 204, 0.1);
  border-color: var(--neural-primary);
  color: var(--neural-primary);
  transform: translateY(-3px);
}

.share-option i {
  font-size: 1.8rem;
}

.share-option span {
  font-size: 0.8rem;
}

.share-option[data-platform="wechat"]:hover {
  background: rgba(7, 193, 96, 0.15);
  border-color: #07c160;
  color: #07c160;
}

.share-option[data-platform="qq"]:hover {
  background: rgba(18, 183, 245, 0.15);
  border-color: #12b7f5;
  color: #12b7f5;
}

.share-option[data-platform="weibo"]:hover {
  background: rgba(230, 22, 45, 0.15);
  border-color: #e6162d;
  color: #e6162d;
}

.share-option[data-platform="link"]:hover {
  background: rgba(0, 255, 204, 0.15);
  border-color: var(--neural-primary);
  color: var(--neural-primary);
}

/* Copy success toast */
.copy-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--neural-primary);
  color: var(--bg-primary);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10001;
}

.copy-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =============================================
   Movie Info Header Section (Top of Page)
   ============================================= */
.movie-info-header {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.movie-info-main {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.movie-title-main {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.movie-alias-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.alias-label {
  color: var(--text-muted);
}

.alias-value {
  color: var(--neural-primary);
  font-weight: var(--font-weight-medium);
}

.alias-pinyin {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.meta-badge i {
  color: var(--neural-primary);
  font-size: 0.8rem;
}

.meta-badge.rating-badge {
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.3);
}

.meta-badge.rating-badge i {
  color: #ffc107;
}

.movie-crew-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 255, 204, 0.1);
}

.crew-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.crew-label {
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 50px;
}

.crew-value {
  color: var(--text-secondary);
}

/* Video Description Title */
.desc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--neural-primary);
  margin-bottom: 0.8rem;
  font-weight: var(--font-weight-medium);
}

.desc-title i {
  font-size: 0.9rem;
}

/* User Rating Section */
.user-rating-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
}

.user-rating-stars {
  display: flex;
  gap: 0.5rem;
  cursor: pointer;
}

.user-rating-stars .star {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.user-rating-stars .star:hover,
.user-rating-stars .star.active {
  color: #f7931e;
  transform: scale(1.1);
}

.rating-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* =============================================
   News Section
   ============================================= */
.news-section {
  margin-bottom: 3rem;
}

.news-section .section-header {
  margin-bottom: 1.5rem;
}

.news-section .section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.more-link {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--neural-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 15px;
  background: rgba(0, 255, 204, 0.05);
}

.more-link:hover {
  color: var(--bg-primary);
  background: var(--neural-primary);
  border-color: var(--neural-primary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* Handle ul/li structure from template */
.news-grid ul,
.news-grid ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents;
}

.news-grid li,
.news-grid > a,
.news-grid > div,
.news-grid .news-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 204, 0.15);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-grid li:hover,
.news-grid > a:hover,
.news-grid > div:hover,
.news-grid .news-item:hover {
  border-color: var(--neural-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.15);
}

/* News item image */
.news-grid li img,
.news-grid .news-item img,
.news-grid a img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 255, 204, 0.1);
}

/* News item text content */
.news-grid li a,
.news-grid .news-item a {
  display: block;
  padding: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-grid li a:hover,
.news-grid .news-item a:hover {
  color: var(--neural-primary);
}

/* News title styling */
.news-grid .news-title,
.news-grid li .title,
.news-grid li h3,
.news-grid li h4 {
  margin: 0;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* News date/meta */
.news-grid .news-date,
.news-grid li .date,
.news-grid li .time,
.news-grid li span.meta {
  padding: 0 1rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Related Grid using movie-grid system */
.related-grid {
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .share-options {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .movie-info-header {
    padding: 1rem 1.2rem;
  }

  .movie-title-main {
    font-size: 1.4rem;
  }

  .movie-meta-row {
    gap: 0.4rem;
  }

  .meta-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .news-grid li img,
  .news-grid .news-item img,
  .news-grid a img {
    height: 120px;
  }

  .user-rating-section {
    padding: 1rem;
    gap: 0.8rem;
  }

  .user-rating-stars .star {
    font-size: 1.4rem;
  }

  .share-modal .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .share-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .share-option {
    padding: 1.2rem 0.5rem;
  }

  .share-option i {
    font-size: 1.5rem;
  }
}

/* ==================== 虚拟热门链接样式 ==================== */
.virtual-hot-section {
    margin: 3rem 0;
    padding: 1.5rem;
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 12px;
}

.virtual-hot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.virtual-hot-links a.virtual-hot-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    color: #00ffcc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.virtual-hot-links a.virtual-hot-link:hover {
    background: rgba(0, 255, 204, 0.15);
    border-color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .virtual-hot-links {
        gap: 0.5rem;
    }

    .virtual-hot-links a.virtual-hot-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* 新增推荐区块样式 - TechStream */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
}

.movie-grid.cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.movie-grid.related-grid {
    margin-top: 1rem;
}

.movie-grid a,
.movie-grid li {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.movie-grid a:hover,
.movie-grid li:hover {
    border-color: var(--neural-primary);
    transform: translateY(-5px);
    box-shadow: var(--glow-primary);
}

.movie-grid img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
}

.movie-grid h3,
.movie-grid .title {
    font-size: 0.9rem;
    padding: 0.8rem 0.6rem 0.6rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: var(--font-weight-medium);
}

@media (max-width: 1200px) {
    .movie-grid.cols-6 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .movie-grid.cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .movie-grid,
    .movie-grid.cols-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .movie-grid.cols-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .movie-grid h3,
    .movie-grid .title {
        font-size: 0.8rem;
        padding: 0.6rem 0.4rem 0.4rem;
    }
}
}