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

.ui-style-9 {
  background: #0a0a0a;
  color: #f5f5f5;
}

.ui-style-9 a {
  color: #f5f5f5;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ui-style-9 a:hover {
  opacity: 0.7;
}

.site-nav {
  background: #000;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
}

.nav-links a {
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.home-main {
  min-height: calc(100vh - 200px);
}

.home-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid #222;
}

.home-hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.home-intro {
  background: #0f0f0f;
  padding: 2rem 0;
  border-bottom: 1px solid #222;
}

.home-intro p {
  color: #999;
  line-height: 1.8;
  font-size: 1rem;
}

.home-section {
  padding: 3rem 0;
  border-bottom: 1px solid #1a1a1a;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.video-card {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.video-card__link {
  display: block;
}

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

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line,
.video-meta {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.home-top {
  background: #0a0a0a;
}

.top-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #111;
  padding: 1rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.top-item:hover {
  background: #1a1a1a;
}

.top-rank {
  font-size: 2rem;
  font-weight: 700;
  color: #666;
  min-width: 50px;
  text-align: center;
}

.top-item:nth-child(1) .top-rank { color: #ffd700; }
.top-item:nth-child(2) .top-rank { color: #c0c0c0; }
.top-item:nth-child(3) .top-rank { color: #cd7f32; }

.top-cover {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

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

.top-info p {
  font-size: 0.9rem;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page--grid,
.page--with-sidebar,
.page--top,
.page--grouped {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #222;
}

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

.page-desc {
  color: #888;
  line-height: 1.6;
}

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

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

.layout__side--filters h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.layout__side--filters p {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.6;
}

.top-list__items {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.top-list__item {
  display: grid;
  grid-template-columns: 60px 160px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: #111;
  padding: 1.5rem;
  border-radius: 8px;
}

.top-badge {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  background: #1a1a1a;
  border-radius: 8px;
  color: #666;
}

.top-list__item:nth-child(1) .top-badge { background: #ffd700; color: #000; }
.top-list__item:nth-child(2) .top-badge { background: #c0c0c0; color: #000; }
.top-list__item:nth-child(3) .top-badge { background: #cd7f32; color: #000; }

.top-cover-wrap {
  width: 160px;
  height: 90px;
  overflow: hidden;
  border-radius: 4px;
}

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

.top-content {
  flex: 1;
}

.top-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

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

.top-desc {
  color: #aaa;
  line-height: 1.6;
}

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

.group__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #222;
}

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

.detail-main {
  min-height: calc(100vh - 200px);
}

.video-player-section {
  background: #000;
  padding: 2rem 0;
}

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

.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: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-title {
  padding: 2rem 0 1rem;
}

.detail-title h1 {
  font-size: 2.2rem;
  line-height: 1.3;
}

.detail-info {
  background: #111;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.detail-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
}

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

.info-grid dt {
  color: #888;
  font-weight: 600;
}

.info-grid dd {
  color: #f5f5f5;
}

.detail-module {
  margin-bottom: 2rem;
  padding: 2rem;
  background: #0f0f0f;
  border-radius: 8px;
  border-left: 3px solid #333;
}

.detail-module h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.detail-module p {
  color: #ccc;
  line-height: 1.8;
  font-size: 1rem;
}

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

.tag {
  display: inline-block;
  background: #1a1a1a;
  color: #aaa;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #333;
}

.detail-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #222;
}

.detail-related h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

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

.video-card--related {
  background: #0f0f0f;
}

.site-footer {
  background: #000;
  border-top: 1px solid #222;
  padding: 2rem;
  text-align: center;
  color: #666;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-links {
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .container {
    padding: 1rem;
  }

  .home-hero {
    padding: 2rem 1rem;
  }

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

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

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

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

  .section-title {
    font-size: 1.4rem;
  }

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

  .layout__side--filters {
    position: static;
  }

  .top-list__item {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .top-cover-wrap {
    display: none;
  }

  .top-badge {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .top-item {
    gap: 1rem;
    padding: 0.8rem;
  }

  .top-cover {
    width: 80px;
    height: 45px;
  }

  .detail-title h1 {
    font-size: 1.6rem;
  }

  .info-grid {
    grid-template-columns: 80px 1fr;
    gap: 0.5rem 1rem;
  }

  .detail-module {
    padding: 1.5rem;
  }

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

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

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