* {
  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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ui-style-5 {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

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

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

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

.logo a {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 24px;
  white-space: nowrap;
}

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

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

.site-main {
  flex: 1;
}

.hero-section {
  padding: 60px 0 40px;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

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

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

.intro-section {
  padding: 40px 0;
  background: #1a1a1a;
}

.intro-content p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.8;
  text-indent: 2em;
}

.video-section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 4px solid #ff6b6b;
  font-weight: 600;
}

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

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

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

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

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

.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;
  margin-bottom: 8px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.site-footer {
  background: #0a0a0a;
  padding: 24px 0;
  text-align: center;
  color: #666;
  margin-top: auto;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: #ff6b6b;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}

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

.back-to-top:hover {
  transform: scale(1.1);
}

.page-header {
  padding: 40px 0 24px;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 12px;
  font-weight: 600;
}

.page-header p {
  font-size: 16px;
  color: #ccc;
}

.page--grid {
  padding: 40px 0;
}

.filter-bar {
  margin-bottom: 32px;
  padding: 20px;
  background: #222;
  border-radius: 8px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page--top {
  padding: 40px 0;
}

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

.top-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #222;
  border-radius: 8px;
  align-items: center;
  transition: transform 0.3s;
}

.top-item:hover {
  transform: translateX(4px);
}

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

.top-item .video-cover {
  width: 180px;
  padding-top: 0;
  height: 100px;
  flex-shrink: 0;
  border-radius: 4px;
}

.top-item .video-cover img {
  border-radius: 4px;
}

.top-item .video-info {
  flex: 1;
  padding: 0;
}

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

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

.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: rgba(255, 107, 107, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

.detail-header {
  padding: 32px 0;
}

.detail-header h1 {
  font-size: 32px;
  margin-bottom: 24px;
  font-weight: 600;
}

.basic-info {
  background: #222;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.basic-info h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #ff6b6b;
}

.info-item {
  display: flex;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}

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

.info-value {
  color: #fff;
}

.content-module {
  background: #222;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.content-module h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #ff6b6b;
  font-weight: 600;
}

.content-module p {
  font-size: 15px;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 12px;
}

.related-section {
  padding: 40px 0;
}

.related-section h2 {
  font-size: 24px;
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 4px solid #ff6b6b;
  font-weight: 600;
}

.video-card--related {
  background: #222;
}

@media (max-width: 768px) {
  .main-nav {
    gap: 12px;
    font-size: 14px;
  }

  .hero-section h1 {
    font-size: 20px;
  }

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

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

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

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

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

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

  .detail-header h1 {
    font-size: 24px;
  }

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

  .top-item .video-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
  }
}

.page--with-sidebar {
  padding: 40px 0;
}

.page--with-sidebar .container {
  display: flex;
  gap: 24px;
}

.layout__side--filters {
  width: 240px;
  flex-shrink: 0;
}

.layout__main {
  flex: 1;
}

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

.group__title {
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #ff6b6b;
}

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

@media (max-width: 968px) {
  .page--with-sidebar .container {
    flex-direction: column;
  }

  .layout__side--filters {
    width: 100%;
  }
}