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

:root {
  --primary-color: #FF6700;
  --secondary-color: #333;
  --text-color: #333;
  --bg-color: #fff;
  --border-color: #e0e0e0;
  --hover-color: #f5f5f5;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.nav-brand .site-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary-color);
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-desc {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.intro-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.intro-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

.video-section {
  padding: 60px 20px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

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

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

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

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

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

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

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

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

.play-icon {
  font-size: 48px;
  color: white;
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary-color);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 8px;
}

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

.section-more {
  text-align: center;
  margin-top: 30px;
}

.btn-more {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-more:hover {
  background: #ff5500;
}

.list-page {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

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

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

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

.page--grid .video-grid {
  margin-top: 30px;
}

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

.layout__side--filters {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__side--filters h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.filter-info p {
  margin-bottom: 10px;
  color: #666;
}

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

.top-item {
  display: grid;
  grid-template-columns: 60px 200px 1fr;
  gap: 20px;
  padding: 20px;
  background: white;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  align-items: center;
  transition: transform 0.3s;
}

.top-item:hover {
  transform: translateX(5px);
}

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

.top-cover {
  width: 200px;
  height: 112px;
  overflow: hidden;
  border-radius: 6px;
}

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

.top-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.top-info h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.top-info h3 a:hover {
  color: var(--primary-color);
}

.video-tags {
  font-size: 0.85rem;
  color: #999;
  margin-top: 8px;
}

.page--grouped .group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--secondary-color);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

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

.detail-page {
  padding: 40px 0;
}

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

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

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

.player-play-icon {
  font-size: 36px;
  color: var(--primary-color);
  margin-left: 4px;
}

.detail-header {
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.detail-info {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.detail-info h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

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

.info-item {
  display: flex;
  gap: 10px;
}

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

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

.detail-module h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.detail-module p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 15px;
}

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #666;
}

.related-section {
  margin-top: 60px;
}

.related-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.site-footer {
  background: #2c3e50;
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-top: 80px;
}

.footer-container p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

.back-to-top:hover {
  background: #ff5500;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .nav-container {
    height: auto;
    padding: 10px 15px;
  }

  .nav-menu {
    gap: 10px;
    font-size: 0.9rem;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

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

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

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

  .layout__side--filters {
    position: static;
  }

  .top-item {
    grid-template-columns: 50px 1fr;
    gap: 15px;
  }

  .top-cover {
    width: 100%;
    height: auto;
    grid-column: 1 / -1;
    order: 3;
  }

  .top-rank {
    font-size: 1.5rem;
  }

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

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

.ui-style-0 body { --primary-color: #00C75A; }
.ui-style-1 body { --primary-color: #FF4500; }
.ui-style-2 body { --primary-color: #FF6700; }
.ui-style-3 body { --primary-color: #FF0066; }
.ui-style-4 body { --primary-color: #E50914; }
.ui-style-5 body { --primary-color: #E50914; background: #141414; --bg-color: #141414; --text-color: #fff; }
.ui-style-6 body { --primary-color: #0063e5; background: #1a1d29; --bg-color: #1a1d29; --text-color: #f9f9f9; }
.ui-style-7 body { --primary-color: #0080ff; background: #0b1623; --bg-color: #0b1623; --text-color: #fff; }
.ui-style-8 body { --primary-color: #00b894; background: #2d3436; --bg-color: #2d3436; --text-color: #dfe6e9; }
.ui-style-9 body { --primary-color: #fff; background: #000; --bg-color: #000; --text-color: #fff; }
.ui-style-10 body { --primary-color: #00C75A; }
.ui-style-11 body { --primary-color: #0099FF; }
.ui-style-12 body { --primary-color: #FF6700; }
.ui-style-13 body { --primary-color: #00A1D6; }
.ui-style-14 body { --primary-color: #003d7a; }

.ui-style-5 .video-card,
.ui-style-5 .detail-info,
.ui-style-5 .layout__side--filters,
.ui-style-5 .top-item,
.ui-style-5 .intro-section {
  background: #1f1f1f;
  color: #fff;
}

.ui-style-5 .main-nav {
  background: #141414;
  border-bottom-color: #333;
}

.ui-style-6 .video-card,
.ui-style-6 .detail-info,
.ui-style-6 .layout__side--filters,
.ui-style-6 .top-item,
.ui-style-6 .intro-section {
  background: #242938;
  color: #f9f9f9;
}

.ui-style-6 .main-nav {
  background: #1a1d29;
  border-bottom-color: #2a2d3a;
}

.ui-style-7 .video-card,
.ui-style-7 .detail-info,
.ui-style-7 .layout__side--filters,
.ui-style-7 .top-item,
.ui-style-7 .intro-section {
  background: #16202e;
  color: #fff;
}

.ui-style-7 .main-nav {
  background: #0b1623;
  border-bottom-color: #1a2332;
}

.ui-style-8 .video-card,
.ui-style-8 .detail-info,
.ui-style-8 .layout__side--filters,
.ui-style-8 .top-item,
.ui-style-8 .intro-section {
  background: #363a3f;
  color: #dfe6e9;
}

.ui-style-8 .main-nav {
  background: #2d3436;
  border-bottom-color: #3f4447;
}

.ui-style-9 .video-card,
.ui-style-9 .detail-info,
.ui-style-9 .layout__side--filters,
.ui-style-9 .top-item,
.ui-style-9 .intro-section {
  background: #111;
  color: #fff;
}

.ui-style-9 .main-nav {
  background: #000;
  border-bottom-color: #222;
}

.ui-style-9 .hero-section {
  background: #111;
}
