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

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

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

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

.nav-links {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.nav-links a {
  color: #666;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #111;
}

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.site-title {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

.site-intro {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.site-description {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.site-description p {
  line-height: 1.8;
  color: #555;
}

.content-module {
  margin-bottom: 60px;
}

.content-module h2 {
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #667eea;
}

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

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

.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;
  padding-top: 140%;
  overflow: hidden;
  background: #e0e0e0;
}

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

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}

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

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.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;
}

.page {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

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

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

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

.filter-bar {
  margin-bottom: 30px;
  padding: 15px 20px;
  background: #f8f8f8;
  border-radius: 8px;
}

.filter-label {
  font-size: 14px;
  color: #666;
}

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

.layout__side--filters {
  background: #f8f8f8;
  padding: 25px;
  border-radius: 8px;
  height: fit-content;
}

.layout__side--filters h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

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

.top-list__item {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: #fafafa;
  border-radius: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.top-rank {
  font-size: 28px;
  font-weight: bold;
  min-width: 50px;
  text-align: center;
}

.top-rank--top {
  color: #ff4757;
}

.top-rank--normal {
  color: #999;
}

.top-item__cover {
  width: 120px;
  height: 168px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #e0e0e0;
}

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

.top-item__info {
  flex: 1;
}

.top-item__title {
  font-size: 20px;
  margin-bottom: 8px;
}

.top-item__title a {
  color: #111;
  text-decoration: none;
}

.top-item__title a:hover {
  color: #667eea;
}

.top-item__meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

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

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

.group__title {
  font-size: 24px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

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

.detail-page {
  max-width: 1200px;
}

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

.video-player {
  width: 100%;
  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: #111;
  margin-left: 4px;
}

.detail-header {
  background: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.detail-header h1 {
  font-size: 36px;
  line-height: 1.4;
}

.detail-info {
  background: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.detail-info h2 {
  font-size: 24px;
  margin-bottom: 25px;
}

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

.info-item {
  padding: 12px;
  background: #f8f8f8;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
}

.info-item strong {
  color: #111;
}

.detail-module {
  background: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.detail-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #111;
}

.detail-module p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: #667eea;
  color: white;
  border-radius: 20px;
  font-size: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.video-card--related {
  margin: 0;
}

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

.main-footer p {
  font-size: 14px;
}

@media (max-width: 768px) {
  .main-nav {
    padding: 0 15px;
  }

  .nav-links {
    gap: 15px;
  }

  .hero-section {
    padding: 40px 20px;
  }

  .site-title {
    font-size: 24px;
  }

  .site-intro {
    font-size: 16px;
  }

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

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

  .video-info {
    padding: 15px;
  }

  .video-title {
    font-size: 15px;
  }

  .page {
    padding: 20px;
  }

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

  .top-list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-item__cover {
    width: 100px;
    height: 140px;
  }

  .detail-header,
  .detail-info,
  .detail-module {
    padding: 25px;
  }

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

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

.ui-style-0 body {
  background: #0a0a0a;
  color: #fff;
}

.ui-style-0 .main-header {
  background: #1a1a1a;
}

.ui-style-0 .logo {
  color: #fff;
}

.ui-style-0 .nav-links a {
  color: #999;
}

.ui-style-0 .nav-links a:hover,
.ui-style-0 .nav-links a.active {
  color: #ff0050;
}

.ui-style-0 .hero-section {
  background: linear-gradient(135deg, #ff0050 0%, #ff6b9d 100%);
}

.ui-style-0 .site-description,
.ui-style-0 .video-card,
.ui-style-0 .page,
.ui-style-0 .detail-header,
.ui-style-0 .detail-info,
.ui-style-0 .detail-module {
  background: #1a1a1a;
  color: #ddd;
}

.ui-style-0 .content-module h2 {
  border-bottom-color: #ff0050;
}

.ui-style-1 .hero-section {
  background: linear-gradient(135deg, #ee0a24 0%, #ff6034 100%);
}

.ui-style-1 .nav-links a:hover,
.ui-style-1 .nav-links a.active {
  color: #ee0a24;
}

.ui-style-1 .content-module h2 {
  border-bottom-color: #ee0a24;
}

.ui-style-1 .tag {
  background: #ee0a24;
}

.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #ff6600 0%, #ffaa00 100%);
}

.ui-style-2 .nav-links a:hover,
.ui-style-2 .nav-links a.active {
  color: #ff6600;
}

.ui-style-2 .content-module h2 {
  border-bottom-color: #ff6600;
}

.ui-style-2 .tag {
  background: #ff6600;
}

.ui-style-3 .hero-section {
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b9d 100%);
}

.ui-style-3 .nav-links a:hover,
.ui-style-3 .nav-links a.active {
  color: #ff2d55;
}

.ui-style-3 .content-module h2 {
  border-bottom-color: #ff2d55;
}

.ui-style-3 .tag {
  background: #ff2d55;
}

.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
}

.ui-style-4 .nav-links a:hover,
.ui-style-4 .nav-links a.active {
  color: #e50914;
}

.ui-style-4 .content-module h2 {
  border-bottom-color: #e50914;
}

.ui-style-4 .tag {
  background: #e50914;
}

.ui-style-5 body {
  background: #141414;
  color: #e5e5e5;
}

.ui-style-5 .main-header {
  background: #1a1a1a;
}

.ui-style-5 .logo {
  color: #e50914;
}

.ui-style-5 .nav-links a {
  color: #999;
}

.ui-style-5 .nav-links a:hover,
.ui-style-5 .nav-links a.active {
  color: #fff;
}

.ui-style-5 .hero-section {
  background: linear-gradient(135deg, #e50914 0%, #831010 100%);
}

.ui-style-5 .site-description,
.ui-style-5 .video-card,
.ui-style-5 .page,
.ui-style-5 .detail-header,
.ui-style-5 .detail-info,
.ui-style-5 .detail-module {
  background: #1f1f1f;
  color: #e5e5e5;
}

.ui-style-5 .content-module h2,
.ui-style-5 .detail-module h2,
.ui-style-5 .detail-info h2 {
  color: #fff;
  border-bottom-color: #e50914;
}

.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #113ccf 0%, #1e57d4 100%);
}

.ui-style-6 .nav-links a:hover,
.ui-style-6 .nav-links a.active {
  color: #113ccf;
}

.ui-style-6 .content-module h2 {
  border-bottom-color: #113ccf;
}

.ui-style-6 .tag {
  background: #113ccf;
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #002f6c 0%, #0059a8 100%);
}

.ui-style-7 .nav-links a:hover,
.ui-style-7 .nav-links a.active {
  color: #0059a8;
}

.ui-style-7 .content-module h2 {
  border-bottom-color: #0059a8;
}

.ui-style-7 .tag {
  background: #0059a8;
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #30d158 0%, #1fb147 100%);
}

.ui-style-8 .nav-links a:hover,
.ui-style-8 .nav-links a.active {
  color: #30d158;
}

.ui-style-8 .content-module h2 {
  border-bottom-color: #30d158;
}

.ui-style-8 .tag {
  background: #30d158;
}

.ui-style-9 body {
  background: #0a0a0a;
  color: #fff;
}

.ui-style-9 .main-header {
  background: #000;
}

.ui-style-9 .logo {
  color: #fff;
}

.ui-style-9 .nav-links a {
  color: #999;
}

.ui-style-9 .nav-links a:hover,
.ui-style-9 .nav-links a.active {
  color: #fff;
}

.ui-style-9 .hero-section {
  background: linear-gradient(135deg, #222 0%, #000 100%);
}

.ui-style-9 .site-description,
.ui-style-9 .video-card,
.ui-style-9 .page,
.ui-style-9 .detail-header,
.ui-style-9 .detail-info,
.ui-style-9 .detail-module {
  background: #151515;
  color: #e5e5e5;
}

.ui-style-9 .content-module h2 {
  border-bottom-color: #444;
  color: #fff;
}

.ui-style-10 .hero-section {
  background: linear-gradient(135deg, #00C75A 0%, #00a84a 100%);
}

.ui-style-10 .nav-links a:hover,
.ui-style-10 .nav-links a.active {
  color: #00C75A;
}

.ui-style-10 .content-module h2 {
  border-bottom-color: #00C75A;
}

.ui-style-10 .tag {
  background: #00C75A;
}

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #0099FF 0%, #0077cc 100%);
}

.ui-style-11 .nav-links a:hover,
.ui-style-11 .nav-links a.active {
  color: #0099FF;
}

.ui-style-11 .content-module h2 {
  border-bottom-color: #0099FF;
}

.ui-style-11 .tag {
  background: #0099FF;
}

.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #FF6700 0%, #ff8533 100%);
}

.ui-style-12 .nav-links a:hover,
.ui-style-12 .nav-links a.active {
  color: #FF6700;
}

.ui-style-12 .content-module h2 {
  border-bottom-color: #FF6700;
}

.ui-style-12 .tag {
  background: #FF6700;
}

.ui-style-13 .hero-section {
  background: linear-gradient(135deg, #00A1D6 0%, #FB7299 100%);
}

.ui-style-13 .nav-links a:hover,
.ui-style-13 .nav-links a.active {
  color: #00A1D6;
}

.ui-style-13 .content-module h2 {
  border-bottom-color: #00A1D6;
}

.ui-style-13 .tag {
  background: linear-gradient(135deg, #00A1D6 0%, #FB7299 100%);
}

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #003d82 0%, #0059a8 100%);
}

.ui-style-14 .nav-links a:hover,
.ui-style-14 .nav-links a.active {
  color: #003d82;
}

.ui-style-14 .content-module h2 {
  border-bottom-color: #003d82;
}

.ui-style-14 .tag {
  background: #003d82;
}

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

.back-to-top:hover {
  background: #5568d3;
  transform: translateY(-5px);
}

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