/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* UI Style: Warm Entertainment (Index 12) */
.ui-warm-entertainment {
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --accent-color: #ffc107;
  --text-color: #2c3e50;
  --bg-color: #fff8f0;
  --card-bg: #ffffff;
  --border-color: #ffe0cc;
}

body.ui-warm-entertainment {
  background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
  color: var(--text-color);
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.site-header .site-logo {
  text-align: center;
  padding: 0.5rem 1rem;
}

.site-logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(255, 107, 53, 0.2);
}

.nav-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

.nav-main a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  background: linear-gradient(135deg, #fff 0%, #ffe8d6 100%);
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-main a:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

@media (max-width: 768px) {
  .nav-main {
    justify-content: flex-start;
  }

  .nav-main a {
    padding: 0.5rem 0.8rem;
    font-size: 13px;
    flex-shrink: 0;
  }
}

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

  .nav-main a {
    padding: 0.5rem 0.7rem;
    font-size: 12px;
  }
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: var(--primary-color);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero-intro {
  background: linear-gradient(135deg, var(--card-bg) 0%, #fff8f0 100%);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
  margin-bottom: 3rem;
  border: 2px solid var(--border-color);
}

.hero-intro h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(255, 107, 53, 0.1);
}

.lead-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

.lead-text a {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-color);
}

/* Page Intro */
.page-intro {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.1);
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--primary-color);
}

.page-intro h1 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

/* Sections */
.featured-section,
.channel-section,
.topic-highlight,
.category-section,
.topic-section {
  margin-bottom: 3rem;
}

.featured-section h2,
.channel-section h2,
.topic-highlight h2,
.category-section h2,
.topic-section h2 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.content-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
  border-color: var(--accent-color);
}

.content-card h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.content-card h3 a:hover {
  color: var(--secondary-color);
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.year {
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  color: #666;
  border-radius: 12px;
  font-size: 0.85rem;
}

.content-card p {
  color: #555;
  line-height: 1.7;
}

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

.channel-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
  border-color: var(--primary-color);
}

.channel-card h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.channel-card p {
  color: #555;
  line-height: 1.7;
}

.channel-card a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Topic List */
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.topic-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
  border-left: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.topic-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.15);
}

.topic-item h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.topic-item p {
  color: #555;
  line-height: 1.7;
}

/* List Items */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.list-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.list-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.15);
  border-color: var(--accent-color);
}

.list-item h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.list-item p {
  color: #555;
  line-height: 1.7;
}

/* Ranking List */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ranking-item {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
  border-color: var(--accent-color);
}

.rank-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.rank-content {
  flex: 1;
}

.rank-content h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.recommendation {
  color: #555;
  line-height: 1.8;
  margin-top: 1rem;
}

/* Topic Section */
.topic-intro {
  background: #fff8f0;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--secondary-color);
}

.topic-intro p {
  color: #555;
  line-height: 1.8;
}

/* Update List */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.update-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid var(--secondary-color);
}

.update-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.15);
}

.update-time {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--accent-color);
  color: white;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.update-item h2 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

/* Video Detail */
.video-detail {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.1);
}

.video-detail h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 1rem;
}

.video-info,
.video-summary,
.video-analysis,
.related-videos {
  margin-bottom: 2.5rem;
}

.video-info h2,
.video-summary h2,
.video-analysis h2,
.related-videos h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

.info-item {
  padding: 0.8rem;
  background: #fff8f0;
  border-radius: 8px;
  font-size: 0.95rem;
}

.highlight-text {
  padding: 1rem;
  background: linear-gradient(135deg, #fff8f0 0%, #ffe8d6 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  font-weight: 500;
  color: #333;
}

.video-summary p,
.video-analysis p {
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
}

/* Related Videos */
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-item {
  background: #fff8f0;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.related-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.15);
  border-color: var(--accent-color);
}

.related-item h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.related-item p {
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 2rem 1rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content p {
  margin: 0.5rem 0;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-intro {
    padding: 2rem 1.5rem;
  }

  .hero-intro h1 {
    font-size: 1.6rem;
  }

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

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

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

  .ranking-item {
    flex-direction: column;
    gap: 1rem;
  }

  .rank-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .video-detail {
    padding: 1.5rem;
  }

  .video-detail h1 {
    font-size: 1.6rem;
  }

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

  .related-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-content {
    margin: 1rem auto;
  }

  .hero-intro h1,
  .page-intro h1 {
    font-size: 1.4rem;
  }

  .lead-text,
  .intro-text {
    font-size: 0.95rem;
  }
}