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

body.ui-style-1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #ff6700;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: visible;
}

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

.nav a:hover {
  background: #ff6700;
  color: #fff;
}

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

.hero-section {
  background: linear-gradient(135deg, #ff6700 0%, #ff8533 100%);
  color: #fff;
  padding: 60px 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
}

.hero-section h1 {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-section p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
  padding-left: 12px;
  border-left: 4px solid #ff6700;
}

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

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

.video-card:hover {
  transform: translateY(-4px);
  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;
  width: 100%;
  padding-top: 140%;
  background: #e5e5e5;
  overflow: hidden;
}

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.page-header {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-header h1 {
  font-size: 28px;
  color: #222;
  margin-bottom: 12px;
}

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

.filter-bar {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

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

.top-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

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

.top-rank.rank-1, .top-rank.rank-2, .top-rank.rank-3 {
  color: #ff4444;
}

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

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

.top-info {
  flex: 1;
}

.top-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #222;
}

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

.detail-page {
  background: #fff;
}

.video-player-section {
  background: #000;
  padding: 0;
  margin-bottom: 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,103,0,0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  background: rgba(255,103,0,1);
  transform: translate(-50%, -50%) scale(1.1);
}

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

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

.detail-title {
  font-size: 32px;
  color: #222;
  margin-bottom: 24px;
  line-height: 1.3;
}

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

.detail-section h2 {
  font-size: 22px;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #ff6700;
}

.detail-section p {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 12px;
}

.basic-info {
  background: #f8f8f8;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.basic-info h2 {
  font-size: 20px;
  margin-bottom: 16px;
  border-bottom: none;
}

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

.info-item {
  font-size: 14px;
  color: #666;
}

.info-item strong {
  color: #222;
  margin-right: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #ff6700;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
}

.related-section {
  background: #f8f8f8;
  padding: 40px 20px;
  margin-top: 40px;
}

.related-section .section-title {
  text-align: center;
  border-left: none;
  padding-left: 0;
}

.related-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.video-card--related {
  background: #fff;
}

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

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

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

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

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

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    flex-direction: column;
    padding: 12px 16px;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 13px;
    flex: 1;
    text-align: center;
  }

  .hero-section {
    padding: 40px 20px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .video-info {
    padding: 12px;
  }

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

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

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

  .top-item {
    flex-direction: column;
    text-align: center;
  }

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

  .top-cover {
    width: 120px;
    height: 168px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
