* {
  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-color: #0a0a0a;
}

.ui-style-8 body {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
}

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

.site-header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.ui-style-8 .site-header {
  background: rgba(15, 15, 30, 0.95);
  border-bottom: 1px solid rgba(76, 175, 80, 0.3);
}

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

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

.ui-style-8 .site-logo a {
  color: #4caf50;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

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

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #4caf50;
}

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

.hero-section {
  padding: 48px 0 32px;
  text-align: center;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  color: #fff;
}

.ui-style-8 .page-title {
  background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-intro {
  padding: 32px 0;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 48px;
  border-radius: 12px;
}

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

.section-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #fff;
  padding-bottom: 12px;
  border-bottom: 2px solid #4caf50;
  display: inline-block;
}

.ui-style-8 .section-title {
  border-bottom-color: #4caf50;
}

.content-module {
  margin-bottom: 56px;
}

.hero-slider {
  margin-bottom: 56px;
}

.slider-wrapper {
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px;
  -webkit-overflow-scrolling: touch;
}

.slider-wrapper::-webkit-scrollbar {
  height: 8px;
}

.slider-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.slider-wrapper::-webkit-scrollbar-thumb {
  background: #4caf50;
  border-radius: 4px;
}

.poster-slider {
  display: flex;
  gap: 20px;
  padding-bottom: 16px;
}

.poster-slider .video-card {
  flex: 0 0 280px;
}

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

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ui-style-8 .video-card {
  background: rgba(76, 175, 80, 0.05);
  border: 1px solid rgba(76, 175, 80, 0.1);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.4);
}

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

.video-cover {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

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

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

.video-info {
  padding: 16px;
}

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

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

.site-footer {
  background: rgba(10, 10, 10, 0.95);
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(76, 175, 80, 0.2);
}

.ui-style-8 .site-footer {
  background: rgba(15, 15, 30, 0.95);
  border-top: 1px solid rgba(76, 175, 80, 0.3);
}

.site-footer p {
  color: #808080;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  z-index: 999;
}

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

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

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

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

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

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

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

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

.detail-main {
  max-width: 1000px;
  margin: 0 auto;
}

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

.info-block {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ui-style-8 .info-block {
  background: rgba(76, 175, 80, 0.05);
  border-color: rgba(76, 175, 80, 0.1);
}

.info-block h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #4caf50;
}

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

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

.info-label {
  color: #b0b0b0;
  min-width: 60px;
}

.info-value {
  color: #fff;
  flex: 1;
}

.content-block {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ui-style-8 .content-block {
  background: rgba(76, 175, 80, 0.05);
  border-color: rgba(76, 175, 80, 0.1);
}

.content-block h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #4caf50;
}

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

.related-section {
  margin-top: 56px;
}

.related-section h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #fff;
  padding-bottom: 12px;
  border-bottom: 2px solid #4caf50;
}

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

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

.page--grid .video-grid {
  margin-top: 32px;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  margin-top: 32px;
}

.layout__side--filters {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.ui-style-8 .layout__side--filters {
  background: rgba(76, 175, 80, 0.05);
  border: 1px solid rgba(76, 175, 80, 0.1);
}

.layout__side--filters h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #4caf50;
}

.filter-info {
  font-size: 14px;
  color: #b0b0b0;
  line-height: 1.6;
}

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

.top-list__items .top-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  display: flex;
  gap: 20px;
  align-items: center;
  counter-increment: rank;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.ui-style-8 .top-list__items .top-item {
  background: rgba(76, 175, 80, 0.05);
  border-color: rgba(76, 175, 80, 0.1);
}

.top-list__items .top-item:hover {
  border-color: rgba(76, 175, 80, 0.4);
  transform: translateX(4px);
}

.top-item::before {
  content: counter(rank);
  font-size: 32px;
  font-weight: 700;
  color: #4caf50;
  min-width: 50px;
  text-align: center;
}

.top-item__cover {
  width: 100px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.top-item__info {
  flex: 1;
}

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

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

.top-item__meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 13px;
  color: #808080;
}

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

.group__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #4caf50;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(76, 175, 80, 0.3);
}

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

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  padding: 32px 0;
}

.pagination a,
.pagination span {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.active {
  background: #4caf50;
  color: #fff;
  border-color: #4caf50;
}

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

  .nav-link {
    font-size: 13px;
  }

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

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

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

  .poster-slider .video-card {
    flex: 0 0 200px;
  }

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

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

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

  .page--with-sidebar {
    grid-template-columns: 1fr;
  }

  .layout__side--filters {
    position: static;
  }

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

  .top-item::before {
    position: absolute;
    top: 10px;
    left: 10px;
  }

  .top-item__cover {
    width: 120px;
    height: 168px;
  }

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

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

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

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