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

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

body.ui-style-9 {
  background: #0a0a0a;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 300;
}

.site-header {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo a {
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.main-nav {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  overflow: visible;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 300;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

.layout-s2 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

.layout__side {
  position: sticky;
  top: 88px;
  height: fit-content;
}

.side-intro,
.side-tags {
  background: rgba(25, 25, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.side-intro h2,
.side-tags h3 {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}

.side-intro p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
}

.tag-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.layout__main {
  min-width: 0;
}

.home-section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.site-intro {
  background: rgba(25, 25, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 28px;
  border-radius: 8px;
  margin-bottom: 32px;
}

.site-intro p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.9;
}

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

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

.video-card {
  background: rgba(25, 25, 25, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

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

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

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

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.video-one-line {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

.page--l1,
.page--l3,
.page--l4 {
  max-width: 1400px;
}

.page--l2 {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}

.page-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.layout__side--filters {
  position: sticky;
  top: 88px;
  height: fit-content;
  background: rgba(25, 25, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 8px;
}

.layout__side--filters h2 {
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h3 {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

.top-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(25, 25, 25, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.top-item:hover {
  background: rgba(35, 35, 35, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

.top-rank {
  font-size: 28px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.15);
  min-width: 48px;
  text-align: center;
}

.top-item:nth-child(1) .top-rank,
.top-item:nth-child(2) .top-rank,
.top-item:nth-child(3) .top-rank {
  color: rgba(255, 215, 0, 0.7);
}

.top-cover {
  width: 160px;
  flex-shrink: 0;
}

.top-cover img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
}

.top-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.top-title a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.top-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}

.top-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.group {
  margin-bottom: 48px;
}

.group__title {
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.video-player-section {
  margin: 40px 0 48px;
}

.video-player {
  max-width: 100%;
  margin: 0 auto;
}

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

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

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

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

.detail-header {
  margin-bottom: 32px;
}

.detail-title {
  font-size: 36px;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}

.detail-info,
.detail-module {
  background: rgba(25, 25, 25, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
}

.detail-info h2,
.detail-module h2 {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
}

.info-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px 24px;
}

.info-list dt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.info-list dd {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.detail-module p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
}

.detail-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 8px 4px 0;
}

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

.site-footer {
  background: rgba(15, 15, 15, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .layout-s2 {
    grid-template-columns: 1fr;
  }

  .layout__side {
    position: static;
  }

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

  .layout__side--filters {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 12px;
  }

  .main-nav {
    gap: 16px;
    font-size: 14px;
    width: 100%;
    justify-content: space-around;
  }

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

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

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

  .video-info {
    padding: 12px;
  }

  .video-title {
    font-size: 14px;
  }

  .video-one-line {
    font-size: 12px;
  }

  .top-item {
    flex-direction: column;
    gap: 12px;
  }

  .top-cover {
    width: 100%;
    max-width: 200px;
  }

  .detail-title {
    font-size: 26px;
  }

  .detail-info,
  .detail-module {
    padding: 20px;
  }

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

  .player-play-icon {
    font-size: 24px;
  }
}
