:root {
  --bg: #0f0e0c;
  --bg2: #1a1815;
  --bg3: #242018;
  --fg: #e8dcc8;
  --fg2: #b8a88a;
  --fg3: #8a7a62;
  --accent: #c8956c;
  --accent2: #a87848;
  --accent3: #e8b888;
  --red: #c85a4a;
  --red2: #a84838;
  --green: #6a9a5a;
  --border: #3a3228;
  --shadow: rgba(0,0,0,0.4);
  --radius: 8px;
  --radius-lg: 16px;
  --font-display: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  --font-body: 'Noto Serif SC', serif;
}

[data-theme="light"] {
  --bg: #f5f0e8;
  --bg2: #ebe4d6;
  --bg3: #ddd4c4;
  --fg: #2a2418;
  --fg2: #5a4e3a;
  --fg3: #8a7a62;
  --accent: #b07840;
  --accent2: #8a5a28;
  --accent3: #c89050;
  --red: #b84838;
  --red2: #983828;
  --green: #4a8a3a;
  --border: #c8b898;
  --shadow: rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-image { height: 36px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.nav-item {
  color: var(--fg2);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent);
  background: var(--bg2);
}

.nav-sep {
  color: var(--fg3);
  font-size: 0.7rem;
  user-select: none;
}

.nav-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 0.3rem;
}

.nav-highlight {
  color: var(--accent3);
  font-weight: 700;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 140px;
  z-index: 200;
  padding: 0.4rem 0;
  box-shadow: 0 8px 24px var(--shadow);
}

.nav-dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
  display: block;
  padding: 0.4rem 1rem;
  color: var(--fg2);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.dropdown-content a:hover {
  color: var(--accent);
  background: var(--bg3);
}

.header-right { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--fg2);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.icon-moon { display: none; }
.icon-sun { display: block; }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.fold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--accent2), var(--border), transparent);
  margin: 2.5rem 0;
  position: relative;
}

.fold-line::after {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: -2.5px;
  left: 50%;
  transform: translateX(-50%);
  content: '';
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.seal-mark {
  display: inline-block;
  background: var(--red);
  color: #f5f0e8;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--fg);
  letter-spacing: 0.05em;
}

.section-sub {
  font-size: 0.75rem;
  color: var(--fg3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Opening */
.opening {
  padding: 2rem 0 1rem;
}

.opening-featured {
  display: grid;
  grid-template-columns: 398px 1fr;
  gap: 1.5rem;
  min-height: 620px;
}

.opening-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  border: 1px solid var(--border);
  min-height: 620px;
}

.opening-hero:hover { transform: translateY(-4px); }

.opening-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opening-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 120px;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.opening-hero-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #f5f0e8;
  margin-bottom: 0.3rem;
}

.opening-hero-desc {
  font-size: 0.85rem;
  color: #d0c8b0;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.opening-hero-meta {
  font-size: 0.8rem;
  color: #b8a88a;
}

.opening-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    background: linear-gradient(#00000094, rgba(0, 0, 0, 0.9));
}

.opening-hero-tag {
  font-size: 0.7rem;
  color: #c9a55c;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
}

.opening-hero-chapters {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.hero-chapter-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  text-decoration: none;
  color: #e8e0d0;
  transition: background 0.2s;
}

.hero-chapter-item:hover {
  background: rgba(255,255,255,0.2);
}

.hero-chapter-num {
  font-size: 0.7rem;
  color: #c9a55c;
  font-weight: 700;
  min-width: 20px;
}

.hero-chapter-name {
  flex: 1;
  font-size: 0.85rem;
}

.hero-chapter-pages {
  font-size: 0.75rem;
  color: #a89878;
}

.opening-hero-meta {
  font-size: 0.8rem;
  color: #b8a88a;
}

.opening-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    background: linear-gradient(#000000b8, rgba(0, 0, 0, 0.9));
}

.opening-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.opening-side-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  min-height: 190px;
}

.opening-side-card:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: 0 8px 24px var(--shadow);
}

.opening-side-card img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.opening-side-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.opening-side-tag {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.opening-side-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opening-side-desc {
  font-size: 0.85rem;
  color: var(--fg3);
}
.opening-side-work {
  font-size: 0.8rem;
  color: var(--fg2);
  margin-top: 2px;
  padding-left: 4px;
  border-left: 2px solid var(--accent);
}

/* Featured */
.featured-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.5rem;
}

.featured-scroll {
  display: flex;
  gap: 1.2rem;
  padding: 0.5rem 0;
}

.featured-card {
  flex: 0 0 280px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.featured-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px var(--shadow);
}

.featured-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.featured-card-body { padding: 1rem; }

.featured-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.featured-card-desc {
  font-size: 0.8rem;
  color: var(--fg3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.featured-card-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: var(--fg3);
}

.featured-card-meta span {
  background: var(--bg3);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}

/* Manga Masonry */
.manga-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.manga-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.manga-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px var(--shadow);
}

.manga-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.manga-card-body { padding: 1rem; }

.manga-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.manga-card-meta {
  font-size: 0.8rem;
  color: var(--fg3);
}

.manga-entry {
  text-align: center;
  margin-top: 1.5rem;
}

.entry-link {
  display: inline-block;
  padding: 0.6rem 2rem;
  background: var(--accent);
  color: #f5f0e8;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s;
}

.entry-link:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}

/* Chapter Grid */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.chapter-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.chapter-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--shadow);
}

.chapter-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.chapter-card-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--red);
  color: #f5f0e8;
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 700;
}

.chapter-card-body { padding: 0.8rem; }

.chapter-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-card-meta {
  font-size: 0.75rem;
  color: var(--fg3);
}

/* Film Container */
.film-container {
  display: flex;
  gap: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.film-sprockets {
  width: 16px;
  background: repeating-linear-gradient(
    180deg,
    var(--bg3) 0px,
    var(--bg3) 8px,
    transparent 8px,
    transparent 16px
  );
  flex-shrink: 0;
}

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

.film-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.film-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px var(--shadow);
}

.film-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.film-card:hover .film-card-img {
  transform: scale(1.05);
}

.film-card-body { padding: 1.2rem; }

.film-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.film-card-author {
  font-size: 0.85rem;
  color: var(--accent);
}

.film-card-count {
  font-size: 0.8rem;
  color: var(--fg3);
  margin-top: 0.4rem;
}

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

.performer-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.performer-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 12px 32px var(--shadow);
}

.performer-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.performer-card:hover .performer-avatar {
  transform: scale(1.1);
}

.performer-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.performer-role {
  font-size: 0.9rem;
  color: var(--accent);
}

.performer-count {
  font-size: 0.8rem;
  color: var(--fg3);
  margin-top: 0.4rem;
}

.performer-count {
  font-size: 0.75rem;
  color: var(--fg3);
  margin-top: 0.2rem;
}

/* Timeline */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

.timeline-line {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-entry {
  position: relative;
  padding: 0.8rem 0 1.5rem 1.5rem;
}

.timeline-entry::before {
  display: block;
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: -2.1rem;
  top: 1rem;
  border: 2px solid var(--bg);
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--fg3);
  margin-bottom: 0.3rem;
}

.timeline-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.timeline-content:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.timeline-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.timeline-text { flex: 1; min-width: 0; }

.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--fg3);
}

/* Rankings */
.ranking-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.5rem;
}

.ranking-cards {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
}

.ranking-item {
  flex: 0 0 200px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.ranking-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.ranking-num {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #f5f0e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.ranking-item:nth-child(1) .ranking-num { background: #d4a017; }
.ranking-item:nth-child(2) .ranking-num { background: #a0a0a0; }
.ranking-item:nth-child(3) .ranking-num { background: #b87333; }

.ranking-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
}

.ranking-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-meta {
  font-size: 0.75rem;
  color: var(--fg3);
}

/* Scatter / Guess You Like */
.scatter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 1rem 0;
}

.scatter-card {
  width: 160px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow: 2px 3px 8px var(--shadow);
}

.scatter-card:hover {
  transform: rotate(0deg) scale(1.08) translateY(-8px);
  border-color: var(--accent);
  box-shadow: 4px 8px 20px var(--shadow);
  z-index: 10;
}

.scatter-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.scatter-card-body { padding: 0.6rem; }

.scatter-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scatter-card-tag {
  font-size: 0.65rem;
  color: var(--fg3);
}

/* Book / Chapter Index */
.book-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
}

.book-left {
  background: var(--bg3);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.book-spine {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

.book-pages {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-right: 1rem;
}

.book-page-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.book-page-item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.book-page-num {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #f5f0e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

.book-page-info { flex: 1; min-width: 0; }

.book-page-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.book-page-meta {
  font-size: 0.75rem;
  color: var(--fg3);
}

.book-right {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.chapter-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chapter-nav-item {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
}

.chapter-nav-item:hover {
  border-color: var(--accent);
  background: var(--bg2);
}

.chapter-nav-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.chapter-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  flex: 1;
}

.chapter-nav-pages {
  font-size: 0.75rem;
  color: var(--fg3);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  padding: 3rem 1rem 1.5rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-logo {
  height: 32px;
  margin-bottom: 0.2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--fg2);
  font-weight: 600;
}

.footer-brand-desc {
  font-size: 0.8rem;
  color: var(--fg3);
  line-height: 1.6;
  max-width: 280px;
}

.footer-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--fg3);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--accent);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy-left p {
  font-size: 0.75rem;
  color: var(--fg3);
  margin-bottom: 0.3rem;
}

.footer-copy-left a {
  color: var(--fg3);
  text-decoration: none;
  font-size: 0.75rem;
}

.footer-copy-left a:hover {
  color: var(--accent);
}

.footer-copy-right {
  display: flex;
  gap: 1.5rem;
}

.footer-copy-right a {
  color: var(--fg3);
  text-decoration: none;
  font-size: 0.75rem;
}

.footer-copy-right a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .header-container { padding: 0.4rem 0.8rem; }
  .header-nav { gap: 0.15rem; }
  .nav-item { font-size: 0.8rem; padding: 0.2rem 0.4rem; }
  .nav-sep { font-size: 0.6rem; }

  .opening-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .opening-hero { min-height: 200px; }

  .section-title { font-size: 1.4rem; }

  .manga-masonry { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .manga-card-img { height: 200px; }

  .chapter-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .chapter-card-img { height: 120px; }

  .film-gallery { grid-template-columns: 1fr; }
  .film-sprockets { display: none; }

  .performer-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .book-wrapper { grid-template-columns: 1fr; }
  .book-spine { display: none; }
  .book-left { padding: 1.2rem; }
  .book-right { padding: 1.2rem; }

  .scatter-card { width: 130px; }
  .scatter-card img { height: 100px; }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-copy {
    flex-direction: column;
    text-align: center;
  }

  .footer-copy-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .manga-masonry { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .manga-card-img { height: 160px; }
  .chapter-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .performer-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { flex: 0 0 220px; }
  .ranking-item { flex: 0 0 160px; }
}
