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

:root {
  --color-bg: #0e1726;
  --color-bg-light: #1a2332;
  --color-text: #ffffff;
  --color-text-secondary: #a0aec0;
  --color-primary: #0099ff;
  --color-accent: #ff6700;
  --color-hover: #1a3a52;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.3);
}

body.ui-style-6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  background-color: var(--color-bg-light);
  padding: var(--spacing-md) var(--spacing-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

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

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.main-nav a {
  font-size: 15px;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.layout-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  gap: var(--spacing-xl);
}

.layout__main {
  flex: 1;
  min-width: 0;
}

.layout__sidebar {
  width: 300px;
  flex-shrink: 0;
}

.section {
  margin-bottom: var(--spacing-2xl);
}

.section-header {
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: 14px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.video-card {
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.video-card__link {
  display: block;
}

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 140%;
  background-color: var(--color-hover);
  overflow: hidden;
}

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

.video-info {
  padding: var(--spacing-md);
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 13px;
  color: var(--color-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: var(--spacing-xs);
}

.sidebar-module {
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.sidebar-module h3 {
  font-size: 18px;
  margin-bottom: var(--spacing-md);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-hover);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  font-size: 14px;
  transition: color 0.2s;
}

.sidebar-list a:hover {
  color: var(--color-primary);
}

.page-header {
  margin-bottom: var(--spacing-xl);
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.page-description {
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 800px;
}

.filter-bar {
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.layout__side--filters {
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-group {
  margin-bottom: var(--spacing-lg);
}

.filter-group h4 {
  font-size: 14px;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.filter-tag {
  padding: 6px 12px;
  background-color: var(--color-hover);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter-tag:hover {
  background-color: var(--color-primary);
}

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

.top-item {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  transition: background-color 0.2s;
}

.top-item:hover {
  background-color: var(--color-hover);
}

.top-rank {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  width: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-rank--gold {
  color: #ffd700;
}

.top-rank--silver {
  color: #c0c0c0;
}

.top-rank--bronze {
  color: #cd7f32;
}

.top-cover {
  width: 100px;
  height: 140px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.top-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.top-meta {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.group {
  margin-bottom: var(--spacing-2xl);
}

.group__header {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-primary);
}

.group__title {
  font-size: 24px;
  font-weight: 700;
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--spacing-lg);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.pagination a,
.pagination span {
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--color-bg-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.pagination a:hover {
  background-color: var(--color-primary);
}

.pagination .current {
  background-color: var(--color-primary);
}

.video-player-section {
  margin-bottom: var(--spacing-xl);
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-light) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

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

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

.detail-header {
  margin-bottom: var(--spacing-xl);
}

.detail-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

.detail-info-card {
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.detail-info-card h2 {
  font-size: 20px;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.info-item {
  display: flex;
  gap: var(--spacing-sm);
}

.info-label {
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

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

.content-module {
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.module-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  color: var(--color-primary);
}

.module-content {
  line-height: 1.8;
  color: var(--color-text);
}

.module-content p {
  margin-bottom: var(--spacing-md);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tag-item {
  padding: 8px 16px;
  background-color: var(--color-hover);
  border-radius: var(--radius-lg);
  font-size: 14px;
}

.video-card--related {
  background-color: var(--color-hover);
}

.site-footer {
  background-color: var(--color-bg-light);
  padding: var(--spacing-xl) var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background-color: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  z-index: 99;
}

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

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

.back-to-top::before {
  content: "↑";
  font-size: 24px;
  color: white;
}

@media (max-width: 1024px) {
  .layout-wrapper {
    flex-direction: column;
  }

  .layout__sidebar {
    width: 100%;
  }

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

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .main-nav ul {
    gap: var(--spacing-sm);
    font-size: 13px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .video-grid,
  .group__grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--spacing-md);
  }

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

  .page-title {
    font-size: 28px;
  }

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

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

  .top-cover {
    width: 80px;
    height: 112px;
  }
}

@media (max-width: 480px) {
  .layout-wrapper {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .video-grid,
  .group__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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