* {
  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;
  color: #333;
  background: #f5f5f5;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  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;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.site-nav a {
  font-size: 16px;
  white-space: nowrap;
}

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

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

.site-intro {
  background: #fff;
  padding: 30px;
  margin: 20px 0;
  border-radius: 8px;
  line-height: 1.8;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

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

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

.video-card__link {
  display: block;
}

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

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

.video-info {
  padding: 15px;
}

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

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

.content-section {
  margin: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.section-more {
  font-size: 14px;
  color: #666;
}

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

.video-player {
  max-width: 100%;
  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;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  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;
  margin-left: 4px;
}

.detail-header {
  background: #fff;
  padding: 30px;
  margin: 20px 0;
  border-radius: 8px;
}

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

.basic-info {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
}

.basic-info h2 {
  font-size: 20px;
  margin-bottom: 15px;
}

.info-row {
  display: flex;
  margin: 10px 0;
  line-height: 1.8;
}

.info-label {
  font-weight: bold;
  min-width: 80px;
  color: #666;
}

.info-value {
  flex: 1;
}

.detail-module {
  background: #fff;
  padding: 30px;
  margin: 20px 0;
  border-radius: 8px;
}

.module-title {
  font-size: 22px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

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

.module-content p {
  margin: 10px 0;
}

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

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

.top-list {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
}

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

.top-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s ease;
}

.top-item:hover {
  background: #f9f9f9;
}

.top-rank {
  font-size: 24px;
  font-weight: bold;
  min-width: 40px;
  color: #666;
}

.top-item:nth-child(1) .top-rank,
.top-item:nth-child(2) .top-rank,
.top-item:nth-child(3) .top-rank {
  color: #ff6b6b;
}

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

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

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

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

.top-meta {
  font-size: 14px;
  color: #666;
  margin: 5px 0;
}

.page--grid .filter-bar {
  background: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.page--with-sidebar {
  display: flex;
  gap: 20px;
}

.layout__side--filters {
  width: 240px;
  flex-shrink: 0;
}

.sidebar-section {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.sidebar-title {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: bold;
}

.layout__main {
  flex: 1;
}

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

.group-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 4px solid;
}

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

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  background: rgba(0,0,0,0.7);
}

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

.site-footer {
  background: #fff;
  margin-top: 40px;
  padding: 30px 20px;
  text-align: center;
  color: #666;
  border-top: 1px solid #e0e0e0;
}

body.ui-style-5 {
  background: #141414;
  color: #e5e5e5;
}

body.ui-style-5 .site-header {
  background: #1a1a1a;
}

body.ui-style-5 .site-logo {
  color: #e50914;
}

body.ui-style-5 .site-nav a {
  color: #e5e5e5;
}

body.ui-style-5 .site-nav a:hover {
  color: #e50914;
}

body.ui-style-5 .video-card {
  background: #1a1a1a;
}

body.ui-style-5 .video-card:hover {
  transform: scale(1.05);
}

body.ui-style-5 .video-title {
  color: #e5e5e5;
}

body.ui-style-5 .video-one-line,
body.ui-style-5 .video-meta {
  color: #999;
}

body.ui-style-5 .site-intro,
body.ui-style-5 .detail-header,
body.ui-style-5 .detail-module,
body.ui-style-5 .basic-info,
body.ui-style-5 .top-list,
body.ui-style-5 .sidebar-section {
  background: #1a1a1a;
  color: #e5e5e5;
}

body.ui-style-5 .basic-info {
  background: #0f0f0f;
}

body.ui-style-5 .info-label {
  color: #999;
}

body.ui-style-5 .module-content {
  color: #ccc;
}

body.ui-style-5 .section-title,
body.ui-style-5 .detail-title,
body.ui-style-5 .module-title {
  color: #e5e5e5;
}

body.ui-style-5 .group-title {
  border-left-color: #e50914;
  color: #e5e5e5;
}

body.ui-style-5 .top-item {
  border-bottom-color: #2a2a2a;
}

body.ui-style-5 .top-item:hover {
  background: #0f0f0f;
}

body.ui-style-5 .site-footer {
  background: #1a1a1a;
  color: #999;
  border-top-color: #2a2a2a;
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-around;
    gap: 10px;
    font-size: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

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

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

  .page--with-sidebar {
    flex-direction: column;
  }

  .layout__side--filters {
    width: 100%;
  }

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

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

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

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

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