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

body.ui-style-14 {
  background: #fff;
  color: #1a1a1a;
}

body.ui-style-14 .header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

body.ui-style-14 .nav a {
  color: #1a1a1a;
  font-weight: 500;
}

body.ui-style-14 .nav a:hover {
  color: #0066cc;
}

body.ui-style-14 .video-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s;
}

body.ui-style-14 .video-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

body.ui-style-14 .section-title {
  color: #0066cc;
  font-weight: 600;
  border-left: 4px solid #ff6700;
  padding-left: 12px;
}

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

.header {
  background: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #0066cc;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: #0066cc;
}

.main {
  padding: 40px 0;
}

.section {
  margin-bottom: 48px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 24px;
  font-weight: 600;
}

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

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

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

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

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

.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: 500;
  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;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.layout__main-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

.layout__main-content {
  min-width: 0;
}

.layout__sidebar {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
}

.sidebar-section {
  margin-bottom: 32px;
}

.sidebar-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #0066cc;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-list a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-list a:hover {
  color: #0066cc;
}

.intro-section {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.intro-section h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.intro-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

.page-header {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
}

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

.video-player {
  width: 100%;
}

.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;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

.detail-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.detail-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

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

.info-label {
  color: #999;
  font-weight: 500;
}

.info-value {
  color: #333;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
}

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

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

.top-list__items {
  list-style: none;
}

.top-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.top-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateX(4px);
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: #ccc;
  min-width: 48px;
  text-align: center;
}

.top-item:nth-child(1) .top-rank { color: #FFD700; }
.top-item:nth-child(2) .top-rank { color: #C0C0C0; }
.top-item:nth-child(3) .top-rank { color: #CD7F32; }

.top-cover {
  width: 100px;
  height: 140px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.top-info {
  flex: 1;
  min-width: 0;
}

.top-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.top-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.group {
  margin-bottom: 48px;
}

.group-title {
  font-size: 24px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0066cc;
}

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

.footer {
  background: #1a1a1a;
  color: #999;
  padding: 32px 0;
  margin-top: 64px;
}

.footer-inner {
  text-align: center;
}

.footer p {
  margin: 8px 0;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: #0052a3;
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .nav {
    gap: 16px;
    font-size: 14px;
  }

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

  .layout__sidebar {
    order: -1;
  }

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

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

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

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

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 140%;
    position: relative;
  }

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

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