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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

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

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #1a73e8;
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  overflow: visible;
}

.main-nav a {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}

.main-nav a:hover {
  background: #f0f0f0;
  color: #1a73e8;
}

.home-main, .list-main, .detail-main {
  min-height: calc(100vh - 200px);
  padding: 20px 0;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  margin: 20px;
}

.hero-section h1 {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.intro-section {
  background: white;
  padding: 40px 20px;
  margin: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro-section p {
  line-height: 1.8;
  font-size: 16px;
}

.video-section {
  margin: 40px 0;
}

.section-heading {
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 4px solid #1a73e8;
}

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

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

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

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

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

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.page-header {
  background: white;
  padding: 40px 20px;
  margin: 20px;
  border-radius: 8px;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-desc {
  color: #666;
  font-size: 16px;
}

.page--top .top-list__items {
  list-style: none;
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin: 20px;
}

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

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

.rank-badge {
  font-size: 24px;
  font-weight: bold;
  color: #1a73e8;
  min-width: 40px;
  text-align: center;
}

.top-list__item .video-cover {
  width: 120px;
  padding-top: 67.5px;
  flex-shrink: 0;
}

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

.top-list__item .video-title a {
  color: #333;
  text-decoration: none;
}

.top-list__item .video-title a:hover {
  color: #1a73e8;
}

.video-meta {
  color: #999;
  font-size: 14px;
  margin-bottom: 5px;
}

.page--with-sidebar {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.layout__side--filters {
  width: 250px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  flex-shrink: 0;
}

.page--with-sidebar .video-grid {
  flex: 1;
  padding: 0;
}

.page--grouped .group {
  margin: 30px 20px;
  background: white;
  padding: 20px;
  border-radius: 8px;
}

.group__title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #1a73e8;
}

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

.video-player-section {
  background: #000;
  padding: 20px;
  margin: 20px;
  border-radius: 8px;
}

.video-player {
  max-width: 1200px;
  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%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  font-size: 32px;
  color: #1a73e8;
  margin-left: 5px;
}

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

.detail-header {
  background: white;
  padding: 30px 20px;
  margin: 20px;
  border-radius: 8px;
  text-align: center;
}

.detail-header h1 {
  font-size: 32px;
  color: #333;
}

.detail-section {
  background: white;
  padding: 30px 20px;
  margin: 20px;
  border-radius: 8px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: #1a73e8;
  border-left: 4px solid #1a73e8;
  padding-left: 15px;
}

.section-content {
  line-height: 1.8;
  color: #555;
}

.section-content p {
  margin-bottom: 15px;
}

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

.info-item {
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

.info-label {
  font-weight: 600;
  color: #333;
}

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

.tag {
  background: #f0f0f0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

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

.site-footer {
  background: #333;
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top:hover {
  background: #1557b0;
  transform: translateY(-5px);
}

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

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    gap: 10px;
    font-size: 14px;
  }

  .main-nav a {
    padding: 6px 10px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

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

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

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

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

  .top-list__item {
    flex-direction: column;
    text-align: center;
  }

  .top-list__item .video-cover {
    width: 100%;
    max-width: 300px;
  }
}

.ui-style-0 .hero-section {
  background: linear-gradient(135deg, #2d2d2d 0%, #000 100%);
}

.ui-style-0 .logo,
.ui-style-0 .main-nav a:hover,
.ui-style-0 .section-heading,
.ui-style-0 .section-title {
  color: #ff6b6b;
}

.ui-style-1 .hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

.ui-style-1 .logo,
.ui-style-1 .section-heading {
  color: #ff6347;
}

.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  color: #333;
}

.ui-style-2 .logo {
  color: #ff5722;
}

.ui-style-3 .hero-section {
  background: linear-gradient(135deg, #ffe5e5 0%, #fff 100%);
  color: #333;
}

.ui-style-3 .logo,
.ui-style-3 .section-heading {
  color: #ff1744;
}

.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  color: #333;
}

.ui-style-4 .logo {
  color: #e91e63;
}

.ui-style-5 .hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

.ui-style-5 .logo,
.ui-style-5 .section-heading {
  color: #e50914;
}

.ui-style-6 .hero-section {
  background: linear-gradient(135deg, #001f3f 0%, #0a2540 100%);
}

.ui-style-6 .logo {
  color: #1e88e5;
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #001a33 0%, #003d66 100%);
}

.ui-style-7 .logo {
  color: #2196f3;
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.ui-style-8 .logo {
  color: #4caf50;
}

.ui-style-9 .hero-section {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
}

.ui-style-9 .logo {
  color: #fafafa;
}

.ui-style-10 .hero-section {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.ui-style-10 .logo {
  color: #00c75a;
}

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #0d47a1;
}

.ui-style-11 .logo {
  color: #0099ff;
}

.ui-style-12 .hero-section {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
}

.ui-style-12 .logo {
  color: #ff6700;
}

.ui-style-13 .hero-section {
  background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
  color: #01579b;
}

.ui-style-13 .logo {
  color: #00a1d6;
}

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  color: #1a237e;
}

.ui-style-14 .logo {
  color: #283593;
}
