* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
}

.search-box {
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 8px 40px 8px 15px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}

.search-box button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: #ff6b6b;
  border: none;
  color: #fff;
  padding: 6px 15px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
}

.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-menu a {
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s;
  font-size: 14px;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255,255,255,0.2);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Banner */
.banner {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.banner-slider {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.banner-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.banner-info p {
  font-size: 14px;
  opacity: 0.9;
}

.banner-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-dot.active {
  background: #fff;
  width: 25px;
  border-radius: 5px;
}

/* Section */
.section {
  padding: 30px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #667eea;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: #667eea;
  border-radius: 2px;
}

.section-more {
  color: #667eea;
  font-size: 14px;
}

.section-more:hover {
  text-decoration: underline;
}

/* Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-image {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff6b6b;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

.card-score {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #ffd700;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.card-info {
  padding: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  justify-content: space-between;
}

/* List Page */
.filter-bar {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  display: inline-block;
  min-width: 60px;
}

.filter-options {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-option {
  padding: 5px 15px;
  border-radius: 20px;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}

.filter-option:hover,
.filter-option.active {
  background: #667eea;
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.page-btn {
  padding: 8px 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Detail Page */
.detail-header {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  gap: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.detail-poster {
  flex-shrink: 0;
  width: 200px;
  border-radius: 10px;
  overflow: hidden;
}

.detail-poster img {
  width: 100%;
  display: block;
}

.detail-info {
  flex: 1;
}

.detail-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.meta-item {
  font-size: 14px;
  color: #666;
}

.meta-item span {
  color: #333;
  font-weight: bold;
}

.detail-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

.detail-actions {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #667eea;
  color: #fff;
}

.btn-primary:hover {
  background: #5568d3;
}

.btn-secondary {
  background: #fff;
  color: #667eea;
  border: 1px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: #fff;
}

/* Episode List */
.episode-section {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.episode-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.episode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.episode-btn {
  padding: 10px 20px;
  background: #f5f5f5;
  border: 1px solid #eee;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.episode-btn:hover,
.episode-btn.active {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}

/* Player */
.player-section {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.player-container {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.player-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.play-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.play-icon:hover {
  background: #667eea;
  transform: scale(1.1);
}

.player-controls {
  background: #222;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.control-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: #444;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #667eea;
  border-radius: 2px;
  width: 35%;
}

.time-display {
  color: #999;
  font-size: 14px;
}

/* Related Content */
.related-section {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Footer */
.footer {
  background: #333;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #555;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #aaa;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  color: #aaa;
  font-size: 13px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #667eea;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .search-box {
    order: 3;
    max-width: 100%;
    margin: 10px 0 0;
    width: 100%;
  }
  
  .banner {
    height: 250px;
  }
  
  .banner-info h2 {
    font-size: 18px;
  }
  
  .detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .detail-poster {
    width: 150px;
  }
  
  .detail-meta {
    justify-content: center;
  }
  
  .detail-actions {
    justify-content: center;
  }
  
  .section-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .banner {
    height: 200px;
  }
  
  .header-inner {
    padding: 10px;
  }
  
  .logo {
    font-size: 22px;
  }
  
  .card-title {
    font-size: 12px;
  }
  
  .card-meta {
    font-size: 11px;
  }
  
  .section {
    padding: 20px 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

.loading::after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Placeholder Images */
.img-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

/* ============================================================
   t22 补充样式：banner、列表页、详情页、播放页
   ============================================================ */

/* Banner placeholder */
.banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Banner play icon overlay */
.banner .banner-placeholder .play-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s;
}
.banner .banner-placeholder .play-icon:hover {
  background: #667eea;
  transform: scale(1.1);
}

/* Banner (override for image display) */
.banner .banner-slide {
  position: relative;
}
.banner .banner-placeholder {
  position: absolute;
  inset: 0;
}
.banner .banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* List grid - alternative to content-grid */
.list-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.list-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s;
  cursor: pointer;
}
.list-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.list-card .movie-cover {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
}
.list-card .movie-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.list-card .movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.list-card:hover .movie-poster img {
  transform: scale(1.05);
}
.list-card .movie-tags {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
}
.list-card .tag-year,
.list-card .tag-score {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  background: rgba(0,0,0,0.6);
  color: #ffd700;
}
.list-card .movie-meta {
  padding: 12px;
}
.list-card .movie-name {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-card .poster-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
}
.list-card .poster-overlay {
  position: absolute;
  inset: 0;
  transition: background 0.3s;
}
.list-card:hover .poster-overlay {
  background: rgba(0,0,0,0.1);
}

/* Pagination links */
.page-link {
  padding: 8px 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  color: #333;
}
.page-link:hover,
.page-link.active {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
  text-decoration: none;
}
.page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Movie grid (用于猜你喜欢) */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.movie-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s;
  cursor: pointer;
}
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.movie-card .movie-cover {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
}
.movie-card .movie-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.movie-card .movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.movie-card:hover .movie-poster img {
  transform: scale(1.05);
}
.movie-card .poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.movie-card:hover .poster-overlay {
  background: rgba(0,0,0,0.3);
}
.movie-card .poster-overlay .play-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
  opacity: 0;
  transition: opacity 0.3s;
}
.movie-card:hover .poster-overlay .play-icon {
  opacity: 1;
}
.movie-card .movie-meta {
  padding: 12px;
}
.movie-card .movie-name {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-card .movie-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
}
.movie-card .tag {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  background: rgba(0,0,0,0.6);
  color: #fff;
}
.movie-card .tag-hd {
  background: #667eea;
}
.movie-card .movie-actor {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
}

/* Detail page */
.detail-page h1 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}
.detail-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 15px;
}
.score-num {
  font-size: 24px;
  font-weight: bold;
  color: #ff6b6b;
}
.score-stars {
  display: flex;
  gap: 3px;
}
.score-stars .star {
  width: 18px;
  height: 18px;
  background: #ffc107;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.score-stars .star.empty {
  background: #ddd;
}
.detail-meta-item {
  font-size: 14px;
  color: #666;
  margin-right: 15px;
  display: inline-block;
  margin-bottom: 5px;
}
.detail-meta-item span {
  color: #333;
  font-weight: bold;
}
.detail-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}
.btn-play,
.btn-collect {
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-play {
  background: #667eea;
  color: #fff;
}
.btn-play:hover {
  background: #5568d3;
}
.btn-collect {
  background: #fff;
  color: #667eea;
  border: 1px solid #667eea;
}
.btn-collect:hover {
  background: #667eea;
  color: #fff;
}

/* Play list section */
.play-list-section {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.play-list-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.play-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.play-list-item {
  padding: 10px 20px;
  background: #f5f5f5;
  border: 1px solid #eee;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
  display: inline-block;
  color: #333;
}
.play-list-item:hover,
.play-list-item.active {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
  text-decoration: none;
}

/* Guess section */
.guess-section {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}
.guess-section .section-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.guess-section .section-title {
  padding-left: 0;
}
.guess-section .section-title::before {
  display: none;
}

/* Breadcrumb */
.list-breadcrumb {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}
.list-breadcrumb a {
  color: #667eea;
}

/* List header */
.list-header {
  margin-bottom: 20px;
}
.list-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}
.list-count {
  font-size: 14px;
  color: #999;
  margin-top: 5px;
}
.list-count span {
  color: #667eea;
  font-weight: bold;
}

/* Filter bar (list page) */
.filter-bar .filter-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.filter-bar .filter-row:last-child {
  margin-bottom: 0;
}
.filter-bar .filter-label {
  font-size: 14px;
  color: #666;
  min-width: 60px;
  flex-shrink: 0;
}
.filter-bar .filter-options {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Source switch */
.source-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.filter-tag {
  padding: 6px 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  background: #f0f0f0;
  color: #666;
  transition: all 0.3s;
}
.filter-tag:hover,
.filter-tag.active {
  background: #667eea;
  color: #fff;
}

/* Detail tags */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.detail-tags span {
  padding: 3px 10px;
  background: #f0f0f0;
  border-radius: 3px;
  font-size: 12px;
  color: #666;
}

/* Play page */
.play-page {
  padding: 20px 0;
}
.play-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}
.play-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.play-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  background: linear-gradient(135deg, #1a1a1a, #333);
}
.play-placeholder .big-play {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s;
  color: #fff;
}
.play-placeholder .big-play:hover {
  background: #667eea;
  transform: scale(1.1);
}
.play-placeholder p {
  font-size: 14px;
  color: #888;
}
.play-episode-selector {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.episode-header h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.play-list-item.active {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}

/* Main content */
.main-content {
  padding: 20px 0;
}

/* Rank grid */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rank-col {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.rank-col-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s;
}
.rank-item:hover {
  background: #f9f9f9;
}
.rank-num {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  background: #f0f0f0;
  color: #999;
  flex-shrink: 0;
}
.top1 { background: #ffd700; color: #fff; }
.top2 { background: #c0c0c0; color: #fff; }
.top3 { background: #cd7f32; color: #fff; }
.rank-poster {
  width: 36px;
  height: 48px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}
.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-info {
  flex: 1;
  min-width: 0;
}
.rank-name {
  font-size: 13px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guess-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.guess-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .list-grid,
  .movie-grid,
  .rank-grid { grid-template-columns: repeat(4, 1fr); }
  .guess-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .list-grid,
  .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .rank-grid { grid-template-columns: repeat(2, 1fr); }
  .guess-grid { grid-template-columns: repeat(3, 1fr); }
  .guess-section,
  .play-list-section,
  .play-episode-selector { padding: 20px; }
  .banner { height: 250px; }
}
@media (max-width: 480px) {
  .list-grid,
  .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rank-grid { grid-template-columns: 1fr; }
  .guess-grid { grid-template-columns: repeat(2, 1fr); }
  .banner { height: 200px; }
}

/* 平板/窄窗口下导航横向滚动，避免栏目名被压缩成竖排 */
@media (max-width: 1199px) {
  .nav-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .nav-menu::-webkit-scrollbar {
    display: none;
  }
  .nav-menu a {
    white-space: nowrap;
  }
}
