* {
  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;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: auto;
}

.main-nav a {
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #007bff;
}

.home-page,
.detail-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 4rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
}

.hero-section h1 {
  font-size: 2rem;
  line-height: 1.4;
}

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

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

.video-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid #667eea;
}

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

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

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

.video-card__link {
  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;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

.video-player {
  max-width: 100%;
  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;
  transition: all 0.3s ease;
}

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

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

.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;
}

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

.detail-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

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

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

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

.detail-module h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

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

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

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #666;
}

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

.related-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

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

.page--grid,
.page--with-sidebar,
.page--top,
.page--grouped {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

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

.page-intro {
  color: #666;
  line-height: 1.8;
}

.page--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;
  position: sticky;
  top: 100px;
}

.layout__side--filters h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.top-list__item {
  display: grid;
  grid-template-columns: 60px 120px 1fr;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}

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

.top-rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.top-list__item:nth-child(1) .top-rank {
  color: #ffd700;
}

.top-list__item:nth-child(2) .top-rank {
  color: #c0c0c0;
}

.top-list__item:nth-child(3) .top-rank {
  color: #cd7f32;
}

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

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

.top-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.top-info h3 a:hover {
  color: #667eea;
}

.group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid #667eea;
}

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

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

.ui-style-0 .hero-section,
.ui-style-0 .nav-logo,
.ui-style-0 .video-section h2 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.ui-style-2 .video-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ui-style-3 .main-nav {
  background: linear-gradient(90deg, #ff5e5e, #ff2d55);
  color: #fff;
}

.ui-style-4 body {
  font-family: "Inter", sans-serif;
}

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

.ui-style-5 .video-card,
.ui-style-5 .detail-header,
.ui-style-5 .detail-info,
.ui-style-5 .detail-module,
.ui-style-5 .page-header {
  background: #1f1f1f;
  color: #fff;
}

.ui-style-5 .main-nav {
  background: #1f1f1f;
  color: #fff;
}

.ui-style-6 body {
  background: #0f1419;
  color: #e8eaed;
}

.ui-style-6 .video-card,
.ui-style-6 .main-nav {
  background: #1a2332;
}

.ui-style-7 body {
  background: #0d1117;
  color: #c9d1d9;
}

.ui-style-7 .video-card {
  background: #161b22;
}

.ui-style-8 body {
  background: #0e1111;
  color: #e4e6eb;
}

.ui-style-8 .main-nav {
  background: #1a2420;
}

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

.ui-style-9 .video-card,
.ui-style-9 .detail-header,
.ui-style-9 .detail-info,
.ui-style-9 .detail-module {
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #1a1a1a;
}

.ui-style-9 .main-nav {
  background: #0a0a0a;
  color: #fff;
  border-bottom: 1px solid #1a1a1a;
}

.ui-style-10 body {
  background: #f8f9fa;
}

.ui-style-10 .nav-logo {
  color: #00C75A;
}

.ui-style-11 body {
  background: #fff;
  font-weight: 300;
}

.ui-style-11 .main-nav a:hover {
  color: #0099FF;
}

.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #FF6700, #ff8533);
}

.ui-style-13 body {
  background: #f4f5f7;
}

.ui-style-13 .nav-logo {
  color: #00A1D6;
}

.ui-style-14 body {
  background: #f7f8fa;
  color: #222;
}

@media (max-width: 768px) {
  .main-nav {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: nowrap;
  }

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

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

  .hero-section h1 {
    font-size: 1.4rem;
  }

  .video-section h2,
  .group__title {
    font-size: 1.4rem;
  }

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

  .layout__side--filters {
    position: static;
  }

  .top-list__item {
    grid-template-columns: 40px 80px 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

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

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

  .video-info {
    padding: 0.75rem;
  }

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

  .home-page,
  .detail-page,
  .page--grid,
  .page--with-sidebar,
  .page--top,
  .page--grouped {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .main-nav {
    gap: 0.5rem;
    font-size: 0.85rem;
  }

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

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