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

.ui-style-6 {
  --primary-color: #0099FF;
  --accent-color: #FF6B35;
  --bg-dark: #1a1a2e;
  --text-light: #fff;
}

.main-nav {
  background: var(--bg-dark, #1a1a2e);
  color: var(--text-light, #fff);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-light, #fff);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-light, #fff);
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary-color, #0099FF);
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hero-section {
  background: linear-gradient(135deg, var(--bg-dark, #1a1a2e) 0%, var(--primary-color, #0099FF) 100%);
  color: var(--text-light, #fff);
  padding: 4rem 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

.content-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--bg-dark, #1a1a2e);
  border-left: 4px solid var(--primary-color, #0099FF);
  padding-left: 1rem;
}

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

.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(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

.video-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e0e0e0;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--bg-dark, #1a1a2e);
  border-bottom: 3px solid var(--primary-color, #0099FF);
  padding-bottom: 1rem;
}

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

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

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

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

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

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

.top-info {
  flex: 1;
}

.top-info h3 {
  margin-bottom: 0.5rem;
}

.top-info h3 a {
  color: #1a1a2e;
  text-decoration: none;
}

.top-info h3 a:hover {
  color: var(--primary-color, #0099FF);
}

.top-info p {
  color: #666;
  margin-bottom: 0.5rem;
}

.top-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: #999;
}

.page--grouped .group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.5rem;
  color: var(--bg-dark, #1a1a2e);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent-color, #FF6B35);
}

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

.detail-main {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

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

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

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

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

.player-play-btn:hover {
  background: var(--primary-color, #0099FF);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  color: #fff;
  font-size: 2rem;
  margin-left: 4px;
}

.title-section {
  margin-bottom: 2rem;
}

.title-section h1 {
  font-size: 2.5rem;
  color: #1a1a2e;
}

.info-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.info-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--bg-dark, #1a1a2e);
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.5rem;
}

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

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

.content-module {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

.content-module:last-of-type {
  border-bottom: none;
}

.content-module h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--bg-dark, #1a1a2e);
}

.content-module p {
  line-height: 1.8;
  color: #444;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--primary-color, #0099FF);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.related-section {
  margin-top: 3rem;
}

.related-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--bg-dark, #1a1a2e);
}

footer {
  background: var(--bg-dark, #1a1a2e);
  color: var(--text-light, #fff);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 0.8rem;
    font-size: 0.9rem;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

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

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

  .top-rank {
    font-size: 1.5rem;
  }

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

  .detail-main {
    padding: 1rem;
  }

  .title-section h1 {
    font-size: 1.8rem;
  }

  .info-list {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .player-play-btn {
    width: 60px;
    height: 60px;
  }

  .player-play-icon {
    font-size: 1.5rem;
  }

  .video-cover {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1.2rem;
  }

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