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

body.ui-style-14 {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background: #fff;
  color: #222;
}

body.ui-style-14 .layout__container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
}

body.ui-style-14 .layout__side {
  width: 240px;
  background: #f8f9fa;
  padding: 20px;
  min-height: 100vh;
  flex-shrink: 0;
}

body.ui-style-14 .layout__main {
  flex: 1;
  padding: 20px 40px;
  min-width: 0;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.header__brand {
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  display: inline-block;
  margin-bottom: 15px;
}

.nav {
  display: flex;
  gap: 30px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav__link {
  color: white;
  text-decoration: none;
  padding: 8px 0;
  white-space: nowrap;
  transition: opacity 0.3s;
  font-size: 16px;
}

.nav__link:hover {
  opacity: 0.8;
}

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

.hero__title {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero__subtitle {
  font-size: 20px;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

.section {
  margin-bottom: 50px;
}

.section__title {
  font-size: 28px;
  margin-bottom: 25px;
  color: #2c3e50;
  font-weight: 600;
}

.section__intro {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  line-height: 1.8;
  font-size: 16px;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px 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: 20px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2c3e50;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.video-meta {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  font-size: 13px;
  color: #999;
}

.video-player-section {
  margin-bottom: 40px;
}

.video-player {
  background: #000;
  border-radius: 8px;
  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: #000;
}

.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;
  font-size: 32px;
}

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

.player-play-icon {
  margin-left: 5px;
}

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

.detail-title {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 25px;
  font-weight: bold;
}

.info-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.info-card__title {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  padding: 10px 0;
  line-height: 1.8;
}

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

.info-value {
  color: #333;
  flex: 1;
}

.content-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 30px;
  line-height: 1.8;
}

.content-section__title {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

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

.related-section {
  margin-top: 50px;
}

.related-section__title {
  font-size: 28px;
  margin-bottom: 25px;
  color: #2c3e50;
  font-weight: 600;
}

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.top-list__items {
  list-style: none;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.top-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s;
}

.top-item:hover {
  background: #f8f9fa;
}

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

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

.top-rank--gold { color: #FFD700; }
.top-rank--silver { color: #C0C0C0; }
.top-rank--bronze { color: #CD7F32; }

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

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

.top-info {
  flex: 1;
  min-width: 0;
}

.top-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.top-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 600;
  padding-left: 15px;
  border-left: 4px solid #667eea;
}

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

.layout__side--filters {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.filter-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2c3e50;
}

.filter-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

.footer__text {
  opacity: 0.8;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 1000;
}

.back-to-top:hover {
  background: #5568d3;
  transform: translateY(-5px);
}

.back-to-top.show {
  display: flex;
}

@media (max-width: 768px) {
  .nav {
    gap: 20px;
    padding-bottom: 10px;
  }

  .nav__link {
    font-size: 14px;
  }

  .hero {
    padding: 50px 20px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

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

  .layout__container {
    flex-direction: column;
  }

  .layout__side {
    width: 100%;
    min-height: auto;
  }

  .layout__main {
    padding: 20px;
  }

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

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

  .page-title {
    font-size: 28px;
  }

  .top-item {
    flex-wrap: wrap;
    padding: 15px;
  }

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

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

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

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

  .hero__title {
    font-size: 24px;
  }
}
