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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #141414;
}

body.ui-style-5 {
  background-color: #0f0f0f;
  color: #e0e0e0;
}

body.ui-style-5 .site-header {
  background-color: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
}

body.ui-style-5 .video-card {
  background-color: #1f1f1f;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.ui-style-5 .video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #1a1a1a;
  padding: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  overflow: hidden;
}

.main-nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    gap: 16px;
    font-size: 14px;
  }
}

.home-page,
.list-page,
.detail-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.hero-section {
  margin-bottom: 48px;
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
  border-radius: 12px;
}

.hero-content h1 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 20px;
  }
}

.site-intro {
  margin-bottom: 48px;
  padding: 32px;
  background-color: #1f1f1f;
  border-radius: 8px;
}

.intro-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #c0c0c0;
}

.video-section {
  margin-bottom: 64px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 4px solid #e50914;
}

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

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

.video-card {
  background-color: #1f1f1f;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

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

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

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 14px;
  color: #a0a0a0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .video-cover {
    padding-top: 75%;
  }

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 14px;
  }

  .video-one-line {
    font-size: 12px;
  }
}

.video-player-section {
  margin-bottom: 32px;
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

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

.player-play-btn:hover {
  background-color: rgba(229, 9, 20, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: #fff;
}

.detail-header {
  margin-bottom: 32px;
  padding: 24px 0;
  border-bottom: 2px solid #2a2a2a;
}

.detail-header h1 {
  font-size: 32px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .detail-header h1 {
    font-size: 24px;
  }
}

.detail-info,
.detail-module,
.related-videos {
  margin-bottom: 48px;
  padding: 24px;
  background-color: #1f1f1f;
  border-radius: 8px;
}

.detail-info h2,
.detail-module h2,
.related-videos h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #fff;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 16px;
}

.info-list dt {
  font-weight: 600;
  color: #c0c0c0;
}

.info-list dd {
  color: #e0e0e0;
}

.detail-module p {
  font-size: 16px;
  line-height: 1.8;
  color: #c0c0c0;
}

.page-header {
  margin-bottom: 32px;
  padding: 24px 0;
  border-bottom: 2px solid #2a2a2a;
}

.page-header h1 {
  font-size: 28px;
}

.site-footer {
  background-color: #1a1a1a;
  padding: 32px 24px;
  margin-top: 64px;
  border-top: 1px solid #2a2a2a;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  color: #808080;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background-color: rgba(229, 9, 20, 0.9);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  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 {
  background-color: rgba(229, 9, 20, 1);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}
