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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

body.ui-style-12 {
  background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
  color: #2c2c2c;
}

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

.ui-style-12 .header {
  background: linear-gradient(90deg, #ff6700 0%, #ff8533 100%);
  color: #fff;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: #ff6700;
  text-decoration: none;
  letter-spacing: 1px;
}

.ui-style-12 .logo {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav a {
  color: #666;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 15px;
}

.ui-style-12 .nav a {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}

.nav a:hover {
  background: rgba(255, 103, 0, 0.1);
  color: #ff6700;
  transform: translateY(-2px);
}

.ui-style-12 .nav a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

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

.hero {
  background: linear-gradient(135deg, #ff6700 0%, #ff9966 100%);
  border-radius: 16px;
  padding: 60px 40px;
  margin-bottom: 40px;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 24px rgba(255, 103, 0, 0.3);
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.hero p {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.95;
}

.section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #ff6700;
  padding-left: 16px;
  border-left: 5px solid #ff6700;
}

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

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 103, 0, 0.2);
}

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

.video-cover {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: linear-gradient(135deg, #ffddcc 0%, #ffccaa 100%);
}

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

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: 16px;
}

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

.video-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

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

.page-header {
  background: linear-gradient(135deg, #ff6700 0%, #ff9966 100%);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 103, 0, 0.25);
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 12px;
  font-weight: 700;
}

.page-header p {
  font-size: 16px;
  opacity: 0.95;
  line-height: 1.7;
}

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

.top-list__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.top-item:hover {
  box-shadow: 0 4px 16px rgba(255, 103, 0, 0.15);
  transform: translateX(8px);
}

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

.top-item:nth-child(1) .top-rank {
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.3);
}

.top-item:nth-child(2) .top-rank {
  color: #c0c0c0;
}

.top-item:nth-child(3) .top-rank {
  color: #cd7f32;
}

.top-cover {
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffddcc 0%, #ffccaa 100%);
}

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

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

.top-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #2c2c2c;
  font-weight: 600;
}

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

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

.video-player {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

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

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

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

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

.detail-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.detail-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #2c2c2c;
  line-height: 1.3;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.info-card h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ff6700;
  padding-bottom: 12px;
  border-bottom: 2px solid #ffe6cc;
}

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

.info-item {
  display: flex;
  gap: 8px;
}

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

.info-value {
  color: #2c2c2c;
}

.content-module {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.content-module h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ff6700;
  padding-left: 12px;
  border-left: 4px solid #ff6700;
}

.content-module p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 12px;
}

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

.video-card--related {
  margin: 0;
}

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

.ui-style-12 .footer {
  background: linear-gradient(135deg, #ff6700 0%, #ff5500 100%);
}

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

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #ff6700;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 103, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #ff5500;
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 24px;
  }

  .hero h1 {
    font-size: 28px;
  }

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

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

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

  .video-info {
    padding: 12px;
  }

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

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

  .nav {
    gap: 4px;
  }

  .nav a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .top-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .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: 28px;
  }

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