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

.ui-style-9 {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #e5e5e5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  padding-bottom: 15px;
}

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

.site-nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.site-nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
}

.site-main {
  min-height: 60vh;
  padding: 40px 0;
}

.hero-section {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  margin-bottom: 40px;
  border-radius: 12px;
}

.hero-section h1 {
  font-size: 28px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.hero-subtitle {
  font-size: 16px;
  color: #aaa;
}

.intro-section {
  margin-bottom: 40px;
}

.intro-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.intro-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #ccc;
}

.content-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

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

.video-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

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

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

.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: 15px;
}

.video-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.video-one-line {
  font-size: 14px;
  color: #aaa;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 0;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 16px;
  color: #999;
}

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

.top-item {
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}

.top-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.top-item__link {
  display: flex;
  align-items: center;
  padding: 15px;
  text-decoration: none;
  color: inherit;
  gap: 20px;
}

.top-rank {
  font-size: 28px;
  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-item .video-cover {
  width: 120px;
  flex-shrink: 0;
  padding-top: 67.5px;
}

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

.page--grouped .group {
  margin-bottom: 50px;
}

.group-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #333;
}

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

.page--with-sidebar .layout-with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin-top: 30px;
}

.layout__side--filters {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: fit-content;
}

.layout__side--filters h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.layout__side--filters p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
}

.detail-page {
  padding-top: 0;
}

.video-player-section {
  background: #000;
  padding: 40px 0;
  margin-bottom: 40px;
}

.video-player {
  max-width: 1000px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.8);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

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

.player-play-icon {
  font-size: 40px;
  color: #fff;
}

.video-header {
  margin-bottom: 30px;
}

.video-header h1 {
  font-size: 32px;
  line-height: 1.3;
}

.video-basic-info {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.module-title {
  font-size: 22px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-size: 15px;
}

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

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

.detail-module {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.module-content {
  font-size: 15px;
  line-height: 1.8;
  color: #ccc;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 14px;
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.related-section {
  margin-top: 40px;
}

.video-grid--related {
  margin-top: 20px;
}

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

.site-footer {
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid #333;
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
}

.site-footer p {
  color: #888;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .site-nav {
    gap: 15px;
    font-size: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .hero-section h1 {
    font-size: 22px;
  }

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

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

  .video-info {
    padding: 10px;
  }

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

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

  .top-item__link {
    flex-wrap: wrap;
  }

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

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}
