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

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

.main-nav {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.nav-links a {
  color: #666;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
}

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

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

.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 2rem;
}

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

.hero-desc {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.site-intro {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.site-intro h2 {
  margin-bottom: 1rem;
  color: #222;
}

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

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

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  padding-bottom: 0.5rem;
  border-bottom: 2px 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.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.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 {
  position: relative;
  padding-top: 56.25%;
  background: #ddd;
  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: 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;
  flex-wrap: wrap;
}

.video-meta span {
  font-size: 0.85rem;
  color: #999;
  background: #f0f0f0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.section-more {
  text-align: center;
  margin-top: 1.5rem;
}

.btn-more {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-more:hover {
  background: #0056b3;
}

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

.page-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

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

.page-header p {
  color: #666;
}

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

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

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

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

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

.top-info {
  flex: 1;
}

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

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

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

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

.top-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.top-meta span {
  font-size: 0.85rem;
  color: #999;
  background: #f0f0f0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

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

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

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group h4 {
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.9rem;
}

.filter-group p {
  font-size: 0.85rem;
  color: #666;
}

.group {
  margin-bottom: 3rem;
}

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

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

.video-player {
  max-width: 1200px;
  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%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 80px;
  height: 80px;
  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;
}

.detail-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

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

.detail-info {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.detail-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #222;
}

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

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

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

.detail-module {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

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

.detail-module p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.tag {
  background: #007bff;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

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

.ui-style-0 { --primary: #1a1a1a; --accent: #ff6b6b; }
.ui-style-1 { --primary: #2c2c2c; --accent: #ff4500; }
.ui-style-2 { --primary: #fff; --accent: #ff6347; }
.ui-style-3 { --primary: #fff; --accent: #dc143c; }
.ui-style-4 { --primary: #fff; --accent: #ff0000; }
.ui-style-5 { --primary: #1a1a1a; --accent: #e50914; }
.ui-style-6 { --primary: #0f1419; --accent: #00adb5; }
.ui-style-7 { --primary: #0d0c22; --accent: #ffd700; }
.ui-style-8 { --primary: #121212; --accent: #1db954; }
.ui-style-9 { --primary: #000; --accent: #fff; }
.ui-style-10 { --primary: #fff; --accent: #00C75A; }
.ui-style-11 { --primary: #fff; --accent: #0099FF; }
.ui-style-12 { --primary: #fff; --accent: #FF6700; }
.ui-style-13 { --primary: #fff; --accent: #00A1D6; }
.ui-style-14 { --primary: #fff; --accent: #003d7a; }

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  main {
    padding: 1rem;
  }

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

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

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

  .layout__side--filters {
    position: static;
  }

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

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

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .top-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }
}
