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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f8f9fa;
  color: #212529;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0052a3;
  text-decoration: underline;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1em;
}

/* Navigation */
.nav-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 1rem 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid #e9ecef;
  transition: background 0.2s ease;
}

.nav-container a:last-child {
  border-right: none;
}

.nav-container a:hover {
  background: #f8f9fa;
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-container {
    overflow-x: visible;
    overflow-y: visible;
  }

  .nav-container a {
    padding: 0.8rem 0.4rem;
    font-size: 0.85rem;
    min-width: 0;
  }
}

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

/* Headers */
.site-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 2px solid #dee2e6;
}

.logo {
  font-size: 2.5rem;
  color: #212529;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.1rem;
  color: #6c757d;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #dee2e6;
}

.page-header p {
  color: #6c757d;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Sections */
section {
  margin-bottom: 3rem;
}

section h2 {
  margin-bottom: 1rem;
  color: #212529;
}

.site-intro {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

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

.video-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.video-card h3 a:hover {
  color: #0066cc;
}

.video-meta {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.video-genre {
  color: #495057;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.video-desc {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Detail Page */
.detail-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.basic-info {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #dee2e6;
}

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

.info-item {
  padding: 0.5rem 0;
}

.info-item strong {
  color: #495057;
  margin-right: 0.5rem;
}

.one-line {
  background: #e7f3ff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border-left: 4px solid #0066cc;
}

.one-line p {
  font-size: 1.1rem;
  color: #212529;
  margin: 0;
}

.summary, .review {
  margin-bottom: 2rem;
}

.summary p, .review p {
  font-size: 1rem;
  line-height: 1.8;
  color: #495057;
  text-align: justify;
}

.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #dee2e6;
}

/* More Links */
.more-links ul {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.more-links li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
}

.more-links li:last-child {
  border-bottom: none;
}

.more-links a {
  font-weight: 500;
}

/* Footer */
footer {
  background: #212529;
  color: #adb5bd;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: auto;
}

footer p {
  margin: 0;
}

/* UI Style Variations */
body.ui-style-0 { --primary: #212529; --accent: #0066cc; }
body.ui-style-1 { --primary: #2c3e50; --accent: #3498db; }
body.ui-style-2 { --primary: #1a1a1a; --accent: #e74c3c; }
body.ui-style-3 { --primary: #34495e; --accent: #16a085; }
body.ui-style-4 { --primary: #2c2c2c; --accent: #f39c12; }
body.ui-style-5 { --primary: #2f4f4f; --accent: #20b2aa; }
body.ui-style-6 { --primary: #483d8b; --accent: #9370db; }
body.ui-style-7 { --primary: #8b4513; --accent: #cd853f; }
body.ui-style-8 { --primary: #191970; --accent: #00bfff; }
body.ui-style-9 { --primary: #2e8b57; --accent: #90ee90; }
body.ui-style-10 { --primary: #4b0082; --accent: #9966cc; }
body.ui-style-11 { --primary: #800020; --accent: #dc143c; }
body.ui-style-12 { --primary: #1c1c1c; --accent: #ff6347; }
body.ui-style-13 { --primary: #556b2f; --accent: #9acd32; }
body.ui-style-14 { --primary: #8b4789; --accent: #dda0dd; }
body.ui-style-15 { --primary: #2f4858; --accent: #33658a; }
