* {
  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: #333;
  background: #f5f5f5;
}

.ui-style-0 body, .ui-style-1 body { background: #1a1a1a; color: #fff; }
.ui-style-2 body, .ui-style-3 body, .ui-style-4 body { background: #fff; color: #333; }
.ui-style-5 body, .ui-style-6 body, .ui-style-7 body, .ui-style-8 body, .ui-style-9 body { background: #0f0f0f; color: #e5e5e5; }
.ui-style-10 body { background: #f0f9f4; color: #1a1a1a; }
.ui-style-11 body { background: #fafafa; color: #222; }
.ui-style-12 body { background: #fff5f0; color: #2a2a2a; }
.ui-style-13 body { background: #f8f9fa; color: #222; }
.ui-style-14 body { background: #fff; color: #1a1a1a; }

.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,
.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: #1f1f1f;
  border-bottom: 1px solid #333;
}

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

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

.ui-style-3 .site-logo a, .ui-style-12 .site-logo a { color: #e60012; }
.ui-style-10 .site-logo a { color: #00C75A; }
.ui-style-11 .site-logo a { color: #0099FF; }
.ui-style-13 .site-logo a { color: #00A1D6; }

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: visible;
}

.site-nav a {
  padding: 8px 16px;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
  white-space: nowrap;
  font-size: 15px;
}

.site-nav a:hover, .site-nav a.active {
  background: rgba(0,0,0,0.05);
}

.ui-style-0 .site-nav a:hover, .ui-style-1 .site-nav a:hover,
.ui-style-5 .site-nav a:hover, .ui-style-6 .site-nav a:hover,
.ui-style-7 .site-nav a:hover, .ui-style-8 .site-nav a:hover,
.ui-style-9 .site-nav a:hover {
  background: rgba(255,255,255,0.1);
}

.home-main, .list-main, .detail-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.site-intro {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ui-style-0 .site-intro, .ui-style-1 .site-intro,
.ui-style-5 .site-intro, .ui-style-6 .site-intro,
.ui-style-7 .site-intro, .ui-style-8 .site-intro,
.ui-style-9 .site-intro {
  background: #1f1f1f;
}

.site-intro h1 {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.site-intro p {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
}

.home-module {
  margin-bottom: 48px;
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.module-header h2 {
  font-size: 24px;
}

.module-more {
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.module-more:hover {
  opacity: 1;
}

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

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

.ui-style-0 .video-card, .ui-style-1 .video-card,
.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: #1f1f1f;
}

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

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

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

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

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

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

.play-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
}

.video-info {
  padding: 16px;
}

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

.video-meta {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 8px;
}

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

.page-header {
  margin-bottom: 32px;
}

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

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.layout__side {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 88px;
}

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

.layout__side h3 {
  margin-bottom: 16px;
}

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

.top-item {
  display: grid;
  grid-template-columns: 48px 160px 1fr;
  gap: 20px;
  padding: 20px;
  background: #fff;
  margin-bottom: 16px;
  border-radius: 8px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.top-rank {
  font-size: 32px;
  font-weight: bold;
  opacity: 0.3;
}

.top-cover {
  width: 160px;
  height: 90px;
  overflow: hidden;
  border-radius: 4px;
}

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

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

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

.top-info h3 a:hover {
  text-decoration: underline;
}

.group {
  margin-bottom: 48px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

.video-player-section {
  margin-bottom: 32px;
}

.video-player {
  max-width: 1000px;
  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;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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-content {
  max-width: 900px;
  margin: 0 auto;
}

.detail-header h1 {
  font-size: 36px;
  margin-bottom: 24px;
}

.detail-module {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ui-style-0 .detail-module, .ui-style-1 .detail-module,
.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: 16px;
}

.detail-module p {
  line-height: 1.8;
  margin-bottom: 12px;
}

.info-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px 24px;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  padding: 6px 16px;
  background: rgba(0,0,0,0.05);
  border-radius: 20px;
  font-size: 14px;
}

.ui-style-0 .tag, .ui-style-1 .tag,
.ui-style-5 .tag, .ui-style-6 .tag,
.ui-style-7 .tag, .ui-style-8 .tag,
.ui-style-9 .tag {
  background: rgba(255,255,255,0.1);
}

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

.site-footer {
  background: #fff;
  padding: 32px 20px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 48px;
}

.ui-style-0 .site-footer, .ui-style-1 .site-footer,
.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: #1f1f1f;
  border-top-color: #333;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    padding: 8px 12px;
    font-size: 14px;
  }

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

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

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

  .top-item {
    grid-template-columns: 40px 120px 1fr;
    gap: 12px;
  }

  .top-cover {
    width: 120px;
    height: 68px;
  }

  .detail-module {
    padding: 20px;
  }
}