/* ============================================
   美丽南田 - 歌曲MV视频播放界面
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #2D6A4F;
  --color-primary-light: #40916C;
  --color-primary-dark: #1B3A2D;
  --color-secondary: #F5F0E8;
  --color-accent: #C4956A;
  --color-accent-light: #D4B48C;
  --color-text: #1B3A2D;
  --color-text-light: #5A7A6A;
  --color-bg-start: #F5F0E8;
  --color-bg-end: #E8F0EC;
  --color-white: #FFFFFF;
  --color-shadow: rgba(45, 106, 79, 0.12);
  --color-shadow-hover: rgba(45, 106, 79, 0.2);
  --color-border: rgba(45, 106, 79, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: linear-gradient(160deg, var(--color-bg-start) 0%, var(--color-bg-end) 100%);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Container */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Header ========== */
.site-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.header-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.deco-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  border-radius: 1px;
}

.deco-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.7;
}

.site-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.site-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  border-radius: 2px;
}

.site-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--color-text-light);
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* ========== Video Grid ========== */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.video-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--color-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px var(--color-shadow-hover);
}

.video-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-border);
}

.video-label .label-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.video-label .label-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(196, 149, 106, 0.12);
  padding: 2px 10px;
  border-radius: 20px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrapper video,
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* ========== Score / Lyrics Section ========== */
.score-section {
  max-width: 900px;
  margin: 0 auto;
}

.score-header {
  text-align: center;
  margin-bottom: 28px;
}

.score-header .deco-line {
  margin: 0 auto;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.score-header h2 {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin: 16px 0 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.score-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.score-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.score-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--color-shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.score-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 36px var(--color-shadow-hover);
}

.score-card img {
  width: 100%;
  height: auto;
  display: block;
}

.score-download {
  text-align: center;
  margin-top: 28px;
}

.download-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.download-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ========== Lightbox ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ========== Footer ========== */
.site-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

/* ========== Responsive ========== */
/* Desktop: two columns */
@media (min-width: 768px) {
  .page-container {
    padding: 40px 24px 60px;
  }

  .video-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }

  .site-header {
    margin-bottom: 48px;
  }

  .header-decoration {
    gap: 16px;
    margin-bottom: 20px;
  }

  .video-label {
    padding: 16px 20px 12px;
    font-size: 1rem;
  }

  .score-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.6rem;
  }
  
  .deco-line {
    width: 40px;
  }
}