* {
  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 {
  --primary-color: #ff6b6b;
  --bg-dark: #1a1a1a;
  --text-light: #fff;
}

.ui-style-1 {
  --primary-color: #ff4757;
  --bg-dark: #2f3542;
  --text-light: #f1f2f6;
}

.ui-style-2 {
  --primary-color: #ff6348;
  --bg-dark: #fff;
  --text-light: #2f3542;
}

.ui-style-3 {
  --primary-color: #ff3838;
  --bg-dark: #fff;
  --text-light: #2f3542;
}

.ui-style-4 {
  --primary-color: #e74c3c;
  --bg-dark: #fff;
  --text-light: #2c3e50;
}

.ui-style-5 {
  --primary-color: #e74c3c;
  --bg-dark: #141414;
  --text-light: #fff;
}

.ui-style-6 {
  --primary-color: #3498db;
  --bg-dark: #1e272e;
  --text-light: #f5f6fa;
}

.ui-style-7 {
  --primary-color: #2980b9;
  --bg-dark: #192a56;
  --text-light: #dfe6e9;
}

.ui-style-8 {
  --primary-color: #00b894;
  --bg-dark: #2d3436;
  --text-light: #dfe6e9;
}

.ui-style-9 {
  --primary-color: #fff;
  --bg-dark: #000;
  --text-light: #fff;
}

.ui-style-10 {
  --primary-color: #00C75A;
  --bg-dark: #fff;
  --text-light: #2d3436;
}

.ui-style-11 {
  --primary-color: #0099FF;
  --bg-dark: #fff;
  --text-light: #2c3e50;
}

.ui-style-12 {
  --primary-color: #FF6700;
  --bg-dark: #fff;
  --text-light: #333;
}

.ui-style-13 {
  --primary-color: #00A1D6;
  --bg-dark: #fff;
  --text-light: #333;
}

.ui-style-14 {
  --primary-color: #1e3a8a;
  --bg-dark: #fff;
  --text-light: #1e293b;
}

.main-nav {
  background: var(--bg-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
  margin-right: 2rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  align-items: center;
}

.nav-menu li {
  white-space: nowrap;
}

.nav-menu a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  display: block;
  font-size: 0.95rem;
}

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

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .site-logo {
    font-size: 1.2rem;
    margin-right: 1rem;
  }

  .nav-menu {
    gap: 0.3rem;
  }

  .nav-menu a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.5rem;
  }

  .site-logo {
    font-size: 1rem;
    margin-right: 0.5rem;
  }

  .nav-menu {
    gap: 0.2rem;
  }

  .nav-menu a {
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
  }
}

.home-main,
.list-main,
.detail-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 60vh;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.site-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.4;
}

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

.intro-content p {
  line-height: 1.8;
  color: #555;
}

.content-module {
  margin-bottom: 3rem;
}

.module-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

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

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

.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 16px rgba(0,0,0,0.15);
}

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

.video-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd;
  position: relative;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 0.9rem;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .home-main,
  .list-main,
  .detail-main {
    padding: 1rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .site-title {
    font-size: 1.5rem;
  }

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

  .video-cover {
    aspect-ratio: 16 / 10;
  }
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.page-desc {
  color: #666;
  font-size: 1rem;
}

.filter-bar {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

.layout__side--filters {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__side--filters h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.filter-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  color: #666;
}

@media (max-width: 968px) {
  .page--with-sidebar {
    grid-template-columns: 1fr;
  }

  .layout__side--filters {
    position: static;
  }
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.top-item {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
}

.top-item__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.top-item .video-cover {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
}

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

@media (max-width: 768px) {
  .top-item {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .top-item .video-cover {
    width: 80px;
  }
}

.page--grouped .group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

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

.video-player-section {
  margin-bottom: 2rem;
}

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

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

.player-play-icon {
  font-size: 2rem;
  color: #333;
}

.player-play-btn:hover .player-play-icon {
  color: #fff;
}

.detail-header {
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

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

.detail-module h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

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

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

.info-item {
  padding: 0.5rem 0;
}

.info-label {
  font-weight: 600;
  color: #333;
}

.tags-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: 20px;
  font-size: 0.9rem;
}

.related-module .video-grid {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .detail-header h1 {
    font-size: 1.8rem;
  }

  .detail-module {
    padding: 1.5rem;
  }

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

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 1000;
}

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

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