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

:root {
  --primary-color: #00C75A;
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --text-secondary: #cccccc;
  --card-bg: #2a2a2a;
  --hover-color: #00D965;
}

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

.ui-style-0 { --primary-color: #FF0050; }
.ui-style-1 { --primary-color: #FF3B30; }
.ui-style-2 { --primary-color: #FF6B35; }
.ui-style-3 { --primary-color: #FF2D55; }
.ui-style-4 { --primary-color: #E50914; }
.ui-style-5 { --primary-color: #E50914; }
.ui-style-6 { --primary-color: #006FFF; }
.ui-style-7 { --primary-color: #0099FF; }
.ui-style-8 { --primary-color: #00C75A; --hover-color: #00D965; }
.ui-style-9 { --primary-color: #ffffff; }
.ui-style-10 { --primary-color: #00C75A; --bg-color: #f8f8f8; --text-color: #333333; --text-secondary: #666666; --card-bg: #ffffff; }
.ui-style-11 { --primary-color: #0099FF; --bg-color: #ffffff; --text-color: #333333; --text-secondary: #666666; --card-bg: #f5f5f5; }
.ui-style-12 { --primary-color: #FF6700; --bg-color: #ffffff; --text-color: #333333; --text-secondary: #666666; --card-bg: #ffffff; }
.ui-style-13 { --primary-color: #00A1D6; --bg-color: #ffffff; --text-color: #333333; --text-secondary: #666666; --card-bg: #ffffff; }
.ui-style-14 { --primary-color: #0052D9; --bg-color: #ffffff; --text-color: #333333; --text-secondary: #666666; --card-bg: #f5f7fa; }

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

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

.ui-style-10 .site-header,
.ui-style-11 .site-header,
.ui-style-12 .site-header,
.ui-style-13 .site-header,
.ui-style-14 .site-header {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo a {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo a:hover {
  opacity: 0.8;
}

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

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

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

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

.hero-section {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-section h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.site-intro {
  padding: 20px 0 40px;
}

.site-intro p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
}

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

.section-header {
  margin-bottom: 30px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  padding-left: 15px;
  border-left: 4px solid var(--primary-color);
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px 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%;
  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.05);
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.video-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.video-one-line {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  padding: 40px 0;
  text-align: center;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

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

.video-player {
  max-width: 1000px;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

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

.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%;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  display: block;
  margin-left: 5px;
}

.detail-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.detail-main-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.info-block {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.info-block h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
}

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

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

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

.info-value {
  color: var(--text-secondary);
  flex: 1;
}

.content-block {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.content-block h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color);
}

.content-block p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  text-align: justify;
  margin-bottom: 15px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

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

.related-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  padding-left: 15px;
  border-left: 4px solid var(--primary-color);
}

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

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

.top-list__item {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.top-list__item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(0, 199, 90, 0.2);
}

.top-list__item::before {
  counter-increment: rank;
  content: counter(rank);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
}

.top-list__cover {
  width: 120px;
  height: 67px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 20px;
}

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

.top-list__info {
  flex: 1;
}

.top-list__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.top-list__meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.top-list__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.site-footer {
  background: var(--card-bg);
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

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

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

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

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

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

.group__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 4px solid var(--primary-color);
}

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

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav {
    gap: 15px;
    font-size: 14px;
    width: 100%;
    justify-content: space-around;
  }

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

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

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

  .video-info {
    padding: 15px;
  }

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

  .detail-main-title {
    font-size: 28px;
  }

  .top-list__item {
    flex-wrap: wrap;
    padding: 15px;
  }

  .top-list__item::before {
    font-size: 24px;
    min-width: 40px;
  }

  .top-list__cover {
    width: 100px;
    height: 56px;
  }

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

@media (max-width: 480px) {
  .main-nav {
    gap: 10px;
    font-size: 13px;
  }

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

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