/* 只有影视 - 全站样式 */
/* UI风格: 5, 布局变体: G */

:root {
  --theme-hue: 110;
  --primary-color: hsl(var(--theme-hue), 60%, 50%);
  --primary-dark: hsl(var(--theme-hue), 70%, 40%);
  --primary-light: hsl(var(--theme-hue), 70%, 95%);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

  nav ul {
    padding: 0 0.5rem;
  }

  header h1 {
    font-size: 1.5rem !important;
  }

  header p {
    font-size: 0.85rem !important;
  }

  main {
    padding: 0 0.75rem !important;
  }
}

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

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

.video-card h3 a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-color);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

nav a.active {
  color: var(--primary-color);
  font-weight: 600;
  background: var(--primary-light);
}

/* 布局变体 G 特殊样式 */

.video-detail {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

