* {
  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;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.site-logo {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.nav-links {
  display: flex;
  gap: 24px;
  white-space: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: #666;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #000;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.home-header {
  text-align: center;
  margin-bottom: 30px;
}

.home-header h1 {
  font-size: 28px;
  line-height: 1.4;
  color: #222;
}

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

.site-intro p {
  line-height: 1.8;
  color: #555;
}

.video-section {
  margin-bottom: 50px;
}

.video-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #222;
}

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

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

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

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

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

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-one-line {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-header h1 {
  font-size: 28px;
  color: #222;
}

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

.top-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.top-rank {
  font-size: 24px;
  font-weight: bold;
  color: #ff6b6b;
  min-width: 40px;
  text-align: center;
}

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

.top-info {
  flex: 1;
}

.top-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

.top-info h3 a:hover {
  color: #0066cc;
}

.top-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.page--l4 .group {
  margin-bottom: 40px;
}

.group-title {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

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

.page--l2 {
  display: flex;
  gap: 30px;
}

.layout__side--filters {
  width: 250px;
  flex-shrink: 0;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__main {
  flex: 1;
}

.video-player-section {
  margin-bottom: 40px;
}

.video-player {
  max-width: 900px;
  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: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

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

.player-play-icon {
  font-size: 32px;
  color: #333;
}

.detail-header {
  text-align: center;
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 32px;
  color: #222;
}

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

.detail-info h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

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

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

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

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

.detail-module h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #222;
}

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

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
  color: #555;
}

.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}

.ui-style-0 {
  --primary-color: #000;
  --accent-color: #ff6b6b;
}

.ui-style-0 .site-nav {
  background: #000;
}

.ui-style-0 .site-logo,
.ui-style-0 .nav-links a {
  color: #fff;
}

.ui-style-0 body {
  background: #1a1a1a;
  color: #fff;
}

.ui-style-0 .video-card,
.ui-style-0 .site-intro,
.ui-style-0 .detail-info,
.ui-style-0 .detail-module,
.ui-style-0 .top-item {
  background: #2a2a2a;
  color: #fff;
}

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

.ui-style-2 {
  --primary-color: #0066cc;
}

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

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

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

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

.ui-style-5 .site-logo,
.ui-style-5 .nav-links a {
  color: #fff;
}

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

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

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

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

.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: #003087;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

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

  .home-header h1 {
    font-size: 20px;
  }

  .detail-header h1 {
    font-size: 24px;
  }

  .page--l2 {
    flex-direction: column;
  }

  .layout__side--filters {
    width: 100%;
    position: static;
  }

  .top-item {
    flex-wrap: wrap;
  }

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

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