/*
  UI Style: ui-style-5
  沉浸式流媒体视觉风（黑/深灰背景 + 影院感）
  Skeleton: S1（经典顶部导航骨架）
  Layout: D（大Hero区配多模块分区）
*/

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

:root {
  --primary-bg: #0f0f0f;
  --secondary-bg: #1a1a1a;
  --card-bg: #242424;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #808080;
  --accent-red: #e50914;
  --accent-hover: #ff0a16;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.7);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-red);
}

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

ul, ol {
  list-style: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
}

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

.site-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.5px;
}

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

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

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

.section-hero {
  margin-bottom: 3rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--card-bg) 100%);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.section-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-hero .intro-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 900px;
}

.section-hot,
.section-top,
.section-latest {
  margin-bottom: 3rem;
}

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

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

.section-header .more-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.section-header .more-link:hover {
  color: var(--accent-red);
  transform: translateX(4px);
}

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

.video-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--border-subtle);
}

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

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

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

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

.video-one-line {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-player-section {
  margin-bottom: 2rem;
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.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%, #0f0f0f 100%);
  border-radius: 8px;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  background-color: rgba(229, 9, 20, 0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
}

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

.player-play-icon {
  display: block;
  font-size: 2rem;
  color: white;
  line-height: 1;
}

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

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

.detail-meta-section {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-subtle);
}

.detail-meta-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-red);
}

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

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

.meta-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-value {
  color: var(--text-primary);
}

.content-section {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-subtle);
}

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

.content-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

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

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

.site-footer {
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

  .site-logo a {
    font-size: 1.25rem;
  }

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

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

  .site-main {
    padding: 1.5rem 1rem;
  }

  .section-hero {
    padding: 2rem 1.5rem;
  }

  .section-hero h1 {
    font-size: 1.75rem;
  }

  .section-hero .intro-text {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

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

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

  .video-info {
    padding: 0.75rem;
  }

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

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

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

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

  .meta-list {
    grid-template-columns: 1fr;
  }

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

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

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

  .video-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
