* {
  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: #333;
  background: #f5f5f5;
}

.site-nav {
  background: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  margin-right: auto;
}

.site-nav a:not(.nav-logo) {
  text-decoration: none;
  color: #666;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}

.site-nav a:not(.nav-logo):hover,
.site-nav a.active {
  background: #007bff;
  color: #fff;
}

.site-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-section {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hero-title {
  font-size: 2rem;
  color: #222;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1rem;
  color: #666;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

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

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  padding-left: 0.5rem;
  border-left: 4px solid #007bff;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

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

.video-info {
  padding: 1rem;
}

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

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

.video-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #999;
}

.video-meta span {
  padding: 0.2rem 0.5rem;
  background: #f0f0f0;
  border-radius: 3px;
}

.page-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.page-header p {
  color: #666;
  font-size: 1rem;
}

.top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.top-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.top-list__item:last-child {
  border-bottom: none;
}

.top-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
  min-width: 40px;
  text-align: center;
}

.top-cover {
  width: 120px;
  height: 68px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.top-title a {
  text-decoration: none;
  color: #222;
}

.top-title a:hover {
  color: #007bff;
}

.top-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.top-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #999;
}

.top-meta span {
  padding: 0.2rem 0.5rem;
  background: #f0f0f0;
  border-radius: 3px;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

.layout__side--filters {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.layout__side--filters h3 {
  margin-bottom: 1rem;
  color: #222;
}

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

.group__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #222;
  padding-left: 0.5rem;
  border-left: 4px solid #007bff;
}

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

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

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

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

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

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

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

.detail-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-header h1 {
  font-size: 2rem;
  color: #222;
}

.detail-info,
.detail-module,
.related-section {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #222;
  border-left: 4px solid #007bff;
  padding-left: 0.5rem;
}

.info-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.8rem;
}

.info-list dt {
  font-weight: bold;
  color: #666;
}

.info-list dd {
  color: #333;
}

.detail-module p {
  color: #333;
  line-height: 1.8;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.4rem 0.8rem;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #666;
}

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

.site-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.site-footer p {
  color: #ccc;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 99;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .site-nav {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .site-nav a:not(.nav-logo) {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }

  .site-main {
    padding: 1rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

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

  .hero-desc {
    font-size: 0.9rem;
  }

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

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

  .video-info {
    padding: 0.8rem;
  }

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

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

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

  .layout__side--filters {
    order: -1;
  }

  .top-cover {
    width: 80px;
    height: 45px;
  }

  .top-title {
    font-size: 1rem;
  }

  .top-desc {
    font-size: 0.85rem;
  }

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

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

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

.ui-style-0 {
  --primary-color: #fe2c55;
  --bg-color: #000;
  --text-color: #fff;
}

.ui-style-0 .site-nav,
.ui-style-0 .hero-section,
.ui-style-0 .video-card,
.ui-style-0 .page-header,
.ui-style-0 .detail-info,
.ui-style-0 .detail-module,
.ui-style-0 .related-section,
.ui-style-0 .detail-header {
  background: #1a1a1a;
  color: #fff;
}

.ui-style-0 .hero-title,
.ui-style-0 .section-title,
.ui-style-0 .video-title,
.ui-style-0 h1, .ui-style-0 h2 {
  color: #fff;
}

.ui-style-0 .hero-desc,
.ui-style-0 .video-one-line,
.ui-style-0 p {
  color: #ccc;
}

.ui-style-0 .site-nav a:not(.nav-logo):hover,
.ui-style-0 .site-nav a.active {
  background: var(--primary-color);
  color: #fff;
}

.ui-style-1 {
  --primary-color: #ff6600;
}

.ui-style-1 .site-nav a:not(.nav-logo):hover,
.ui-style-1 .site-nav a.active,
.ui-style-1 .player-play-icon {
  background: var(--primary-color);
  color: #fff;
}

.ui-style-1 .section-title,
.ui-style-1 .group__title,
.ui-style-1 h2 {
  border-left-color: var(--primary-color);
}

.ui-style-2 {
  --primary-color: #007bff;
}

.ui-style-3 {
  --primary-color: #e60023;
}

.ui-style-3 .site-nav a:not(.nav-logo):hover,
.ui-style-3 .site-nav a.active {
  background: var(--primary-color);
}

.ui-style-4 {
  --primary-color: #ff0000;
}

.ui-style-5 {
  --primary-color: #e50914;
}

.ui-style-5 body {
  background: #141414;
}

.ui-style-5 .site-nav,
.ui-style-5 .hero-section,
.ui-style-5 .video-card,
.ui-style-5 .page-header,
.ui-style-5 .detail-info,
.ui-style-5 .detail-module,
.ui-style-5 .related-section,
.ui-style-5 .detail-header {
  background: #1a1a1a;
  color: #fff;
}

.ui-style-5 .hero-title,
.ui-style-5 .video-title,
.ui-style-5 h1, .ui-style-5 h2 {
  color: #fff;
}

.ui-style-5 .hero-desc,
.ui-style-5 .video-one-line,
.ui-style-5 p {
  color: #b3b3b3;
}

.ui-style-6 {
  --primary-color: #0063e5;
}

.ui-style-6 body {
  background: #1a1d29;
}

.ui-style-6 .site-nav,
.ui-style-6 .hero-section,
.ui-style-6 .video-card,
.ui-style-6 .page-header {
  background: #0f1014;
  color: #fff;
}

.ui-style-7 {
  --primary-color: #0089d1;
}

.ui-style-8 {
  --primary-color: #00a650;
}

.ui-style-9 {
  --primary-color: #000;
}

.ui-style-9 body {
  background: #000;
}

.ui-style-9 .site-nav,
.ui-style-9 .hero-section,
.ui-style-9 .video-card,
.ui-style-9 .page-header {
  background: #0f0f0f;
  color: #fff;
}

.ui-style-10 {
  --primary-color: #00c75a;
}

.ui-style-11 {
  --primary-color: #0099ff;
}

.ui-style-12 {
  --primary-color: #ff6700;
}

.ui-style-13 {
  --primary-color: #00a1d6;
}

.ui-style-14 {
  --primary-color: #003d7a;
}
