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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #000;
}

body.ui-style-0 {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
}

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

.main-nav {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  gap: 2rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.main-nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ff6b6b, #ff8e53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav a:not(.logo):hover {
  color: #ff6b6b;
  transform: translateY(-2px);
}

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

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

  .main-nav a:not(.logo) {
    font-size: 0.9rem;
  }
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 70vh;
}

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

.hero-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.site-intro {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-intro h2 {
  color: #ff6b6b;
  margin-bottom: 1rem;
}

.site-intro p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.section-top,
.section-latest {
  margin-bottom: 3rem;
}

.section-top h2,
.section-latest h2 {
  color: #ff6b6b;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.3);
  border-color: rgba(255, 107, 107, 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: #1a1a1a;
}

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

.video-info {
  padding: 1rem;
}

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

.video-one-line {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .video-grid,
  .hero-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

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

  .video-info {
    padding: 0.75rem;
  }

  .video-title {
    font-size: 0.9rem;
  }

  .video-one-line {
    font-size: 0.8rem;
  }
}

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

.page-header h1 {
  font-size: 2rem;
  color: #ff6b6b;
}

.filter-bar {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.filter-bar p {
  color: rgba(255, 255, 255, 0.7);
}

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

@media (max-width: 992px) {
  .page--with-sidebar {
    grid-template-columns: 1fr;
  }
}

.layout__side--filters {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__side--filters h3 {
  color: #ff6b6b;
  margin-bottom: 1rem;
}

.layout__side--filters p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.page--top {
  max-width: 1000px;
  margin: 0 auto;
}

.top-list__items {
  list-style: none;
  counter-reset: rank;
}

.top-item {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  counter-increment: rank;
}

.top-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.5);
}

.top-item-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}

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

.top-item .video-cover {
  width: 150px;
  padding-top: 0;
  height: 85px;
  flex-shrink: 0;
}

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

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

.video-meta {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .top-item-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .rank-badge {
    font-size: 1.5rem;
    min-width: auto;
  }

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

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

.group-title {
  color: #ff6b6b;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 107, 107, 0.3);
}

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

.detail-main {
  max-width: 1200px;
}

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

.video-player {
  max-width: 1000px;
  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 30px rgba(0, 0, 0, 0.5);
}

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

.player-play-btn:hover {
  background: #ff6b6b;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
}

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

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

.detail-header h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.detail-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-info h2 {
  color: #ff6b6b;
  margin-bottom: 1.5rem;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.info-list dt {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

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

.detail-module {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.detail-module p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

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

.tag {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

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

.video-card--related {
  background: rgba(255, 255, 255, 0.03);
}

.site-footer {
  background: rgba(0, 0, 0, 0.95);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  font-size: 0.875rem;
}

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

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

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

  .detail-info,
  .detail-module {
    padding: 1.5rem;
  }

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

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