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

.ui-style-1 {
  --primary-color: #ff6b35;
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  --card-bg: #2a2a2a;
}

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

.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ui-style-1 .site-header {
  background: var(--card-bg);
  border-bottom-color: #444;
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff6b35;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a {
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
}

.ui-style-1 .site-nav a {
  color: var(--text-color);
}

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

.layout-with-sidebar {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
}

.layout__main {
  min-width: 0;
}

.layout__sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.hero-section {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

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

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

.ui-style-1 .page-title {
  color: var(--text-color);
}

.site-intro {
  line-height: 1.8;
  color: #555;
}

.ui-style-1 .site-intro {
  color: #ccc;
}

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

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  border-left: 4px solid #ff6b35;
  padding-left: 1rem;
}

.ui-style-1 .section-title {
  color: var(--text-color);
}

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

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

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

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

.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;
  margin-bottom: 0.5rem;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ui-style-1 .video-title {
  color: var(--text-color);
}

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

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

.sidebar-widget {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

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

.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #222;
}

.ui-style-1 .sidebar-widget h3 {
  color: var(--text-color);
}

.sidebar-widget p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

.ui-style-1 .sidebar-widget p {
  color: #ccc;
}

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

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #f0f0f0;
  color: #555;
  border-radius: 20px;
  font-size: 0.85rem;
}

.ui-style-1 .tag {
  background: #444;
  color: #ccc;
}

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

.page-header {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

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

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.ui-style-1 .page-header h1 {
  color: var(--text-color);
}

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

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

.top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
}

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

.top-list__item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  gap: 1rem;
}

.ui-style-1 .top-list__item {
  border-bottom-color: #444;
}

.top-list__item:last-child {
  border-bottom: none;
}

.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ff6b35;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
}

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

.top-item-link .video-cover {
  width: 80px;
  padding-top: 0;
  height: 112px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

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

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

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

.group {
  margin-bottom: 3rem;
}

.group-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  border-left: 4px solid #ff6b35;
  padding-left: 1rem;
}

.ui-style-1 .group-title {
  color: var(--text-color);
}

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

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

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

.video-player {
  background: #000;
  border-radius: 12px;
  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;
  background: rgba(255, 107, 53, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: rgba(255, 107, 53, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

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

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

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

.detail-header h1 {
  font-size: 2rem;
  color: #222;
}

.ui-style-1 .detail-header h1 {
  color: var(--text-color);
}

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

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

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

.ui-style-1 .detail-info h2 {
  color: var(--text-color);
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem 1rem;
}

.info-list dt {
  font-weight: bold;
  color: #555;
}

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

.info-list dd {
  color: #666;
}

.ui-style-1 .info-list dd {
  color: #ccc;
}

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

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

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

.ui-style-1 .detail-module h2 {
  color: var(--text-color);
}

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

.ui-style-1 .detail-module p {
  color: #ccc;
}

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

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

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

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

.site-footer p {
  font-size: 0.9rem;
}

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

  .layout__sidebar {
    position: static;
  }

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

  .page-title {
    font-size: 1.4rem;
  }

  .section-title,
  .group-title {
    font-size: 1.2rem;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

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

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

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

  .top-item-link .video-cover {
    width: 100%;
    height: auto;
    padding-top: 140%;
  }
}
