/* Reset & Base */
* {
  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;
}

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

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

/* Header */
.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;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
}

.main-nav {
  display: flex;
  gap: 30px;
  white-space: nowrap;
}

.main-nav a {
  color: #333;
  font-size: 16px;
  transition: color 0.3s;
}

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

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

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

.hero-desc {
  font-size: 18px;
  opacity: 0.95;
}

/* Site Intro */
.site-intro {
  background: white;
  padding: 40px 0;
}

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

/* Video Section */
.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(280px, 1fr));
  gap: 30px;
}

.video-card {
  background: white;
  border-radius: 8px;
  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-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: 15px;
}

.video-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.video-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #999;
}

.video-meta span {
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 3px;
}

/* List Pages */
.page-header {
  background: white;
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 8px;
  text-align: center;
}

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

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

/* Top List */
.top-list__items {
  list-style: none;
}

.top-item {
  display: flex;
  gap: 20px;
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  align-items: center;
}

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

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.top-title a {
  color: #333;
  transition: color 0.3s;
}

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

.top-desc {
  color: #666;
  margin-bottom: 10px;
  font-size: 14px;
}

.top-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #999;
}

.top-meta span {
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 3px;
}

/* Detail Page */
.detail-page {
  background: white;
}

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

.video-player {
  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%);
  width: 80px;
  height: 80px;
  background: rgba(231, 76, 60, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: rgba(231, 76, 60, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

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

.detail-title {
  font-size: 36px;
  margin: 40px 0 30px;
  color: #333;
}

.detail-module {
  margin-bottom: 40px;
}

.module-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #e74c3c;
  padding-left: 15px;
}

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

.detail-info .info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  font-size: 16px;
}

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

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

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

.tag {
  display: inline-block;
  padding: 5px 12px;
  background: #f0f0f0;
  border-radius: 15px;
  font-size: 14px;
  color: #666;
}

.related-section {
  margin: 60px 0;
}

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

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

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

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

/* Mobile */
@media (max-width: 768px) {
  .main-nav {
    gap: 15px;
    font-size: 14px;
  }

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

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

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

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

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

  .top-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;
  }

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

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

/* UI Style Variants */
.ui-style-0 .logo { color: #e74c3c; }
.ui-style-1 .logo { color: #ff6b35; }
.ui-style-2 .logo { color: #f39c12; }
.ui-style-3 .logo { color: #e84393; }
.ui-style-4 .logo { color: #c0392b; }
.ui-style-5 .logo { color: #8e44ad; }
.ui-style-6 .logo { color: #3498db; }
.ui-style-7 .logo { color: #f1c40f; }
.ui-style-8 .logo { color: #16a085; }
.ui-style-9 .logo { color: #2c3e50; }
.ui-style-10 .logo { color: #00C75A; }
.ui-style-11 .logo { color: #0099FF; }
.ui-style-12 .logo { color: #FF6700; }
.ui-style-13 .logo { color: #00A1D6; }
.ui-style-14 .logo { color: #2e4482; }
