* {
  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: #f9f9f9;
  background-color: #0e0b16;
}

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

.site-header {
  background-color: #1a1625;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 28px;
  font-weight: 700;
  color: #4fc3f7;
  text-decoration: none;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  padding: 10px 18px;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 15px;
}

.nav-link:hover,
.nav-link.active {
  background-color: #4fc3f7;
  color: #0e0b16;
}

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

.hero-section {
  margin-bottom: 48px;
  text-align: center;
}

.site-title {
  font-size: 32px;
  color: #4fc3f7;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.site-intro {
  max-width: 900px;
  margin: 0 auto;
  color: #b0b0b0;
  font-size: 16px;
  line-height: 1.8;
}

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

.video-section {
  margin-bottom: 48px;
}

.section-header {
  margin-bottom: 24px;
  border-bottom: 2px solid #4fc3f7;
  padding-bottom: 12px;
}

.section-title {
  font-size: 28px;
  color: #4fc3f7;
  font-weight: 600;
}

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

.video-card {
  background-color: #1a1625;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(79, 195, 247, 0.2);
}

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

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

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

.video-info {
  padding: 16px;
}

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

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

.video-one-line {
  font-size: 14px;
  color: #b0b0b0;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.layout__sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
}

.sidebar-widget {
  background-color: #1a1625;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 20px;
  color: #4fc3f7;
  margin-bottom: 16px;
  font-weight: 600;
}

.widget-content {
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.6;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: #2a2535;
  color: #4fc3f7;
  border-radius: 16px;
  font-size: 13px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.tag:hover {
  background-color: #4fc3f7;
  color: #0e0b16;
}

.mini-top-list {
  list-style: none;
  counter-reset: item;
}

.mini-top-list li {
  counter-increment: item;
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
}

.mini-top-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: #4fc3f7;
  color: #0e0b16;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.mini-top-list li a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.mini-top-list li a:hover {
  color: #4fc3f7;
}

.site-footer {
  background-color: #1a1625;
  padding: 32px 0;
  text-align: center;
  color: #888;
  margin-top: 60px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background-color: #4fc3f7;
  color: #0e0b16;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

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

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

.page-title {
  font-size: 36px;
  color: #4fc3f7;
  margin-bottom: 16px;
  font-weight: 700;
}

.page-desc {
  max-width: 800px;
  margin: 0 auto;
  color: #b0b0b0;
  font-size: 16px;
  line-height: 1.7;
}

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

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

.layout__side--filters {
  position: sticky;
  top: 90px;
  align-self: start;
  background-color: #1a1625;
  border-radius: 12px;
  padding: 24px;
}

.filter-section {
  margin-bottom: 24px;
}

.filter-title {
  font-size: 16px;
  color: #4fc3f7;
  margin-bottom: 12px;
  font-weight: 600;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item {
  padding: 8px 12px;
  color: #b0b0b0;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-item:hover {
  background-color: #2a2535;
  color: #4fc3f7;
}

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

.top-list__item {
  counter-increment: rank;
  background-color: #1a1625;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.top-list__item:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(79, 195, 247, 0.15);
}

.rank-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  color: #0e0b16;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 0 12px 0;
}

.rank-badge::after {
  content: counter(rank);
}

.top-list__cover {
  width: 160px;
  flex-shrink: 0;
  margin-left: 48px;
}

.top-list__cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.top-list__info {
  flex: 1;
  padding-top: 8px;
}

.top-list__title {
  font-size: 22px;
  color: #f9f9f9;
  margin-bottom: 12px;
  font-weight: 600;
}

.top-list__meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
}

.top-list__summary {
  font-size: 15px;
  color: #b0b0b0;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.group__header {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #4fc3f7;
}

.group__title {
  font-size: 24px;
  color: #4fc3f7;
  font-weight: 600;
}

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

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

.video-player {
  max-width: 1200px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #1a1625, #2a2535);
  border-radius: 12px;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(79, 195, 247, 0.9);
  color: #0e0b16;
  border: none;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  margin-left: 4px;
}

.detail-main {
  max-width: 1200px;
  margin: 0 auto;
}

.detail-title {
  font-size: 36px;
  color: #4fc3f7;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.detail-section {
  background-color: #1a1625;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 32px;
}

.detail-section__title {
  font-size: 24px;
  color: #4fc3f7;
  margin-bottom: 20px;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 2px solid #2a2535;
}

.detail-section__content {
  color: #e0e0e0;
  font-size: 16px;
  line-height: 1.8;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.info-label {
  color: #888;
  font-weight: 600;
  min-width: 70px;
}

.info-value {
  color: #e0e0e0;
}

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

.video-card--related {
  background-color: #2a2535;
}

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

  .layout__sidebar {
    position: static;
  }

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

  .layout__side--filters {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-nav {
    gap: 4px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 14px;
  }

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

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

  .video-info {
    padding: 12px;
  }

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

  .video-one-line {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }

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

  .top-list__item {
    flex-direction: column;
    padding: 16px;
  }

  .top-list__cover {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
  }

  .rank-badge {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .detail-section {
    padding: 20px;
  }

  .detail-title {
    font-size: 26px;
  }

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

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

.ui-style-6 body {
  background-color: #0e0b16;
}

.ui-style-6 .site-header {
  background-color: #1a1625;
}

.ui-style-6 .site-logo a,
.ui-style-6 .site-title,
.ui-style-6 .section-title,
.ui-style-6 .page-title,
.ui-style-6 .detail-title,
.ui-style-6 .widget-title,
.ui-style-6 .detail-section__title {
  color: #4fc3f7;
}

.ui-style-6 .nav-link:hover,
.ui-style-6 .nav-link.active {
  background-color: #4fc3f7;
  color: #0e0b16;
}

.ui-style-6 .video-card,
.ui-style-6 .sidebar-widget,
.ui-style-6 .detail-section {
  background-color: #1a1625;
}

.ui-style-6 .video-card:hover {
  box-shadow: 0 8px 24px rgba(79, 195, 247, 0.2);
}

.ui-style-6 .back-to-top,
.ui-style-6 .rank-badge {
  background-color: #4fc3f7;
  color: #0e0b16;
}

.ui-style-6 .tag {
  background-color: #2a2535;
  color: #4fc3f7;
}

.ui-style-6 .tag:hover {
  background-color: #4fc3f7;
  color: #0e0b16;
}
