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

:root {
  --primary-green: #00C75A;
  --primary-green-dark: #00A048;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-gray: #666666;
  --border-color: #E0E0E0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 199, 90, 0.2);
  --spacing: 8px;
  --radius: 12px;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing) * 2);
}

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

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--spacing) * 2);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-green);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: calc(var(--spacing) * 2);
  flex-wrap: nowrap;
  overflow-x: visible;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: calc(var(--spacing) * 1) calc(var(--spacing) * 2);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.main-content {
  min-height: calc(100vh - 200px);
  padding: calc(var(--spacing) * 4) 0;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: white;
  padding: calc(var(--spacing) * 8) calc(var(--spacing) * 2);
  text-align: center;
  border-radius: var(--radius);
  margin: 0 calc(var(--spacing) * 2) calc(var(--spacing) * 4);
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: calc(var(--spacing) * 2);
}

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

.site-intro {
  margin: calc(var(--spacing) * 4) 0;
  padding: calc(var(--spacing) * 4) calc(var(--spacing) * 2);
  background: #F8FFF9;
  border-radius: var(--radius);
}

.site-intro h2 {
  color: var(--primary-green);
  margin-bottom: calc(var(--spacing) * 2);
}

.video-section {
  margin: calc(var(--spacing) * 6) 0;
}

.section-title {
  font-size: 28px;
  color: var(--primary-green);
  margin-bottom: calc(var(--spacing) * 3);
  font-weight: 700;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing) * 3);
}

.video-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

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

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

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

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: calc(var(--spacing) * 2);
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-one-line {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: var(--spacing);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  gap: var(--spacing);
  font-size: 12px;
  color: var(--text-gray);
}

.video-meta span {
  padding: 4px 8px;
  background: #F0F0F0;
  border-radius: 4px;
}

.page-header {
  margin-bottom: calc(var(--spacing) * 4);
  text-align: center;
}

.page-header h1 {
  font-size: 36px;
  color: var(--primary-green);
  margin-bottom: calc(var(--spacing) * 2);
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 3);
}

.top-item {
  display: flex;
  gap: calc(var(--spacing) * 2);
  background: white;
  border-radius: var(--radius);
  padding: calc(var(--spacing) * 2);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  align-items: center;
}

.top-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-hover);
}

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

.top-cover {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

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

.top-info {
  flex: 1;
}

.top-info h3 {
  margin-bottom: var(--spacing);
}

.top-info a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.3s ease;
}

.top-info a:hover {
  color: var(--primary-green);
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: calc(var(--spacing) * 4);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing) * 2);
}

.layout__side--filters {
  background: white;
  padding: calc(var(--spacing) * 3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.filter-section h3 {
  color: var(--primary-green);
  margin-bottom: calc(var(--spacing) * 2);
}

.group {
  margin-bottom: calc(var(--spacing) * 6);
}

.group-title {
  font-size: 24px;
  color: var(--primary-green);
  margin-bottom: calc(var(--spacing) * 3);
  padding-bottom: calc(var(--spacing) * 2);
  border-bottom: 2px solid var(--primary-green);
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing) * 3);
}

.video-player-section {
  background: #000;
  margin-bottom: calc(var(--spacing) * 4);
}

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

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

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

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

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

.detail-page {
  padding-top: 0;
}

.detail-header {
  margin: calc(var(--spacing) * 4) 0;
  text-align: center;
}

.detail-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
}

.detail-module {
  margin: calc(var(--spacing) * 4) 0;
  background: white;
  padding: calc(var(--spacing) * 4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-module h2 {
  font-size: 24px;
  color: var(--primary-green);
  margin-bottom: calc(var(--spacing) * 2);
  padding-bottom: calc(var(--spacing) * 1);
  border-bottom: 2px solid var(--primary-green);
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: calc(var(--spacing) * 2);
  line-height: 2;
}

.info-list dt {
  font-weight: 600;
  color: var(--text-gray);
}

.info-list dd {
  color: var(--text-dark);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing);
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary-green);
  color: white;
  border-radius: 20px;
  font-size: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: calc(var(--spacing) * 3);
}

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

.site-footer {
  background: #F8FFF9;
  padding: calc(var(--spacing) * 4) 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: calc(var(--spacing) * 8);
}

.back-to-top {
  position: fixed;
  bottom: calc(var(--spacing) * 4);
  right: calc(var(--spacing) * 4);
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

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

.back-to-top:hover {
  background: var(--primary-green-dark);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .nav-links {
    gap: var(--spacing);
    font-size: 14px;
  }

  .nav-links a {
    padding: var(--spacing) calc(var(--spacing) * 1.5);
  }

  .nav-logo {
    font-size: 20px;
  }

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

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

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: calc(var(--spacing) * 2);
  }

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

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

  .layout__side--filters {
    position: static;
  }

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

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .top-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

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

  .detail-module {
    padding: calc(var(--spacing) * 2);
  }
}

.ui-style-10 {
  --primary-color: var(--primary-green);
}
