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

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

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.site-logo a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.site-nav {
  display: flex;
  gap: 25px;
  white-space: nowrap;
}

.site-nav a {
  text-decoration: none;
  color: #666;
  font-size: 16px;
  transition: color 0.3s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #1a73e8;
}

.site-main {
  min-height: 60vh;
  padding: 40px 0;
}

.hero-section {
  background: #fff;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #222;
}

.hero-intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.video-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  padding-left: 10px;
  border-left: 4px solid #1a73e8;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 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: #ddd;
  overflow: hidden;
}

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

.video-info {
  padding: 15px;
}

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

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

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

.page-header {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.page-desc {
  font-size: 16px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

.page--top .top-list__items {
  list-style: none;
  counter-reset: top-counter;
}

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

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

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

.top-item__link {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.top-cover {
  width: 160px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.top-info {
  flex: 1;
}

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

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

.top-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

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

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

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

.group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid #1a73e8;
}

.group__grid {
  margin-bottom: 0;
}

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

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.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%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-header {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.detail-basic {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-basic h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.basic-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-size: 15px;
}

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

.basic-info dd {
  color: #333;
}

.detail-module {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-module h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #222;
}

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

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

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 20px;
  font-size: 14px;
}

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

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

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

body.ui-style-4 {
  background: #fafafa;
}

body.ui-style-4 .site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.ui-style-4 .site-logo a {
  color: #fff;
}

body.ui-style-4 .site-nav a {
  color: rgba(255,255,255,0.9);
}

body.ui-style-4 .site-nav a:hover,
body.ui-style-4 .site-nav a.active {
  color: #fff;
}

body.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

body.ui-style-4 .hero-title {
  color: #fff;
}

body.ui-style-4 .hero-intro {
  color: rgba(255,255,255,0.95);
}

body.ui-style-4 .section-title {
  border-left-color: #667eea;
}

body.ui-style-4 .top-rank {
  color: #667eea;
}

body.ui-style-4 .tag {
  background: #667eea;
  color: #fff;
}

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

  .site-nav {
    gap: 15px;
    font-size: 14px;
  }

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

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

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

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

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

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

  .top-item__link {
    flex-direction: column;
  }

  .top-cover {
    width: 100%;
    height: 180px;
  }

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

  .video-info {
    padding: 12px;
  }

  .page-header {
    padding: 25px 20px;
  }

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

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

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