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

:root {
  --primary-color: #00A1D6;
  --secondary-color: #FB7299;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #e5e5e5;
  --hover-bg: #f5f5f5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
}

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

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-brand a {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-links li a {
  display: block;
  padding: 8px 16px;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links li a:hover {
  background: var(--hover-bg);
  color: var(--primary-color);
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero-content h1 {
  font-size: 32px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 16px;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

.intro-section {
  padding: 40px 20px;
  background: #f9f9f9;
}

.intro-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  max-width: 900px;
  margin: 0 auto;
}

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

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 600;
}

.more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}

.more-link:hover {
  opacity: 0.8;
}

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

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

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

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

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

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

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  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.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-page {
  padding: 40px 20px;
  min-height: 70vh;
}

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

.page-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.layout__side--filters {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  height: fit-content;
}

.layout__side--filters h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.filter-group p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

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

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

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

.rank-badge {
  font-size: 28px;
  font-weight: 700;
  color: #ccc;
  min-width: 50px;
  text-align: center;
}

.rank-1 {
  color: #FFD700;
}

.rank-2 {
  color: #C0C0C0;
}

.rank-3 {
  color: #CD7F32;
}

.top-list__item .video-cover {
  width: 180px;
  padding-top: 0;
  height: 100px;
  flex-shrink: 0;
  border-radius: 8px;
}

.top-list__item .video-cover img {
  border-radius: 8px;
}

.top-list__item .video-info {
  flex: 1;
  padding: 0;
}

.top-list__item .video-title a {
  color: inherit;
  text-decoration: none;
}

.top-list__item .video-title a:hover {
  color: var(--primary-color);
}

.group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 28px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

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

.detail-page {
  padding: 40px 20px;
  min-height: 70vh;
}

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

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  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.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  font-size: 36px;
  color: var(--primary-color);
  margin-left: 5px;
}

.detail-header h1 {
  font-size: 36px;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.detail-module h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-color);
}

.detail-module p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  font-size: 15px;
  line-height: 1.8;
}

.info-list dt {
  font-weight: 600;
  color: #666;
}

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

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--hover-bg);
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  border: 1px solid var(--border-color);
}

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

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

.site-footer {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.site-footer p {
  font-size: 14px;
  color: #999;
  line-height: 1.8;
}

.ui-style-2 {
  --primary-color: #00A1D6;
  --secondary-color: #FB7299;
}

.ui-style-2 .video-card {
  border-radius: 16px;
}

.ui-style-2 .video-cover {
  border-radius: 0;
}

.ui-style-2 .nav-brand a {
  font-weight: 700;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 24px;
  }

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

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

  .video-card {
    border-radius: 8px;
  }

  .video-info {
    padding: 12px;
  }

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

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

  .page--with-sidebar {
    grid-template-columns: 1fr;
  }

  .layout__side--filters {
    margin-bottom: 20px;
  }

  .top-list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-list__item .video-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
  }

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

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

  .detail-header h1 {
    font-size: 28px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links li a {
    padding: 6px 10px;
    font-size: 14px;
  }

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

  .video-info {
    min-height: 100px;
  }
}

@media (max-width: 480px) {
  .site-nav {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}
