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

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

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

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e50914;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.site-nav a:hover {
  color: #e50914;
}

.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.site-intro {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  line-height: 1.8;
}

.video-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #e50914;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

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

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

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

.video-info {
  padding: 1rem;
}

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

.video-meta {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.video-one-line {
  font-size: 0.875rem;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-player {
  position: relative;
  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(229,9,20,0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  background: rgba(229,9,20,1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  color: #fff;
  font-size: 2rem;
}

.video-detail {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.video-detail h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #222;
}

.video-basic-info {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.info-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.info-item {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-label {
  font-weight: 600;
  color: #555;
  display: inline-block;
  min-width: 80px;
}

.content-module {
  margin-bottom: 2rem;
}

.module-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e50914;
}

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

.module-content p {
  margin-bottom: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  background: #f0f0f0;
  padding: 0.35rem 0.75rem;
  border-radius: 16px;
  font-size: 0.875rem;
  color: #666;
}

.related-section {
  margin-top: 3rem;
}

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

.site-footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.page--grid .filter-bar {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.page--top .top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.page--top .top-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

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

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  color: #e50914;
  min-width: 60px;
  text-align: center;
}

.top-cover {
  width: 100px;
  height: 140px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 1.5rem;
}

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.top-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

.layout__side--filters {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content;
}

.page--grouped .group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

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

@media (max-width: 768px) {
  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
    flex-wrap: nowrap;
    overflow-x: visible;
  }

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

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

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

  .top-item {
    flex-direction: column;
    text-align: center;
  }

  .top-cover {
    margin: 1rem 0;
  }
}

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

.ui-style-14 .section-title {
  border-bottom-color: #e50914;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #e50914;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 99;
}

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

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