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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

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

.main-nav {
  display: flex;
  gap: 25px;
}

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

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

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.main-title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.site-intro {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.8;
}

.video-section {
  padding: 40px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

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

.video-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.video-meta span {
  font-size: 12px;
  color: #999;
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 4px;
}

.page--top {
  background: white;
  border-radius: 12px;
  padding: 30px;
}

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

.top-list-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.rank-badge {
  font-size: 24px;
  font-weight: bold;
  color: #ff6b6b;
  width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.top-item-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 1;
  gap: 20px;
}

.top-list-item .video-cover {
  width: 120px;
  padding-top: 0;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
}

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

.detail-page {
  background: white;
}

.video-player-section {
  background: #000;
  padding: 0;
}

.video-player {
  max-width: 1200px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.video-header {
  padding: 30px 0 20px;
}

.video-header h1 {
  font-size: 36px;
  color: #333;
}

.video-basic-info {
  padding: 30px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.video-basic-info h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px 20px;
}

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

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

.content-module {
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.content-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.module-content {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.module-content p {
  margin-bottom: 15px;
}

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

.tag {
  background: #f0f0f0;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

.related-section {
  padding: 40px 0;
}

.related-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.site-footer {
  background: #333;
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

.site-footer p {
  opacity: 0.8;
}

.page-header {
  padding: 30px 0;
}

.page-header h1 {
  font-size: 32px;
  color: #333;
}

.list-page .container > .page--grid,
.list-page .container > .page--top {
  background: transparent;
  padding: 0;
}

body.ui-style-0 {
  --primary-color: #ff6b6b;
  --bg-color: #f8f9fa;
}

body.ui-style-0 .hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.ui-style-1 {
  --primary-color: #ff6347;
  --bg-color: #fff;
}

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

body.ui-style-2 {
  --primary-color: #4facfe;
  --bg-color: #fff;
}

body.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

body.ui-style-3 {
  --primary-color: #fa709a;
  --bg-color: #fff;
}

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

body.ui-style-4 {
  --primary-color: #e53935;
  --bg-color: #fff;
}

body.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

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

body.ui-style-5 .video-card {
  background: #1f1f1f;
}

body.ui-style-5 .video-title {
  color: #fff;
}

body.ui-style-6 {
  --primary-color: #1565c0;
  --bg-color: #0d253f;
}

body.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #0d253f 0%, #01b4e4 100%);
}

body.ui-style-7 {
  --primary-color: #0099ff;
  --bg-color: #020c1b;
}

body.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #020c1b 0%, #0099ff 100%);
}

body.ui-style-8 {
  --primary-color: #00c853;
  --bg-color: #1a1a1a;
}

body.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #00c853 100%);
}

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

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

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

body.ui-style-9 .video-card {
  background: #1a1a1a;
}

body.ui-style-10 {
  --primary-color: #00C75A;
  --bg-color: #fff;
}

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

body.ui-style-11 {
  --primary-color: #0099FF;
  --bg-color: #fff;
}

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

body.ui-style-12 {
  --primary-color: #FF6700;
  --bg-color: #fff;
}

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

body.ui-style-13 {
  --primary-color: #00A1D6;
  --bg-color: #fff;
}

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

body.ui-style-14 {
  --primary-color: #1e40af;
  --bg-color: #fff;
}

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

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .main-nav {
    gap: 15px;
    font-size: 14px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: visible;
  }

  .main-title {
    font-size: 24px;
  }

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

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

  .video-info {
    padding: 10px;
  }

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

  .video-one-line {
    font-size: 12px;
  }

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

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

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

  .info-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

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

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    font-size: 13px;
    padding: 5px 8px;
  }
}
