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

:root {
  --spacing: 8px;
  --container-width: 1200px;
  --radius: 8px;
  --transition: 0.3s ease;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 calc(var(--spacing) * 2);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--spacing) * 2) 0;
}

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

.main-nav {
  display: flex;
  gap: calc(var(--spacing) * 3);
  white-space: nowrap;
}

.main-nav a {
  color: #666;
  text-decoration: none;
  transition: color var(--transition);
}

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

.hero-section {
  text-align: center;
  padding: calc(var(--spacing) * 6) 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  margin-bottom: calc(var(--spacing) * 4);
  border-radius: var(--radius);
}

.hero-title {
  font-size: 28px;
  margin-bottom: calc(var(--spacing) * 2);
  line-height: 1.4;
}

.hero-desc {
  font-size: 16px;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
}

.intro-section {
  background: #fff;
  padding: calc(var(--spacing) * 4);
  border-radius: var(--radius);
  margin-bottom: calc(var(--spacing) * 4);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.intro-section h2 {
  margin-bottom: calc(var(--spacing) * 2);
  color: #333;
}

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

section {
  margin-bottom: calc(var(--spacing) * 5);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacing) * 3);
}

.section-title {
  font-size: 24px;
  color: #333;
}

.section-more {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing) * 3);
}

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

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

.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;
  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: calc(var(--spacing) * 2);
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--spacing);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: var(--spacing);
}

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

.video-list--compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: calc(var(--spacing) * 2);
}

.video-card--compact {
  display: flex;
  gap: calc(var(--spacing) * 2);
  align-items: center;
  padding: calc(var(--spacing) * 2);
}

.video-card--compact .video-cover {
  width: 120px;
  flex-shrink: 0;
  padding-top: 0;
  height: 68px;
}

.video-card--compact .video-cover img {
  position: static;
}

.card-rank {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  margin-right: calc(var(--spacing) * 2);
}

.page-header {
  margin-bottom: calc(var(--spacing) * 4);
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: calc(var(--spacing) * 2);
}

.page-header p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

.page--grid, .page--with-sidebar, .page--top, .page--grouped {
  background: #fff;
  padding: calc(var(--spacing) * 4);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: calc(var(--spacing) * 4);
}

.layout__side--filters {
  padding-right: calc(var(--spacing) * 3);
  border-right: 1px solid #e0e0e0;
}

.layout__side--filters h3 {
  margin-bottom: calc(var(--spacing) * 2);
}

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

.top-item {
  display: flex;
  gap: calc(var(--spacing) * 2);
  padding: calc(var(--spacing) * 3);
  border-bottom: 1px solid #e0e0e0;
  align-items: center;
}

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

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

.top-cover {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 18px;
  margin-bottom: var(--spacing);
}

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

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

.top-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: var(--spacing);
}

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

.group {
  margin-bottom: calc(var(--spacing) * 5);
}

.group-title {
  font-size: 24px;
  margin-bottom: calc(var(--spacing) * 3);
  padding-bottom: calc(var(--spacing) * 2);
  border-bottom: 2px solid #667eea;
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing) * 3);
}

.detail-page {
  padding: calc(var(--spacing) * 4) 0;
}

.video-player-section {
  margin-bottom: calc(var(--spacing) * 4);
}

.video-player {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.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 var(--transition), background var(--transition);
}

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

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

.detail-header {
  margin-bottom: calc(var(--spacing) * 3);
}

.detail-title {
  font-size: 32px;
  color: #333;
}

.detail-section {
  background: #fff;
  padding: calc(var(--spacing) * 4);
  border-radius: var(--radius);
  margin-bottom: calc(var(--spacing) * 3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-section .section-title {
  font-size: 20px;
  margin-bottom: calc(var(--spacing) * 2);
  padding-bottom: calc(var(--spacing) * 2);
  border-bottom: 2px solid #f0f0f0;
}

.section-content {
  color: #666;
  line-height: 1.8;
}

.section-content p {
  margin-bottom: calc(var(--spacing) * 2);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing) * 2);
}

.info-item {
  display: flex;
  gap: calc(var(--spacing) * 2);
  padding: calc(var(--spacing) * 2);
  background: #f9f9f9;
  border-radius: var(--radius);
}

.info-label {
  font-weight: 600;
  color: #333;
  min-width: 60px;
}

.info-value {
  color: #666;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing);
}

.tag {
  display: inline-block;
  padding: calc(var(--spacing) / 2) calc(var(--spacing) * 2);
  background: #667eea;
  color: #fff;
  border-radius: calc(var(--radius) * 2);
  font-size: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing) * 3);
}

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

.site-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: calc(var(--spacing) * 4) 0;
  margin-top: calc(var(--spacing) * 6);
}

.site-footer p {
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .main-nav {
    gap: calc(var(--spacing) * 2);
    font-size: 14px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: calc(var(--spacing) * 2);
  }

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

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

  .layout__side--filters {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: calc(var(--spacing) * 3);
  }

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

  .top-rank {
    font-size: 24px;
    min-width: 40px;
  }

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

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

  .video-info {
    padding: calc(var(--spacing) * 1.5);
  }

  .video-title {
    font-size: 14px;
  }

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

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

.ui-style-0 .site-header {
  background: #1a1a1a;
}

.ui-style-0 .logo a,
.ui-style-0 .video-card,
.ui-style-0 .detail-section,
.ui-style-0 .intro-section,
.ui-style-0 .page--grid,
.ui-style-0 .page--top {
  background: #1a1a1a;
  color: #fff;
}

.ui-style-0 .video-title,
.ui-style-0 .detail-title,
.ui-style-0 .section-title {
  color: #fff;
}

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

.ui-style-1 .tag {
  background: #ff6b6b;
}

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

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

.ui-style-3 .section-more,
.ui-style-3 .card-rank {
  color: #ff3838;
}

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

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

.ui-style-5 .site-header,
.ui-style-6 .site-header {
  background: #1f1f1f;
}

.ui-style-5 .video-card,
.ui-style-6 .video-card,
.ui-style-5 .detail-section,
.ui-style-6 .detail-section {
  background: #1f1f1f;
  color: #fff;
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #0063e5 0%, #004db3 100%);
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #00b140 0%, #008f33 100%);
}

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

.ui-style-9 .video-card,
.ui-style-9 .detail-section {
  background: #1a1a1a;
}

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

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #0099FF 0%, #0077cc 100%);
}

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

.ui-style-13 .hero-section {
  background: linear-gradient(135deg, #00A1D6 0%, #0081ad 100%);
}

.ui-style-14 body {
  background: #f0f2f5;
}
