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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: #1a1a1a;
}

.ui-style-8 {
  --primary-color: #00C75A;
  --bg-dark: #0d0d0d;
  --bg-medium: #1a1a1a;
  --bg-light: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #333333;
}

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

.site-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo a {
  color: var(--primary-color);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
}

.page-hero {
  background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-light) 100%);
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 600;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-light);
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  color: var(--bg-dark);
  border-color: var(--primary-color);
}

.site-intro {
  background: var(--bg-medium);
  padding: 2rem 0;
}

.site-intro p {
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

.video-section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 600;
}

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

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

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

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

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-dark);
  overflow: hidden;
}

.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.05);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 199, 90, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .play-icon {
  opacity: 1;
}

.video-info {
  padding: 1.25rem;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.video-one-line {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.page-header {
  background: var(--bg-medium);
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-desc {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.filter-section {
  padding: 2rem 0;
  background: var(--bg-light);
}

.video-list {
  padding: 3rem 0;
}

.page-with-sidebar .container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  padding: 3rem 20px;
}

.layout__side--filters {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.layout__side--filters h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.layout__side--filters h4 {
  margin: 1rem 0 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group .filter-btn {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  text-align: left;
}

.layout__main h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.page-top {
  padding: 3rem 0;
}

.top-list__items {
  list-style: none;
  counter-reset: rank;
}

.top-list__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--bg-light);
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  counter-increment: rank;
}

.top-list__item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(0, 199, 90, 0.15);
}

.rank-badge {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
}

.top-list__item .video-cover {
  width: 150px;
  min-width: 150px;
  padding-top: 84px;
}

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

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

.top-list__item .video-title a:hover {
  color: var(--primary-color);
}

.page-grouped {
  padding: 3rem 0;
}

.group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

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

.video-player-section {
  background: var(--bg-dark);
  padding: 2rem 0;
}

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  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: #00a84c;
}

.player-play-icon {
  font-size: 2rem;
  color: white;
  margin-left: 5px;
}

.video-header {
  padding: 2.5rem 0 1.5rem;
}

.video-header h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.video-basic-info {
  padding: 2rem 0;
  background: var(--bg-light);
}

.video-basic-info h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  padding: 0.75rem 0;
}

.info-label {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 80px;
}

.detail-module {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.detail-module h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.detail-module p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  color: var(--text-secondary);
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.related-section {
  padding: 3rem 0;
}

.related-section h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

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

.video-card--related .video-cover {
  padding-top: 40%;
}

.site-footer {
  background: var(--bg-dark);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.site-footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

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

.back-to-top:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .main-nav {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

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

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

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

  .video-info {
    padding: 1rem;
  }

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

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

  .page-with-sidebar .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .layout__side--filters {
    position: static;
  }

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

  .top-list__item .video-cover {
    width: 100%;
  }

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

  .video-header h1 {
    font-size: 1.75rem;
  }

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

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