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

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.main-nav li a {
  display: block;
  padding: 8px 16px;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 14px;
}

.main-nav li a:hover,
.main-nav li.active a {
  background: #3498db;
  color: #fff;
}

.site-main {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
}

.intro-section {
  background: #fff;
  padding: 40px 0;
  margin-bottom: 40px;
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

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

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #2c3e50;
  padding-left: 15px;
  border-left: 4px solid #3498db;
}

.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 4px 16px rgba(0,0,0,0.15);
}

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

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

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
  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;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #999;
}

.meta-item {
  padding: 3px 8px;
  background: #f0f0f0;
  border-radius: 3px;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

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

.page-desc {
  font-size: 16px;
  color: #666;
}

.page--grid .video-grid {
  margin-top: 30px;
}

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

.top-item {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top-link {
  display: flex;
  align-items: center;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  gap: 20px;
  transition: background 0.3s;
}

.top-link:hover {
  background: #f9f9f9;
}

.top-rank {
  font-size: 36px;
  font-weight: bold;
  color: #3498db;
  min-width: 60px;
  text-align: center;
}

.top-cover {
  width: 120px;
  height: 180px;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.top-one-line {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.top-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #999;
}

.top-meta span {
  padding: 3px 8px;
  background: #f0f0f0;
  border-radius: 3px;
}

.page--grouped .group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 25px;
  padding-left: 12px;
  border-left: 3px solid #3498db;
}

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

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

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

.filter-widget h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.filter-widget p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.layout__main {
  min-width: 0;
}

.video-player-section {
  background: #000;
  padding: 40px 0;
  margin-bottom: 30px;
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

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

.player-play-btn:hover {
  background: rgba(52, 152, 219, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

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

.detail-page {
  background: #fff;
}

.detail-header {
  padding: 30px 0;
  background: #f9f9f9;
}

.detail-title {
  font-size: 32px;
  color: #2c3e50;
  text-align: center;
}

.detail-info {
  padding: 40px 0;
  border-bottom: 1px solid #e0e0e0;
}

.info-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px 30px;
  font-size: 15px;
}

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

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

.detail-module {
  padding: 40px 0;
  border-bottom: 1px solid #e0e0e0;
}

.module-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #2c3e50;
}

.module-content {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

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

.tag-item {
  padding: 8px 16px;
  background: #ecf0f1;
  color: #2c3e50;
  border-radius: 20px;
  font-size: 14px;
}

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

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

.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 30px 0;
  text-align: center;
}

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

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

.back-to-top:hover {
  background: #2980b9;
  transform: translateY(-3px);
}

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

.ui-style-7 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ui-style-7 .site-header {
  background: linear-gradient(to right, #1e3c72, #2a5298);
}

.ui-style-7 .logo {
  color: #fff;
}

.ui-style-7 .main-nav li a {
  color: rgba(255,255,255,0.9);
}

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

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

.ui-style-7 .video-card:hover {
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.ui-style-7 .back-to-top {
  background: #667eea;
}

.ui-style-7 .back-to-top:hover {
  background: #5568d3;
}

.ui-style-7 .player-play-btn {
  background: rgba(102, 126, 234, 0.9);
}

.ui-style-7 .player-play-btn:hover {
  background: rgba(102, 126, 234, 1);
}

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

  .main-nav ul {
    gap: 5px;
    font-size: 12px;
    justify-content: center;
  }

  .main-nav li a {
    padding: 6px 10px;
    font-size: 13px;
  }

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

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

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

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

  .video-title {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

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

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

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

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

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

  .top-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
  }

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

  .layout__side--filters {
    position: static;
  }

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 10px 15px;
    font-size: 14px;
  }

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

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

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .group__grid {
    grid-template-columns: 1fr;
  }
}
