* {
  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 body { background: #000; color: #fff; }
.ui-style-1 body { background: #1a1a1a; color: #fff; }
.ui-style-2 body { background: #fff; color: #333; }
.ui-style-3 body { background: #fff; color: #333; }
.ui-style-4 body { background: #fff; color: #333; }
.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-6 body { background: #0a1628; color: #fff; }
.ui-style-7 body { background: #0d1b2a; color: #fff; }
.ui-style-8 body { background: #1a1a1a; color: #fff; }
.ui-style-9 body { background: #000; color: #fff; }
.ui-style-10 body { background: #f0f8f5; color: #333; }
.ui-style-11 body { background: #fff; color: #333; }
.ui-style-12 body { background: #fff5f0; color: #333; }
.ui-style-13 body { background: #f8f9fa; color: #333; }
.ui-style-14 body { background: #fff; color: #333; }

.site-header {
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ui-style-2 .site-header,
.ui-style-3 .site-header,
.ui-style-4 .site-header,
.ui-style-10 .site-header,
.ui-style-11 .site-header,
.ui-style-12 .site-header,
.ui-style-13 .site-header,
.ui-style-14 .site-header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.site-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.ui-style-2 .site-logo a,
.ui-style-3 .site-logo a,
.ui-style-4 .site-logo a,
.ui-style-10 .site-logo a,
.ui-style-11 .site-logo a,
.ui-style-12 .site-logo a,
.ui-style-13 .site-logo a,
.ui-style-14 .site-logo a {
  color: #333;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}

.ui-style-2 .main-nav a,
.ui-style-3 .main-nav a,
.ui-style-4 .main-nav a,
.ui-style-10 .main-nav a,
.ui-style-11 .main-nav a,
.ui-style-12 .main-nav a,
.ui-style-13 .main-nav a,
.ui-style-14 .main-nav a {
  color: rgba(0, 0, 0, 0.7);
}

.ui-style-2 .main-nav a:hover,
.ui-style-2 .main-nav a.active,
.ui-style-3 .main-nav a:hover,
.ui-style-3 .main-nav a.active,
.ui-style-4 .main-nav a:hover,
.ui-style-4 .main-nav a.active,
.ui-style-10 .main-nav a:hover,
.ui-style-10 .main-nav a.active,
.ui-style-11 .main-nav a:hover,
.ui-style-11 .main-nav a.active,
.ui-style-12 .main-nav a:hover,
.ui-style-12 .main-nav a.active,
.ui-style-13 .main-nav a:hover,
.ui-style-13 .main-nav a.active,
.ui-style-14 .main-nav a:hover,
.ui-style-14 .main-nav a.active {
  color: #000;
}

.home-main,
.list-main,
.detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
}

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

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.8;
}

.intro-section {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.ui-style-2 .intro-section,
.ui-style-3 .intro-section,
.ui-style-4 .intro-section,
.ui-style-10 .intro-section,
.ui-style-11 .intro-section,
.ui-style-12 .intro-section,
.ui-style-13 .intro-section,
.ui-style-14 .intro-section {
  background: rgba(0, 0, 0, 0.05);
}

.video-section {
  margin: 3rem 0;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
}

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

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

.ui-style-2 .video-card,
.ui-style-3 .video-card,
.ui-style-4 .video-card,
.ui-style-10 .video-card,
.ui-style-11 .video-card,
.ui-style-12 .video-card,
.ui-style-13 .video-card,
.ui-style-14 .video-card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

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

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-one-line {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
  flex-wrap: wrap;
}

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

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.8;
}

.filter-bar {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.ui-style-2 .filter-bar,
.ui-style-3 .filter-bar,
.ui-style-4 .filter-bar,
.ui-style-10 .filter-bar,
.ui-style-11 .filter-bar,
.ui-style-12 .filter-bar,
.ui-style-13 .filter-bar,
.ui-style-14 .filter-bar {
  background: rgba(0, 0, 0, 0.05);
}

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

.layout__side--filters {
  position: sticky;
  top: 80px;
  height: fit-content;
}

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

.top-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.ui-style-2 .top-item,
.ui-style-3 .top-item,
.ui-style-4 .top-item,
.ui-style-10 .top-item,
.ui-style-11 .top-item,
.ui-style-12 .top-item,
.ui-style-13 .top-item,
.ui-style-14 .top-item {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-rank {
  font-size: 1.5rem;
  font-weight: bold;
  width: 40px;
  text-align: center;
}

.top-item .video-cover {
  width: 120px;
  padding-top: 0;
  height: 80px;
  flex-shrink: 0;
}

.top-item .video-cover img {
  position: static;
}

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

.top-item .video-title a {
  color: inherit;
  text-decoration: none;
}

.top-item .video-title a:hover {
  text-decoration: underline;
}

.group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid currentColor;
}

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

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

.video-player {
  max-width: 900px;
  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: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.player-play-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

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

.detail-header {
  text-align: center;
  margin: 2rem 0;
}

.detail-header h1 {
  font-size: 2rem;
}

.detail-info {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.ui-style-2 .detail-info,
.ui-style-3 .detail-info,
.ui-style-4 .detail-info,
.ui-style-10 .detail-info,
.ui-style-11 .detail-info,
.ui-style-12 .detail-info,
.ui-style-13 .detail-info,
.ui-style-14 .detail-info {
  background: rgba(0, 0, 0, 0.05);
}

.detail-info h2 {
  margin-bottom: 1rem;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.5rem 1rem;
}

.info-list dt {
  font-weight: bold;
}

.detail-module {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
}

.detail-module h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
}

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

.tag {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
}

.ui-style-2 .tag,
.ui-style-3 .tag,
.ui-style-4 .tag,
.ui-style-10 .tag,
.ui-style-11 .tag,
.ui-style-12 .tag,
.ui-style-13 .tag,
.ui-style-14 .tag {
  background: rgba(0, 0, 0, 0.1);
}

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

.video-card--related {
  font-size: 0.9rem;
}

.site-footer {
  background: rgba(0, 0, 0, 0.9);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.ui-style-2 .site-footer,
.ui-style-3 .site-footer,
.ui-style-4 .site-footer,
.ui-style-10 .site-footer,
.ui-style-11 .site-footer,
.ui-style-12 .site-footer,
.ui-style-13 .site-footer,
.ui-style-14 .site-footer {
  background: rgba(0, 0, 0, 0.05);
}

.footer-container p {
  opacity: 0.7;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.3s;
}

.back-to-top:hover {
  background: rgba(0, 0, 0, 0.9);
}

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

@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    gap: 1rem;
  }

  .main-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

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

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

  .video-info {
    padding: 0.75rem;
  }

  .video-title {
    font-size: 1rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

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

  .layout__side--filters {
    position: static;
  }

  .top-item {
    flex-direction: column;
    text-align: center;
  }

  .top-item .video-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
  }

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