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

:root {
  --primary-color: #000;
  --secondary-color: #fff;
  --accent-color: #e50914;
  --text-color: #fff;
  --bg-color: #141414;
  --card-bg: #1a1a1a;
  --border-radius: 8px;
}

body.ui-style-5 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

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

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

.site-logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
  letter-spacing: 2px;
}

.site-nav {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
}

.site-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent-color);
}

.site-main {
  min-height: 80vh;
  padding: 2rem 0;
}

.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d0e0e 100%);
  padding: 4rem 0;
  margin-bottom: 3rem;
  border-radius: var(--border-radius);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-color);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #ccc;
}

.intro-section {
  margin-bottom: 3rem;
}

.intro-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ddd;
  text-align: justify;
}

.featured-section,
.ranking-section,
.latest-section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

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

.video-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(229, 9, 20, 0.4);
}

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

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

.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: 1.2rem;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.video-one-line {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent-color);
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.page-desc {
  font-size: 1.1rem;
  color: #bbb;
}

.detail-page {
  max-width: 1200px;
  margin: 0 auto;
}

.video-player-section {
  margin-bottom: 2rem;
}

.video-player {
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #3a0a0a 100%);
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  font-size: 2rem;
  color: #fff;
  margin-left: 4px;
}

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

.video-main-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.video-basic-info {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.info-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  column-gap: 2rem;
}

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

.info-list dd {
  color: var(--text-color);
}

.detail-module {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.module-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

.module-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ddd;
}

.module-content p {
  margin-bottom: 1rem;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid var(--accent-color);
  border-radius: 20px;
  font-size: 0.95rem;
  color: var(--text-color);
}

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

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

.video-card--related {
  background: var(--card-bg);
}

.page--top .top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.top-item {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.top-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(229, 9, 20, 0.3);
}

.top-rank {
  flex-shrink: 0;
}

.rank-badge {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: #333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.rank-badge.rank-top {
  background: linear-gradient(135deg, var(--accent-color) 0%, #ff4444 100%);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.top-cover {
  flex-shrink: 0;
  width: 150px;
  height: 85px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.top-item:hover .top-cover img {
  transform: scale(1.1);
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.top-title a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.top-title a:hover {
  color: var(--accent-color);
}

.top-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.top-one-line {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
}

.site-footer {
  background: #0a0a0a;
  padding: 2rem 0;
  text-align: center;
  color: #999;
  border-top: 2px solid var(--accent-color);
  margin-top: 4rem;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
}

@media (max-width: 768px) {
  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

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

  .section-title {
    font-size: 1.5rem;
  }

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

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

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

  .video-one-line {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .video-main-title {
    font-size: 1.8rem;
  }

  .top-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .top-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

  .info-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
