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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
}

.site-nav {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  white-space: nowrap;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background: #f0f0f0;
  color: #333;
}

@media (max-width: 768px) {
  .site-nav {
    padding: 0.75rem 1rem;
  }
  .nav-links {
    gap: 0.5rem;
    font-size: 0.85rem;
  }
  .nav-links a {
    padding: 0.4rem 0.6rem;
  }
  .nav-logo {
    font-size: 1.2rem;
  }
}

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

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

.site-intro h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.site-intro p {
  color: #666;
  line-height: 1.8;
}

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

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
  border-left: 4px solid #007bff;
  padding-left: 1rem;
}

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

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

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

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px 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;
}

@media (max-width: 768px) {
  .video-cover {
    padding-top: 50%;
  }
}

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

.video-info {
  padding: 1rem;
}

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

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

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

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

.page-header p {
  color: #666;
}

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

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

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

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

.layout__side--filters h3 {
  margin-bottom: 1rem;
  color: #333;
}

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

.top-list__items {
  list-style: none;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.top-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.top-item:last-child {
  border-bottom: none;
}

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  color: #007bff;
  min-width: 60px;
  text-align: center;
}

.top-cover {
  width: 100px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.top-info {
  flex: 1;
}

.top-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.top-info h3 a {
  color: #333;
  text-decoration: none;
}

.top-info h3 a:hover {
  color: #007bff;
}

.top-info p {
  color: #666;
  margin-bottom: 0.5rem;
}

.top-meta {
  font-size: 0.85rem;
  color: #999;
}

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

.group-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
  border-left: 4px solid #007bff;
  padding-left: 1rem;
}

.video-player-section {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.video-player {
  width: 100%;
  background: #000;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

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

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

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

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

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

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

.detail-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}

.detail-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.8rem;
}

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

.detail-info dd {
  color: #333;
}

.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.3rem;
  margin-bottom: 1rem;
  color: #333;
}

.detail-module p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

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

.site-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.site-footer p {
  color: #ccc;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #007bff;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  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: 999;
}

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

.back-to-top:hover {
  background: #0056b3;
  transform: translateY(-4px);
}

.ui-style-0 .nav-logo,
.ui-style-0 .section-title {
  color: #000;
}

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

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

.ui-style-2 .section-title {
  border-left-color: #ff5722;
}

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

.ui-style-4 .top-rank {
  color: #e53935;
}

.ui-style-5 body,
.ui-style-6 body {
  background: #1a1a1a;
}

.ui-style-5 .site-nav,
.ui-style-6 .site-nav {
  background: #2a2a2a;
}

.ui-style-5 .nav-logo,
.ui-style-6 .nav-logo {
  color: #fff;
}

.ui-style-5 .nav-links a,
.ui-style-6 .nav-links a {
  color: #ccc;
}

.ui-style-5 .video-card,
.ui-style-6 .video-card,
.ui-style-5 .detail-module,
.ui-style-6 .detail-module {
  background: #2a2a2a;
}

.ui-style-5 .video-title,
.ui-style-6 .video-title {
  color: #fff;
}

.ui-style-7 .section-title {
  border-left-color: #00bcd4;
}

.ui-style-8 .section-title {
  border-left-color: #4caf50;
}

.ui-style-10 .section-title {
  border-left-color: #00C75A;
}

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

.ui-style-11 .top-rank {
  color: #0099FF;
}

.ui-style-12 .section-title {
  border-left-color: #FF6700;
}

.ui-style-13 .section-title {
  border-left-color: #00A1D6;
}

.ui-style-13 .tag {
  background: #FB7299;
  color: #fff;
}

.ui-style-14 .nav-links a:hover {
  background: #003d7a;
  color: #fff;
}
