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

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

a {
  text-decoration: none;
  color: inherit;
}

.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
}

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

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

.nav-links li {
  white-space: nowrap;
}

.nav-links a {
  padding: 0.5rem 0;
  transition: color 0.3s;
}

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

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

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

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

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

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

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

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

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

.video-card {
  background: white;
  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 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: 1rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 0.875rem;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-header {
  margin-bottom: 2rem;
}

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

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

.page--grid,
.page--top,
.page--grouped {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

.layout__side--filters {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  height: fit-content;
  position: sticky;
  top: 80px;
}

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

.layout__side--filters p {
  color: #666;
  line-height: 1.6;
}

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

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

.top-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  transition: background 0.3s;
}

.top-list__item:hover {
  background: #f0f0f0;
}

.top-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  min-width: 40px;
  text-align: center;
}

.top-item-link {
  display: flex;
  gap: 1rem;
  flex: 1;
  align-items: center;
}

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

.top-item-link .video-cover img {
  position: static;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

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

.group {
  margin-bottom: 3rem;
}

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

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

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

.video-player {
  width: 100%;
  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%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.video-detail {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.basic-info {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.basic-info h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

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

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

.detail-module {
  margin-bottom: 2rem;
}

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

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

.tags-display {
  color: #667eea;
}

.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

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

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

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

.ui-style-0 .hero-section,
.ui-style-0 .section-title,
.ui-style-0 .group__title,
.ui-style-0 .detail-module h2 {
  background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
  color: white;
  border-color: #ff4757;
}

.ui-style-1 .hero-section {
  background: linear-gradient(135deg, #2d3436 0%, #000 100%);
}

.ui-style-1 .top-rank {
  color: #ff6348;
}

.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.ui-style-3 .hero-section {
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #e17055 0%, #d63031 100%);
}

.ui-style-5 .hero-section {
  background: linear-gradient(135deg, #2c3e50 0%, #000 100%);
}

.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #3742fa 0%, #5352ed 100%);
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #20bf6b 0%, #01a3a4 100%);
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #0fb9b1 0%, #009432 100%);
}

.ui-style-9 .hero-section {
  background: linear-gradient(135deg, #000 0%, #2c3e50 100%);
}

.ui-style-10 .hero-section {
  background: linear-gradient(135deg, #00d2d3 0%, #01a3a4 100%);
}

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #54a0ff 0%, #2e86de 100%);
}

.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #ff9ff3 0%, #feca57 100%);
}

.ui-style-13 .hero-section {
  background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
}

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #1e3799 0%, #0c2461 100%);
}

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

  .nav-links {
    width: 100%;
    gap: 1rem;
  }

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

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

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

  .layout__side--filters {
    position: static;
  }

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

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

  .top-item-link .video-cover {
    width: 100%;
  }

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

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

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

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

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