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

.ui-style-1 {
  --primary-color: #ff6700;
  --bg-color: #000;
  --text-color: #fff;
  --card-bg: #1a1a1a;
  --hover-color: #ff8533;
}

.ui-style-1 body {
  background: var(--bg-color);
  color: var(--text-color);
}

.layout {
  min-height: 100vh;
}

.layout--s2 {
  display: flex;
}

.layout__side {
  width: 260px;
  background: #f8f8f8;
  padding: 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.ui-style-1 .layout__side {
  background: #111;
  border-right: 1px solid #333;
}

.layout__main {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
}

.site-info {
  margin-bottom: 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #ff6700;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.main-nav a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: all 0.2s;
}

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

.hero-section {
  padding: 3rem 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.site-intro {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.ui-style-1 .site-intro {
  background: #1a1a1a;
}

.site-intro h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.content-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ff6700;
}

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

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

.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ui-style-1 .video-card {
  background: var(--card-bg);
}

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

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

.video-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.ui-style-1 .video-cover {
  background: #2a2a2a;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1.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.5rem;
}

.ui-style-1 .video-meta {
  color: #999;
}

.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;
}

.ui-style-1 .video-one-line {
  color: #aaa;
}

.video-player-section {
  margin-bottom: 2rem;
}

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  background: rgba(255, 103, 0, 0.9);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 2rem;
}

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

.detail-header {
  text-align: center;
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
}

.detail-info {
  background: #f8f8f8;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.ui-style-1 .detail-info {
  background: #1a1a1a;
}

.detail-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ff6700;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
}

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

.ui-style-1 .info-list dt {
  color: #999;
}

.detail-module {
  margin-bottom: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid #ff6700;
}

.ui-style-1 .detail-module {
  background: #1a1a1a;
}

.detail-module h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ff6700;
}

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

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 103, 0, 0.1);
  color: #ff6700;
  border-radius: 20px;
  font-size: 0.875rem;
}

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

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

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

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #666;
}

.ui-style-1 .page-header p {
  color: #999;
}

.page--grid,
.page--top,
.page--grouped {
  width: 100%;
}

.page--with-sidebar {
  display: flex;
  gap: 2rem;
}

.layout__side--filters {
  width: 240px;
  flex-shrink: 0;
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 12px;
}

.ui-style-1 .layout__side--filters {
  background: #1a1a1a;
}

.page-content {
  flex: 1;
}

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

.top-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 12px;
  transition: all 0.2s;
}

.ui-style-1 .top-item {
  background: var(--card-bg);
}

.top-item:hover {
  box-shadow: 0 4px 16px rgba(255, 103, 0, 0.3);
  transform: translateX(4px);
}

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

.top-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.top-item .video-cover {
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
}

.top-item .video-info {
  flex: 1;
  padding: 0;
}

.group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ff6700;
}

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

@media (max-width: 768px) {
  .layout--s2 {
    flex-direction: column;
  }

  .layout__side {
    width: 100%;
    height: auto;
    position: static;
    padding: 1rem;
  }

  .main-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    white-space: nowrap;
  }

  .main-nav a {
    flex-shrink: 0;
  }

  .layout__main {
    padding: 1rem;
  }

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

  .video-cover {
    aspect-ratio: 3 / 4;
  }

  .hero-section h1 {
    font-size: 1.3rem;
  }

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

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

  .top-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-item .video-cover {
    width: 100%;
  }
}
