* {
  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-color: #f5f5f5;
}

.ui-style-14 {
  --primary-color: #0099FF;
  --secondary-color: #FF6700;
  --bg-color: #ffffff;
  --text-color: #333333;
  --border-color: #e0e0e0;
}

.site-header {
  background: var(--bg-color);
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-color);
  color: white;
}

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

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 16px;
}

.page-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 48px 0 24px;
  padding-left: 16px;
  border-left: 4px solid var(--primary-color);
}

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

.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(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

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

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

.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;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

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

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

.page--top .top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page--top .top-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.page--top .top-item:hover {
  transform: translateX(8px);
}

.top-rank {
  font-size: 32px;
  font-weight: 700;
  min-width: 60px;
  text-align: center;
  color: var(--primary-color);
}

.top-rank--1 { color: #FFD700; }
.top-rank--2 { color: #C0C0C0; }
.top-rank--3 { color: #CD7F32; }

.top-cover {
  width: 100px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
}

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

.top-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}

.tag {
  padding: 4px 8px;
  background: #f0f0f0;
  border-radius: 4px;
  color: #666;
}

.video-player-section {
  margin: -32px -20px 32px;
  background: #000;
}

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

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

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

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

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

.detail-header {
  background: white;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.detail-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.4;
}

.detail-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;
  white-space: nowrap;
}

.info-value {
  color: #333;
}

.detail-section {
  background: white;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

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

.section-content p {
  margin-bottom: 12px;
}

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

.tag-item {
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 14px;
}

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

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

.video-card--related .video-info {
  padding: 12px;
}

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

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

.site-footer {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 32px 20px;
  margin-top: 64px;
  text-align: center;
  color: #666;
}

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  font-size: 20px;
}

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

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-4px);
}

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

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

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

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

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

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

  .section-title {
    font-size: 20px;
  }

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

  .top-rank {
    min-width: auto;
  }

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

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

  .detail-section {
    padding: 20px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}
