* {
  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: #1a1a1a;
}

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

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

header {
  background: rgba(20, 20, 20, 0.95);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(229, 9, 20, 0.3);
}

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

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

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
  flex-wrap: nowrap;
}

nav a {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
  white-space: nowrap;
}

nav a:hover {
  color: #e50914;
}

.hero {
  padding: 60px 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(20, 20, 20, 0.95) 100%);
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.site-intro {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 8px;
  margin: 40px 0;
  line-height: 1.8;
  font-size: 16px;
}

.content-section {
  padding: 60px 0;
}

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

.section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

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

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px 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%;
  background: #2a2a2a;
  overflow: hidden;
}

.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;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-one-line {
  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: 40px 0;
  text-align: center;
}

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

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

.filter-bar {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 32px;
  font-size: 14px;
  color: #b3b3b3;
}

.page--top .top-list__items {
  list-style: none;
}

.top-item {
  background: #1f1f1f;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 6px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: background 0.3s;
}

.top-item:hover {
  background: #2a2a2a;
}

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

.top-rank.rank-1,
.top-rank.rank-2,
.top-rank.rank-3 {
  color: #ffd700;
}

.top-cover {
  width: 100px;
  height: 140px;
  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: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

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

.video-player-section {
  padding: 40px 0;
  background: #0a0a0a;
}

.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;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.9);
  border: none;
  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: #fff;
  margin-left: 4px;
}

.detail-header {
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.detail-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.detail-section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e50914;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 6px;
}

.info-item {
  display: flex;
  gap: 8px;
}

.info-label {
  font-weight: 600;
  color: #e50914;
  min-width: 60px;
}

.info-value {
  color: #e5e5e5;
}

.content-text {
  font-size: 16px;
  line-height: 1.8;
  color: #d1d1d1;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  border-radius: 6px;
}

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(229, 9, 20, 0.2);
  color: #e50914;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(229, 9, 20, 0.4);
}

.related-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.video-card--related {
  background: #1f1f1f;
}

footer {
  background: #0a0a0a;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(229, 9, 20, 0.3);
  margin-top: 60px;
}

.footer-content {
  color: #999;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(229, 9, 20, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  display: flex;
}

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

.page--grouped .group {
  margin-bottom: 60px;
}

.group__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e50914;
}

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

@media (max-width: 768px) {
  nav ul {
    gap: 12px;
    font-size: 13px;
  }

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

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

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

  .video-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

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

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

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

  .top-item {
    flex-direction: column;
    text-align: center;
  }

  .top-rank {
    font-size: 24px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  nav ul {
    gap: 8px;
    font-size: 12px;
  }

  .logo {
    font-size: 22px;
  }

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

  .site-intro {
    padding: 24px;
    font-size: 14px;
  }
}
