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

:root {
  --primary-bg: #0a0a0a;
  --secondary-bg: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --accent-color: #e50914;
  --border-color: #333333;
  --card-hover: #2a2a2a;
  --spacing-unit: 8px;
}

body.ui-style-9 {
  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;
}

.site-header {
  background-color: rgba(0, 0, 0, 0.95);
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(var(--spacing-unit) * 4);
}

.site-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  flex: 1;
}

.site-nav__list {
  list-style: none;
  display: flex;
  gap: calc(var(--spacing-unit) * 4);
  flex-wrap: nowrap;
  overflow: visible;
}

.site-nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link.active {
  color: var(--text-primary);
}

.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../public/1.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 900px;
  padding: calc(var(--spacing-unit) * 4);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 3);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: calc(var(--spacing-unit) * 4);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 4);
}

.section-header {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.section-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.video-card {
  background-color: var(--secondary-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  background-color: var(--card-hover);
}

.video-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background-color: #000;
}

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

.video-info {
  padding: calc(var(--spacing-unit) * 2);
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-meta {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: calc(var(--spacing-unit));
}

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

.page-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 4);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.page-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.video-player-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 4);
}

.video-player {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #fff;
  box-shadow: 0 4px 16px rgba(255,255,255,0.3);
}

.player-play-icon {
  margin-left: 4px;
}

.detail-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 4);
}

.detail-title-section {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.video-basic-info {
  background-color: var(--secondary-bg);
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 3);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.basic-info-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--accent-color);
}

.info-row {
  display: flex;
  padding: calc(var(--spacing-unit)) 0;
  border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  min-width: 100px;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value {
  flex: 1;
  color: var(--text-primary);
}

.detail-module {
  margin-bottom: calc(var(--spacing-unit) * 5);
}

.module-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--text-primary);
  padding-bottom: calc(var(--spacing-unit));
  border-bottom: 2px solid var(--accent-color);
}

.module-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.module-content p {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.related-section {
  margin-top: calc(var(--spacing-unit) * 6);
}

.site-footer {
  background-color: var(--secondary-bg);
  padding: calc(var(--spacing-unit) * 4);
  text-align: center;
  color: var(--text-secondary);
  margin-top: calc(var(--spacing-unit) * 8);
  border-top: 1px solid var(--border-color);
}

.back-to-top {
  position: fixed;
  bottom: calc(var(--spacing-unit) * 4);
  right: calc(var(--spacing-unit) * 4);
  width: 48px;
  height: 48px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.5);
}

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

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    align-items: flex-start;
  }

  .site-nav__list {
    gap: calc(var(--spacing-unit) * 2);
    font-size: 0.85rem;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
  }

  .hero-section {
    height: 50vh;
    min-height: 400px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .detail-title {
    font-size: 2rem;
  }

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

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

@media (max-width: 480px) {
  .site-nav__list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: visible;
    gap: calc(var(--spacing-unit) * 1.5);
  }

  .site-nav__link {
    font-size: 0.8rem;
  }

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

.page--grid .video-grid {
  padding: calc(var(--spacing-unit) * 4);
}

.top-list__items {
  list-style: none;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 4);
}

.top-list__item {
  display: flex;
  gap: calc(var(--spacing-unit) * 3);
  background-color: var(--secondary-bg);
  border-radius: 8px;
  padding: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 2);
  transition: all 0.3s ease;
  align-items: center;
}

.top-list__item:hover {
  background-color: var(--card-hover);
  transform: translateX(8px);
}

.top-rank {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  min-width: 60px;
  text-align: center;
}

.top-cover {
  width: 120px;
  height: 68px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: calc(var(--spacing-unit));
}

.top-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .top-list__item {
    flex-direction: row;
    padding: calc(var(--spacing-unit) * 1.5);
  }

  .top-rank {
    font-size: 1.5rem;
    min-width: 40px;
  }

  .top-cover {
    width: 80px;
    height: 45px;
  }

  .top-title {
    font-size: 1rem;
  }
}
