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

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

.ui-style-7 {
  --primary-color: #00C75A;
  --bg-color: #fff;
  --text-color: #333;
  --border-color: #e0e0e0;
}

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

.site-header {
  background: var(--primary-color, #00C75A);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.main-nav a:hover {
  opacity: 0.8;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color, #00C75A) 0%, #00a047 100%);
  color: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.site-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.95;
}

.video-section {
  margin: 3rem 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-color, #333);
}

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

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

.video-card {
  background: white;
  border-radius: 12px;
  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-cover--small {
  padding-top: 40%;
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
}

.video-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.video-one-line {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.detail-page {
  padding: 2rem 0;
}

.video-player-section {
  margin-bottom: 2rem;
}

.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;
  background: var(--primary-color, #00C75A);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  font-size: 2rem;
  color: white;
  margin-left: 5px;
}

.detail-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color, #333);
}

.detail-info, .detail-module {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-module h2, .detail-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color, #333);
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.8rem;
}

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

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

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-color, #00C75A);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
}

.list-page {
  padding: 2rem 0;
}

.page-header {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.layout__side--filters {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.top-list__items {
  list-style: none;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.top-list__item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s;
}

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

.top-list__item:last-child {
  border-bottom: none;
}

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color, #00C75A);
  min-width: 50px;
  text-align: center;
}

.top-item__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 1rem;
  flex: 1;
}

.group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color, #333);
}

.site-footer {
  background: #333;
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color, #00C75A);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 99;
}

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

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

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }

  .main-nav {
    display: flex;
    gap: 0.8rem;
    font-size: 0.9rem;
    overflow-x: auto;
    width: 100%;
    justify-content: center;
  }

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

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

  .page-title {
    font-size: 1.5rem;
  }

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

  .detail-header h1 {
    font-size: 1.8rem;
  }
}