/* UI Style 5: 沉浸式流媒体视觉风（黑/深灰背景+红色点缀+影院感） */

:root {
  --primary-color: #e50914;
  --bg-dark: #141414;
  --bg-card: #1f1f1f;
  --bg-hover: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #808080;
  --border-radius: 8px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-logo {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 0 2px 4px rgba(229, 9, 20, 0.3);
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition);
}

.site-nav a:hover::after {
  width: 100%;
}

.site-main {
  min-height: 100vh;
  padding-top: 5rem;
}

.page-header {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-intro {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  line-height: 1.8;
  color: var(--text-secondary);
}

.video-list-section {
  padding: 2rem 0 4rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
}

.video-card__link {
  display: block;
}

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 150%;
  background: var(--bg-hover);
  overflow: hidden;
}

.video-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-cover img {
  transform: scale(1.1);
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.video-one-line,
.video-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-player-section {
  margin: 0 0 3rem 0;
  padding: 0;
}

.video-player {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(229, 9, 20, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.5);
}

.player-play-btn:hover {
  background: var(--primary-color);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.7);
}

.player-play-icon {
  font-size: 2rem;
  color: #ffffff;
  margin-left: 4px;
}

.detail-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.detail-header h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.detail-section {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.detail-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.detail-section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

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

.info-item {
  display: flex;
  gap: 0.5rem;
}

.info-label {
  color: var(--text-muted);
  min-width: 60px;
}

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

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.related-section {
  margin-top: 3rem;
}

.related-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

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

.video-card--related {
  background: var(--bg-card);
}

.site-footer {
  background: #0a0a0a;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
  }

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

  .detail-header h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .container,
  .header-content,
  .detail-content {
    padding: 0 1rem;
  }

  .site-header {
    padding: 0.75rem 0;
  }

  .site-logo {
    font-size: 1.35rem;
  }

  .site-nav ul {
    gap: 0.75rem;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

  .site-main {
    padding-top: 4rem;
  }

  .page-header {
    padding: 2rem 0 1.5rem;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-intro {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

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

  .detail-header h1 {
    font-size: 1.75rem;
  }

  .detail-section {
    padding: 1.5rem;
  }

  .detail-section h2 {
    font-size: 1.25rem;
  }

  .player-play-btn {
    width: 60px;
    height: 60px;
  }

  .player-play-icon {
    font-size: 1.5rem;
  }

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

  .video-cover {
    padding-top: 140%;
  }
}

@media (max-width: 480px) {
  .site-nav ul {
    gap: 0.5rem;
  }

  .site-nav a {
    font-size: 0.8rem;
  }

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