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

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

.ui-style-0 {
  --primary-color: #ff6b6b;
  --secondary-color: #1a1a1a;
  --bg-color: #000;
  --text-color: #fff;
  --card-bg: #1a1a1a;
}

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

.site-header {
  background: var(--secondary-color, #1a1a1a);
  color: var(--text-color, #fff);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.site-logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color, #fff);
  text-decoration: none;
  transition: color 0.3s;
}

.site-logo a:hover {
  color: var(--primary-color, #ff6b6b);
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.site-nav a {
  color: var(--text-color, #fff);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 14px;
}

.site-nav a:hover {
  background: var(--primary-color, #ff6b6b);
  color: #fff;
}

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

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 5px;
  }

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

.main-content {
  min-height: calc(100vh - 200px);
}

.hero-section {
  background: linear-gradient(135deg, var(--secondary-color, #1a1a1a), var(--primary-color, #ff6b6b));
  color: var(--text-color, #fff);
  padding: 60px 20px;
  text-align: center;
}

.hero-title {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
}

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

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

.site-intro {
  background: #fff;
  padding: 40px 20px;
}

.site-intro p {
  line-height: 1.8;
  color: #666;
  font-size: 16px;
}

.video-module {
  padding: 40px 20px;
  background: #f9f9f9;
}

.video-module:nth-child(even) {
  background: #fff;
}

.module-title {
  font-size: 24px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-color, #ff6b6b);
  display: inline-block;
}

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

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

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

.video-card {
  background: #fff;
  border-radius: 12px;
  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 16px rgba(0,0,0,0.2);
}

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

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

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: bold;
  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;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  background: var(--secondary-color, #1a1a1a);
  color: var(--text-color, #fff);
  padding: 40px 20px;
  text-align: center;
}

.site-footer p {
  opacity: 0.8;
}

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

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

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.page-header {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

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

.page-description {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.page--grid .video-grid {
  padding: 40px 20px;
}

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

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

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

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

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

.player-play-icon {
  color: #fff;
  font-size: 32px;
}

.detail-content {
  background: #fff;
  padding: 40px 20px;
}

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

.detail-title {
  font-size: 32px;
  margin-bottom: 24px;
  color: #333;
}

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

.detail-section-title {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color, #ff6b6b);
  color: #333;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.info-item {
  display: flex;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
}

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

.info-value {
  color: #666;
}

.detail-text {
  line-height: 1.8;
  color: #666;
  font-size: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  padding: 6px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
}

.tag-item:hover {
  background: var(--primary-color, #ff6b6b);
  color: #fff;
}

.related-section {
  background: #f9f9f9;
  padding: 40px 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.video-card--related {
  background: #fff;
}

.page--top .top-list {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.top-list__items {
  list-style: none;
  counter-reset: item;
}

.top-item {
  background: #fff;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  transition: transform 0.3s;
}

.top-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.top-item__rank {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color, #ff6b6b);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.top-item__cover {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
}

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

.top-item__content {
  flex: 1;
  padding: 16px;
}

.top-item__title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.top-item__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.top-item__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  width: 100%;
}

@media (max-width: 768px) {
  .top-item__cover {
    width: 80px;
    height: 60px;
  }

  .top-item__rank {
    width: 40px;
    font-size: 18px;
  }
}
