:root {
  --primary: #FF6700;
  --primary-dark: #e65c00;
  --bg-dark: #1a1a1a;
  --bg-card: #2a2a2a;
  --text: #ffffff;
  --text-secondary: #cccccc;
  --border: #404040;
  --spacing: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
}

body.ui-style-1 {
  --primary: #FF6700;
  --primary-dark: #e65c00;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing) * 2);
}

header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--spacing) * 2) 0;
  gap: calc(var(--spacing) * 3);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: calc(var(--spacing) * 3);
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  flex: 1;
  justify-content: flex-end;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  padding: calc(var(--spacing) * 1) calc(var(--spacing) * 2);
  border-radius: calc(var(--spacing) * 2);
  transition: all 0.3s ease;
  font-size: 16px;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(255, 103, 0, 0.1);
}

.hero {
  padding: calc(var(--spacing) * 6) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 42px;
  margin-bottom: calc(var(--spacing) * 3);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}

.site-intro {
  background: var(--bg-card);
  padding: calc(var(--spacing) * 5);
  margin: calc(var(--spacing) * 4) 0;
  border-radius: calc(var(--spacing) * 2);
  border-left: 4px solid var(--primary);
  line-height: 2;
  font-size: 17px;
  color: var(--text-secondary);
}

.section {
  padding: calc(var(--spacing) * 5) 0;
}

.section-title {
  font-size: 32px;
  margin-bottom: calc(var(--spacing) * 4);
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 2);
}

.section-title::before {
  content: '';
  width: 4px;
  height: 36px;
  background: var(--primary);
  border-radius: 2px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: calc(var(--spacing) * 3);
}

.video-card {
  background: var(--bg-card);
  border-radius: calc(var(--spacing) * 2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(255, 103, 0, 0.2);
  border-color: var(--primary);
}

.video-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-dark);
  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: calc(var(--spacing) * 3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 1.5);
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-one-line {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  gap: calc(var(--spacing) * 2);
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.video-meta span {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing) * 0.5);
}

.page-header {
  padding: calc(var(--spacing) * 6) 0 calc(var(--spacing) * 4);
  border-bottom: 1px solid var(--border);
  margin-bottom: calc(var(--spacing) * 5);
}

.page-header h1 {
  font-size: 38px;
  color: var(--primary);
  margin-bottom: calc(var(--spacing) * 2);
  font-weight: 700;
}

.page-header p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 3);
}

.top-list__item {
  background: var(--bg-card);
  border-radius: calc(var(--spacing) * 2);
  padding: calc(var(--spacing) * 3);
  display: flex;
  gap: calc(var(--spacing) * 3);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  align-items: flex-start;
}

.top-list__item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255, 103, 0, 0.15);
}

.top-rank {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  min-width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.top-cover {
  width: 180px;
  height: 100px;
  flex-shrink: 0;
  border-radius: calc(var(--spacing) * 1);
  overflow: hidden;
}

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

.top-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 1.5);
}

.top-info h3 {
  font-size: 20px;
  color: var(--text);
  margin: 0;
}

.top-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.video-player-section {
  margin: 0 0 calc(var(--spacing) * 5);
  background: var(--bg-card);
  border-radius: calc(var(--spacing) * 2);
  overflow: hidden;
}

.video-player {
  position: relative;
  width: 100%;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 103, 0, 0.4);
}

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

.player-play-icon {
  font-size: 32px;
  color: white;
  margin-left: 4px;
}

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

.detail-title {
  font-size: 40px;
  margin: calc(var(--spacing) * 4) 0 calc(var(--spacing) * 3);
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}

.detail-section {
  background: var(--bg-card);
  padding: calc(var(--spacing) * 4);
  margin-bottom: calc(var(--spacing) * 3);
  border-radius: calc(var(--spacing) * 2);
  border: 1px solid var(--border);
}

.detail-section h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: calc(var(--spacing) * 3);
  font-weight: 600;
  padding-bottom: calc(var(--spacing) * 2);
  border-bottom: 2px solid var(--border);
}

.detail-section p,
.detail-section ul,
.detail-section ol {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: calc(var(--spacing) * 2);
}

.detail-section p:last-child {
  margin-bottom: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: calc(var(--spacing) * 3);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing) * 1);
}

.info-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: calc(var(--spacing) * 3);
}

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

footer {
  background: var(--bg-card);
  border-top: 2px solid var(--primary);
  padding: calc(var(--spacing) * 5) 0;
  margin-top: calc(var(--spacing) * 8);
  text-align: center;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.back-to-top {
  position: fixed;
  bottom: calc(var(--spacing) * 4);
  right: calc(var(--spacing) * 4);
  width: 50px;
  height: 50px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    gap: calc(var(--spacing) * 2);
    padding: calc(var(--spacing) * 2) 0;
  }

  .logo {
    font-size: 22px;
  }

  .nav {
    gap: calc(var(--spacing) * 1.5);
    font-size: 14px;
  }

  .nav a {
    padding: calc(var(--spacing) * 0.75) calc(var(--spacing) * 1.5);
    font-size: 14px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .site-intro {
    padding: calc(var(--spacing) * 3);
    font-size: 15px;
  }

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

  .video-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing) * 2);
  }

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

  .video-info {
    padding: calc(var(--spacing) * 2);
  }

  .page-header h1 {
    font-size: 28px;
  }

  .top-list__item {
    flex-direction: column;
  }

  .top-cover {
    width: 100%;
    height: 180px;
  }

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

  .detail-section {
    padding: calc(var(--spacing) * 3);
  }

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

.layout__side--filters {
  background: var(--bg-card);
  padding: calc(var(--spacing) * 3);
  border-radius: calc(var(--spacing) * 2);
  border: 1px solid var(--border);
}

.filter-title {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: calc(var(--spacing) * 2);
  font-weight: 600;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: calc(var(--spacing) * 4);
  align-items: start;
}

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

.group {
  margin-bottom: calc(var(--spacing) * 6);
}

.group-title {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: calc(var(--spacing) * 3);
  font-weight: 600;
  padding-bottom: calc(var(--spacing) * 2);
  border-bottom: 2px solid var(--border);
}

.group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: calc(var(--spacing) * 3);
}
