* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #191414;
  background: #fff;
}

body.ui-style-10 {
  background: #fff;
  color: #191414;
}

.header {
  background: #00C75A;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,199,90,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.2s;
  white-space: nowrap;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  background: rgba(255,255,255,0.2);
}

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

.layout--sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

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

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #191414;
}

.page-desc {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
}

.sidebar {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

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

.sidebar-content {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
}

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

.tag {
  padding: 0.4rem 0.8rem;
  background: #00C75A;
  color: #fff;
  border-radius: 16px;
  font-size: 0.85rem;
}

.section {
  margin-bottom: 3rem;
}

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #191414;
}

.section-more {
  color: #00C75A;
  text-decoration: none;
  font-weight: 600;
}

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

.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 24px rgba(0,0,0,0.1);
}

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

.video-cover {
  position: relative;
  padding-top: 140%;
  background: #f0f0f0;
  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;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #191414;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

.video-player {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.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: #00C75A;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-main {
  max-width: 1200px;
  margin: 0 auto;
}

.detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #191414;
}

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

.detail-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #191414;
  border-left: 4px solid #00C75A;
  padding-left: 1rem;
}

.detail-section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #191414;
}

.detail-section p {
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}

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

.info-item {
  padding: 1rem;
  background: #f7f7f7;
  border-radius: 8px;
}

.info-label {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.info-value {
  color: #191414;
  font-size: 1rem;
}

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

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

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

.top-list__item {
  display: grid;
  grid-template-columns: 60px 140px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.top-list__item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.rank-badge {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00C75A, #00D764);
  color: #fff;
  border-radius: 8px;
}

.rank-badge--1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.rank-badge--2 {
  background: linear-gradient(135deg, #C0C0C0, #808080);
}

.rank-badge--3 {
  background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.top-item__cover {
  position: relative;
  padding-top: 140%;
  background: #f0f0f0;
  border-radius: 6px;
  overflow: hidden;
}

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

.top-item__info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #191414;
}

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

.top-item__desc {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.6;
}

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

.group__header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #00C75A;
}

.group__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #191414;
}

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

.footer {
  background: #f7f7f7;
  padding: 2rem;
  text-align: center;
  color: #666;
  margin-top: 4rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #00C75A;
  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 12px rgba(0,199,90,0.3);
  transition: all 0.3s;
}

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

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

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

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

  .sidebar {
    position: static;
  }

  .main {
    padding: 1rem;
  }

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

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

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

  .top-list__item {
    grid-template-columns: 50px 100px 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .rank-badge {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .detail-title {
    font-size: 1.75rem;
  }

  .detail-section {
    padding: 1.5rem;
  }
}
