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

body.ui-style-6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #1a1d29;
  color: #f9f9f9;
  line-height: 1.6;
}

.header {
  background: #1a1d29;
  padding: 16px 48px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header__container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 24px;
  font-weight: 700;
  color: #f9f9f9;
  text-decoration: none;
  letter-spacing: 1px;
}

.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header__nav a {
  color: #f9f9f9;
  text-decoration: none;
  font-size: 15px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.header__nav a:hover {
  opacity: 0.7;
}

.main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px 80px;
}

.hero {
  position: relative;
  min-height: 500px;
  background: linear-gradient(180deg, transparent 0%, #1a1d29 100%),
              linear-gradient(90deg, #1a1d29 0%, transparent 50%);
  border-radius: 8px;
  overflow: hidden;
  margin: 40px 0;
  display: flex;
  align-items: flex-end;
  padding: 60px;
}

.hero__content {
  max-width: 640px;
  z-index: 10;
}

.hero__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero__description {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 24px;
  opacity: 0.9;
}

.section {
  margin: 60px 0;
}

.section__header {
  margin-bottom: 24px;
}

.section__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section__description {
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.6;
}

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

.video-card {
  background: #252836;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

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

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

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

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

.video-info {
  padding: 16px;
}

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

.video-one-line {
  font-size: 14px;
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 8px;
}

.page-header {
  padding: 40px 0 24px;
}

.page-header__title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-header__description {
  font-size: 18px;
  opacity: 0.8;
  line-height: 1.6;
  max-width: 800px;
}

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

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

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

.player-play-icon {
  font-size: 32px;
  color: #fff;
  margin-left: 6px;
}

.detail-header {
  margin: 40px 0;
}

.detail-header__title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.detail-section {
  background: #252836;
  border-radius: 8px;
  padding: 32px;
  margin: 24px 0;
}

.detail-section__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.detail-section__content {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.9;
}

.info-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  font-size: 16px;
}

.info-label {
  opacity: 0.6;
  font-weight: 600;
}

.info-value {
  opacity: 0.9;
}

.related-section {
  margin: 60px 0;
}

.related-section__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}

.video-card--related {
  background: #252836;
}

.footer {
  background: #0f1014;
  padding: 40px 48px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
}

.page--grid .filter-bar {
  background: #252836;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  font-size: 15px;
  opacity: 0.8;
}

.page--top .top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page--top .top-list__item {
  background: #252836;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: transform 0.2s;
}

.page--top .top-list__item:hover {
  transform: translateX(8px);
}

.page--top .top-list__rank {
  font-size: 36px;
  font-weight: 700;
  color: #3ea6ff;
  min-width: 60px;
  text-align: center;
}

.page--top .top-list__cover {
  width: 160px;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.page--top .top-list__info {
  flex: 1;
}

.page--top .top-list__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.page--top .top-list__description {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
}

.page--top .top-list__meta {
  font-size: 13px;
  opacity: 0.5;
  margin-top: 8px;
}

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

.page--grouped .group__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.page--grouped .group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .header {
    padding: 12px 20px;
  }

  .header__nav {
    gap: 16px;
    font-size: 14px;
  }

  .header__logo {
    font-size: 20px;
  }

  .main {
    padding: 0 20px 60px;
  }

  .hero {
    min-height: 400px;
    padding: 40px 24px;
    margin: 20px 0;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__description {
    font-size: 16px;
  }

  .section {
    margin: 40px 0;
  }

  .section__title {
    font-size: 24px;
  }

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

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

  .video-info {
    padding: 12px;
  }

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

  .video-one-line {
    font-size: 12px;
  }

  .page-header__title {
    font-size: 28px;
  }

  .page-header__description {
    font-size: 16px;
  }

  .detail-header__title {
    font-size: 28px;
  }

  .detail-section {
    padding: 24px;
  }

  .detail-section__title {
    font-size: 20px;
  }

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

  .page--top .top-list__cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .page--top .top-list__cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

  .page--grouped .group__grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .footer {
    padding: 32px 20px;
  }
}
