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

:root {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --accent-color: #00C75A;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.ui-style-8 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

body.ui-style-8 a {
  color: #00C75A;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.ui-style-8 a:hover {
  color: #00ff6f;
}

.site-header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 199, 90, 0.2);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00C75A;
  letter-spacing: 1px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: #ffffff;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #00C75A;
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #00C75A;
  text-shadow: 0 2px 10px rgba(0, 199, 90, 0.3);
}

.page-description {
  font-size: 1.1rem;
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto;
}

.filter-bar {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 199, 90, 0.2);
}

.filter-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #00C75A;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 199, 90, 0.3);
  border-color: #00C75A;
}

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

.video-cover {
  width: 100%;
  padding-top: 140%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

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

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

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

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

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

.video-player {
  width: 100%;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

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

.player-play-btn:hover {
  background: #00C75A;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(0, 199, 90, 0.6);
}

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

.detail-content {
  max-width: 900px;
  margin: 0 auto;
}

.detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #ffffff;
  text-align: center;
}

.info-block, .content-module {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 199, 90, 0.2);
}

.module-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #00C75A;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 199, 90, 0.3);
}

.info-item {
  display: flex;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #00C75A;
  min-width: 80px;
  margin-right: 1rem;
}

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

.content-text {
  color: #cccccc;
  line-height: 1.8;
}

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

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

.video-card--related {
  font-size: 0.9rem;
}

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

.site-intro {
  background: rgba(0, 199, 90, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(0, 199, 90, 0.3);
  text-align: center;
}

.intro-text {
  color: #cccccc;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #00C75A;
  padding-left: 1rem;
  border-left: 4px solid #00C75A;
}

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

.top-list-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.top-list-item:hover {
  background: rgba(0, 199, 90, 0.1);
  border-color: #00C75A;
  transform: translateX(10px);
}

.rank-badge {
  font-size: 2rem;
  font-weight: 700;
  color: #00C75A;
  min-width: 50px;
  text-align: center;
}

.top-list-item:nth-child(1) .rank-badge { color: #FFD700; }
.top-list-item:nth-child(2) .rank-badge { color: #C0C0C0; }
.top-list-item:nth-child(3) .rank-badge { color: #CD7F32; }

.top-item-cover {
  width: 120px;
  height: 160px;
  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: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.top-item-meta {
  color: #999999;
  margin-bottom: 0.5rem;
}

.top-item-desc {
  color: #cccccc;
  line-height: 1.6;
}

.page--grouped .group {
  margin-bottom: 3rem;
}

.group-header {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #00C75A;
  padding: 1rem;
  background: rgba(0, 199, 90, 0.1);
  border-radius: 8px;
  border-left: 4px solid #00C75A;
}

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

.site-footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(0, 199, 90, 0.2);
  text-align: center;
  color: #999999;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(0, 199, 90, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

.back-to-top:hover {
  background: #00C75A;
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 199, 90, 0.5);
}

@media (max-width: 768px) {
  .site-nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

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

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

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

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

  .top-item-cover {
    width: 100%;
    height: 200px;
  }

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

  .video-info {
    min-height: 80px;
  }
}

@media (max-width: 480px) {
  .site-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav ul::-webkit-scrollbar {
    display: none;
  }
}
