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

:root {
  --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;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.ui-style-0 body, .ui-style-1 body {
  background: #1a1a1a;
  color: #fff;
}

.ui-style-5 body, .ui-style-6 body, .ui-style-7 body, .ui-style-8 body, .ui-style-9 body {
  background: #141414;
  color: #fff;
}

.ui-style-2 body, .ui-style-3 body, .ui-style-4 body {
  background: #fff;
  color: #333;
}

.ui-style-10 body {
  background: #f0f9f0;
  color: #222;
}

.ui-style-11 body {
  background: #fafafa;
  color: #333;
}

.ui-style-12 body {
  background: #fff;
  color: #333;
}

.ui-style-13 body {
  background: #f9f9f9;
  color: #333;
}

.ui-style-14 body {
  background: #fff;
  color: #333;
}

.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ui-style-0 .site-header, .ui-style-1 .site-header {
  background: #000;
  border-bottom: 1px solid #333;
}

.ui-style-5 .site-header, .ui-style-6 .site-header, .ui-style-7 .site-header, .ui-style-8 .site-header, .ui-style-9 .site-header {
  background: #181818;
  border-bottom: 1px solid #333;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: inherit;
}

.ui-style-0 .site-logo a, .ui-style-1 .site-logo a {
  color: #ff6b6b;
}

.ui-style-2 .site-logo a, .ui-style-3 .site-logo a, .ui-style-4 .site-logo a {
  color: #e50914;
}

.ui-style-10 .site-logo a {
  color: #00C75A;
}

.ui-style-11 .site-logo a {
  color: #0099FF;
}

.ui-style-12 .site-logo a {
  color: #FF6700;
}

.ui-style-13 .site-logo a {
  color: #00A1D6;
}

.site-nav {
  display: flex;
  gap: var(--spacing-lg);
  white-space: nowrap;
  overflow: visible;
}

.site-nav a {
  text-decoration: none;
  color: inherit;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.site-nav a:hover {
  background: rgba(255,107,107,0.1);
}

.ui-style-0 .site-nav a:hover, .ui-style-1 .site-nav a:hover {
  background: rgba(255,107,107,0.2);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.home-hero {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.hero-title {
  font-size: 32px;
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.hero-desc {
  font-size: 18px;
  opacity: 0.8;
}

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

.section-container {
  background: #fff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ui-style-0 .section-container, .ui-style-1 .section-container {
  background: #222;
}

.ui-style-5 .section-container, .ui-style-6 .section-container, .ui-style-7 .section-container, .ui-style-8 .section-container, .ui-style-9 .section-container {
  background: #1f1f1f;
}

.section-title {
  font-size: 24px;
  margin-bottom: var(--spacing-lg);
}

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

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

.video-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.ui-style-0 .video-card, .ui-style-1 .video-card {
  background: #2a2a2a;
}

.ui-style-5 .video-card, .ui-style-6 .video-card, .ui-style-7 .video-card, .ui-style-8 .video-card, .ui-style-9 .video-card {
  background: #242424;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

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

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

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

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .video-play-icon {
  opacity: 1;
}

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

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

.video-meta {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: var(--spacing-xs);
}

.video-one-line {
  font-size: 14px;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-header h1 {
  font-size: 32px;
  margin-bottom: var(--spacing-md);
}

.page-desc {
  font-size: 16px;
  opacity: 0.8;
}

.page--with-sidebar {
  display: flex;
  gap: var(--spacing-xl);
}

.layout__side--filters {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  height: fit-content;
}

.ui-style-0 .layout__side--filters, .ui-style-1 .layout__side--filters {
  background: #222;
}

.layout__main {
  flex: 1;
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.top-list__item {
  display: flex;
  gap: var(--spacing-md);
  background: #fff;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ui-style-0 .top-list__item, .ui-style-1 .top-list__item {
  background: #222;
}

.ui-style-5 .top-list__item, .ui-style-6 .top-list__item, .ui-style-7 .top-list__item, .ui-style-8 .top-list__item, .ui-style-9 .top-list__item {
  background: #1f1f1f;
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b6b;
}

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  margin-bottom: var(--spacing-sm);
}

.top-title a {
  text-decoration: none;
  color: inherit;
}

.top-title a:hover {
  color: #ff6b6b;
}

.top-meta {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: var(--spacing-sm);
}

.top-desc {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.5;
}

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

.group__title {
  font-size: 24px;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid #e0e0e0;
}

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

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

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

.video-player {
  width: 100%;
}

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

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

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

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

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

.detail-title {
  font-size: 36px;
  line-height: 1.3;
}

.detail-module {
  background: #fff;
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ui-style-0 .detail-module, .ui-style-1 .detail-module {
  background: #222;
}

.ui-style-5 .detail-module, .ui-style-6 .detail-module, .ui-style-7 .detail-module, .ui-style-8 .detail-module, .ui-style-9 .detail-module {
  background: #1f1f1f;
}

.detail-module h2 {
  font-size: 22px;
  margin-bottom: var(--spacing-md);
}

.detail-module p {
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.detail-module p:last-child {
  margin-bottom: 0;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--spacing-sm) var(--spacing-lg);
}

.info-list dt {
  font-weight: bold;
  opacity: 0.7;
}

.info-list dd {
  margin: 0;
}

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

.tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: #f0f0f0;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.ui-style-0 .tag, .ui-style-1 .tag {
  background: #333;
}

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

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

.site-footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
  margin-top: var(--spacing-2xl);
}

.ui-style-0 .site-footer, .ui-style-1 .site-footer {
  background: #000;
  border-top-color: #333;
}

.ui-style-5 .site-footer, .ui-style-6 .site-footer, .ui-style-7 .site-footer, .ui-style-8 .site-footer, .ui-style-9 .site-footer {
  background: #181818;
  border-top-color: #333;
}

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

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
  transition: all 0.3s;
}

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

.back-to-top:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-4px);
}

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

  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
  }

  .site-nav a {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 14px;
    flex-shrink: 0;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

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

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

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

  .page--with-sidebar {
    flex-direction: column;
  }

  .layout__side--filters {
    width: 100%;
  }

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

  .top-rank {
    width: 40px;
    font-size: 24px;
  }

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

  .group__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

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

  .detail-module {
    padding: var(--spacing-lg);
  }

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: var(--spacing-xs) var(--spacing-md);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

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

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

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

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

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