/* Reset */
* {
  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-color: #f5f5f5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* UI Style 0 - TikTok Style */
.ui-style-0 {
  --primary-color: #fe2c55;
  --secondary-color: #00f2ea;
  --bg-color: #000;
  --text-color: #fff;
  --card-bg: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.ui-style-0 .site-header {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color, #fe2c55);
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-list a {
  color: var(--text-color, #333);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: var(--primary-color, #fe2c55);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px;
  text-align: center;
}

.page-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-color, #333);
}

.page-intro {
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-color, #666);
}

/* Video Sections */
.video-section {
  padding: 40px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color, #fe2c55);
  color: var(--text-color, #333);
}

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

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

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

.video-cover {
  position: relative;
  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: 20px;
}

.video-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-color, #333);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 14px;
  color: var(--text-color, #666);
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-color, #999);
}

/* List Pages */
.list-main {
  padding: 40px 0;
}

.page-header {
  margin-bottom: 40px;
}

.page-desc {
  font-size: 16px;
  color: var(--text-color, #666);
  margin-top: 15px;
}

/* Top List Style (L3) */
.top-list__items {
  list-style: none;
}

.top-list__item {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top-item-link {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 20px;
}

.rank-badge {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color, #fe2c55);
  min-width: 50px;
  text-align: center;
}

.top-item-link .video-cover {
  width: 180px;
  flex-shrink: 0;
  padding-top: 0;
  height: 100px;
}

.top-item-link .video-cover img {
  position: static;
  height: 100%;
  object-fit: cover;
}

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

/* Detail Page */
.detail-main {
  padding-bottom: 60px;
}

.video-player-section {
  background: #000;
  padding: 40px 0;
}

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

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

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(254, 44, 85, 0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: rgba(254, 44, 85, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  color: #fff;
  font-size: 32px;
  display: block;
}

.video-detail {
  max-width: 900px;
  margin: 40px auto;
}

.detail-header {
  padding: 30px 0;
  border-bottom: 2px solid var(--primary-color, #fe2c55);
}

.detail-title {
  font-size: 36px;
  color: var(--text-color, #333);
}

.detail-module {
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.detail-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-color, #333);
}

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

.info-list dt {
  font-weight: bold;
  color: var(--text-color, #666);
}

.info-list dd {
  color: var(--text-color, #333);
}

.summary-text,
.review-text {
  line-height: 1.8;
  color: var(--text-color, #444);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: var(--primary-color, #fe2c55);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
}

/* Footer */
.site-footer {
  background: var(--card-bg, #333);
  color: #fff;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-list {
    gap: 15px;
    font-size: 14px;
  }

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

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .video-title {
    font-size: 16px;
  }

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

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

  .top-item-link .video-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

  .detail-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .site-logo a {
    font-size: 18px;
  }

  .nav-list {
    gap: 8px;
    font-size: 12px;
  }

  .video-card .video-info {
    padding: 12px;
  }
}
