/* Global Reset */
* {
  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;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* Navigation */
.main-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e74c3c;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero-title {
  font-size: 28px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 16px;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

/* Site Intro */
.site-intro {
  padding: 40px 0;
  background: #fff;
}

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

/* Video Sections */
.video-section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  margin-bottom: 30px;
  padding-left: 15px;
  border-left: 4px solid #e74c3c;
}

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

/* Video Card */
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-card__link {
  display: block;
}

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

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

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(231, 76, 60, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .play-icon {
  opacity: 1;
}

.video-info {
  padding: 15px;
}

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

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

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

/* List Pages */
.list-page {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

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

.page-header h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #222;
}

.page-desc {
  font-size: 16px;
  color: #666;
}

/* Top List (L3) */
.top-list__items {
  list-style: none;
}

.top-list__item {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

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

.rank-badge {
  font-size: 24px;
  font-weight: bold;
  min-width: 40px;
  text-align: center;
  color: #999;
}

.rank-1, .rank-2, .rank-3 {
  color: #e74c3c;
}

.top-item-cover {
  width: 120px;
  flex-shrink: 0;
}

.top-item-cover img {
  width: 100%;
  border-radius: 8px;
}

.top-item-info {
  flex: 1;
}

.top-item-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.top-item-title a {
  color: #222;
  transition: color 0.3s;
}

.top-item-title a:hover {
  color: #e74c3c;
}

.top-item-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}

.top-item-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Detail Page */
.detail-page {
  padding-bottom: 40px;
}

.video-player-section {
  background: #000;
  padding: 40px 0;
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(231, 76, 60, 0.9);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: rgba(231, 76, 60, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.detail-header {
  padding: 40px 0 20px;
}

.detail-header h1 {
  font-size: 32px;
  color: #222;
  line-height: 1.4;
}

.detail-module {
  margin: 30px 0;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-module h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #222;
  padding-left: 12px;
  border-left: 3px solid #e74c3c;
}

.detail-module p {
  line-height: 1.8;
  color: #555;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  line-height: 1.8;
}

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

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 6px 15px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #555;
  transition: all 0.3s;
}

.tag:hover {
  background: #e74c3c;
  color: white;
}

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

.video-card--related .video-cover {
  padding-top: 130%;
}

/* Footer */
.site-footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  margin-top: 40px;
}

.footer-container p {
  font-size: 14px;
  opacity: 0.8;
}

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

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

.back-to-top:hover {
  background: #c0392b;
  transform: translateY(-5px);
}

/* UI Styles */

.ui-style-0 {
  --color-primary: #ff2d55;
  --color-secondary: #00c7be;
  --color-bg: #000;
}

.ui-style-0 .site-logo,
.ui-style-0 .nav-links a:hover,
.ui-style-0 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-0 .hero-section {
  background: linear-gradient(135deg, #ff2d55 0%, #00c7be 100%);
}

.ui-style-0 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-0 .play-icon,
.ui-style-0 .player-play-btn {
  background: #ff2d55;
}

.ui-style-0 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-0 .tag:hover,
.ui-style-0 .back-to-top {
  background: var(--color-primary);
}


.ui-style-1 {
  --color-primary: #fe2c55;
  --color-secondary: #ff6b35;
  --color-bg: #000;
}

.ui-style-1 .site-logo,
.ui-style-1 .nav-links a:hover,
.ui-style-1 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-1 .hero-section {
  background: linear-gradient(135deg, #fe2c55 0%, #ff6b35 100%);
}

.ui-style-1 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-1 .play-icon,
.ui-style-1 .player-play-btn {
  background: #fe2c55;
}

.ui-style-1 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-1 .tag:hover,
.ui-style-1 .back-to-top {
  background: var(--color-primary);
}


.ui-style-2 {
  --color-primary: #ff6b35;
  --color-secondary: #f7931e;
  --color-bg: #fff;
}

.ui-style-2 .site-logo,
.ui-style-2 .nav-links a:hover,
.ui-style-2 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.ui-style-2 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-2 .play-icon,
.ui-style-2 .player-play-btn {
  background: #ff6b35;
}

.ui-style-2 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-2 .tag:hover,
.ui-style-2 .back-to-top {
  background: var(--color-primary);
}


.ui-style-3 {
  --color-primary: #e60023;
  --color-secondary: #cc0000;
  --color-bg: #fff;
}

.ui-style-3 .site-logo,
.ui-style-3 .nav-links a:hover,
.ui-style-3 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-3 .hero-section {
  background: linear-gradient(135deg, #e60023 0%, #cc0000 100%);
}

.ui-style-3 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-3 .play-icon,
.ui-style-3 .player-play-btn {
  background: #e60023;
}

.ui-style-3 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-3 .tag:hover,
.ui-style-3 .back-to-top {
  background: var(--color-primary);
}


.ui-style-4 {
  --color-primary: #ff0000;
  --color-secondary: #e50914;
  --color-bg: #fff;
}

.ui-style-4 .site-logo,
.ui-style-4 .nav-links a:hover,
.ui-style-4 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #ff0000 0%, #e50914 100%);
}

.ui-style-4 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-4 .play-icon,
.ui-style-4 .player-play-btn {
  background: #ff0000;
}

.ui-style-4 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-4 .tag:hover,
.ui-style-4 .back-to-top {
  background: var(--color-primary);
}


.ui-style-5 {
  --color-primary: #e50914;
  --color-secondary: #b20710;
  --color-bg: #141414;
}

.ui-style-5 .site-logo,
.ui-style-5 .nav-links a:hover,
.ui-style-5 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-5 .hero-section {
  background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
}

.ui-style-5 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-5 .play-icon,
.ui-style-5 .player-play-btn {
  background: #e50914;
}

.ui-style-5 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-5 .tag:hover,
.ui-style-5 .back-to-top {
  background: var(--color-primary);
}


.ui-style-6 {
  --color-primary: #0063e5;
  --color-secondary: #0083ff;
  --color-bg: #1a1d29;
}

.ui-style-6 .site-logo,
.ui-style-6 .nav-links a:hover,
.ui-style-6 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #0063e5 0%, #0083ff 100%);
}

.ui-style-6 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-6 .play-icon,
.ui-style-6 .player-play-btn {
  background: #0063e5;
}

.ui-style-6 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-6 .tag:hover,
.ui-style-6 .back-to-top {
  background: var(--color-primary);
}


.ui-style-7 {
  --color-primary: #006aff;
  --color-secondary: #0052cc;
  --color-bg: #0d1117;
}

.ui-style-7 .site-logo,
.ui-style-7 .nav-links a:hover,
.ui-style-7 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #006aff 0%, #0052cc 100%);
}

.ui-style-7 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-7 .play-icon,
.ui-style-7 .player-play-btn {
  background: #006aff;
}

.ui-style-7 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-7 .tag:hover,
.ui-style-7 .back-to-top {
  background: var(--color-primary);
}


.ui-style-8 {
  --color-primary: #00a86b;
  --color-secondary: #00c781;
  --color-bg: #1c1c1c;
}

.ui-style-8 .site-logo,
.ui-style-8 .nav-links a:hover,
.ui-style-8 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #00a86b 0%, #00c781 100%);
}

.ui-style-8 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-8 .play-icon,
.ui-style-8 .player-play-btn {
  background: #00a86b;
}

.ui-style-8 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-8 .tag:hover,
.ui-style-8 .back-to-top {
  background: var(--color-primary);
}


.ui-style-9 {
  --color-primary: #000;
  --color-secondary: #141414;
  --color-bg: #fff;
}

.ui-style-9 .site-logo,
.ui-style-9 .nav-links a:hover,
.ui-style-9 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-9 .hero-section {
  background: linear-gradient(135deg, #000 0%, #141414 100%);
}

.ui-style-9 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-9 .play-icon,
.ui-style-9 .player-play-btn {
  background: #000;
}

.ui-style-9 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-9 .tag:hover,
.ui-style-9 .back-to-top {
  background: var(--color-primary);
}


.ui-style-10 {
  --color-primary: #00C75A;
  --color-secondary: #00e06c;
  --color-bg: #f8f8f8;
}

.ui-style-10 .site-logo,
.ui-style-10 .nav-links a:hover,
.ui-style-10 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-10 .hero-section {
  background: linear-gradient(135deg, #00C75A 0%, #00e06c 100%);
}

.ui-style-10 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-10 .play-icon,
.ui-style-10 .player-play-btn {
  background: #00C75A;
}

.ui-style-10 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-10 .tag:hover,
.ui-style-10 .back-to-top {
  background: var(--color-primary);
}


.ui-style-11 {
  --color-primary: #0099FF;
  --color-secondary: #ff6700;
  --color-bg: #fff;
}

.ui-style-11 .site-logo,
.ui-style-11 .nav-links a:hover,
.ui-style-11 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #0099FF 0%, #ff6700 100%);
}

.ui-style-11 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-11 .play-icon,
.ui-style-11 .player-play-btn {
  background: #0099FF;
}

.ui-style-11 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-11 .tag:hover,
.ui-style-11 .back-to-top {
  background: var(--color-primary);
}


.ui-style-12 {
  --color-primary: #FF6700;
  --color-secondary: #ff8c00;
  --color-bg: #fff;
}

.ui-style-12 .site-logo,
.ui-style-12 .nav-links a:hover,
.ui-style-12 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #FF6700 0%, #ff8c00 100%);
}

.ui-style-12 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-12 .play-icon,
.ui-style-12 .player-play-btn {
  background: #FF6700;
}

.ui-style-12 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-12 .tag:hover,
.ui-style-12 .back-to-top {
  background: var(--color-primary);
}


.ui-style-13 {
  --color-primary: #00A1D6;
  --color-secondary: #FB7299;
  --color-bg: #fff;
}

.ui-style-13 .site-logo,
.ui-style-13 .nav-links a:hover,
.ui-style-13 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-13 .hero-section {
  background: linear-gradient(135deg, #00A1D6 0%, #FB7299 100%);
}

.ui-style-13 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-13 .play-icon,
.ui-style-13 .player-play-btn {
  background: #00A1D6;
}

.ui-style-13 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-13 .tag:hover,
.ui-style-13 .back-to-top {
  background: var(--color-primary);
}


.ui-style-14 {
  --color-primary: #1e3a8a;
  --color-secondary: #dc2626;
  --color-bg: #fff;
}

.ui-style-14 .site-logo,
.ui-style-14 .nav-links a:hover,
.ui-style-14 .nav-links a.active {
  color: var(--color-primary);
}

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%);
}

.ui-style-14 .section-title {
  border-left-color: var(--color-primary);
}

.ui-style-14 .play-icon,
.ui-style-14 .player-play-btn {
  background: #1e3a8a;
}

.ui-style-14 .detail-module h2 {
  border-left-color: var(--color-primary);
}

.ui-style-14 .tag:hover,
.ui-style-14 .back-to-top {
  background: var(--color-primary);
}


/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
    font-size: 14px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 14px;
  }

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

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

  .section-title {
    font-size: 20px;
  }

  .top-list__item {
    flex-wrap: wrap;
  }

  .top-item-cover {
    width: 100px;
  }

  .detail-header h1 {
    font-size: 24px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
    font-size: 12px;
    padding: 10px 0;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}