* {
  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-color: #f5f5f5;
}

.ui-style-6 {
  --primary-color: #0066cc;
  --secondary-color: #004499;
  --accent-color: #ff6b6b;
  --bg-color: #1a1a2e;
  --text-color: #ffffff;
  --card-bg: #16213e;
}

body.ui-style-6 {
  background-color: #0f0f1e;
  color: var(--text-color);
}

.site-header {
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--secondary-color) 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.main-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.main-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: var(--accent-color);
  color: #fff;
}

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

.hero-section {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
  padding: 3rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.site-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.4;
}

.site-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  max-width: 900px;
}

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

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

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

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

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

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

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

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

.video-card:hover .video-cover img {
  transform: scale(1.1);
}

.video-info {
  padding: 1rem;
}

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

.video-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.video-one-line {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.page-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}

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

.top-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

.video-card--rank {
  flex: 1;
  background: transparent;
  box-shadow: none;
  display: flex;
}

.video-card--rank .video-card__link {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.video-card--rank .video-cover {
  width: 200px;
  min-width: 200px;
  padding-top: 0;
  height: 120px;
}

.video-card--rank .video-info {
  flex: 1;
}

.group {
  margin-bottom: 3rem;
}

.group-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

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

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

.layout__side {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.layout__side h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.layout__side p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.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: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

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

.player-play-btn:hover {
  background-color: #ff5252;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(255,107,107,0.6);
}

.player-play-icon {
  font-size: 2rem;
  color: #fff;
  display: block;
  margin-left: 5px;
}

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

.video-main-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.video-basic-info {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.info-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.5rem;
}

.info-list dt {
  color: rgba(255,255,255,0.6);
  font-weight: bold;
}

.info-list dd {
  color: rgba(255,255,255,0.9);
}

.content-module {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.module-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
}

.module-content {
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

.module-content p {
  margin-bottom: 1rem;
}

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

.tag {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

.related-section {
  margin-top: 3rem;
}

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

.video-card--related {
  background-color: var(--card-bg);
}

.site-footer {
  background-color: var(--bg-color);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

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

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

  .main-nav {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav a {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

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

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

  .video-main-title {
    font-size: 1.8rem;
  }

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

  .video-card--rank .video-cover {
    width: 120px;
    min-width: 120px;
    height: 80px;
  }

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

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

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

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

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

  .site-intro {
    font-size: 0.9rem;
  }
}
