* {
  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: #ffffff;
  background: #141414;
  min-height: 100vh;
}

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

.site-header {
  background: rgba(20, 20, 20, 0.95);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo a {
  font-size: 28px;
  font-weight: 700;
  color: #e50914;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-main {
  min-height: calc(100vh - 200px);
}

.hero-section {
  position: relative;
  margin-bottom: 48px;
}

.hero-content {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 8px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.hero-overlay {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.9), transparent);
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 18px;
  color: #e5e5e5;
  margin-bottom: 32px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: #e50914;
  color: #ffffff;
}

.btn-primary:hover {
  background: #f40612;
  transform: scale(1.05);
}

.btn-secondary {
  background: rgba(109, 109, 110, 0.7);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(109, 109, 110, 0.9);
}

.intro-section {
  padding: 48px 0;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 48px;
  border-radius: 8px;
}

.site-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #e5e5e5;
  text-align: justify;
}

.content-group {
  margin-bottom: 64px;
}

.group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.group-title {
  font-size: 28px;
  font-weight: 700;
  color: #e5e5e5;
}

.group-more {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.group-more:hover {
  color: #ffffff;
}

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

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

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

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

.video-info {
  padding: 16px;
}

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

.video-meta {
  font-size: 13px;
  color: #a0a0a0;
  margin-bottom: 8px;
}

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

.page-header {
  padding: 48px 0 32px;
  text-align: center;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #e5e5e5;
}

.page-desc {
  font-size: 16px;
  color: #b3b3b3;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.filter-bar {
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 32px;
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 8px;
  transition: background 0.3s;
}

.top-list__item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.top-list__rank {
  font-size: 36px;
  font-weight: 700;
  color: #e50914;
  min-width: 60px;
  text-align: center;
}

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

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

.top-list__info {
  flex: 1;
}

.top-list__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e5e5e5;
}

.top-list__meta {
  font-size: 14px;
  color: #a0a0a0;
  margin-bottom: 8px;
}

.top-list__desc {
  font-size: 14px;
  color: #b3b3b3;
  line-height: 1.6;
}

.video-detail {
  padding: 48px 0;
}

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

.video-player {
  position: relative;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000000;
}

.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: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  background: #e50914;
  transform: translate(-50%, -50%) scale(1.1);
}

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

.detail-header {
  margin-bottom: 32px;
}

.detail-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #e5e5e5;
}

.detail-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 24px;
}

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

.info-table {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  font-size: 15px;
}

.info-label {
  color: #a0a0a0;
  font-weight: 500;
}

.info-value {
  color: #e5e5e5;
}

.text-content {
  font-size: 15px;
  line-height: 1.8;
  color: #e5e5e5;
}

.text-content p {
  margin-bottom: 16px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  padding: 8px 16px;
  background: rgba(229, 9, 20, 0.2);
  color: #e5e5e5;
  border-radius: 20px;
  font-size: 14px;
}

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

.video-card--related {
  background: rgba(255, 255, 255, 0.05);
}

.layout__side--filters {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.group {
  margin-bottom: 48px;
}

.group__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #e5e5e5;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(229, 9, 20, 0.5);
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.site-footer {
  background: rgba(0, 0, 0, 0.5);
  padding: 48px 0;
  margin-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  text-align: center;
}

.footer-text {
  color: #808080;
  font-size: 14px;
  margin-bottom: 8px;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: rgba(229, 9, 20, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}

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

.back-to-top:hover {
  background: #e50914;
  transform: translateY(-4px);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 24px 0;
}

.page-link {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #e5e5e5;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.page-link:hover,
.page-link.active {
  background: #e50914;
  color: #ffffff;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .site-nav {
    gap: 16px;
    font-size: 13px;
  }

  .hero-content {
    height: 400px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

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

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

  .video-info {
    padding: 12px;
  }

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

  .video-desc {
    font-size: 12px;
  }

  .group-title {
    font-size: 20px;
  }

  .page-title {
    font-size: 28px;
  }

  .detail-title {
    font-size: 28px;
  }

  .detail-section {
    padding: 20px;
  }

  .section-title {
    font-size: 18px;
  }

  .info-table {
    grid-template-columns: 100px 1fr;
    gap: 12px;
    font-size: 14px;
  }

  .top-list__rank {
    font-size: 24px;
    min-width: 40px;
  }

  .top-list__cover {
    width: 80px;
    height: 110px;
  }

  .top-list__title {
    font-size: 16px;
  }

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

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

body.ui-style-5 {
  background: #141414;
  color: #ffffff;
}

body.ui-style-5 .site-logo a {
  color: #e50914;
}

body.ui-style-5 .btn-primary {
  background: #e50914;
}

body.ui-style-5 .btn-primary:hover {
  background: #f40612;
}

body.ui-style-5 .video-card {
  background: rgba(255, 255, 255, 0.05);
}

body.ui-style-5 .video-card:hover {
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.3);
}

body.ui-style-5 .detail-section {
  background: rgba(255, 255, 255, 0.05);
}

body.ui-style-5 .section-title {
  border-left-color: #e50914;
}

body.ui-style-5 .tag-item {
  background: rgba(229, 9, 20, 0.2);
}

body.ui-style-5 .back-to-top {
  background: rgba(229, 9, 20, 0.9);
}

body.ui-style-5 .back-to-top:hover {
  background: #e50914;
}
