* {
  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;
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

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

.site-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 8px 16px;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  flex-shrink: 0;
}

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

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

.hero-section {
  background: #fff;
  padding: 40px 0;
  margin-bottom: 30px;
}

.page-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.site-intro {
  color: #666;
  line-height: 1.8;
}

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

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

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

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

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

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

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

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #999;
}

.video-meta span {
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 3px;
}

.page-header {
  background: #fff;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-header h1 {
  font-size: 28px;
  color: #333;
}

.top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.top-list__item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s;
}

.top-list__item:hover {
  background: #f9f9f9;
}

.top-list__item:last-child {
  border-bottom: none;
}

.top-rank {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  min-width: 50px;
  text-align: center;
}

.top-item-cover {
  width: 120px;
  height: 68px;
  margin: 0 20px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

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

.top-item-info {
  flex: 1;
}

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

.top-item-info h3 a {
  color: #333;
  text-decoration: none;
}

.top-item-info h3 a:hover {
  color: #007bff;
}

.detail-page {
  background: #fff;
}

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

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  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.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-header {
  padding: 30px 0 20px;
}

.detail-header h1 {
  font-size: 32px;
  color: #333;
}

.detail-module {
  margin-bottom: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}

.detail-module h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.module-content {
  color: #666;
  line-height: 1.8;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
}

.info-label {
  font-weight: bold;
  color: #333;
  min-width: 80px;
}

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

.tag {
  display: inline-block;
  padding: 5px 15px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

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

.site-footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

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

.back-to-top:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

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

@media (max-width: 768px) {
  .page-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
  }

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

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

  .top-list__item {
    flex-wrap: wrap;
    padding: 15px;
  }

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

  .top-item-cover {
    width: 100px;
    height: 56px;
    margin: 0 10px;
  }

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

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

.ui-style-0 body { --primary: #ff0050; --text: #fff; background: #000; color: #fff; }
.ui-style-1 body { --primary: #ff6b6b; background: #1a1a1a; color: #f0f0f0; }
.ui-style-2 body { --primary: #4ecdc4; background: #fff; color: #333; }
.ui-style-3 body { --primary: #ff6b9d; background: #fafafa; color: #333; }
.ui-style-4 body { --primary: #ff0000; background: #fff; color: #333; }
.ui-style-5 body { --primary: #e50914; background: #141414; color: #fff; }
.ui-style-6 body { --primary: #0099ff; background: #1a2a3a; color: #f0f0f0; }
.ui-style-7 body { --primary: #ffd700; background: #003366; color: #fff; }
.ui-style-8 body { --primary: #00c853; background: #1e1e1e; color: #f5f5f5; }
.ui-style-9 body { --primary: #fff; background: #000; color: #fff; }
.ui-style-10 body { --primary: #00c75a; background: #f8f9fa; color: #333; }
.ui-style-11 body { --primary: #0099ff; background: #fff; color: #333; }
.ui-style-12 body { --primary: #ff6700; background: #fff; color: #333; }
.ui-style-13 body { --primary: #00a1d6; background: #fff; color: #333; }
.ui-style-14 body { --primary: #003d8f; background: #fff; color: #333; }

.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: rgba(0,0,0,0.95);
  color: #fff;
}

.ui-style-0 .site-logo a,
.ui-style-1 .site-logo a,
.ui-style-5 .site-logo a,
.ui-style-6 .site-logo a,
.ui-style-7 .site-logo a,
.ui-style-8 .site-logo a,
.ui-style-9 .site-logo a {
  color: #fff;
}

.ui-style-0 .site-nav a,
.ui-style-1 .site-nav a,
.ui-style-5 .site-nav a,
.ui-style-6 .site-nav a,
.ui-style-7 .site-nav a,
.ui-style-8 .site-nav a,
.ui-style-9 .site-nav a {
  color: #ccc;
}
