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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

.layout-wrapper {
  display: flex;
  min-height: 100vh;
}

.layout__sidebar {
  width: 220px;
  background: #2d3748;
  color: #fff;
  padding: 30px 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-title {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.sidebar-desc {
  font-size: 14px;
  color: #cbd5e0;
  margin-bottom: 30px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav .nav-link {
  color: #e2e8f0;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.3s;
  display: block;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: #4a5568;
  color: #fff;
}

.layout__main {
  flex: 1;
  margin-left: 220px;
}

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

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

.logo {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
}

.main-nav {
  display: flex;
  gap: 5px;
  align-items: center;
}

.main-nav .nav-link {
  color: #4a5568;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  background: #edf2f7;
  color: #2d3748;
}

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

.hero-title {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.4;
}

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

.intro-section {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid #e2e8f0;
}

.intro-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #4a5568;
}

.video-module {
  padding: 50px 0;
}

.module-title {
  font-size: 24px;
  margin-bottom: 25px;
  color: #2d3748;
  font-weight: 600;
}

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

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

.video-grid.masonry .video-card {
  grid-row-end: span 35;
}

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

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

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

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

.video-one-line {
  font-size: 14px;
  color: #718096;
  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;
}

.meta-item {
  font-size: 12px;
  color: #a0aec0;
}

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

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

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

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

.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: #fff;
  margin-left: 5px;
}

.detail-header {
  background: #fff;
  padding: 30px 0;
  border-bottom: 1px solid #e2e8f0;
}

.detail-title {
  font-size: 32px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.3;
}

.detail-module {
  background: #fff;
  padding: 30px 0;
  border-bottom: 1px solid #e2e8f0;
}

.detail-module .module-title {
  font-size: 20px;
  margin-bottom: 20px;
  color: #2d3748;
  font-weight: 600;
}

.detail-module .module-content {
  font-size: 15px;
  line-height: 1.8;
  color: #4a5568;
}

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

.info-item {
  font-size: 15px;
  padding: 10px 0;
}

.info-label {
  font-weight: 600;
  color: #2d3748;
}

.info-value {
  color: #4a5568;
}

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

.tag {
  padding: 6px 14px;
  background: #edf2f7;
  border-radius: 20px;
  font-size: 13px;
  color: #4a5568;
}

.related-section {
  background: #f7fafc;
  padding: 50px 0;
}

.video-card--related {
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.page-header {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid #e2e8f0;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 10px;
}

.page-desc {
  font-size: 15px;
  color: #718096;
}

.page-layout {
  display: flex;
  gap: 30px;
}

.layout__side--filters {
  width: 220px;
  padding: 30px 0;
}

.filter-box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.filter-box h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #2d3748;
}

.page-content {
  flex: 1;
}

.video-section {
  padding: 30px 0;
}

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

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

.rank-badge {
  font-size: 24px;
  font-weight: 700;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.rank-1 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.rank-2 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
}

.rank-3 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: #fff;
}

.rank-other {
  background: #edf2f7;
  color: #4a5568;
}

.item-cover {
  width: 120px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #edf2f7;
}

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

.item-info {
  flex: 1;
}

.item-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.item-title a {
  color: #2d3748;
  text-decoration: none;
}

.item-title a:hover {
  color: #667eea;
}

.item-desc {
  font-size: 14px;
  color: #718096;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #a0aec0;
}

.groups-section {
  padding: 30px 0;
}

.group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 22px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

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

.site-footer {
  background: #2d3748;
  color: #cbd5e0;
  padding: 30px 0;
  text-align: center;
  margin-top: 50px;
}

.footer-text {
  font-size: 14px;
}

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

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

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

body.ui-style-10 {
  --primary-color: #00C75A;
  --primary-hover: #00a84d;
  --bg-color: #ffffff;
  --text-color: #333333;
}

body.ui-style-10 .hero-section {
  background: linear-gradient(135deg, #00C75A 0%, #00e06a 100%);
}

body.ui-style-10 .back-to-top {
  background: #00C75A;
}

body.ui-style-10 .back-to-top:hover {
  background: #00a84d;
}

body.ui-style-10 .sidebar-nav .nav-link.active {
  background: #00C75A;
}

@media (max-width: 1024px) {
  .layout__sidebar {
    display: none;
  }

  .layout__main {
    margin-left: 0;
  }

  .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

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

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

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

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

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

  .page-layout {
    flex-direction: column;
  }

  .layout__side--filters {
    width: 100%;
  }

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

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

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

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

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