/* Reset & Base */
* { 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.8;
  color: #2c3e50;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

body.ui-style-0 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

a {
  text-decoration: none;
  color: #3498db;
  transition: color 0.3s;
}

a:hover {
  color: #2980b9;
}

/* Header */
.site-header {
  background: #2c3e50;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  flex-direction: column;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  padding: 1rem 0;
  text-align: center;
}

.logo a {
  color: white;
}

.site-nav {
  background: #34495e;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.nav-list a {
  display: block;
  padding: 1rem 0.5rem;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.3s;
}

.nav-list a:hover {
  background: #2c3e50;
  color: white;
}

@media (max-width: 767px) {
  .logo {
    font-size: 1.2rem;
    padding: 0.8rem 0;
  }

  .nav-list a {
    padding: 0.8rem 0.3rem;
    font-size: 0.85rem;
  }
}

/* Main Content */
.main-content {
  background: white;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

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

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

.intro-section,
.hot-section,
.latest-section,
.links-section {
  padding: 2rem 0;
  border-bottom: 1px solid #ecf0f1;
}

.intro-section:last-child,
.links-section {
  border-bottom: none;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  border-left: 4px solid #3498db;
  padding-left: 1rem;
}

.intro-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

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

.video-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e9ecef;
}

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

.video-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

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

.video-card h3 a:hover {
  color: #3498db;
}

.video-card .meta {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 0.5rem;
}

.video-card .oneline {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Video List */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-item {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  border-left: 3px solid #3498db;
  transition: background 0.3s;
}

.video-item:hover {
  background: #e9ecef;
}

.video-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.video-item h3 a {
  color: #2c3e50;
}

.video-item h3 a:hover {
  color: #3498db;
}

.video-item p {
  font-size: 0.95rem;
  color: #666;
}

/* Quick Links */
.quick-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.quick-links li a {
  display: block;
  background: #3498db;
  color: white;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}

.quick-links li a:hover {
  background: #2980b9;
  transform: translateY(-3px);
  color: white;
}

/* List Page */
.list-page {
  padding: 2rem 0;
}

.list-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.page-intro {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.8;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #3498db;
}

.video-list-full {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-item-full {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: box-shadow 0.3s;
  position: relative;
}

.video-item-full:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-item-full .rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #e74c3c;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.video-item-full .year-tag {
  display: inline-block;
  background: #27ae60;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.video-item-full h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.video-item-full h3 a {
  color: #2c3e50;
}

.video-item-full h3 a:hover {
  color: #3498db;
}

.video-item-full .meta {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 0.8rem;
}

.video-item-full .summary {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}

/* Detail Page */
.detail-page {
  padding: 2rem 0;
}

.video-detail h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 1rem;
}

.video-detail section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.video-detail section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  border-left: 4px solid #e74c3c;
}

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

.basic-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 1.05rem;
}

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

.basic-info strong {
  color: #2c3e50;
  min-width: 80px;
  display: inline-block;
}

.one-line p,
.summary p,
.review p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

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

.related-item {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  transition: transform 0.3s, box-shadow 0.3s;
}

.related-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.related-item h3 a {
  color: #2c3e50;
}

.related-item h3 a:hover {
  color: #3498db;
}

.related-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
}

.site-footer p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }
}