/* UI Style 6 - Layout B */

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f9fafb;
}

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

.header {
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav a {
  color: #4b5563;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: #2563eb;
  text-decoration: none;
}

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

  .logo {
    font-size: 1.25rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1rem;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero .intro {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero .intro {
    font-size: 0.9rem;
  }
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #111827;
  border-left: 4px solid #2563eb;
  padding-left: 1rem;
}

.page-intro {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.video-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.video-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.video-card h3 a {
  color: #111827;
}

.video-card h3 a:hover {
  color: #2563eb;
}

.video-card .meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.video-card .desc {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
}

.video-list .list-item,
.video-list-section .list-item {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: relative;
}

.list-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.list-item h3 a {
  color: #111827;
}

.list-item h3 a:hover {
  color: #2563eb;
}

.list-item .meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.list-item .desc {
  color: #4b5563;
  line-height: 1.6;
}

.list-item .rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.list-item .genre {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

.list-item .year {
  display: inline-block;
  background: #6366f1;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  margin-right: 0.5rem;
}

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

.link-card {
  display: block;
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #2563eb;
  color: white;
  text-decoration: none;
}

.detail-page article {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #111827;
}

.detail-page section {
  margin-bottom: 2rem;
}

.detail-page section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #374151;
}

.basic-info ul {
  list-style: none;
  padding: 0;
}

.basic-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.basic-info li:last-child {
  border-bottom: none;
}

.one-line p,
.summary p,
.review p {
  line-height: 1.8;
  color: #4b5563;
}

.related {
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .detail-page article {
    padding: 1.5rem;
  }

  .detail-page h1 {
    font-size: 1.5rem;
  }
}
