
* {
  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-0 body { background: #000; color: #fff; }
.ui-style-1 body { background: #1a1a1a; color: #fff; }
.ui-style-2 body { background: #fff; color: #333; }
.ui-style-3 body { background: #fff; color: #333; }
.ui-style-4 body { background: #fff; color: #333; }
.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-6 body { background: #0f1419; color: #fff; }
.ui-style-7 body { background: #0b1015; color: #fff; }
.ui-style-8 body { background: #181818; color: #fff; }
.ui-style-9 body { background: #000; color: #fff; }
.ui-style-10 body { background: #f0f9f4; color: #333; }
.ui-style-11 body { background: #fff; color: #333; }
.ui-style-12 body { background: #fff5f0; color: #333; }
.ui-style-13 body { background: #f0f8ff; color: #333; }
.ui-style-14 body { background: #fff; color: #333; }

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

.ui-style-0 header,
.ui-style-1 header,
.ui-style-5 header,
.ui-style-6 header,
.ui-style-7 header,
.ui-style-8 header,
.ui-style-9 header {
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

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

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

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

nav a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
  white-space: nowrap;
}

nav a:hover {
  opacity: 0.7;
}

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

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

.page-intro {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

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

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

.ui-style-0 .video-card,
.ui-style-1 .video-card,
.ui-style-5 .video-card,
.ui-style-6 .video-card,
.ui-style-7 .video-card,
.ui-style-8 .video-card,
.ui-style-9 .video-card {
  background: #222;
}

.video-card:hover {
  transform: translateY(-4px);
}

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

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

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

.video-info {
  padding: 1rem;
}

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

.video-one-line,
.video-meta {
  font-size: 0.9rem;
  opacity: 0.7;
  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;
  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;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  transition: transform 0.3s;
}

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

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

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

.ui-style-0 .detail-section,
.ui-style-1 .detail-section,
.ui-style-5 .detail-section,
.ui-style-6 .detail-section,
.ui-style-7 .detail-section,
.ui-style-8 .detail-section,
.ui-style-9 .detail-section {
  background: #222;
}

.detail-section h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

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

.info-item {
  padding: 0.5rem 0;
}

.info-label {
  font-weight: bold;
  margin-right: 0.5rem;
}

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

.top-list__item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ui-style-0 .top-list__item,
.ui-style-1 .top-list__item,
.ui-style-5 .top-list__item,
.ui-style-6 .top-list__item,
.ui-style-7 .top-list__item,
.ui-style-8 .top-list__item,
.ui-style-9 .top-list__item {
  background: #222;
}

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  min-width: 3rem;
  text-align: center;
}

.top-cover {
  width: 120px;
  height: 68px;
  overflow: hidden;
  border-radius: 4px;
}

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

.top-info {
  flex: 1;
}

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

.group__header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
}

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

@media (max-width: 768px) {
  nav ul {
    gap: 0.8rem;
    font-size: 0.9rem;
  }

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

  .video-info {
    padding: 0.75rem;
  }

  .video-title {
    font-size: 0.95rem;
  }

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