:root {
  --bg: #0b0b0d;
  --paper: #121318;
  --ink: #f5f5f7;
  --muted: #9fa3ad;
  --line: #1f222a;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 14px 30px rgba(0, 0, 0, 0.4);
  --sun: #ff3b47;
  --coral: #e9303d;
  --teal: #ff6b77;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 0% 0%, #17171d 0%, #0b0b0d 55%, #060607 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color-scheme: dark;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

h1,
h2,
h3,
.logo {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.8px;
  margin: 0;
}

main {
  width: min(1200px, 92vw);
  margin: 0 auto 80px;
  padding-top: 40px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 0;
  background: transparent;
}

.header-shell {
  width: min(1300px, 96vw);
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.96);
  border: 1px solid rgba(31, 34, 42, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-size: 26px;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo--header {
  font-size: 36px;
}

.logo-text {
  text-shadow: none;
  transition: letter-spacing 0.2s var(--ease);
}

.logo:hover .logo-text {
  letter-spacing: 0.14em;
}

.logo--header .logo-text {
  text-shadow: 0 0 12px rgba(233, 48, 61, 0.5),
    0 0 24px rgba(233, 48, 61, 0.25);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.45),
    rgba(233, 48, 61, 0.25) 45%,
    rgba(12, 14, 18, 0.9) 70%
  );
  border: 1px solid rgba(233, 48, 61, 0.55);
  box-shadow: 0 0 16px rgba(233, 48, 61, 0.55);
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav a {
  position: relative;
  padding: 8px 2px;
  color: #c7cad4;
  border-bottom: none;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--coral);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav a.is-active,
.nav a:hover {
  color: var(--ink);
}

.nav a.is-active::after,
.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-inline {
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 420px;
  flex: 1 1 320px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  padding: 6px 10px;
  position: relative;
}

.search-icon,
.filter-icon {
  color: #cfd2da;
  display: inline-flex;
}

.search-pill input {
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  width: 100%;
  outline: none;
}

.search-pill input::placeholder {
  color: #6f7480;
}

.search-filter {
  border: 1px solid #1f222a;
  background: #11141c;
  color: #e5e7ee;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.search-filter:hover {
  border-color: var(--coral);
  color: #fff;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #0f1117;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 30;
}

.search-dropdown.is-open {
  display: block;
}

.search-item {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
}

.search-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.search-thumb {
  width: 44px;
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(233, 48, 61, 0.35), rgba(60, 60, 90, 0.4));
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.search-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.search-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.search-score {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(233, 48, 61, 0.2);
  border: 1px solid rgba(233, 48, 61, 0.4);
}

.search-empty {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 10px 6px;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #1f222a;
  background: #0f1117;
  color: #d6d9e0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: var(--coral);
  color: #fff;
}

.lang-pill {
  border: 1px solid #1f222a;
  background: #0f1117;
  color: #cdd0d8;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.lang-pill.is-active {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.btn {
  border: none;
  min-height: 36px;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.btn-primary {
  background: #e9303d;
  color: #fff;
  box-shadow: 0 10px 20px rgba(233, 48, 61, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #e2e4ea;
  padding: 9px 10px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(130deg, #111218 0%, #0c0d12 45%, #16171d 100%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 16px;
}

.hero p {
  max-width: 520px;
}

.meta {
  display: flex;
  gap: 10px;
  margin: 18px 0 24px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.badge-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: rgba(18, 19, 24, 0.8);
  border: 1px solid rgba(31, 34, 42, 0.9);
  border-radius: 18px;
  padding: 12px 14px;
}

.stat-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.hero-poster {
  display: flex;
  justify-content: center;
  align-items: center;
}

.poster-art {
  width: min(360px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0b0c12, #1a1d27);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.poster-art::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto -30%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
  transform: rotate(12deg);
}

.poster-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0) 0%, rgba(16, 24, 40, 0.8) 100%);
  color: #fff;
}

.poster-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #ff8a96;
}

.poster-title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 6px;
}

.section {
  margin-top: 50px;
}

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

.section-header h2 {
  font-size: 32px;
}

.link {
  font-size: 14px;
  color: var(--coral);
  font-weight: 600;
}

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

.chip {
  border: 1px solid var(--line);
  background: #111319;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.chip.is-active,
.chip:hover {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.chip-large {
  padding: 10px 20px;
  font-size: 14px;
}

.ribbon {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.ribbon::-webkit-scrollbar {
  height: 8px;
}

.ribbon::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.05);
  z-index: 1;
  transition: transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    border-color 0.4s var(--ease);
  will-change: transform;
  scroll-snap-align: start;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(233, 48, 61, 0.2);
  border-color: var(--coral);
  z-index: 10;
}

.card--wide .card-art {
  height: 150px;
}

.card-art {
  height: 150px;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}


.card-body {
  padding: 14px 16px 18px;
  display: grid;
  gap: 6px;
}

.card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: color 0.3s ease;
}

.card-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(233, 48, 61, 0.9);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(233, 48, 61, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.card:hover::after {
  left: 150%;
  transition: left 0.8s var(--ease);
}

.card:hover .card-title {
  color: var(--coral);
}

.card:hover .card-title::before {
  transform: rotate(45deg) scale(1.08);
  box-shadow: 0 0 12px rgba(233, 48, 61, 0.6);
}

.card-meta {
  font-size: 13px;
  color: var(--muted);
}

.progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, #ff3b47, #ff7a84);
  transition: filter 0.6s ease-in-out;
}

.card:hover .progress span {
  filter: brightness(1.3);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.genre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.collection {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.collection-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 4vw 30px;
  background: rgba(12, 13, 18, 0.95);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.footer-grid a {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-bottom {
  width: min(1200px, 92vw);
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

.bg-shape {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.22;
  z-index: -1;
  animation: float 16s ease-in-out infinite;
}

.shape-1 {
  background: radial-gradient(circle, rgba(233, 48, 61, 0.45), transparent 60%);
  top: -120px;
  left: -80px;
}

.shape-2 {
  background: radial-gradient(circle, rgba(68, 74, 92, 0.55), transparent 60%);
  bottom: -140px;
  right: -120px;
  animation-delay: -4s;
}

.shape-3 {
  background: radial-gradient(circle, rgba(140, 20, 32, 0.45), transparent 60%);
  top: 20vh;
  right: -160px;
  animation-delay: -8s;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

.art-1 {
  background-image: linear-gradient(130deg, #ff9f1c, #ff5d8f);
}

.art-2 {
  background-image: linear-gradient(130deg, #3a86ff, #2ec4b6);
}

.art-3 {
  background-image: linear-gradient(130deg, #f8cdda, #fbd786);
}

.art-4 {
  background-image: linear-gradient(130deg, #43cea2, #185a9d);
}

.art-5 {
  background-image: linear-gradient(130deg, #ff4d6d, #ffd166);
}

.art-6 {
  background-image: linear-gradient(130deg, #f6d365, #fda085);
}

.art-7 {
  background-image: linear-gradient(130deg, #3f87a6, #ebf8e1);
}

.art-8 {
  background-image: linear-gradient(130deg, #ffb347, #ffcc33);
}

.art-9 {
  background-image: linear-gradient(130deg, #ff6b6b, #feca57);
}

.art-10 {
  background-image: linear-gradient(130deg, #f7971e, #ffd200);
}

.art-11 {
  background-image: linear-gradient(130deg, #4facfe, #00f2fe);
}

.art-12 {
  background-image: linear-gradient(130deg, #00b09b, #96c93d);
}

.art-13 {
  background-image: linear-gradient(130deg, #ff9a9e, #fad0c4);
}

.art-14 {
  background-image: linear-gradient(130deg, #a1c4fd, #c2e9fb);
}

.art-15 {
  background-image: linear-gradient(130deg, #ffd3a5, #fd6585);
}

.art-16 {
  background-image: linear-gradient(130deg, #36d1dc, #5b86e5);
}

.art-17 {
  background-image: linear-gradient(130deg, #fdfbfb, #ebedee);
}

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

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
  }

  .search input {
    min-width: 100%;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card,
  .card * {
    transition-duration: 0.5s !important;
  }

  .logo-text {
    transition-duration: 0.2s !important;
  }
}
