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

:root {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --accent-orange: #ff6b35;
  --accent-red: #ff4757;
  --border-color: #333;
  --radius: 8px;
}

body.ui-style-1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

header {
  background: var(--bg-secondary);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-orange);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent-orange);
}

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

.hero-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 3rem;
  border-radius: var(--radius);
  margin-bottom: 3rem;
  text-align: center;
}

.hero-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-orange);
}

.hero-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.site-intro {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 3rem;
  border-left: 4px solid var(--accent-orange);
}

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

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

.section-header h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.section-header a {
  color: var(--accent-orange);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.video-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

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

.video-cover {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
  background: var(--bg-primary);
}

.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;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

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

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

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

.video-player {
  background: #000;
  border-radius: var(--radius);
  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-radius: 50%;
  background: var(--accent-orange);
  border: none;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  font-size: 2rem;
  color: white;
  margin-left: 5px;
}

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

.info-block {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.info-block h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent-orange);
}

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

.info-item {
  display: flex;
  gap: 0.5rem;
}

.info-label {
  color: var(--text-secondary);
  min-width: 60px;
}

.info-value {
  color: var(--text-primary);
}

.content-block {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.content-block h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent-orange);
}

.content-block p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.related-section {
  margin-top: 3rem;
}

.related-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

.filter-bar {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

.layout__side--filters {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius);
  height: fit-content;
}

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

.top-list__items li {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rank-badge {
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.top-list__items li:nth-child(1) .rank-badge {
  background: #ffd700;
  color: #000;
}

.top-list__items li:nth-child(2) .rank-badge {
  background: #c0c0c0;
  color: #000;
}

.top-list__items li:nth-child(3) .rank-badge {
  background: #cd7f32;
  color: #fff;
}

.top-item-cover {
  width: 80px;
  height: 112px;
  border-radius: 4px;
  overflow: hidden;
}

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

.top-item-info {
  flex: 1;
}

.top-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.top-item-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.page--grouped .group h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-orange);
}

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

footer {
  background: var(--bg-secondary);
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--accent-orange);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s;
  z-index: 99;
}

.back-to-top:hover {
  transform: scale(1.1);
}

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

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  main {
    padding: 1rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

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

  .layout__side--filters {
    margin-bottom: 1.5rem;
  }

  .page--grid .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .group__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .video-title {
    font-size: 0.9rem;
  }

  .video-one-line {
    font-size: 0.8rem;
  }
}
