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

:root {
  --accent: #f4b400;
  --accent-dark: #d49800;
  --accent-light: #fff3cc;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: rgba(0,0,0,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.18);
  --radius: 14px;
  --nav-h: 68px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
  box-shadow: 0 2px 12px rgba(244,180,0,0.3);
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: #1a1a1a;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-shrink: 0;
}

.nav-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(0,0,0,0.12);
}

.search-wrap {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.1);
  border-radius: 100px;
  padding: 6px 8px 6px 16px;
  gap: 8px;
  min-width: 220px;
  flex: 0 1 280px;
  transition: background 0.18s;
}

.search-wrap:focus-within {
  background: rgba(0,0,0,0.17);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

.search-wrap input {
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #1a1a1a;
  flex: 1;
  min-width: 0;
}

.search-wrap input::placeholder { color: rgba(0,0,0,0.45); }

.search-btn {
  background: #1a1a1a;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.12s;
}

.search-btn:hover { background: #333; transform: scale(1.06); }
.search-btn svg { width: 15px; height: 15px; }

.dark-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.dark-toggle:hover { background: rgba(0,0,0,0.12); }
.dark-toggle svg { width: 20px; height: 20px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 40%, #1a1a1a 100%);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(244,180,0,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 75% 30%, rgba(244,180,0,0.08) 0%, transparent 70%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 88px);
  color: #ffffff;
  letter-spacing: 3px;
  line-height: 0.95;
  margin-bottom: 20px;
}

.hero-title span { color: var(--accent); }

.hero-sub {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  font-weight: 300;
  max-width: 360px;
  margin: 0 auto;
}

/* ── CONTENT ── */
.content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 1.5px;
  color: var(--text);
}

.count-badge {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0,0,0,0.06);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ── GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ── CARD ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.28s;
  position: relative;
}

.card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8e8e4;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
  display: block;
}

.card:hover .card-img-wrap img { transform: scale(1.07); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity 0.28s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

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

.card-overlay-title {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.card-body {
  padding: 14px 16px 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent-dark);
  text-transform: uppercase;
}

.tag.cosplay { background: #fce4ec; color: #ad1457; }
.tag.album   { background: #e3f2fd; color: #1565c0; }
.tag.popular { background: var(--accent-light); color: var(--accent-dark); }

.card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 12px;
}

.card-meta .res {
  background: #1a1a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ── LOAD MORE ── */
.load-more-wrap {
  text-align: center;
  margin-top: 52px;
}

.load-more-btn {
  background: none;
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.load-more-btn:hover {
  background: #1a1a1a;
  color: #fff;
  transform: translateY(-2px);
}

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

.empty-state p { color: var(--text-muted); font-size: 16px; }
.empty-state .big { font-size: 48px; margin-bottom: 12px; }

/* ── DARK MODE ── */
body.dark {
  --bg: #111111;
  --surface: #1e1e1e;
  --text: #f0f0f0;
  --text-muted: #888888;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.6);
  --accent-light: #2a2200;
  --accent-dark: #f4b400;
}

body.dark .tag { filter: brightness(0.9); }
body.dark .card-meta .res { background: var(--accent); color: #1a1a1a; }
body.dark .count-badge { background: rgba(255,255,255,0.08); }
body.dark .load-more-btn { border-color: rgba(255,255,255,0.3); color: #f0f0f0; }
body.dark .load-more-btn:hover { background: rgba(255,255,255,0.1); }

/* ── MOBILE NAV ── */
@media (max-width: 720px) {
  nav { padding: 0 16px; gap: 12px; }
  .nav-links { display: none; }
  .search-wrap { min-width: 0; flex: 1; }
}

/* ── SKELETON ── */
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e8e8e4 25%, #f2f2f0 50%, #e8e8e4 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
body.dark .skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #333333 50%, #2a2a2a 75%);
  background-size: 600px 100%;
}
