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

.ui-style-0 {
  background: #000;
  color: #fff;
}

.site-nav {
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #222;
}

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

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 0.95rem;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: #ff2d55;
  color: #fff;
}

.home-main,
.list-main,
.detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: 70vh;
}

.site-intro {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 3rem 2rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(255, 45, 85, 0.15);
}

.site-intro h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}

.site-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: #ccc;
  max-width: 800px;
  margin: 0 auto;
}

.video-module {
  margin-bottom: 3rem;
}

.module-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 600;
  padding-left: 1rem;
  border-left: 4px solid #ff2d55;
}

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

.video-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 45, 85, 0.3);
}

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

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

.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: 1rem;
}

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

.video-one-line {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.video-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #666;
}

.video-meta span {
  background: #2a2a2a;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 1rem;
}

.page-header h1 {
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.top-item:hover {
  background: #222;
  transform: translateX(8px);
}

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  color: #ff2d55;
  min-width: 60px;
  text-align: center;
}

.top-item .video-cover {
  width: 120px;
  min-width: 120px;
  padding-top: 0;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
}

.top-item .video-cover img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-item .video-info {
  flex: 1;
  padding: 0;
}

.top-item .video-title a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
}

.top-item .video-title a:hover {
  color: #ff2d55;
}

.group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid #ff2d55;
}

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

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

.layout__side--filters h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.layout__side--filters p {
  color: #999;
  line-height: 1.6;
}

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

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

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

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

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

.detail-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem 1rem;
}

.detail-header h1 {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

.detail-info,
.detail-module {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.detail-info h2,
.detail-module h2 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid #ff2d55;
  padding-bottom: 0.5rem;
}

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

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

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

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

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

.tag {
  background: #2a2a2a;
  color: #ff2d55;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #ff2d55;
  color: #fff;
}

.video-card--related {
  background: #222;
}

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

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
  }

  .nav-links li a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .site-intro h1 {
    font-size: 1.4rem;
  }

  .site-intro p {
    font-size: 0.95rem;
  }

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

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

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

  .layout__side--filters {
    position: static;
  }

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

  .top-rank {
    min-width: auto;
  }

  .top-item .video-cover {
    width: 100%;
    height: 240px;
  }

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

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

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #ff2d55;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 45, 85, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  background: #e02448;
  transform: translateY(-4px);
}

.back-to-top.show {
  display: flex;
}
