* {
  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-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  text-decoration: none;
  color: #666;
  font-size: 1rem;
  white-space: nowrap;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #333;
}

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

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

.home-intro h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #222;
}

.home-intro p {
  color: #666;
  font-size: 1rem;
  line-height: 1.8;
}

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

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

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

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

.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;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page--grid h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.page-desc {
  color: #666;
  font-size: 1rem;
  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;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

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

.layout__main h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

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

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

.top-item {
  background: #fff;
  margin-bottom: 1rem;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  counter-increment: top-counter;
}

.top-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #999;
  min-width: 3rem;
  text-align: center;
}

.top-item:nth-child(1) .top-rank { color: #ff4444; }
.top-item:nth-child(2) .top-rank { color: #ff8844; }
.top-item:nth-child(3) .top-rank { color: #ffbb44; }

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

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

.top-item .video-cover img {
  position: static;
}

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

.group {
  margin-bottom: 3rem;
}

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

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

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

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.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-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  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: #333;
}

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

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

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

.detail-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

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

.info-list dt {
  font-weight: bold;
  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.1);
}

.detail-module h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

.detail-module p {
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
}

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

.video-card--related {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.site-footer p {
  font-size: 0.9rem;
}

.ui-style-0 body { background: #000; color: #fff; }
.ui-style-0 .site-header { background: #111; border-color: #333; }
.ui-style-0 .site-logo { color: #fff; }
.ui-style-0 .main-nav a { color: #aaa; }
.ui-style-0 .main-nav a:hover { color: #fff; }
.ui-style-0 .home-intro, .ui-style-0 .video-card, .ui-style-0 .detail-header,
.ui-style-0 .detail-info, .ui-style-0 .detail-module, .ui-style-0 .page--grid .page-header {
  background: #1a1a1a;
  color: #fff;
}
.ui-style-0 .video-title { color: #fff; }
.ui-style-0 .video-one-line { color: #aaa; }

.ui-style-1 body { background: #0f0f0f; color: #fff; }
.ui-style-1 .site-header { background: #1a1a1a; border-color: #333; }
.ui-style-1 .site-logo { color: #ff6b35; }

.ui-style-2 body { background: #fafafa; }
.ui-style-2 .site-logo { color: #ff5722; }

.ui-style-3 body { background: #fff; }
.ui-style-3 .site-logo { color: #e60023; }

.ui-style-4 body { background: #f8f8f8; }
.ui-style-4 .site-logo { color: #e50914; }

.ui-style-5 body { background: #0f0f0f; color: #fff; }
.ui-style-5 .site-header { background: #141414; border-color: #333; }
.ui-style-5 .site-logo { color: #e50914; }

.ui-style-6 body { background: #0c1e35; color: #fff; }
.ui-style-6 .site-header { background: #0f2744; border-color: #1a3a5c; }
.ui-style-6 .site-logo { color: #00a8e1; }

.ui-style-7 body { background: #0a1929; color: #fff; }
.ui-style-7 .site-header { background: #0d2138; border-color: #1a3a5c; }
.ui-style-7 .site-logo { color: #0080ff; }

.ui-style-8 body { background: #0e1015; color: #fff; }
.ui-style-8 .site-header { background: #1a1d23; border-color: #2a2e35; }
.ui-style-8 .site-logo { color: #00b300; }

.ui-style-9 body { background: #000; color: #fff; }
.ui-style-9 .site-header { background: #0a0a0a; border-color: #1a1a1a; }
.ui-style-9 .site-logo { color: #fff; }

.ui-style-10 body { background: #f0f8f5; }
.ui-style-10 .site-logo { color: #00C75A; }

.ui-style-11 body { background: #f5f5f5; }
.ui-style-11 .site-logo { color: #0099FF; }

.ui-style-12 body { background: #fff5f0; }
.ui-style-12 .site-logo { color: #FF6700; }

.ui-style-13 body { background: #f8f9fa; }
.ui-style-13 .site-logo { color: #00A1D6; }

.ui-style-14 body { background: #fafafa; }
.ui-style-14 .site-logo { color: #2f54eb; }

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .site-logo {
    text-align: center;
  }

  .main-nav {
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  .main-nav a {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }

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

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

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

  .top-item {
    flex-direction: row;
  }

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

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

@media (max-width: 480px) {
  .home-intro {
    padding: 1.5rem;
  }

  .home-intro h1 {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

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

  .detail-info, .detail-module {
    padding: 1.5rem;
  }

  .player-play-btn {
    width: 60px;
    height: 60px;
  }

  .player-play-icon {
    font-size: 1.5rem;
  }
}
