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

.ui-style-8 {
  --primary-color: #1db954;
  --accent-color: #1ed760;
  --bg-color: #0f171e;
  --text-color: #fff;
}

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

.main-nav {
  background: var(--bg-color);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand {
  font-weight: bold;
  font-size: 1.2em;
  color: var(--primary-color) !important;
}

.main-nav a:hover {
  background: var(--primary-color);
  color: #fff !important;
}

.hero-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.hero-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.1em;
  color: rgba(255,255,255,0.9);
}

.site-intro {
  padding: 40px 20px;
  background: rgba(255,255,255,0.05);
}

.site-intro h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.video-section {
  padding: 40px 20px;
}

.video-section h2 {
  margin-bottom: 25px;
  color: var(--primary-color);
  font-size: 1.8em;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

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

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 1.1em;
  margin-bottom: 8px;
  color: var(--text-color);
}

.video-one-line {
  font-size: 0.9em;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.video-player-section {
  background: #000;
  padding: 20px;
}

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 2em;
  color: #fff;
}

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

.detail-main {
  min-height: 100vh;
}

.detail-title {
  font-size: 2.5em;
  margin: 30px 0;
  color: var(--primary-color);
}

.basic-info {
  margin: 30px 0;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.basic-info h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
}

.info-list dt {
  font-weight: bold;
  color: var(--accent-color);
}

.info-list dd {
  color: var(--text-color);
}

.detail-module {
  margin: 30px 0;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.detail-module h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

.tag {
  padding: 5px 12px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 20px;
  font-size: 0.9em;
}

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

.related-section h2 {
  margin-bottom: 25px;
  color: var(--primary-color);
  font-size: 1.8em;
}

.page-header {
  padding: 30px 0;
}

.page-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.filter-bar {
  margin: 20px 0;
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

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

.top-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-bottom: 15px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  align-items: center;
}

.top-rank {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 50px;
  text-align: center;
}

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

.top-cover img {
  width: 100%;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

.top-info h3 {
  margin-bottom: 10px;
}

.top-info h3 a {
  color: var(--text-color);
  text-decoration: none;
}

.top-info h3 a:hover {
  color: var(--primary-color);
}

.meta {
  color: rgba(255,255,255,0.6);
  font-size: 0.9em;
}

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

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

.grouped-list {
  margin: 20px 0;
}

.group {
  margin-bottom: 40px;
}

.group__title {
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.site-footer {
  text-align: center;
  padding: 30px;
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5em;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.back-to-top:hover {
  background: var(--accent-color);
  transform: translateY(-5px);
}

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

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

  .detail-title {
    font-size: 1.8em;
  }

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

  .main-nav {
    gap: 10px;
    padding: 10px;
  }

  .main-nav a {
    padding: 6px 10px;
    font-size: 0.9em;
  }

  .top-item {
    flex-direction: column;
    text-align: center;
  }

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