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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.ui-style-0 body { background: #000; color: #fff; }
.ui-style-1 body { background: #1a1a1a; color: #fff; }
.ui-style-2 body { background: #fff; color: #333; }
.ui-style-3 body { background: #fff; color: #333; }
.ui-style-4 body { background: #fafafa; color: #333; }
.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-6 body { background: #0c1e35; color: #fff; }
.ui-style-7 body { background: #0d1b2a; color: #fff; }
.ui-style-8 body { background: #1a1a1a; color: #fff; }
.ui-style-9 body { background: #000; color: #fff; }
.ui-style-10 body { background: #f0f8f5; color: #333; }
.ui-style-11 body { background: #f9f9f9; color: #333; }
.ui-style-12 body { background: #fff4e6; color: #333; }
.ui-style-13 body { background: #f5f9fa; color: #333; }
.ui-style-14 body { background: #fff; color: #333; }

.main-nav {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.ui-style-0 .main-nav,
.ui-style-1 .main-nav,
.ui-style-5 .main-nav,
.ui-style-6 .main-nav,
.ui-style-7 .main-nav,
.ui-style-8 .main-nav,
.ui-style-9 .main-nav {
  background: rgba(255,255,255,0.05);
  border-bottom-color: rgba(255,255,255,0.1);
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

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

.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 3rem;
}

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

.hero-desc {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

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

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
}

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

.video-card {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ui-style-2 .video-card,
.ui-style-3 .video-card,
.ui-style-4 .video-card,
.ui-style-10 .video-card,
.ui-style-11 .video-card,
.ui-style-12 .video-card,
.ui-style-13 .video-card,
.ui-style-14 .video-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
}

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

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

.video-cover {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: rgba(0,0,0,0.1);
}

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-one-line {
  font-size: 0.9rem;
  opacity: 0.7;
  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;
  opacity: 0.6;
}

.video-meta span {
  padding: 0.2rem 0.5rem;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

.ui-style-2 .video-meta span,
.ui-style-3 .video-meta span,
.ui-style-4 .video-meta span,
.ui-style-10 .video-meta span,
.ui-style-11 .video-meta span,
.ui-style-12 .video-meta span,
.ui-style-13 .video-meta span,
.ui-style-14 .video-meta span {
  background: #f0f0f0;
}

.page-header {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

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

.page-header p {
  opacity: 0.7;
}

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

.top-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.ui-style-2 .top-item,
.ui-style-3 .top-item,
.ui-style-4 .top-item,
.ui-style-10 .top-item,
.ui-style-11 .top-item,
.ui-style-12 .top-item,
.ui-style-13 .top-item,
.ui-style-14 .top-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
}

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  margin-right: 1rem;
  min-width: 60px;
  text-align: center;
}

.top-item__link {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.top-item .video-cover {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
}

.top-item .video-info {
  flex: 1;
}

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

.group__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
}

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

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

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

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

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

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

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

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

.detail-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.detail-info,
.detail-module,
.related-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.ui-style-2 .detail-info,
.ui-style-2 .detail-module,
.ui-style-2 .related-section,
.ui-style-3 .detail-info,
.ui-style-3 .detail-module,
.ui-style-3 .related-section,
.ui-style-4 .detail-info,
.ui-style-4 .detail-module,
.ui-style-4 .related-section,
.ui-style-10 .detail-info,
.ui-style-10 .detail-module,
.ui-style-10 .related-section,
.ui-style-11 .detail-info,
.ui-style-11 .detail-module,
.ui-style-11 .related-section,
.ui-style-12 .detail-info,
.ui-style-12 .detail-module,
.ui-style-12 .related-section,
.ui-style-13 .detail-info,
.ui-style-13 .detail-module,
.ui-style-13 .related-section,
.ui-style-14 .detail-info,
.ui-style-14 .detail-module,
.ui-style-14 .related-section {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
}

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
}

.detail-info dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.5rem;
}

.detail-info dt {
  font-weight: bold;
  opacity: 0.7;
}

.detail-info dd {
  margin: 0;
}

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

.tag {
  padding: 0.3rem 0.8rem;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  font-size: 0.9rem;
}

.ui-style-2 .tag,
.ui-style-3 .tag,
.ui-style-4 .tag,
.ui-style-10 .tag,
.ui-style-11 .tag,
.ui-style-12 .tag,
.ui-style-13 .tag,
.ui-style-14 .tag {
  background: #f0f0f0;
}

.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-cover {
  height: 150px;
}

.main-footer {
  text-align: center;
  padding: 2rem;
  opacity: 0.6;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.ui-style-0 .main-footer,
.ui-style-1 .main-footer,
.ui-style-5 .main-footer,
.ui-style-6 .main-footer,
.ui-style-7 .main-footer,
.ui-style-8 .main-footer,
.ui-style-9 .main-footer {
  border-top-color: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-logo {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    font-size: 0.9rem;
    gap: 0.5rem;
  }

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

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

  .video-cover {
    height: 120px;
  }

  .detail-header h1 {
    font-size: 1.8rem;
  }

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

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

  .top-rank {
    margin-bottom: 0.5rem;
  }

  .top-item__link {
    flex-direction: column;
  }

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