/* ==========================================================================
   AO3 · robloxgame.cn
   Dark cinematic landing page
   ========================================================================== */

/* ===== 1. Reset & tokens ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0ea5e9;
  --primary-light: #38bdf8;
  --primary-dark: #0369a1;
  --accent: #22d3ee;
  --accent-soft: #67e8f9;
  --green: #10b981;
  --ao3: #e11d48;
  --ao3-soft: #fb7185;
  --dark: #0c1424;
  --dark-2: #0d1728;
  --dark-3: #08101d;
  --card: #111f34;
  --card-hover: #172942;
  --white: #f8fafc;
  --text: #dbe7f5;
  --gray: #94a3b8;
  --gray-dark: #64748b;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(34, 211, 238, 0.3);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.5);
  --glow: 0 0 70px rgba(14, 165, 233, 0.24);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  background: var(--dark);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 12% 0%, rgba(14, 165, 233, 0.12), transparent 65%),
    radial-gradient(ellipse 55% 45% at 90% 30%, rgba(16, 185, 129, 0.06), transparent 65%);
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

::selection {
  background: rgba(34, 211, 238, 0.28);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #08101d;
}

::-webkit-scrollbar-thumb {
  background: #1c3350;
  border: 2px solid #08101d;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #294866;
}

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

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

h1,
h2,
h3,
h4,
h5,
p {
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== 2. Utilities ===== */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 10px 18px;
  background: var(--accent);
  color: #04121f;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ===== 3. Announcement ===== */
.announce {
  position: relative;
  z-index: 1001;
  overflow: hidden;
  padding: 8px 0;
  background: linear-gradient(90deg, #075985 0%, #0ea5e9 48%, #0891b2 100%);
  color: #e0f2fe;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.announce::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-22deg);
  animation: announce-shine 7s ease-in-out infinite;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.announce-badge {
  padding: 1px 7px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.announce-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announce a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.announce a svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.announce a:hover svg {
  transform: translateX(3px);
}

@keyframes announce-shine {
  0%,
  55% {
    left: -30%;
  }
  80%,
  100% {
    left: 125%;
  }
}

/* ===== 4. Header & navigation ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(9, 16, 29, 0.74);
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.header.scrolled {
  background: rgba(7, 14, 26, 0.94);
  border-bottom-color: rgba(34, 211, 238, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.36);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.25s;
}

body.nav-open .header .logo {
  opacity: 0;
  pointer-events: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 55%, var(--green) 120%);
  color: #04121f;
  box-shadow: 0 5px 20px rgba(14, 165, 233, 0.38);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.logo-mark svg {
  width: 21px;
  height: 21px;
  margin-left: 2px;
}

.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.05);
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.46);
}

.logo-word {
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.logo-word span {
  color: var(--accent);
}

.logo-tag {
  padding: 2px 7px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 5px;
  color: #7dd3fc;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.nav-link {
  position: relative;
  padding: 5px 0;
  color: #c2d0e2;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #04121f !important;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 7px 22px rgba(14, 165, 233, 0.24);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.nav-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.4);
}

.nav-cta:hover svg {
  transform: translateX(3px);
}

.mobile-toggle {
  display: none;
  position: relative;
  z-index: 12;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #e2e8f0;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(2, 6, 13, 0.66);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-scrim.show {
  opacity: 1;
}

/* ===== 5. Buttons & section headers ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.3s, color 0.3s, background 0.3s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #04121f;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.4);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.07);
  transform: translateY(-3px);
}

.btn.is-saved {
  background: linear-gradient(135deg, var(--green), #34d399);
  color: #04121f;
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.24);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.32em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-tag::before,
.section-tag::after {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7));
}

.section-tag::after {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.7), transparent);
}

.section-title {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.section-desc {
  max-width: 590px;
  margin: 14px auto 0;
  color: var(--gray);
  font-size: 14.5px;
}

section {
  position: relative;
  padding: 94px 0;
}

/* ===== 6. Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  min-height: clamp(640px, 80vh, 820px);
  padding: 110px 0 150px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 55% at 16% 22%, rgba(14, 165, 233, 0.22), transparent 58%),
    radial-gradient(ellipse 48% 46% at 86% 68%, rgba(16, 185, 129, 0.14), transparent 58%),
    linear-gradient(158deg, #0c1424 0%, #0d2038 54%, #0c1424 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 52% 42%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 52% 42%, #000 10%, transparent 78%);
}

.hero-glow {
  position: absolute;
  right: 4%;
  top: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.13), transparent 66%);
  filter: blur(20px);
  transform: translateY(-50%);
}

.orbit {
  position: absolute;
  top: 50%;
  right: -110px;
  border: 1px solid rgba(34, 211, 238, 0.13);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 12%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px 4px rgba(34, 211, 238, 0.5);
}

.orbit-1 {
  width: 720px;
  height: 720px;
  animation: orbit-spin 42s linear infinite;
}

.orbit-2 {
  width: 520px;
  height: 520px;
  right: -10px;
  border-style: dashed;
  border-color: rgba(56, 189, 248, 0.12);
  animation: orbit-spin-reverse 34s linear infinite;
}

.orbit-2::after {
  top: auto;
  bottom: 8%;
  left: auto;
  right: 22%;
  width: 4px;
  height: 4px;
  opacity: 0.7;
}

.orbit-3 {
  width: 330px;
  height: 330px;
  right: 85px;
  border-color: rgba(16, 185, 129, 0.12);
  animation: orbit-spin 26s linear infinite;
}

.orbit-3::after {
  display: none;
}

@keyframes orbit-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes orbit-spin-reverse {
  to {
    transform: translateY(-50%) rotate(-360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 790px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px 6px 10px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.08);
  color: #bae6fd;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.eyebrow-sep {
  width: 1px;
  height: 10px;
  background: rgba(148, 163, 184, 0.35);
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse-dot 2.4s ease-out infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 211, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

.hero h1 {
  margin: 24px 0;
  color: #fff;
  font-size: clamp(2.75rem, 6.4vw, 5.05rem);
  font-weight: 900;
  line-height: 1.09;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
}

.hero h1 .hl {
  position: relative;
  display: inline-block;
  padding-bottom: 0.08em;
  background: linear-gradient(112deg, #a5f3fc 0%, #67e8f9 35%, #22d3ee 68%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.02em;
  height: 0.075em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.75), rgba(14, 165, 233, 0));
  opacity: 0.7;
}

.hero-sub {
  max-width: 720px;
  color: #b8c7dc;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 25px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: rgba(148, 163, 184, 0.65);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3em;
  transform: translateX(-50%);
}

.hero-scroll span {
  position: relative;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.22);
}

.hero-scroll span::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  width: 1px;
  height: 14px;
  background: var(--accent);
  animation: scroll-drop 2.1s ease-in-out infinite;
}

@keyframes scroll-drop {
  0% {
    top: -14px;
  }
  70%,
  100% {
    top: 34px;
  }
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px 11px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(17, 31, 52, 0.52);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: float-card 6s ease-in-out infinite;
}

.float-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.09), transparent 45%);
  pointer-events: none;
}

.float-card .fc-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.1);
  font-size: 18px;
}

.float-card strong,
.float-card small {
  display: block;
  line-height: 1.4;
}

.float-card strong {
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
}

.float-card small {
  margin-top: 1px;
  color: #7dd3fc;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.fc1 {
  top: 22%;
  left: 4%;
  animation-delay: 0s;
}

.fc2 {
  top: 58%;
  left: 8%;
  animation-delay: 1.4s;
}

.fc3 {
  top: 31%;
  right: 5%;
  animation-delay: 0.7s;
}

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

/* ===== 7. Search ===== */
.search-wrap {
  position: relative;
  z-index: 20;
  margin-top: -46px;
  padding: 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 9px 10px 9px 22px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(16, 30, 50, 0.94);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: rgba(34, 211, 238, 0.68);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.48), 0 0 0 4px rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}

.search-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: var(--accent);
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
}

.search-box input::placeholder {
  color: #73869e;
}

.search-box input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent 45%, #94a3b8 45%, #94a3b8 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #94a3b8 45%, #94a3b8 55%, transparent 55%);
  cursor: pointer;
}

.search-kbd {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 6px;
  color: #7f92aa;
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
}

.search-btn {
  flex-shrink: 0;
  min-width: 84px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--green));
  color: #04121f;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.search-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 9px 24px rgba(16, 185, 129, 0.32);
}

.search-hints {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 15px;
  color: #64748b;
  font-size: 11.5px;
}

.search-hints span {
  letter-spacing: 0.06em;
}

.search-hints button {
  position: relative;
  padding: 0;
  color: #8fa5be;
  font-size: 11.5px;
  transition: color 0.2s;
}

.search-hints button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s;
}

.search-hints button:hover {
  color: var(--accent);
}

.search-hints button:hover::after {
  right: 0;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: min(390px, 58vh);
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 20px;
  background: rgba(10, 21, 37, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px);
}

.search-result {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 12px;
  text-align: left;
  transition: background 0.2s;
}

.search-result:hover,
.search-result.is-active {
  background: rgba(34, 211, 238, 0.08);
}

.sr-cover {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  font-size: 21px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sr-main {
  min-width: 0;
}

.sr-main strong {
  display: block;
  overflow: hidden;
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sr-main span {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: #7f92aa;
  font-size: 10.5px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sr-score {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.search-empty {
  padding: 28px 18px 25px;
  text-align: center;
  color: var(--gray);
  font-size: 13px;
}

.search-empty strong {
  display: block;
  margin-bottom: 5px;
  color: #e2e8f0;
  font-size: 14px;
}

.search-empty span {
  color: #7f92aa;
  font-size: 11.5px;
}

/* ===== 8. Categories ===== */
.cats {
  background: var(--dark-2);
}

.cats::before,
.features::before,
.news::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 50% at 50% 0%, rgba(14, 165, 233, 0.055), transparent 70%);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-height: 164px;
  padding: 27px 12px 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 35, 54, 0.92), rgba(15, 27, 45, 0.92));
  color: inherit;
  text-align: center;
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.cat-card::before {
  content: "";
  position: absolute;
  top: -38px;
  left: 50%;
  width: 110px;
  height: 90px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  filter: blur(26px);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.35s;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(180deg, rgba(27, 44, 68, 0.98), rgba(17, 32, 53, 0.98));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.cat-card:hover::before {
  opacity: 1;
}

.cat-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 24px;
  transition: transform 0.35s var(--ease), background 0.3s;
}

.cat-card:hover .cat-icon {
  transform: translateY(-3px) scale(1.06);
  background: rgba(34, 211, 238, 0.09);
}

.cat-title {
  position: relative;
  z-index: 1;
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.cat-desc {
  position: relative;
  z-index: 1;
  color: #7f92aa;
  font-size: 10.5px;
  line-height: 1.5;
}

.cat-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--accent);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.3s, transform 0.3s;
}

.cat-arrow svg {
  width: 13px;
  height: 13px;
}

.cat-card:hover .cat-arrow {
  opacity: 1;
  transform: none;
}

/* ===== 9. Ranking ===== */
.rank {
  background: var(--dark);
}

.rank-list {
  display: grid;
  gap: 11px;
  max-width: 940px;
  margin: 0 auto;
}

.rank-item {
  display: grid;
  grid-template-columns: 46px 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: 19px;
  width: 100%;
  padding: 13px 21px 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(22, 35, 54, 0.9), rgba(15, 27, 45, 0.9));
  color: inherit;
  text-align: left;
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.rank-item:hover {
  transform: translateX(5px);
  border-color: rgba(34, 211, 238, 0.32);
  background: linear-gradient(100deg, rgba(27, 44, 68, 0.96), rgba(17, 32, 53, 0.96));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #b8c7dc;
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s var(--ease);
}

.rank-item:hover .rank-num {
  transform: scale(1.06);
}

.rank-item:nth-child(1) .rank-num {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.25);
}

.rank-item:nth-child(2) .rank-num {
  background: linear-gradient(135deg, #cbd5e1, #64748b);
  color: #fff;
}

.rank-item:nth-child(3) .rank-num {
  background: linear-gradient(135deg, #d97706, #92400e);
  color: #fff;
}

.rank-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 66px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.rank-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 14%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.42));
}

.rank-emoji {
  position: relative;
  z-index: 1;
  font-size: 26px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.35s var(--ease);
}

.rank-item:hover .rank-emoji {
  transform: scale(1.14);
}

.rank-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(4, 12, 22, 0.55);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0;
  transition: opacity 0.3s;
}

.rank-item:hover .rank-play {
  opacity: 1;
}

.rank-rating {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(4, 12, 22, 0.6);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.rank-info {
  min-width: 0;
}

.rank-meta {
  display: block;
  margin-bottom: 2px;
  color: #7dd3fc;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.rank-title {
  display: block;
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  transition: color 0.25s;
}

.rank-item:hover .rank-title {
  color: var(--accent);
}

.rank-desc {
  display: block;
  overflow: hidden;
  margin-top: 1px;
  color: #7f92aa;
  font-size: 12px;
  line-height: 1.55;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-score {
  min-width: 54px;
  text-align: right;
}

.rank-score strong {
  display: block;
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.rank-score em {
  display: block;
  margin-top: 1px;
  color: #64748b;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.14em;
}

.rank-footer {
  margin-top: 27px;
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 4px;
  color: #a9bbd0;
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  transition: color 0.25s, border-color 0.25s;
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ===== 10. Features ===== */
.features {
  background: var(--dark-2);
}

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

.feat-card {
  position: relative;
  overflow: hidden;
  padding: 30px 25px 27px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 35, 54, 0.9), rgba(15, 27, 45, 0.9));
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}

.feat-card::after {
  content: "";
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.feat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(180deg, rgba(25, 41, 64, 0.96), rgba(16, 30, 49, 0.96));
}

.feat-card:hover::after {
  transform: scaleX(1);
}

.feat-index {
  position: absolute;
  top: 17px;
  right: 20px;
  color: rgba(148, 163, 184, 0.28);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.feat-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 21px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(16, 185, 129, 0.1));
  font-size: 24px;
  transition: transform 0.35s var(--ease);
}

.feat-card:hover .feat-icon {
  transform: translateY(-3px) rotate(-3deg);
}

.feat-card h3 {
  margin-bottom: 9px;
  color: #f1f5f9;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.feat-card p {
  color: #8497ae;
  font-size: 12.5px;
  line-height: 1.85;
}

/* ===== 11. About ===== */
.about {
  overflow: hidden;
  background: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 62px;
}

.about-text h3 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.about-text p {
  margin-bottom: 14px;
  color: #aebed2;
  font-size: 14px;
  line-height: 1.95;
}

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

.stat-item {
  padding: 18px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(22, 35, 54, 0.7);
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}

.stat-item:hover {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(25, 41, 64, 0.8);
}

.stat-num {
  color: var(--accent);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 4px;
  color: #7f92aa;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 35%, rgba(14, 165, 233, 0.17), transparent 70%),
    linear-gradient(145deg, #0d2138 0%, #0f2d4a 55%, #0a1a2d 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000, transparent 76%);
}

.visual-head {
  position: absolute;
  top: 21px;
  left: 23px;
  right: 23px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7dd3fc;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.visual-head .live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.7);
  animation: pulse-dot 2.4s ease-out infinite;
}

.visual-head span:last-child {
  margin-left: auto;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.poster-stack {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 250px;
  margin-top: 20px;
}

.mini-poster {
  position: absolute;
  top: 20px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 172px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
  transform-origin: bottom center;
  transition: transform 0.5s var(--ease);
}

.mini-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.58));
}

.mini-poster .mini-emoji {
  position: relative;
  z-index: 1;
  font-size: 33px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3));
}

.mini-poster .mini-title {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mini-poster .mini-kind {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.mp1 {
  z-index: 1;
  transform: translateX(-50%) translateX(-94px) rotate(-11deg);
}

.mp2 {
  z-index: 1;
  transform: translateX(-50%) translateX(94px) rotate(11deg);
}

.mp3 {
  z-index: 2;
  transform: translateX(-50%) translateY(-9px);
  border-color: rgba(34, 211, 238, 0.36);
}

.about-visual:hover .mp1 {
  transform: translateX(-50%) translateX(-108px) rotate(-15deg);
}

.about-visual:hover .mp2 {
  transform: translateX(-50%) translateX(108px) rotate(15deg);
}

.about-visual:hover .mp3 {
  transform: translateX(-50%) translateY(-14px);
}

.big-open {
  position: absolute;
  top: auto;
  bottom: -8px;
  left: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1.5px solid rgba(34, 211, 238, 0.8);
  border-radius: 50%;
  background: rgba(8, 20, 34, 0.54);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.06), 0 14px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  transition: background 0.3s, color 0.3s, transform 0.35s var(--ease), box-shadow 0.3s;
}

.big-open::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 50%;
  animation: open-ring 2.8s ease-out infinite;
}

.big-open svg {
  width: 24px;
  height: 24px;
}

.big-open:hover {
  background: var(--accent);
  color: #04121f;
  transform: translateX(-50%) scale(1.07);
  box-shadow: 0 0 0 10px rgba(34, 211, 238, 0.08), 0 16px 40px rgba(0, 0, 0, 0.36);
}

@keyframes open-ring {
  0% {
    transform: scale(0.88);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.v-label {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
}

.v-label strong {
  display: block;
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.v-label span {
  display: block;
  margin-top: 1px;
  color: #64748b;
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

/* ===== 12. News ===== */
.news {
  background: var(--dark-2);
}

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

.news-card {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 35, 54, 0.9), rgba(15, 27, 45, 0.9));
  color: inherit;
  text-align: left;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.news-cover {
  position: relative;
  display: grid;
  place-items: center;
  height: 174px;
  overflow: hidden;
}

.news-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 16%, rgba(255, 255, 255, 0.2), transparent 38%),
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.32));
}

.n-tag {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(4, 12, 22, 0.42);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.n-emoji {
  position: relative;
  z-index: 1;
  font-size: 40px;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.28));
  transition: transform 0.4s var(--ease);
}

.news-card:hover .n-emoji {
  transform: scale(1.09) rotate(-2deg);
}

.n-date {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.news-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 21px 21px;
}

.n-kicker {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.n-title {
  display: block;
  color: #f1f5f9;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.55;
  transition: color 0.25s;
}

.news-card:hover .n-title {
  color: var(--accent);
}

.n-desc {
  display: block;
  color: #7f92aa;
  font-size: 11.5px;
  line-height: 1.7;
}

.n-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: #7dd3fc;
  font-size: 10.5px;
  font-weight: 600;
}

.n-more svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s;
}

.news-card:hover .n-more svg {
  transform: translateX(3px);
}

/* ===== 13. CTA ===== */
.cta {
  overflow: hidden;
  padding: 104px 0;
  background: linear-gradient(135deg, #0b1e36 0%, #0d3350 52%, #0b1e36 100%);
  text-align: center;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 55% 80% at 50% 45%, rgba(34, 211, 238, 0.12), transparent 70%);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 520px;
  height: 320px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.16);
  filter: blur(90px);
  transform: translate(-50%, -50%);
}

.cta-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cr1 {
  width: 760px;
  height: 760px;
}

.cr2 {
  width: 1080px;
  height: 1080px;
  border-color: rgba(34, 211, 238, 0.05);
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}

.cta h2 {
  margin: 12px 0 15px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.cta p {
  max-width: 500px;
  margin: 0 auto;
  color: #b6c6dc;
  font-size: 14px;
  line-height: 1.9;
}

.cta .btn {
  margin-top: 28px;
}

/* ===== 14. Footer ===== */
.footer {
  padding: 70px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--dark-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 0.9fr 0.9fr 1.35fr;
  gap: 42px;
  margin-bottom: 44px;
}

.footer-brand .logo {
  margin-bottom: 17px;
}

.footer-brand p {
  max-width: 310px;
  color: #7f92aa;
  font-size: 12.5px;
  line-height: 1.9;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.footer-badges span {
  padding: 3px 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 4px;
  color: #8296ae;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.footer-col h2 {
  margin-bottom: 17px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a,
.footer-link {
  display: inline-block;
  padding: 0;
  color: #7f92aa;
  font-size: 11.5px;
  line-height: 1.7;
  text-align: left;
  transition: color 0.25s, transform 0.25s;
}

.footer-col a:hover,
.footer-link:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.contact-list {
  gap: 10px !important;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contact-list span {
  color: #52657d;
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.contact-list a {
  color: #8fa3ba;
  font-size: 11px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: #52657d;
  font-size: 10.5px;
}

.footer-bottom a {
  color: #8296ae;
  transition: color 0.2s;
}

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

.footer-legal {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-legal button {
  padding: 0;
  color: #8296ae;
  font-size: 10.5px;
  transition: color 0.2s;
}

.footer-legal button:hover {
  color: var(--accent);
}

/* ===== 15. Back to top ===== */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(34, 211, 238, 0.95));
  color: #04121f;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.28);
}

.back-top svg {
  width: 20px;
  height: 20px;
}

/* ===== 16. Modal ===== */
.site-modal {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--text);
}

.site-modal.is-wide {
  width: min(1040px, calc(100vw - 32px));
}

.site-modal.is-reading {
  width: min(820px, calc(100vw - 32px));
}

.site-modal::backdrop {
  background: rgba(3, 8, 16, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-modal[open] {
  animation: modal-in 0.35s var(--ease) both;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(ellipse 65% 28% at 50% 0%, rgba(14, 165, 233, 0.1), transparent 70%),
    linear-gradient(180deg, #0e1b2f, #0a1525);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
  padding: 23px 27px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 21, 37, 0.66);
  backdrop-filter: blur(12px);
}

.modal-kicker {
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.modal-title {
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 50%;
  color: #aebed2;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px 27px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ===== 17. Catalog ===== */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-tab {
  padding: 7px 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #8fa3ba;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.filter-tab:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.35);
}

.filter-tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #04121f;
  font-weight: 800;
}

.catalog-count {
  color: #64748b;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.poster-card {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
}

.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 13%, rgba(255, 255, 255, 0.26), transparent 37%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03) 22%, rgba(0, 0, 0, 0.64) 100%);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.5px, transparent 0.5px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.poster-card:hover .poster {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.poster-emoji {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 1;
  font-size: 37px;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.28));
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease);
}

.poster-card:hover .poster-emoji {
  transform: translate(-50%, -50%) scale(1.08);
}

.poster-badge,
.poster-score {
  position: absolute;
  top: 9px;
  z-index: 2;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(4, 12, 22, 0.46);
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.05em;
  backdrop-filter: blur(6px);
}

.poster-badge {
  left: 9px;
}

.poster-score {
  right: 9px;
  color: #fff;
}

.poster-title {
  position: relative;
  z-index: 2;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.poster-sub {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8.5px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rating-G {
  color: #34d399;
}

.rating-T {
  color: #fbbf24;
}

.rating-M {
  color: #fb923c;
}

.rating-E {
  color: #fb7185;
}

.poster-score.rating-G,
.poster-score.rating-T,
.poster-score.rating-M,
.poster-score.rating-E,
.rank-rating.rating-G,
.rank-rating.rating-T,
.rank-rating.rating-M,
.rank-rating.rating-E {
  background: rgba(4, 12, 22, 0.66);
}

.catalog-empty {
  padding: 58px 20px;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  color: #7f92aa;
  text-align: center;
  font-size: 12.5px;
}

.catalog-empty strong {
  display: block;
  margin-bottom: 5px;
  color: #dbe7f5;
  font-size: 15px;
}

.catalog-empty span {
  display: block;
  max-width: 330px;
  margin: 0 auto;
  line-height: 1.8;
}

.catalog-empty .btn {
  margin-top: 20px;
  min-height: 42px;
  padding: 10px 20px;
  font-size: 12px;
}

/* ===== 18. Detail ===== */
.detail {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 30px;
}

.detail .poster {
  aspect-ratio: 3 / 4;
  cursor: default;
}

.detail .poster-emoji {
  font-size: 48px;
}

.detail .poster-title {
  font-size: 15px;
}

.detail-info {
  min-width: 0;
  padding-top: 3px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-pill {
  padding: 3px 9px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.08);
  color: #7dd3fc;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.detail-meta > span:not(.detail-pill) {
  color: #64748b;
  font-size: 10px;
}

.detail-info h3 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.detail-en {
  margin-top: 3px;
  color: #52657d;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.detail-desc {
  margin-top: 15px;
  color: #aebed2;
  font-size: 13px;
  line-height: 1.95;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-facts div {
  min-width: 0;
}

.detail-facts dt {
  color: #52657d;
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.detail-facts dd {
  overflow: hidden;
  margin-top: 1px;
  color: #c9d7e8;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 21px;
}

.detail-actions .btn {
  min-height: 42px;
  padding: 10px 19px;
  font-size: 11.5px;
}

.detail-actions .btn svg {
  width: 15px;
  height: 15px;
}

.detail-note {
  margin-top: 12px;
  color: #52657d;
  font-size: 9.5px;
}

.detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 9px;
  font-weight: 700;
}

.detail-fandom {
  margin-top: 9px;
  color: #7dd3fc;
  font-size: 10.5px;
  line-height: 1.6;
}

.detail-fandom span {
  color: #52657d;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #9db0c5;
  font-size: 9px;
  line-height: 1.6;
  transition: border-color 0.2s, color 0.2s;
}

a.tag:hover {
  border-color: rgba(34, 211, 238, 0.38);
  color: var(--accent);
}

.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 15px;
  padding: 9px 11px;
  border: 1px solid rgba(251, 113, 133, 0.18);
  border-radius: 8px;
  background: rgba(225, 29, 72, 0.055);
  color: #c9a3ad;
  font-size: 9.5px;
  line-height: 1.65;
}

.warning-box strong {
  flex-shrink: 0;
  color: var(--ao3-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.detail-stats div {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-stats dt {
  color: #52657d;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.detail-stats dd {
  margin-top: 1px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.detail-actions .btn-text {
  min-height: 42px;
  padding: 10px 8px;
  color: #7f92aa;
  font-size: 10.5px;
  border-bottom: 0;
  box-shadow: none;
}

.detail-actions .btn-text:hover {
  color: var(--accent);
  background: transparent;
  transform: none;
}

.detail-more {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-more h4 {
  margin-bottom: 14px;
  color: #dbe7f5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

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

.mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-align: left;
  transition: background 0.25s, border-color 0.25s;
}

.mini-card:hover {
  border-color: rgba(34, 211, 238, 0.26);
  background: rgba(34, 211, 238, 0.05);
}

.mini-cover {
  display: grid;
  place-items: center;
  width: 38px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 7px;
  font-size: 17px;
}

.mini-card span:last-child {
  min-width: 0;
}

.mini-card strong {
  display: block;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card small {
  display: block;
  margin-top: 1px;
  color: #64748b;
  font-size: 8.5px;
}

/* ===== 19. Article & legal ===== */
.article-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 190px;
  margin-bottom: 21px;
  overflow: hidden;
  padding: 16px;
  border-radius: 15px;
}

.article-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
}

.article-cover .article-emoji {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 1;
  font-size: 48px;
  transform: translate(-50%, -50%);
}

.article-cover .article-tag {
  position: relative;
  z-index: 2;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(4, 12, 22, 0.42);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: #64748b;
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.article h3 {
  margin: 9px 0 14px;
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.article-lead {
  color: #c9d7e8;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.95;
}

.article p {
  margin-top: 13px;
  color: #a3b5cb;
  font-size: 12.5px;
  line-height: 2;
}

.article blockquote {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(34, 211, 238, 0.055);
  color: #c9d7e8;
  font-size: 12.5px;
  line-height: 1.9;
}

.article-sign {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #52657d;
  font-size: 10px;
}

.reader-head {
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.reader-fandom {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.reader-head h3 {
  margin: 5px 0 3px;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.reader-byline {
  color: #7f92aa;
  font-size: 10.5px;
}

.reader-byline span {
  color: #52657d;
}

.reader-tags {
  margin-top: 11px;
}

.reader-text {
  padding: 24px 2px 8px;
  color: #d4dfec;
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: 15px;
  line-height: 2.15;
}

.reader-text p {
  margin-bottom: 18px;
}

.reader-text--prose p:first-child::first-letter {
  float: left;
  margin: 7px 8px 0 0;
  color: var(--accent);
  font-family: "PingFang SC", "Microsoft YaHei", serif;
  font-size: 44px;
  font-weight: 900;
  line-height: 0.8;
}

.reader-warning {
  margin-top: 17px;
  padding: 10px 13px;
  border-left: 2px solid rgba(251, 113, 133, 0.55);
  border-radius: 0 7px 7px 0;
  background: rgba(225, 29, 72, 0.055);
  color: #b998a1;
  font-size: 9.5px;
  line-height: 1.7;
}

.reader-warning strong {
  color: var(--ao3-soft);
}

.reader-note {
  margin-top: 19px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #52657d;
  font-size: 9.5px;
}

.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.reader-actions .btn {
  min-height: 40px;
  padding: 9px 17px;
  font-size: 10.5px;
}

.legal h3 {
  margin-bottom: 13px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.legal p {
  margin-bottom: 12px;
  color: #a3b5cb;
  font-size: 12.5px;
  line-height: 1.95;
}

.legal strong {
  color: #e2e8f0;
  font-weight: 700;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== 20. Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 2500;
  max-width: min(440px, calc(100vw - 40px));
  padding: 11px 20px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(12, 27, 46, 0.96);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4);
  color: #e2e8f0;
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease);
  backdrop-filter: blur(14px);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ===== 21. Gradient artwork ===== */
.c1 {
  background: linear-gradient(145deg, #064e3b 0%, #0f766e 45%, #10b981 100%);
}

.c2 {
  background: linear-gradient(145deg, #172554 0%, #1e3a8a 42%, #0ea5e9 100%);
}

.c3 {
  background: linear-gradient(145deg, #7c2d12 0%, #c2410c 46%, #f59e0b 100%);
}

.c4 {
  background: linear-gradient(145deg, #3b0764 0%, #6d28d9 48%, #c084fc 100%);
}

.c5 {
  background: linear-gradient(145deg, #083344 0%, #0e7490 46%, #06b6d4 100%);
}

.c6 {
  background: linear-gradient(145deg, #500724 0%, #9f1239 46%, #fb7185 100%);
}

/* ===== 22. Reveal animation ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ===== 23. Responsive ===== */
@media (max-width: 1600px) {
  .fc1,
  .fc2 {
    display: none;
  }
}

@media (max-width: 1180px) {
  .float-card {
    display: none;
  }

  .orbit-1 {
    right: -320px;
  }

  .orbit-2 {
    right: -160px;
  }

  .orbit-3 {
    right: -30px;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 15px;
  }

  .nav-link {
    font-size: 13px;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    min-height: 390px;
  }

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

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

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

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

@media (max-width: 860px) {
  .rank-item {
    grid-template-columns: 42px 94px minmax(0, 1fr);
    gap: 15px;
  }

  .rank-cover {
    width: 94px;
    height: 60px;
  }

  .rank-score {
    display: none;
  }

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

  .news-card:last-child {
    grid-column: 1 / -1;
  }

  .news-card:last-child .news-cover {
    height: 150px;
  }

  .detail {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 78px;
    scrollbar-gutter: auto;
  }

  .container {
    width: calc(100% - 32px);
  }

  .announce {
    font-size: 11px;
  }

  .announce-inner {
    gap: 7px;
  }

  .announce-badge {
    display: none;
  }

  .announce a {
    font-size: 10.5px;
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    width: min(82vw, 360px);
    height: 100vh;
    height: 100dvh;
    padding: 92px 26px 34px;
    overflow-y: auto;
    border-left: 1px solid rgba(34, 211, 238, 0.18);
    background: linear-gradient(180deg, #0b1729 0%, #08111f 100%);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.35);
  }

  .nav-links.open {
    display: flex;
    animation: nav-in 0.4s var(--ease) both;
  }

  @keyframes nav-in {
    from {
      opacity: 0;
      transform: translateX(60px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .nav-link {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-size: 16px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.is-active {
    color: var(--accent);
  }

  .nav-cta {
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    padding: 13px 20px;
    font-size: 14px;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 92px 0 128px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 10.5vw, 3.4rem);
    letter-spacing: -0.05em;
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.9;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 28px;
  }

  .hero-actions .btn {
    min-height: 47px;
    padding: 12px 23px;
    font-size: 13px;
  }

  .hero-scroll {
    display: none;
  }

  .orbit-1 {
    width: 560px;
    height: 560px;
    right: -300px;
  }

  .orbit-2 {
    width: 420px;
    height: 420px;
    right: -180px;
  }

  .orbit-3 {
    display: none;
  }

  .search-wrap {
    margin-top: -34px;
  }

  .search-box {
    gap: 8px;
    padding: 7px 7px 7px 16px;
  }

  .search-icon {
    width: 18px;
    height: 18px;
  }

  .search-box input {
    height: 42px;
    font-size: 13px;
  }

  .search-kbd {
    display: none;
  }

  .search-btn {
    min-width: 68px;
    height: 42px;
    padding: 0 17px;
    font-size: 12.5px;
  }

  .search-hints {
    gap: 7px 11px;
    font-size: 10.5px;
  }

  .search-hints button {
    font-size: 10.5px;
  }

  section {
    padding: 70px 0;
  }

  .section-header {
    margin-bottom: 38px;
  }

  .section-title {
    font-size: clamp(1.65rem, 6vw, 2rem);
  }

  .section-desc {
    font-size: 13px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .cat-card {
    min-height: 150px;
    padding: 22px 10px 18px;
  }

  .cat-icon {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }

  .rank-item {
    grid-template-columns: 36px 76px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 13px 11px 11px;
  }

  .rank-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
  }

  .rank-cover {
    width: 76px;
    height: 54px;
  }

  .rank-emoji {
    font-size: 21px;
  }

  .rank-meta {
    font-size: 9px;
  }

  .rank-title {
    font-size: 15px;
  }

  .rank-desc {
    font-size: 11px;
  }

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

  .feat-card {
    padding: 25px 23px 23px;
  }

  .feat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 17px;
    font-size: 21px;
  }

  .about-text h3 {
    font-size: 1.55rem;
  }

  .about-text p {
    font-size: 13px;
  }

  .stats {
    gap: 8px;
  }

  .stat-item {
    padding: 14px 5px 12px;
  }

  .stat-label {
    font-size: 9.5px;
  }

  .about-visual {
    min-height: 360px;
  }

  .poster-stack {
    width: 260px;
    height: 225px;
    transform: scale(0.9);
  }

  .visual-head {
    top: 17px;
    left: 18px;
    right: 18px;
  }

  .v-label {
    bottom: 17px;
  }

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

  .news-card:last-child {
    grid-column: auto;
  }

  .news-cover,
  .news-card:last-child .news-cover {
    height: 168px;
  }

  .cta {
    padding: 80px 0;
  }

  .cr1 {
    width: 520px;
    height: 520px;
  }

  .cr2 {
    width: 720px;
    height: 720px;
  }

  .footer {
    padding-top: 54px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 34px;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 18px 0;
  }

  .site-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .modal-shell {
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .modal-head {
    padding: 18px 18px 14px;
  }

  .modal-title {
    font-size: 19px;
  }

  .modal-close {
    width: 34px;
    height: 34px;
  }

  .modal-body {
    padding: 18px;
  }

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

  .filter-tab {
    padding: 6px 10px;
    font-size: 10px;
  }

  .catalog-toolbar {
    margin-bottom: 17px;
  }

  .detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail .poster {
    width: min(230px, 65%);
    margin: 0 auto;
  }

  .detail-actions .btn {
    flex: 1;
  }

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

  .article-cover {
    height: 155px;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .toast {
    bottom: 72px;
  }
}

@media (max-width: 480px) {
  .logo-tag {
    display: none;
  }

  .logo-word {
    font-size: 20px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 2.9rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .search-hints {
    justify-content: flex-start;
    padding-left: 6px;
  }

  .search-hints span {
    display: none;
  }

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

  .stat-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 14px;
    text-align: left;
  }

  .stat-label {
    margin-top: 0;
  }

  .poster-stack {
    transform: scale(0.82);
  }

  .cta h2 {
    font-size: 2rem;
  }

  .cta .btn {
    width: 100%;
  }

  .footer-bottom {
    font-size: 9.5px;
  }

  .mini-grid {
    gap: 8px;
  }
}

/* ===== 24. Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-scroll span::after {
    top: 0;
  }
}
