/* ============================================
   新阳网海报汇总 - 精致版前端样式
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&family=Noto+Serif+SC:wght@400;600;700;900&display=swap');

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

:root {
  /* Brand Colors - 新阳红 */
  --brand: #C62828;
  --brand-deep: #8E0000;
  --brand-light: #FF5F52;
  --brand-glow: rgba(198, 40, 40, 0.25);
  
  /* Neutral Palette */
  --ink: #1a1a2e;
  --ink-light: #4a4a6a;
  --ink-muted: #8e8ea0;
  --surface: #fafafa;
  --surface-elevated: #ffffff;
  --border: rgba(0,0,0,0.06);
  --border-strong: rgba(0,0,0,0.1);
  
  /* Effects */
  --glass: rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);
  --shadow-glow: 0 0 40px var(--brand-glow);
  
  /* Layout */
  --max-width: 1440px;
  --header-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  
  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 520px;
  background: linear-gradient(165deg, var(--brand-deep) 0%, var(--brand) 40%, #d32f2f 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative Elements */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,95,82,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Hero Pattern Overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* Floating Decorative Posters */
.hero-float-poster {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  opacity: 0.15;
  z-index: 0;
}

.hero-float-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-poster:nth-child(1) {
  width: 140px; height: 310px;
  top: 10%; left: 5%;
  transform: rotate(-8deg);
  animation: poster-float-1 12s ease-in-out infinite;
}

.hero-float-poster:nth-child(2) {
  width: 120px; height: 266px;
  top: 15%; right: 8%;
  transform: rotate(6deg);
  animation: poster-float-2 14s ease-in-out infinite;
}

.hero-float-poster:nth-child(3) {
  width: 100px; height: 222px;
  bottom: 10%; left: 15%;
  transform: rotate(4deg);
  animation: poster-float-3 10s ease-in-out infinite;
}

@keyframes poster-float-1 {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-15px); }
}
@keyframes poster-float-2 {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-20px); }
}
@keyframes poster-float-3 {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-10px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.95);
  padding: 6px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-title span {
  display: inline-block;
  background: linear-gradient(135deg, #fff 0%, #ffd6d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: 'Noto Serif SC', serif;
  font-size: 36px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
  letter-spacing: 1px;
}

/* Hero Wave Bottom */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 3;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}

.navbar.scrolled .navbar-brand {
  color: var(--ink);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 900;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}

.navbar.scrolled .brand-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  border-color: transparent;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
  letter-spacing: 1px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Nav Search */
.nav-search {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.nav-search form {
  display: flex;
  align-items: center;
}

.nav-search-input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 7px 14px;
  border-radius: 10px 0 0 10px;
  font-size: 13px;
  width: 180px;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}

.nav-search-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.nav-search-input:focus {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  width: 220px;
}

.navbar.scrolled .nav-search-input {
  background: var(--bg);
  border-color: var(--border);
  color: var(--ink);
}

.navbar.scrolled .nav-search-input::placeholder {
  color: var(--ink-light);
}

.navbar.scrolled .nav-search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(198,40,40,0.1);
}

.nav-search-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-left: none;
  color: rgba(255,255,255,0.85);
  padding: 7px 12px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-search-btn:hover {
  background: rgba(255,255,255,0.25);
}

.navbar.scrolled .nav-search-btn {
  background: var(--bg);
  border-color: var(--border);
  color: var(--ink-light);
}

.navbar.scrolled .nav-search-btn:hover {
  background: rgba(198,40,40,0.06);
  color: var(--brand);
}

.navbar-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.navbar-links a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

.navbar.scrolled .navbar-links a {
  color: var(--ink-light);
}

.navbar.scrolled .navbar-links a:hover {
  color: var(--brand);
  background: rgba(198,40,40,0.06);
}

.navbar-links .btn-admin {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}

.navbar.scrolled .navbar-links .btn-admin {
  background: var(--ink);
  color: white;
  border-color: transparent;
}

/* ============ FILTERS ============ */
.filter-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 32px 0;
}

.filter-wrapper {
  background: var(--surface-elevated);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 8px 20px;
  border-radius: 24px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--ink-light);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px var(--brand-glow);
  transform: translateY(-1px);
}

/* ============ RESULTS HEADER ============ */
.results-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 32px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.results-count {
  font-size: 14px;
  color: var(--ink-muted);
}

.results-count strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
}

/* ============ POSTER GRID ============ */
.poster-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 32px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    padding: 20px 20px 40px;
  }
}

/* Tablet: hide inline search, keep links compact */
@media (max-width: 900px) {
  .nav-search {
    display: none;
  }
  .navbar-inner {
    padding: 0 20px;
  }
}

/* ===== Mobile Header Redesign (≤768px) ===== */
@media (max-width: 768px) {
  /* Navbar: solid red gradient, always visible */
  .navbar {
    background: linear-gradient(165deg, var(--brand-deep) 0%, var(--brand) 40%, #d32f2f 100%);
  }
  .navbar.scrolled {
    background: linear-gradient(165deg, var(--brand-deep) 0%, var(--brand) 40%, #d32f2f 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Ensure brand and links stay white on mobile */
  .navbar-brand,
  .navbar-links a {
    color: white !important;
  }
  .brand-icon {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
  }
  .brand-sub {
    display: none;
  }
  .navbar-inner {
    padding: 0 16px;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .brand-text {
    font-size: 16px;
    white-space: nowrap;
  }
  /* Hide "全部海报" and "管理后台" on mobile nav */
  .navbar-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 12px 32px;
  }
  
  .filter-wrapper {
    padding: 20px;
  }

  /* Navbar further compact */
  .navbar-inner {
    padding: 0 12px;
    gap: 6px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
    border-radius: 8px;
  }
  .brand-text {
    font-size: 15px;
  }

  /* Mobile search: seamlessly connected to navbar and hero */
  .mobile-search {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 999;
    padding: 8px 14px;
    background: linear-gradient(165deg, #d32f2f 0%, #C62828 40%, #b71c1c 100%);
  }
  .mobile-search form {
    display: flex;
    gap: 0;
  }
  .mobile-search input {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    background: rgba(255,255,255,0.12);
    color: white;
  }
  .mobile-search input::placeholder {
    color: rgba(255,255,255,0.5);
  }
  .mobile-search input:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.18);
  }
  .mobile-search button {
    padding: 9px 14px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    border-left: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 14px;
  }

  /* Hero: push content below fixed navbar + search bar */
  .hero {
    padding-top: 130px;
  }
}

/* ============ POSTER CARD ============ */
.poster-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-elevated);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.poster-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

/* Thumbnail */
.poster-thumb-wrap {
  position: relative;
  padding-top: 222.22%;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5, #ebebeb);
}

.poster-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.poster-card:hover .poster-thumb {
  transform: scale(1.05);
}

/* Overlay on hover */
.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0,0,0,0.02) 60%,
    rgba(0,0,0,0.6) 100%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.poster-card:hover .poster-overlay {
  opacity: 1;
}

.poster-overlay-text {
  color: white;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  max-height: 60px;
  overflow: hidden;
}

/* Featured badge */
.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #5D3A00;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255,215,0,0.4);
  z-index: 2;
}

/* Category tag */
.poster-cat-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 2;
}

/* Multi-image badge */
.poster-multi-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 8px;
  z-index: 2;
}

/* Card Info */
.poster-card-info {
  padding: 14px 16px;
}

.poster-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

.poster-card-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-muted);
  opacity: 0.5;
}

/* Year divider in grid */
.year-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 0 4px;
}

.year-heading h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.year-heading-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
  border-radius: 1px;
}

.year-heading-count {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
  animation: scaleIn 0.4s var(--ease-spring);
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-caption {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10001;
}

.lightbox-caption-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.lightbox-caption-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.lightbox-counter {
  position: fixed;
  top: 28px;
  left: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  z-index: 10001;
}

/* ============ LOAD MORE ============ */
.load-more-wrap {
  grid-column: 1 / -1;
  text-align: center;
  padding: 20px 0;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 42px;
  background: var(--surface-elevated);
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.5px;
}

.load-more-btn:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--brand-glow);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============ EMPTY STATE ============ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--ink-muted);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 48px 32px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer-brand h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 2;
}

.footer-brand a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer-brand a:hover {
  color: white;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ============ SCROLL TO TOP ============ */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--ease);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 100;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--brand);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============ LOADING ============ */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(198,40,40,0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ ANIMATIONS ============ */
.poster-card {
  animation: cardEnter 0.5s var(--ease-out) backwards;
}

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

/* Staggered entrance */
.poster-card:nth-child(1) { animation-delay: 0.02s; }
.poster-card:nth-child(2) { animation-delay: 0.04s; }
.poster-card:nth-child(3) { animation-delay: 0.06s; }
.poster-card:nth-child(4) { animation-delay: 0.08s; }
.poster-card:nth-child(5) { animation-delay: 0.10s; }
.poster-card:nth-child(6) { animation-delay: 0.12s; }
.poster-card:nth-child(7) { animation-delay: 0.14s; }
.poster-card:nth-child(8) { animation-delay: 0.16s; }

/* ===== Filter Section (wrappers) ===== */
.filter-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 32px 0;
}

.filter-wrapper {
  background: var(--surface-elevated);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  min-width: 36px;
}

.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--ink-light);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.filter-tag:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.filter-tag.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px var(--brand-glow);
  transform: translateY(-1px);
}

/* ===== Poster Grid Container ===== */
.poster-grid-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.poster-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 8px;
}

.poster-grid-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

/* ===== Load More (wrapper) ===== */
.load-more {
  text-align: center;
  padding: 24px 0 48px;
}

/* ===== Footer (complete redesign) ===== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  margin-top: 60px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--brand-light), var(--brand));
}

.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 32px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-col-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.5);
}

.footer-links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-grid a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  padding: 2px 0;
}

.footer-links-grid a:hover {
  color: white;
  padding-left: 4px;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.fc-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-copyright span {
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

.footer-tech {
  font-style: italic;
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 20px 24px;
  }
  .footer-brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.7;
  }
  .footer-col-title {
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  .footer-links-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  .footer-links-grid a {
    font-size: 12px;
  }
  .footer-contact-list {
    gap: 8px;
  }
  .footer-contact-list li {
    font-size: 12px;
    gap: 8px;
  }
  .fc-icon {
    font-size: 13px;
    width: 18px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 14px 20px;
    gap: 4px;
  }
  .footer {
    margin-top: 40px;
  }
  .filter-section {
    padding: 16px 12px 0;
  }
  .filter-wrapper {
    padding: 16px;
  }
  .filter-group {
    gap: 8px;
  }
  .poster-grid-container {
    padding: 0 12px;
  }
  .poster-grid-header {
    padding: 16px 0 4px;
  }
}

/* ============ Font Awesome Icon Adjustments ============ */
.nav-search-btn i { font-size: 14px; }
.mobile-search button i { font-size: 16px; }
.hero-badge i { margin-right: 4px; font-size: 12px; }
.scroll-top-btn { display: flex; align-items: center; justify-content: center; }
.scroll-top-btn i { font-size: 18px; }
.fc-icon i { font-size: 14px; color: rgba(255,255,255,0.6); }
