﻿:root {
  --font-main: "Aptos", "Segoe UI", "Microsoft YaHei", sans-serif;
  --font-display: "Bahnschrift", "Trebuchet MS", sans-serif;
  --bg: #edf4ff;
  --bg-soft: #f7fbff;
  --text: #1f2d3d;
  --muted: #6f8299;
  --line: #d7e4f4;
  --primary: #1677ff;
  --danger: #d72d2d;
  --panel: #ffffff;
  --shadow: 0 16px 34px rgba(20, 71, 140, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at 8% -4%, #dcecff, transparent 28%),
    radial-gradient(circle at 95% 2%, #e9f4ff, transparent 24%),
    var(--bg);
  background-size: 170% 170%, 160% 160%, auto;
  background-position: 0% 0%, 100% 0%, 0 0;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 14px;
  transition: filter 0.42s ease, background 0.32s ease;
  animation: pageBgFlow 26s ease-in-out infinite alternate;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(42% 36% at 16% 18%, rgba(73, 164, 255, 0.24), transparent 72%),
    radial-gradient(36% 32% at 84% 14%, rgba(22, 119, 255, 0.2), transparent 74%),
    radial-gradient(44% 38% at 54% 86%, rgba(126, 190, 255, 0.18), transparent 78%);
  filter: blur(6px);
  animation: bgAuraDrift 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(91, 156, 236, 0.34) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.08;
  animation: bgGrainShift 14s linear infinite;
}

body > * {
  position: relative;
  z-index: 1;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

.page-shell,
.header-wrap,
.page-footer {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(245, 250, 255, 0.9);
  border-bottom: 1px solid rgba(181, 205, 233, 0.45);
}

.header-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand > img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(28, 88, 160, 0.88), rgba(14, 52, 99, 0.92));
  border: 1px solid rgba(138, 179, 227, 0.38);
  color: #f7fbff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.4px;
  flex: 0 0 auto;
  overflow: hidden;
}

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

.brand-logo.is-text {
  text-transform: uppercase;
}

.brand-meta {
  display: grid;
  align-items: center;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #2b425f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.22s ease, text-shadow 0.22s ease;
}

.brand-subtitle {
  margin: 0;
  font-size: 11px;
  line-height: 1.15;
  color: #6f87a4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  font-size: 12px;
  font-weight: 700;
  color: #3a5068;
  padding: 7px 13px;
  border-radius: 999px;
  transition: 0.22s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #1f3f66;
  background: #e8f2ff;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.with-icon svg {
  width: 16px;
  height: 16px;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}

.btn-ghost.with-icon svg {
  border-color: rgba(38, 38, 38, 0.2);
  background: rgba(38, 38, 38, 0.08);
}

.mode-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid #bad2ee;
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  color: #2d4b6f;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mode-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: absolute;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.mode-icon-sun {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.mode-icon-moon {
  opacity: 0;
  transform: translateY(8px) rotate(16deg);
}

.mode-toggle.is-on .mode-icon-sun {
  opacity: 0;
  transform: translateY(-8px) rotate(-16deg);
}

.mode-toggle.is-on .mode-icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

body[data-page="home"] .mode-toggle {
  background: rgba(10, 19, 31, 0.86);
  border-color: rgba(221, 236, 248, 0.54);
  color: #eff8ff;
}

.nav-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid #c8dbef;
  border-radius: 10px;
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle i {
  width: 16px;
  height: 2px;
  background: #262626;
  display: block;
  box-shadow: 0 -5px 0 #262626, 0 5px 0 #262626;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #49a4ff, #1677ff);
}

.btn-primary:hover {
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.34);
}

.btn-soft {
  background: #1a4f96;
  color: #fff;
  border-color: #1a4f96;
}

.btn-ghost {
  background: #fff;
  color: #284260;
  border-color: #c8dbef;
}

.main {
  padding: 14px 0 28px;
}

.home-main {
  padding-top: 0;
}

body.is-dark {
  --bg: #090d14;
  --bg-soft: #121a26;
  --text: #e7edf7;
  --muted: #90a0b8;
  --line: #252f3f;
  --panel: #121a27;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  background: radial-gradient(circle at 8% -4%, #1a2332, transparent 30%),
    radial-gradient(circle at 95% 2%, #161f2d, transparent 26%),
    var(--bg);
  background-size: 175% 175%, 165% 165%, auto;
  background-position: 0% 0%, 100% 0%, 0 0;
  color: var(--text);
}

body.is-dark::before {
  background:
    radial-gradient(42% 38% at 16% 16%, rgba(69, 122, 201, 0.3), transparent 72%),
    radial-gradient(38% 34% at 84% 14%, rgba(40, 101, 188, 0.28), transparent 76%),
    radial-gradient(46% 40% at 50% 86%, rgba(52, 91, 151, 0.24), transparent 78%);
  opacity: 0.92;
}

body.is-dark::after {
  background-image: radial-gradient(rgba(145, 182, 233, 0.28) 1px, transparent 1px);
  opacity: 0.1;
}

@keyframes pageBgFlow {
  0% {
    background-position: 0% 0%, 100% 0%, 0 0;
  }
  50% {
    background-position: 14% 8%, 86% 14%, 0 0;
  }
  100% {
    background-position: 6% 18%, 94% 10%, 0 0;
  }
}

@keyframes bgAuraDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 1.6%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.02);
  }
}

@keyframes bgGrainShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(24px, 20px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before,
  body::after {
    animation: none;
  }
}

body.is-dark .hero-video {
  filter: contrast(1.08) brightness(0.88) saturate(1.02);
}

body.is-dark .site-header {
  background: rgba(10, 15, 24, 0.86);
  border-bottom-color: rgba(70, 82, 102, 0.35);
}

body.is-dark .site-nav a {
  color: #a9b7cb;
}

body.is-dark .site-nav a:hover,
body.is-dark .site-nav a.is-active {
  color: #e8effa;
  background: rgba(84, 104, 135, 0.26);
}

body.is-dark .mode-toggle {
  border-color: #526278;
  background: linear-gradient(180deg, #182433, #131d2b);
  color: #d4deec;
}

#modeFx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

#modeFx::before {
  content: "";
  position: absolute;
  left: var(--fx-x, 50%);
  top: var(--fx-y, 50%);
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1) 52%, transparent 70%);
  opacity: 0;
}

#modeFx.is-on::before {
  animation: bwFlash 0.56s ease-out;
}

@keyframes bwFlash {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.72;
  }
  100% {
    transform: translate(-50%, -50%) scale(90);
    opacity: 0;
  }
}

body[data-page="home"] .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: none;
  backdrop-filter: none;
  background: transparent;
}

body[data-page="home"] .header-wrap {
  min-height: 84px;
}

body[data-page="home"] .brand {
  --home-brand-logo-size: calc(clamp(20px, 2.2vw, 32px) * 0.95 + 13px * 1.15 + 1px);
}

body[data-page="home"] .brand > img,
body[data-page="home"] .brand-logo img {
  filter: none;
  filter: drop-shadow(0 1px 6px rgba(5, 10, 18, 0.45));
}

body[data-page="home"] .brand > img,
body[data-page="home"] .brand-logo {
  width: var(--home-brand-logo-size);
  height: var(--home-brand-logo-size);
}

body[data-page="home"] .brand-logo {
  border-color: rgba(255, 255, 255, 0.38);
  background: linear-gradient(145deg, rgba(11, 29, 55, 0.95), rgba(7, 19, 37, 0.95));
  border-radius: 12px;
  font-size: calc(var(--home-brand-logo-size) * 0.44);
}

body[data-page="home"] .brand-name {
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 0.95;
  letter-spacing: 0.45px;
  color: #f6fbff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(220, 238, 255, 0.95));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(5, 14, 27, 0.45);
}

body[data-page="home"] .brand-subtitle {
  font-size: 13px;
  letter-spacing: 0.24px;
  max-width: 440px;
  color: rgba(203, 221, 244, 0.72);
}

body[data-page="home"] .site-nav a {
  color: rgba(255, 255, 255, 0.86);
}

body[data-page="home"] .site-nav a:hover,
body[data-page="home"] .site-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

body[data-page="home"] .btn-soft {
  background: rgba(18, 64, 128, 0.78);
  border-color: rgba(173, 211, 255, 0.3);
}

body[data-page="home"] .btn-primary {
  background: linear-gradient(135deg, #49a4ff, #1677ff);
}

.cinematic-hero {
  position: relative;
  margin-top: 10px;
  min-height: 520px;
  border-radius: 12px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #07131f;
}

.cinematic-hero .hero-video-wrap,
.cinematic-hero .hero-mask {
  border-radius: 12px;
  overflow: hidden;
}

.hero-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 38%, rgba(19, 32, 49, 0.07), rgba(4, 9, 16, 0.28) 72%),
    linear-gradient(180deg, rgba(6, 10, 16, 0.1), rgba(4, 7, 12, 0.22));
}

.hero-core {
  position: relative;
  z-index: 3;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 132px;
  text-align: center;
  color: #fff;
}

.hero-core h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  font-family: var(--font-display);
}

.hero-core p {
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-search-v5 {
  margin: 24px auto 0;
  width: min(700px, calc(100% - 64px));
}

.hero-search-v5-shell {
  min-height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(171, 203, 232, 0.38);
  background: linear-gradient(120deg, rgba(9, 22, 37, 0.56), rgba(21, 39, 58, 0.46));
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(4, 10, 18, 0.22);
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  overflow: hidden;
}

.hero-search-v5-pan {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid rgba(192, 218, 242, 0.2);
}

.hero-search-v5-pan select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0f7ff;
  font-size: 13px;
  font-weight: 600;
}

.hero-search-v5-input {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.hero-search-v5-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e9f3ff;
  font-size: 15px;
}

.hero-search-v5-input input::placeholder {
  color: #9fb2c8;
}

.hero-search-v5-btn {
  margin: 6px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(207, 236, 255, 0.72);
  background: linear-gradient(135deg, #49a4ff, #1677ff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 6px 12px rgba(22, 119, 255, 0.32);
}

.hero-search-v5-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-search-v5-btn:hover {
  transform: translateY(-1px);
}

.hero-search-v5:focus-within .hero-search-v5-shell {
  border-color: rgba(187, 226, 255, 0.66);
}

.hero-tags-v4 {
  margin: 10px auto 0;
  width: min(760px, calc(100% - 64px));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
}

.hero-tags-v4 .chip {
  background: rgba(228, 240, 252, 0.1);
  color: #eaf3ff;
  border-color: rgba(201, 222, 245, 0.14);
  backdrop-filter: blur(4px);
  padding: 4px 9px;
  font-size: 11px;
  border-radius: 8px;
}

.hero-tags-v4 .chip:hover {
  background: rgba(242, 249, 255, 0.46);
  color: #24364d;
}

.hero-feature-grid {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  transform: translateY(50%);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 1121px) {
  #homeResultsSection.is-show {
    margin-top: 64px;
  }

  #homeResultsSection:not(.is-show) + .section {
    margin-top: 64px;
  }
}

.hero-kpi-card {
  border-radius: 14px;
  border: 1px solid rgba(150, 176, 206, 0.32);
  background: linear-gradient(135deg, rgba(50, 61, 84, 0.48), rgba(45, 56, 76, 0.42));
  backdrop-filter: blur(10px);
  padding: 12px;
  color: #eef5ff;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(206, 229, 255, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 12px rgba(7, 19, 39, 0.18);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.kpi-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.kpi-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.96;
  position: relative;
  z-index: 1;
}

.kpi-orange {
  background: linear-gradient(145deg, rgba(70, 156, 250, 0.92), rgba(45, 113, 225, 0.9));
  border-color: rgba(173, 214, 255, 0.42);
}

.kpi-gold {
  background: linear-gradient(145deg, rgba(75, 144, 228, 0.92), rgba(40, 102, 204, 0.9));
  border-color: rgba(167, 208, 255, 0.42);
}

.kpi-red {
  background: linear-gradient(145deg, rgba(68, 128, 218, 0.92), rgba(37, 88, 182, 0.9));
  border-color: rgba(159, 200, 249, 0.42);
}

.kpi-cyan {
  background: linear-gradient(145deg, rgba(84, 162, 238, 0.92), rgba(44, 117, 214, 0.9));
  border-color: rgba(178, 218, 255, 0.42);
}

.kpi-body {
  min-width: 0;
}

.kpi-body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f2f7ff;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.kpi-body h3 strong {
  font-size: 20px;
  line-height: 0.95;
  font-family: var(--font-display);
}

.kpi-body h3 span {
  font-size: 12px;
  color: #d6e3f5;
}

.kpi-body p {
  margin: 5px 0 0;
  color: #bfcbe0;
  font-size: 12px;
  line-height: 1.4;
}

.section {
  margin-top: 14px;
}

.section .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 9px;
}

.section .head h2 {
  margin: 0;
  font-size: 20px;
  font-family: var(--font-display);
}

.section .head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-radius: var(--radius-xl);
}

.hero-video-wrap,
.hero-video-wrap::after,
.hero-video-wrap::before {
  position: absolute;
  inset: 0;
}

.hero-video-wrap::before {
  content: "";
  background: rgba(10, 10, 10, 0.22);
  z-index: 1;
}

.hero-video-wrap::after {
  content: "";
  background: linear-gradient(122deg, rgba(14, 14, 14, 0.72), rgba(14, 14, 14, 0.12) 56%, rgba(14, 14, 14, 0.44));
  z-index: 2;
}

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

.hero-stage.is-fallback .hero-video-wrap {
  background: url("../images/video-poster.svg") center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 440px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 14px;
}

.search-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  padding: 18px;
  color: #fff;
}

.search-panel h1 {
  margin: 0;
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 0.95;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.search-panel .sub {
  margin: 10px 0 0;
  color: #ececec;
  max-width: 780px;
  line-height: 1.55;
  font-size: 13px;
}

.search-box {
  margin-top: 14px;
  background: rgba(15, 15, 15, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  grid-template-columns: 170px 1fr 110px;
  gap: 8px;
}

.search-box select,
.search-box input,
.search-box button {
  min-height: 42px;
  border-radius: 10px;
}

.search-box select,
.search-box input {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 0 12px;
  outline: none;
}

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

.action-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hot-wrap {
  margin-top: 12px;
}

.hot-wrap p {
  margin: 0 0 6px;
  font-size: 12px;
  color: #e2e2e2;
}

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

.chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #edf4ff;
  color: #2a2a2a;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
}

.search-panel .chip {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.chip:hover,
.chip.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.search-panel .chip:hover,
.search-panel .chip.is-active {
  background: rgba(0, 0, 0, 0.64);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-tip {
  margin: 10px 0 0;
  color: #dcdcdc;
  font-size: 11px;
}

.overview-panel {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
  padding: 14px;
}

.overview-panel h3 {
  margin: 0;
  font-size: 18px;
  font-family: var(--font-display);
}

.overview-panel > p {
  margin: 4px 0 0;
  color: #616161;
  font-size: 12px;
}

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

.stat-item {
  border: 1px solid #d2e1f1;
  border-radius: 10px;
  padding: 8px;
  background: #f4f8fe;
}

.stat-item p {
  margin: 0;
  color: #666;
  font-size: 11px;
}

.stat-item strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1;
  font-family: var(--font-display);
}

.overview-note {
  margin-top: 10px;
  border: 1px dashed #b9cfe8;
  border-radius: 10px;
  padding: 10px;
  background: #eef6ff;
}

.overview-note h4 {
  margin: 0;
  font-size: 14px;
}

.overview-note p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6d6658;
}

.result-section {
  display: none;
}

.result-section.is-show {
  display: block;
}

.result-panel {
  display: none;
}

.result-panel.is-show {
  display: block;
}

.result-panel .panel-body {
  padding: 10px;
}

.home-result-head-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.home-result-head-tools[hidden] {
  display: none !important;
}

.home-result-tool {
  min-height: 32px;
  border-radius: 999px;
}

.home-result-tool-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(112, 156, 208, 0.34);
  background: rgba(9, 23, 41, 0.75);
  color: #d4e6ff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-result-tool-select > span {
  font-size: 11px;
  color: #9ebce0;
  white-space: nowrap;
}

.home-result-tool-select select {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #e8f2ff;
  padding: 0 14px 0 0;
  outline: none;
  cursor: pointer;
}

.home-result-tool-btn {
  border: 1px solid rgba(112, 156, 208, 0.34);
  background: rgba(9, 23, 41, 0.75);
  color: #cbe0fb;
  font-size: 12px;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-result-tool-btn.is-active {
  background: linear-gradient(135deg, rgba(24, 219, 155, 0.28), rgba(24, 219, 155, 0.14));
  border-color: rgba(24, 219, 155, 0.72);
  color: #b9ffe4;
}

.home-result-tool-btn.is-reset {
  color: #9fbde0;
}

.home-result-tool-btn:hover {
  color: #eaf4ff;
}

.home-result-list {
  display: grid;
  gap: 12px;
}

.home-result-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(74, 123, 183, 0.35);
  background: linear-gradient(150deg, rgba(8, 21, 39, 0.94), rgba(7, 16, 29, 0.9));
}

.home-result-poster {
  height: 118px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 35, 62, 0.72);
  position: relative;
  display: grid;
  place-items: center;
}

.home-result-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-result-poster.is-noimg {
  background:
    linear-gradient(150deg, rgba(17, 33, 55, 0.92), rgba(8, 18, 32, 0.9)),
    radial-gradient(circle at 28% 24%, rgba(102, 141, 196, 0.2), transparent 56%);
  border: 1px dashed rgba(116, 150, 197, 0.45);
}

.home-result-poster.is-noimg img {
  display: none;
}

.home-result-noimg {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  color: #b9cdea;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.2px;
}

.home-result-poster.is-noimg .home-result-noimg {
  display: flex;
}

.home-result-disk-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 18px;
  max-width: calc(100% - 12px);
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(13, 32, 57, 0.92);
  border: 1px solid rgba(99, 142, 197, 0.38);
  color: #dcecff;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-result-disk-badge img {
  width: 11px;
  height: 11px;
  object-fit: contain;
  flex: 0 0 auto;
}

.home-result-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.home-result-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.home-result-main h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-result-main h3 a {
  color: #f1f7ff;
}

.home-result-desc {
  margin: 0;
  color: #acc1de;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-result-meta {
  display: grid;
  gap: 5px;
}

.home-result-meta .meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: #87c59f;
  font-size: 12px;
}

.home-result-meta .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(93, 141, 199, 0.28);
  background: rgba(14, 33, 58, 0.72);
  color: #cfe0f7;
  font-size: 11px;
}

.home-result-meta .meta-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex: 0 0 auto;
}

.home-result-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.home-result-btn {
  min-width: 96px;
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  text-decoration: none;
  cursor: pointer;
}

.home-result-btn[aria-disabled="true"] {
  cursor: default;
}

.home-result-actions .home-result-btn-check {
  background: rgba(236, 249, 255, 0.26) !important;
  border-color: rgba(174, 229, 244, 0.5) !important;
  color: #13c473;
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.home-result-actions .home-result-btn-check.is-invalid {
  background: rgba(255, 229, 229, 0.26) !important;
  border-color: rgba(245, 192, 192, 0.5) !important;
  color: #e06666;
}

.home-result-actions .home-result-btn-check.is-loading {
  background: rgba(255, 240, 217, 0.26) !important;
  border-color: rgba(247, 213, 165, 0.5) !important;
  color: #d1952f;
}

.home-result-actions .home-result-btn-detail {
  background: rgba(240, 248, 255, 0.22) !important;
  border-color: rgba(183, 206, 231, 0.5) !important;
  color: #7f93a9;
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.home-result-btn-open {
  background: linear-gradient(135deg, #49a4ff, #1677ff);
  border-color: rgba(73, 164, 255, 0.86);
  color: #fff;
}

.home-result-btn-open:hover {
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.34);
}

.home-result-list > .empty {
  grid-column: 1 / -1;
}

.home-result-list .empty-loading {
  min-height: 96px;
  padding: 16px 0;
  gap: 10px;
}

.home-result-list .empty-loading .loading-orbit {
  width: 28px;
  height: 28px;
}

.home-result-list .empty-loading .loading-orbit::after {
  inset: 5px;
}

.home-result-list .empty-loading .loading-text {
  font-size: 15px;
  font-weight: 600;
  color: #dcecff;
  text-shadow: none;
}

body.is-light .home-result-item {
  border-color: #d2e1f2;
  background: #f8fcff;
}

body.is-light .home-result-tool-select {
  border-color: #d0e0f1;
  background: #f4f9ff;
  color: #3f6288;
}

body.is-light .home-result-tool-select > span {
  color: #5f7ea2;
}

body.is-light .home-result-tool-select select {
  color: #2c4f75;
}

body.is-light .home-result-tool-btn {
  border-color: #d0e0f1;
  background: #f4f9ff;
  color: #46698f;
}

body.is-light .home-result-tool-btn.is-active {
  background: linear-gradient(135deg, rgba(16, 191, 132, 0.22), rgba(16, 191, 132, 0.08));
  border-color: rgba(16, 191, 132, 0.7);
  color: #127f59;
}

body.is-light .home-result-main h3 a {
  color: #173556;
}

body.is-light .home-result-desc {
  color: #617c9e;
}

body.is-light .home-result-poster.is-noimg {
  background:
    linear-gradient(150deg, rgba(227, 238, 250, 0.95), rgba(209, 226, 245, 0.92)),
    radial-gradient(circle at 28% 24%, rgba(120, 157, 207, 0.22), transparent 56%);
  border-color: rgba(138, 170, 212, 0.58);
}

body.is-light .home-result-noimg {
  color: #54739a;
}

body.is-light .home-result-actions .home-result-btn-check {
  background: rgba(255, 255, 255, 0.48) !important;
  border-color: rgba(173, 213, 202, 0.62) !important;
  color: #12b465;
}

body.is-light .home-result-actions .home-result-btn-detail {
  background: rgba(255, 255, 255, 0.46) !important;
  border-color: rgba(194, 209, 227, 0.62) !important;
  color: #6b8199;
}

body.is-light .home-result-meta .meta-line {
  color: #31865a;
}

body.is-light .home-result-meta .meta-pill {
  border-color: #d3e2f1;
  background: #f2f8ff;
  color: #456688;
}

body.is-light .home-result-list .empty-loading .loading-text {
  color: #3f6289;
}

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

.board-section {
  position: relative;
  margin-top: 0;
  padding: 8px;
  border-radius: 10px;
  border: 0;
  background:
    radial-gradient(circle at 5% -30%, rgba(117, 132, 155, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(10, 15, 24, 0.96), rgba(7, 11, 18, 0.96));
  box-shadow: none;
}

.board-section::before {
  display: none;
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.board-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.board-heading-panel {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: none;
}

.board-heading-text {
  min-width: 0;
}

.board-head h2 {
  margin: 0;
  font-size: 20px;
  font-family: var(--font-display);
}

.board-note {
  margin: 2px 0 0;
  color: #8da8cb;
  font-size: 11px;
  line-height: 1.25;
}

.board-head-right {
  display: flex;
  justify-content: flex-end;
}

.board-filter-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.board-wrap .rank-tabs .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(118, 160, 211, 0.35);
  background: rgba(12, 27, 47, 0.64);
  color: #bfd7f6;
  font-size: 12px;
  font-weight: 600;
}

.board-wrap .rank-tabs .chip .rank-tab-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(78, 128, 199, 0.9), rgba(49, 94, 168, 0.9));
  border: 1px solid rgba(170, 203, 246, 0.45);
  color: #eaf4ff;
  flex: 0 0 auto;
}

.board-wrap .rank-tabs .chip .rank-tab-icon svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-wrap .rank-tabs .chip .rank-tab-label {
  line-height: 1;
}

.board-wrap .rank-tabs .chip:hover,
.board-wrap .rank-tabs .chip.is-active {
  background: linear-gradient(135deg, rgba(24, 219, 155, 0.24), rgba(24, 219, 155, 0.08));
  border-color: rgba(24, 219, 155, 0.7);
  color: #b9ffe4;
}

.board-wrap .rank-tabs .chip:hover .rank-tab-icon,
.board-wrap .rank-tabs .chip.is-active .rank-tab-icon {
  background: linear-gradient(145deg, rgba(29, 206, 149, 0.9), rgba(20, 170, 122, 0.88));
  border-color: rgba(123, 255, 208, 0.62);
  color: #eafff7;
}

.board-filter-panel .rank-tabs {
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.board-filter-panel .rank-tabs::-webkit-scrollbar {
  display: none;
}

.board-filter-panel .rank-tabs .chip {
  flex: 0 0 auto;
}

.board-refresh {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 0;
  background: rgba(24, 87, 173, 0.94);
  color: #eef5ff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  cursor: pointer;
}

.board-refresh svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rank-columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  transition: opacity 0.18s ease;
}

.rank-columns.is-loading {
  opacity: 0.62;
  pointer-events: none;
}

.rank-columns.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(124, 156, 198, 0.04), rgba(124, 156, 198, 0.12), rgba(124, 156, 198, 0.04));
  pointer-events: none;
}

.board-loading {
  padding: 18px 12px;
  border-radius: 8px;
  border: 1px solid rgba(90, 126, 176, 0.34);
  background: rgba(10, 20, 34, 0.92);
  color: #aecaee;
  text-align: center;
  font-size: 12px;
}

.rank-card {
  position: relative;
  background: rgba(6, 10, 16, 0.96);
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.board-card::before {
  display: none;
}

.board-new::before {
  background: #44c7d2;
}

.board-good::before {
  background: #e2b35f;
}

.rank-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 6px;
  border-bottom: 0;
}

.board-card-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.board-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
  border: 0;
  background: rgba(40, 87, 151, 0.72);
  color: #bfdcff;
}

.board-new .board-badge {
  color: #b8eeff;
  background: rgba(38, 114, 163, 0.7);
}

.board-good .board-badge {
  color: #ffd58b;
  background: rgba(109, 79, 38, 0.7);
}

.board-card-title strong {
  min-width: 0;
  font-size: 13px;
  color: #e6f1ff;
  white-space: nowrap;
}

.board-card-title time {
  color: #b2c8e6;
  font-size: 10px;
}

.rank-card header a {
  flex: 0 0 auto;
  font-size: 11px;
  color: #d4e4f9;
  border: 0;
  border-radius: 6px;
  padding: 2px 5px;
  background: rgba(35, 67, 112, 0.9);
}

.rank-card ul {
  list-style: none;
  margin: 0;
  padding: 2px 6px 4px;
  display: grid;
  gap: 4px;
}

.rank-card li {
  display: grid;
  grid-template-columns: 30px 42px 1fr auto;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 6px 4px;
  background: rgba(9, 14, 22, 0.92);
  border: 0;
  box-shadow: none;
}

.order {
  width: 26px;
  height: 22px;
  border-radius: 5px;
  background: rgba(49, 96, 163, 0.82);
  border: 0;
  color: #d7e9ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rank-card li:nth-child(-n+3) .order {
  background: linear-gradient(180deg, rgba(95, 175, 255, 0.82), rgba(39, 129, 245, 0.82));
  color: #f1f7ff;
}

.board-thumb {
  width: 42px;
  height: 56px;
  border-radius: 7px;
  overflow: hidden;
}

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

.board-entry {
  min-width: 0;
}

.board-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #edf4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-entry p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #b3c7e2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-side {
  min-width: 62px;
  display: grid;
  justify-items: end;
  gap: 3px;
}

.board-episodes {
  color: #bfd1ea;
  font-size: 10px;
  white-space: nowrap;
}

.rank-card li em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
  font-size: 10px;
  color: #ccdef8;
}

.rank-card li em i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #72a9e4;
}

.board-good li em i {
  background: #d5a55a;
}

body.is-light .board-section {
  border: 1px solid #d8e3eb;
  background: linear-gradient(180deg, #f7fbff, #eef4fa);
}

body.is-light .board-head h2 {
  color: #1b2733;
}

body.is-light .board-note {
  color: #6e7f91;
}

body.is-light .board-wrap .rank-tabs .chip {
  border-color: rgba(30, 70, 110, 0.2);
  background: #f4f9ff;
  color: #35567b;
}

body.is-light .board-wrap .rank-tabs .chip .rank-tab-icon {
  background: linear-gradient(145deg, rgba(111, 153, 208, 0.92), rgba(72, 118, 184, 0.92));
  border-color: rgba(154, 186, 229, 0.65);
  color: #f3f8ff;
}

body.is-light .board-wrap .rank-tabs .chip:hover,
body.is-light .board-wrap .rank-tabs .chip.is-active {
  background: linear-gradient(135deg, rgba(16, 191, 132, 0.22), rgba(16, 191, 132, 0.08));
  border-color: rgba(16, 191, 132, 0.7);
  color: #127f59;
}

body.is-light .board-wrap .rank-tabs .chip:hover .rank-tab-icon,
body.is-light .board-wrap .rank-tabs .chip.is-active .rank-tab-icon {
  background: linear-gradient(145deg, rgba(39, 189, 132, 0.9), rgba(21, 158, 106, 0.88));
  border-color: rgba(112, 229, 182, 0.66);
  color: #f4fff9;
}

body.is-light .board-refresh {
  background: linear-gradient(180deg, #5ca7ee, #438fda);
  color: #fff;
}

body.is-light .rank-card {
  background: #ffffff;
}

body.is-light .board-badge {
  background: #e9f2ff;
  color: #2a5d96;
}

body.is-light .board-new .board-badge {
  background: #e7f1fb;
  color: #2f628e;
}

body.is-light .board-good .board-badge {
  background: #fff3df;
  color: #8d6829;
}

body.is-light .board-card-title strong {
  color: #1f2d3a;
}

body.is-light .board-card-title time {
  color: #7a8fa3;
}

body.is-light .rank-card header a {
  background: #f0f5fa;
  color: #5d748a;
}

body.is-light .rank-card li {
  background: #f4f8fe;
}

body.is-light .order {
  background: #dce9f4;
  color: #35506a;
}

body.is-light .rank-card li:nth-child(-n+3) .order {
  background: linear-gradient(180deg, #79b5e8, #5ea0da);
  color: #fff;
}

body.is-light .board-name {
  color: #1d2c39;
}

body.is-light .board-entry p {
  color: #6f8294;
}

body.is-light .board-episodes {
  color: #6e8499;
}

body.is-light .rank-card li em {
  color: #4f6880;
}

body.is-light .rank-card li em i {
  background: #5e97cb;
}

body.is-light .board-good li em i {
  background: #d4a85e;
}

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

.media-grid.large,
#categoryGrid.media-grid.large,
.result-panel .media-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.showcase-grid,
.poster-grid {
  gap: 18px 14px;
}

.showcase-grid .media-card,
.poster-grid .media-card {
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.showcase-grid .media-card .cover,
.poster-grid .media-card .cover {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.showcase-grid .media-card .cover::after,
.poster-grid .media-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 16, 22, 0) 58%, rgba(9, 12, 18, 0.12));
  pointer-events: none;
}

.showcase-grid .media-card .badge,
.poster-grid .media-card .badge {
  display: none;
}

.showcase-grid .media-card .meta,
.poster-grid .media-card .meta {
  padding: 9px 2px 0;
}

.showcase-grid .media-card .meta h3,
.poster-grid .media-card .meta h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.showcase-grid .media-card .meta h3 a,
.poster-grid .media-card .meta h3 a {
  color: #eff4ff;
}

.showcase-tags {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.showcase-tags span {
  flex: 0 0 auto;
  max-width: 100%;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.06);
  color: #8f98a8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
}

body[data-page="search"] .showcase-tags {
  gap: 4px;
  flex-wrap: wrap;
  overflow: visible;
}

body[data-page="search"] .showcase-tags span {
  font-size: 10px;
  padding: 4px 6px;
}

body.is-light .showcase-grid .media-card .meta h3 a,
body.is-light .poster-grid .media-card .meta h3 a {
  color: #121821;
}

body.is-light .showcase-tags span {
  border-color: rgba(24, 34, 45, 0.1);
  background: rgba(24, 34, 45, 0.08);
  color: #4f5d72;
}

.media-card {
  border: 1px solid #d6e3f3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.media-card .cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 23;
}

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

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 11px;
  padding: 3px 7px;
}

.ep-badge {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 72%;
  border-radius: 0 10px 0 10px;
  border: 0;
  background: linear-gradient(135deg, #5caeff, #2a86ff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
}

.ep-badge.is-score {
  background: linear-gradient(135deg, #35c87a, #19a95f);
}

body.is-light .ep-badge {
  background: linear-gradient(135deg, #56a9ff, #2f86ff);
  box-shadow: none;
}

body.is-light .ep-badge.is-score {
  background: linear-gradient(135deg, #36c67a, #16a65b);
}

.media-card .meta {
  padding: 9px;
}

.media-card .meta h3 {
  margin: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card .meta p {
  margin: 4px 0 0;
  font-size: 11px;
  color: #676767;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  padding: 24px;
  border: 1px dashed #bfd3ea;
  border-radius: 10px;
  background: #f2f8ff;
  color: #6a5a42;
  text-align: center;
}

.media-grid > .empty {
  grid-column: 1 / -1;
}

.empty-loading {
  grid-column: 1 / -1;
  border: 0;
  background: transparent;
  color: #e8f3ff;
  padding: 30px 0 40px;
  border-radius: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.loading-orbit {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: relative;
  border: 2px solid rgba(146, 196, 255, 0.25);
  border-top-color: #64b9ff;
  border-right-color: #64b9ff;
  box-shadow: 0 0 18px rgba(72, 160, 255, 0.28);
  animation: loadingSpin 0.9s linear infinite;
}

.loading-orbit::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px solid rgba(92, 191, 255, 0.28);
  border-bottom-color: #41d6ff;
  animation: loadingSpinReverse 1.25s linear infinite;
}

.loading-text {
  display: block;
  text-align: center;
  letter-spacing: 0.2px;
  line-height: 1.35;
  font-size: 34px;
  font-weight: 700;
  color: #e8f3ff;
  text-shadow: 0 3px 16px rgba(56, 140, 255, 0.24);
}

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

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

body.is-light .empty-loading {
  color: #2c4f75;
}

body.is-light .loading-orbit {
  border-color: rgba(72, 125, 190, 0.24);
  border-top-color: #2d8cff;
  border-right-color: #2d8cff;
  box-shadow: 0 0 14px rgba(50, 130, 230, 0.22);
}

body.is-light .loading-orbit::after {
  border-color: rgba(72, 125, 190, 0.2);
  border-bottom-color: #1eb8ea;
}

body.is-light .loading-text {
  color: #2c4f75;
  text-shadow: 0 1px 8px rgba(70, 122, 188, 0.16);
}

.pager {
  margin-top: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pager.is-show {
  display: flex;
}

.pager-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(155, 187, 226, 0.46);
  background: rgba(12, 28, 49, 0.78);
  color: #d5e8ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pager-btn.is-active {
  border-color: rgba(158, 209, 255, 0.88);
  background: linear-gradient(135deg, #49a4ff, #1677ff);
  color: #fff;
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

body.is-light .pager-btn {
  border-color: #c9dcf0;
  background: #f1f7ff;
  color: #315579;
}

.category-head {
  margin: 4px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.category-head h1,
.category-head h2 {
  margin: 0;
  font-size: 28px;
  font-family: var(--font-display);
}

.category-head p {
  margin: 4px 0 0;
  color: #646464;
  font-size: 13px;
}

.category-count {
  font-size: 12px;
  color: #6a6a6a;
}

.filter-panel {
  padding: 12px;
}

.filter-group {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: start;
  padding: 6px 0;
}

.filter-group strong {
  padding-top: 5px;
  font-size: 12px;
  color: #666;
}

.showcase-head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.showcase-pan-tabs {
  gap: 8px;
}

.showcase-pan-tabs .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(118, 160, 211, 0.35);
  background: rgba(12, 27, 47, 0.64);
  color: #bfd7f6;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
}

.showcase-pan-tabs .chip .drive-tab-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.showcase-pan-tabs .chip:hover,
.showcase-pan-tabs .chip.is-active {
  background: linear-gradient(135deg, rgba(24, 219, 155, 0.24), rgba(24, 219, 155, 0.08));
  border-color: rgba(24, 219, 155, 0.7);
  color: #b9ffe4;
}

body.is-light .showcase-pan-tabs .chip .drive-tab-icon {
  box-shadow: 0 0 0 1px rgba(25, 48, 76, 0.14);
}

.showcase-more-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(118, 160, 211, 0.35);
  background: rgba(12, 27, 47, 0.64);
  color: #bfd7f6;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  text-decoration: none;
}

.showcase-more-chip:hover {
  background: linear-gradient(135deg, rgba(24, 219, 155, 0.24), rgba(24, 219, 155, 0.08));
  border-color: rgba(24, 219, 155, 0.7);
  color: #b9ffe4;
}

body.is-light .showcase-more-chip {
  border-color: rgba(30, 70, 110, 0.2);
  background: #f4f9ff;
  color: #35567b;
}

body.is-light .showcase-more-chip:hover {
  background: linear-gradient(135deg, rgba(16, 191, 132, 0.22), rgba(16, 191, 132, 0.08));
  border-color: rgba(16, 191, 132, 0.7);
  color: #127f59;
}

body.is-light .showcase-pan-tabs .chip {
  border-color: rgba(30, 70, 110, 0.2);
  background: #f4f9ff;
  color: #35567b;
}

body.is-light .showcase-pan-tabs .chip:hover,
body.is-light .showcase-pan-tabs .chip.is-active {
  background: linear-gradient(135deg, rgba(16, 191, 132, 0.22), rgba(16, 191, 132, 0.08));
  border-color: rgba(16, 191, 132, 0.7);
  color: #127f59;
}

.filter-panel-v2 {
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(112, 150, 196, 0.22);
  background: linear-gradient(135deg, rgba(8, 20, 38, 0.9), rgba(9, 30, 57, 0.7));
}

.filter-panel-v2 .filter-group {
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 9px 0;
}

.filter-panel-v2 .filter-group strong {
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #7f97b8;
  letter-spacing: 0.2px;
}

.filter-panel-v2 .chips {
  gap: 10px;
}

.filter-panel-v2 #filterArea.chips,
.filter-panel-v2 #filterYear.chips {
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
  padding-bottom: 2px;
}

.filter-panel-v2 #filterArea.chips .chip,
.filter-panel-v2 #filterYear.chips .chip {
  flex: 0 0 auto;
}

.filter-panel-v2 .chip {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(102, 128, 169, 0.36);
  background: rgba(8, 21, 44, 0.66);
  color: #afc2df;
  font-size: 13px;
  line-height: 1;
  padding: 10px 20px;
}

.filter-panel-v2 .chip:hover,
.filter-panel-v2 .chip.is-active {
  background: linear-gradient(135deg, #24d69f, #14ba8a);
  border-color: rgba(36, 214, 159, 0.94);
  color: #f4fffa;
}

body.is-light .filter-panel-v2 {
  border-color: rgba(167, 196, 228, 0.78);
  background: linear-gradient(135deg, #f7fbff, #f0f7ff);
}

body.is-light .filter-panel-v2 .filter-group strong {
  color: #4d6788;
}

body.is-light .filter-panel-v2 .chip {
  border-color: #d3e1f2;
  background: #fff;
  color: #426288;
}

body.is-light .filter-panel-v2 .chip:hover,
body.is-light .filter-panel-v2 .chip.is-active {
  background: linear-gradient(135deg, #1dcf9a, #10b887);
  border-color: #14b989;
  color: #fff;
}

.filter-panel-text {
  display: grid;
  gap: 14px;
  padding: 20px 18px;
}

body[data-page="category"] .filter-panel-text {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  position: relative;
  padding-bottom: 34px;
}

body[data-page="category"] .filter-panel-text .category-count {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 12px;
  color: rgba(182, 198, 220, 0.66);
  text-align: right;
  white-space: nowrap;
}

.filter-channel-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
  padding-top: 4px;
  padding-bottom: 2px;
}

.filter-channel-tabs .chip {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 8px 0 0;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  background: transparent;
  color: rgba(228, 236, 248, 0.58);
  position: relative;
}

.filter-channel-tabs .chip .channel-tab-icon {
  width: 26px;
  height: 13px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%) translateY(2px) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.filter-channel-tabs .chip:hover,
.filter-channel-tabs .chip.is-active {
  color: #f3f8ff;
  background: transparent;
}

.filter-channel-tabs .chip.is-active .channel-tab-icon {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.filter-channel-tabs .chip .channel-tab-label {
  display: block;
  position: relative;
  z-index: 1;
}

.filter-channel-tabs .chip-more {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 1;
}

.filter-text-row {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  gap: 8px;
}

.filter-text-row strong {
  padding-top: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(185, 204, 228, 0.66);
}

.filter-text-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
  padding-bottom: 2px;
}

.filter-text-chips .chip {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(225, 236, 248, 0.54);
  font-size: 14px;
  font-weight: 600;
}

.filter-text-chips .chip:hover,
.filter-text-chips .chip.is-active {
  background: transparent;
  border-color: transparent;
  color: #ff9c1e;
}

.filter-panel-text .chip-more {
  color: rgba(195, 210, 228, 0.72);
}

.filter-panel-text .chip-more:hover {
  color: #f3f8ff;
}

body.is-light .filter-panel-text {
  background: linear-gradient(135deg, #f8fbff, #f1f6ff);
}

body.is-light[data-page="category"] .filter-panel-text {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.is-light[data-page="category"] .filter-panel-v2 .chip,
body.is-light[data-page="category"] .filter-panel-v2 .chip:hover,
body.is-light[data-page="category"] .filter-panel-v2 .chip.is-active {
  background: transparent;
  border-color: transparent;
}

body.is-light[data-page="category"] .filter-panel-text .category-count {
  color: rgba(71, 91, 116, 0.72);
}

body.is-light .filter-channel-tabs .chip {
  background: transparent;
  border-color: transparent;
  color: rgba(47, 70, 98, 0.56);
}

body.is-light .filter-channel-tabs .chip:hover,
body.is-light .filter-channel-tabs .chip.is-active {
  background: transparent;
  border-color: transparent;
  color: #1d2f46;
}

body.is-light .filter-text-row strong {
  color: rgba(56, 78, 107, 0.72);
}

body.is-light .filter-text-chips .chip {
  background: transparent;
  border-color: transparent;
  color: rgba(65, 88, 117, 0.62);
}

body.is-light .filter-text-chips .chip:hover,
body.is-light .filter-text-chips .chip.is-active {
  background: transparent;
  border-color: transparent;
  color: #f28b0d;
}

body.is-light .filter-panel-text .chip-more {
  color: rgba(69, 93, 122, 0.72);
}

body.is-light .filter-panel-text .chip-more:hover {
  color: #2f4e72;
}

.search-page-form {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 8px;
}

.search-page-form select,
.search-page-form input {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(112, 150, 196, 0.36);
  background: rgba(8, 21, 44, 0.66);
  color: #e6f2ff;
  padding: 0 12px;
  outline: none;
}

.search-page-form input::placeholder {
  color: #9bb5d5;
}

body.is-light .search-page-form select,
body.is-light .search-page-form input {
  border: 1px solid #d2e1f1;
  background: #fff;
  color: #1f3956;
}

body.is-light .brand-name {
  color: #2a4362;
}

body.is-light .brand-subtitle {
  color: #6a85a4;
}

body.is-light .search-page-form input::placeholder {
  color: #839bb8;
}

body.is-dialog-open {
  overflow: hidden;
}

.submission-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 18, 0.68);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.submission-overlay[hidden],
.submission-form[hidden],
.transfer-overlay[hidden] {
  display: none !important;
}

.submission-dialog {
  width: min(560px, calc(100vw - 24px));
  border-radius: 16px;
  border: 1px solid rgba(95, 132, 178, 0.36);
  background: linear-gradient(150deg, rgba(8, 21, 42, 0.97), rgba(6, 16, 31, 0.97));
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
  padding: 18px 18px 16px;
  position: relative;
}

.submission-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(105, 142, 188, 0.38);
  background: rgba(16, 34, 62, 0.86);
  color: #d6e7ff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.submission-title {
  margin: 0;
  font-size: 22px;
  font-family: var(--font-display);
}

.submission-hint {
  margin: 6px 0 12px;
  color: rgba(188, 208, 233, 0.82);
  font-size: 13px;
}

.submission-form {
  display: grid;
  gap: 10px;
}

.submission-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: rgba(190, 210, 235, 0.84);
}

.submission-form input,
.submission-form select,
.submission-form textarea {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(113, 150, 197, 0.34);
  background: rgba(8, 22, 45, 0.7);
  color: #eaf3ff;
  padding: 0 12px;
  outline: none;
}

.submission-form textarea {
  min-height: 90px;
  padding: 10px 12px;
  resize: vertical;
}

.submission-form input::placeholder,
.submission-form textarea::placeholder {
  color: rgba(154, 179, 211, 0.8);
}

.submission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.submission-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.submission-status {
  min-height: 20px;
  font-size: 12px;
  color: rgba(183, 203, 228, 0.86);
}

.submission-status.is-success {
  color: #36d09a;
}

.submission-status.is-error {
  color: #ff7c88;
}

body.is-light .submission-overlay {
  background: rgba(19, 35, 56, 0.35);
}

body.is-light .submission-dialog {
  border-color: #c8daee;
  background: linear-gradient(145deg, #f8fcff, #f2f8ff);
  box-shadow: 0 22px 60px rgba(25, 41, 64, 0.18);
}

body.is-light .submission-close {
  border-color: #cadcf2;
  background: #f3f8ff;
  color: #3f5e82;
}

body.is-light .submission-hint,
body.is-light .submission-form label {
  color: rgba(57, 82, 113, 0.82);
}

body.is-light .submission-form input,
body.is-light .submission-form select,
body.is-light .submission-form textarea {
  border-color: #d2e2f3;
  background: #fff;
  color: #1f3956;
}

body.is-light .submission-form input::placeholder,
body.is-light .submission-form textarea::placeholder {
  color: #8da4c0;
}

.transfer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(3, 10, 18, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.transfer-loading[hidden],
.transfer-error[hidden],
.transfer-desktop[hidden],
.transfer-mobile[hidden],
.transfer-qrcode img[hidden] {
  display: none !important;
}

.transfer-dialog {
  width: min(520px, calc(100vw - 24px));
  border-radius: 16px;
  border: 1px solid rgba(96, 136, 186, 0.4);
  background: linear-gradient(145deg, rgba(7, 19, 38, 0.98), rgba(6, 16, 31, 0.98));
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.46);
  padding: 18px 18px 14px;
  position: relative;
}

.transfer-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(102, 144, 196, 0.42);
  background: rgba(15, 34, 61, 0.9);
  color: #d7e8ff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.transfer-title {
  margin: 0 0 10px;
  font-size: 21px;
  font-family: var(--font-display);
}

.transfer-loading {
  min-height: 136px;
  display: grid;
  place-content: center;
  gap: 10px;
  justify-items: center;
  color: #cfe1fb;
  font-size: 13px;
}

.transfer-loading .loading-orbit {
  width: 30px;
  height: 30px;
}

.transfer-loading .loading-orbit::after {
  inset: 6px;
}

.transfer-error {
  min-height: 84px;
  border-radius: 12px;
  border: 1px solid rgba(197, 83, 96, 0.46);
  background: rgba(62, 20, 28, 0.52);
  color: #ffc8ce;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 12px;
  font-size: 13px;
}

.transfer-desktop,
.transfer-mobile {
  display: grid;
  gap: 10px;
}

.transfer-hint {
  margin: 0;
  color: #b8cce8;
  font-size: 13px;
  text-align: center;
}

.transfer-qrcode {
  width: 222px;
  height: 222px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(112, 147, 193, 0.4);
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 8px;
}

.transfer-qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.transfer-qrcode-fallback {
  color: #5f6b7a;
  font-size: 12px;
  text-align: center;
  padding: 8px;
}

.transfer-link {
  margin: 0;
  border-radius: 10px;
  border: 1px solid rgba(95, 141, 201, 0.34);
  background: rgba(12, 30, 53, 0.76);
  color: #bdd2ef;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
  padding: 8px 10px;
}

.transfer-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.transfer-action {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(103, 144, 194, 0.34);
  background: rgba(14, 31, 56, 0.78);
  color: #d1e1f6;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.transfer-action.primary {
  border-color: rgba(59, 209, 137, 0.82);
  background: linear-gradient(135deg, #38d385, #1ebf70);
  color: #fff;
}

body.is-light .transfer-overlay {
  background: rgba(16, 33, 58, 0.36);
}

body.is-light .transfer-dialog {
  border-color: #c8daee;
  background: linear-gradient(145deg, #f9fcff, #f2f8ff);
  box-shadow: 0 22px 60px rgba(25, 41, 64, 0.18);
}

body.is-light .transfer-close {
  border-color: #cadcf2;
  background: #f3f8ff;
  color: #3f5e82;
}

body.is-light .transfer-loading {
  color: #4e6f95;
}

body.is-light .transfer-hint {
  color: #56769b;
}

body.is-light .transfer-link {
  border-color: #d2e1f2;
  background: #f4f9ff;
  color: #4a6c92;
}

body.is-light .transfer-action {
  border-color: #d2e1f2;
  background: #f4f9ff;
  color: #426387;
}

body.is-light .transfer-error {
  border-color: #f2d0d5;
  background: #fff5f7;
  color: #b64d5d;
}

.detail-page-main {
  padding-top: 12px;
}

.detail-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.detail-page-heading h1 {
  margin: 0;
  font-size: clamp(32px, 2.9vw, 44px);
  line-height: 0.94;
  font-family: var(--font-display);
}

.detail-page-heading p {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(167, 205, 173, 0.92);
}

.detail-page-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.detail-head-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(73, 145, 103, 0.42);
  background: rgba(6, 20, 16, 0.72);
  color: #f0f8f3;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.detail-head-btn:hover {
  border-color: rgba(109, 185, 141, 0.66);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 18px;
}

.detail-feature {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(46, 110, 79, 0.48);
  background: linear-gradient(145deg, rgba(4, 18, 15, 0.9), rgba(3, 12, 10, 0.94));
  box-shadow: none;
}

.detail-feature-poster {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(7, 54, 39, 0.96), rgba(3, 27, 22, 0.95));
  border: 1px solid rgba(50, 114, 84, 0.44);
}

.detail-feature-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-poster-empty {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(171, 203, 182, 0.85);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.detail-feature-poster.is-noimg .detail-poster-empty {
  display: flex;
}

.detail-feature-poster.is-noimg img {
  display: none;
}

.detail-feature-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.detail-drive-badge {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #43b07f;
}

.detail-feature-body h2 {
  margin: 0;
  font-size: clamp(28px, 2.3vw, 38px);
  line-height: 1.18;
  color: #edf6ef;
}

.detail-summary {
  margin: 0;
  color: #c4d7c8;
  font-size: 15px;
  line-height: 1.72;
  word-break: break-word;
}

.detail-sub-meta {
  margin: -2px 0 0;
  color: rgba(164, 185, 170, 0.74);
  font-size: 12px;
}

.detail-inline-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-inline-pill {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #d6eadb;
  border: 1px solid rgba(75, 143, 104, 0.45);
  background: rgba(8, 37, 27, 0.74);
}

.detail-feature-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.detail-get-btn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(117, 201, 154, 0.66);
  background: linear-gradient(135deg, #76c78f, #5eb07b);
  color: #f4fff7;
  font-size: 16px;
  font-weight: 700;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.detail-get-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #4f64ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: #fff;
  border-radius: 50%;
}

.detail-side {
  display: grid;
  gap: 14px;
}

.detail-side-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(46, 110, 79, 0.48);
  background: linear-gradient(145deg, rgba(4, 18, 15, 0.86), rgba(3, 12, 10, 0.92));
  box-shadow: none;
}

.detail-side-btn {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(54, 128, 92, 0.52);
  background: rgba(4, 17, 13, 0.72);
  color: #e4efe8;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}

.detail-side-btn.is-primary {
  border-color: rgba(117, 201, 154, 0.66);
  background: linear-gradient(135deg, #76c78f, #5eb07b);
  color: #f4fff7;
}

.detail-side-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #4f64ff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: #fff;
  border-radius: 50%;
}

.detail-side-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(46, 110, 79, 0.48);
  background: linear-gradient(145deg, rgba(4, 18, 15, 0.86), rgba(3, 12, 10, 0.92));
  box-shadow: none;
}

.detail-side-card h3 {
  margin: 0;
  font-size: 28px;
  color: #f0f8f2;
}

.detail-info-list {
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.detail-info-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.detail-info-list dt {
  margin: 0;
  color: #acbdae;
  font-size: 14px;
}

.detail-info-list dd {
  margin: 0;
  color: #eef7f0;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
}

.detail-side-tip p {
  margin: 12px 0 0;
  color: #c1d2c5;
  font-size: 15px;
  line-height: 1.7;
}

.detail-related-section {
  margin-top: 16px;
}

body.is-light .detail-head-btn {
  border-color: #d0e0f1;
  background: #f4f9ff;
  color: #355478;
}

body.is-light .detail-feature,
body.is-light .detail-side-actions,
body.is-light .detail-side-card {
  border-color: #d3e3f2;
  background: #f8fcff;
}

body.is-light .detail-feature-body h2,
body.is-light .detail-side-card h3,
body.is-light .detail-info-list dd {
  color: #203a57;
}

body.is-light .detail-summary,
body.is-light .detail-side-tip p {
  color: #557492;
}

body.is-light .detail-drive-badge {
  color: #2f8f65;
}

body.is-light .detail-inline-pill {
  border-color: #d4e4f2;
  background: #f2f8ff;
  color: #486887;
}

.page-footer {
  margin: 14px auto 18px;
  border-top: 1px solid #d0e0f2;
  padding-top: 10px;
  color: #6f6f6f;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
  overflow-x: auto;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.footer-copy small {
  color: inherit;
}

.crawler-row {
  margin-top: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  justify-content: flex-end;
  overflow: visible;
}

.crawler-row a {
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.crawler-row a:hover {
  color: #1c67d7;
}

.crawler-row i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8f8f8f;
  flex: 0 0 auto;
}

.back-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d2c8b8;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
}

.back-top.is-show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1380px) {
  .media-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .media-grid.large,
  #categoryGrid.media-grid.large,
  .result-panel .media-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 62px;
    background: #fff;
    border: 1px solid #d5e3f2;
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  body[data-page="home"] .site-nav {
    background: rgba(16, 24, 36, 0.95);
    border-color: rgba(147, 174, 199, 0.22);
  }

  body[data-page="home"] .site-nav a {
    color: rgba(238, 245, 252, 0.88);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .mode-toggle {
    width: 30px;
    height: 30px;
    padding: 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 560px;
  }

  .cinematic-hero {
    min-height: 840px;
  }

  .hero-core {
    padding-top: 152px;
  }

  .hero-feature-grid {
    position: static;
    margin: 26px 12px 12px;
    grid-template-columns: 1fr 1fr;
    transform: none;
  }

  .hero-kpi-card {
    grid-template-columns: 40px 1fr;
    padding: 12px;
    gap: 10px;
  }

  .kpi-icon {
    width: 40px;
    height: 40px;
  }

  .kpi-body h3 {
    font-size: 13px;
  }

  .kpi-body h3 strong {
    font-size: 18px;
  }

  .hero-search-v5 {
    width: min(100%, calc(100% - 24px));
    gap: 6px;
  }

  .hero-search-v5-shell {
    grid-template-columns: 104px 1fr 104px;
    min-height: 54px;
  }

  .hero-search-v5-pan {
    min-height: 54px;
    padding: 0 8px;
  }

  .hero-search-v5-input {
    min-height: 54px;
    padding: 0 10px;
  }

  .hero-search-v5-btn {
    min-height: 42px;
    border-radius: 10px;
    font-size: 13px;
    gap: 5px;
  }

  .hero-search-v5-btn svg {
    width: 14px;
    height: 14px;
  }

  .hero-search-v5-input input {
    font-size: 14px;
  }

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

  .board-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-head h2 {
    font-size: 20px;
  }

  .board-head-right {
    width: 100%;
    justify-content: space-between;
  }

  .board-filter-panel {
    width: 100%;
    justify-content: space-between;
  }

  .search-box,
  .search-page-form {
    grid-template-columns: 1fr;
  }

  .home-result-head-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .home-result-item {
    grid-template-columns: 78px 1fr;
    gap: 10px;
    padding: 9px;
  }

  .home-result-poster {
    height: 104px;
  }

  .home-result-body {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .filter-panel-text {
    padding: 16px 14px;
    gap: 12px;
  }

  .filter-channel-tabs .chip {
    font-size: 18px;
  }

  .filter-channel-tabs .chip {
    padding-top: 7px;
  }

  .filter-text-row {
    grid-template-columns: 56px 1fr;
  }

  .filter-text-row strong {
    font-size: 13px;
  }

  .filter-text-chips .chip {
    font-size: 13px;
  }

  .showcase-head-tools {
    width: 100%;
    justify-content: flex-start;
  }

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

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

  .media-grid.large,
  #categoryGrid.media-grid.large,
  .result-panel .media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-page-head {
    flex-wrap: wrap;
  }

  .detail-page-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-feature {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .header-wrap,
  .page-footer {
    padding-left: 8px;
    padding-right: 8px;
  }

  .cinematic-hero {
    min-height: 900px;
  }

  .hero-core {
    padding-top: 110px;
    max-width: calc(100% - 16px);
  }

  .hero-core h1 {
    font-size: 26px;
  }

  .hero-core p {
    font-size: 13px;
  }

  .hero-feature-grid {
    grid-template-columns: 1fr;
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 8px;
  }

  .kpi-body h3 {
    font-size: 12px;
    gap: 6px;
  }

  .kpi-body h3 strong {
    font-size: 16px;
  }

  .kpi-body p {
    font-size: 12px;
  }

  .hero-search-v5-input input {
    font-size: 13px;
  }

  body[data-page="home"] .header-wrap {
    min-height: 72px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 13px;
  }

  .brand-subtitle {
    max-width: 110px;
    font-size: 10px;
  }

  body[data-page="home"] .brand-name {
    font-size: clamp(16px, 5vw, 24px);
  }

  body[data-page="home"] .brand-subtitle {
    font-size: 11px;
    max-width: 170px;
  }

  body[data-page="home"] .brand {
    --home-brand-logo-size: calc(clamp(16px, 5vw, 24px) * 0.95 + 11px * 1.15 + 1px);
  }

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

  .board-head {
    flex-wrap: wrap;
  }

  .board-head h2 {
    font-size: 20px;
  }

  .board-refresh {
    min-height: 30px;
  }

  .board-card-title {
    gap: 6px;
  }

  .board-card-title strong {
    font-size: 12px;
  }

  .board-card-title time {
    font-size: 9px;
  }

  .rank-card li {
    grid-template-columns: 26px 38px 1fr auto;
    gap: 6px;
  }

  .board-thumb {
    width: 38px;
    height: 50px;
  }

  .media-grid,
  .media-grid.large,
  #categoryGrid.media-grid.large,
  .result-panel .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-page-heading h1 {
    font-size: clamp(26px, 8vw, 32px);
  }

  .detail-page-head-actions {
    gap: 8px;
  }

  .detail-head-btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .detail-layout {
    gap: 12px;
  }

  .detail-feature {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .detail-feature-poster {
    min-height: 280px;
    max-width: 220px;
  }

  .detail-feature-body h2 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .detail-side {
    gap: 10px;
  }

  .detail-side-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }

  .detail-side-btn,
  .detail-get-btn {
    min-height: 40px;
    font-size: 14px;
  }

  .detail-side-card {
    padding: 12px;
  }

  .detail-side-card h3 {
    font-size: 18px;
  }

  .detail-info-list dd {
    font-size: 16px;
  }

  .home-result-head-tools {
    width: 100%;
    gap: 6px;
  }

  .home-result-tool-select {
    width: 100%;
    justify-content: space-between;
  }

  .home-result-tool-select select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-result-tool-btn {
    flex: 1 1 calc(33.333% - 4px);
  }

  .home-result-item {
    grid-template-columns: 1fr;
  }

  .home-result-poster {
    width: 84px;
    height: 112px;
  }

  .home-result-actions {
    gap: 5px;
  }

  .home-result-btn {
    min-width: 84px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .transfer-dialog {
    padding: 16px 14px 12px;
  }

  .transfer-qrcode {
    width: 184px;
    height: 184px;
  }

  .transfer-mobile-actions {
    grid-template-columns: 1fr;
  }

  .category-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-head h1,
  .category-head h2 {
    font-size: 22px;
  }

  .filter-group {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .filter-panel-v2 .filter-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .filter-panel-v2 .filter-group strong {
    padding-top: 0;
  }

  .showcase-pan-tabs .chip {
    min-height: 28px;
    padding: 5px 10px;
  }

  .showcase-more-chip {
    min-height: 28px;
    padding: 5px 10px;
  }

  .page-footer {
    gap: 12px;
  }
}

/* Final override: keep "资源有效/详情" aligned with KPI card style */
.home-result-actions .home-result-btn-check,
.home-result-actions .home-result-btn-detail {
  background: linear-gradient(145deg, rgba(160, 191, 230, 0.24), rgba(106, 137, 179, 0.18)) !important;
  border: none !important;
  color: #e8f2ff !important;
  border-radius: 14px !important;
  backdrop-filter: blur(14px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
  box-shadow: none !important;
}

.home-result-actions .home-result-btn-check {
  color: #4cffaa !important;
}

.home-result-actions .home-result-btn-check.is-invalid {
  color: #ff9b9b !important;
}

.home-result-actions .home-result-btn-check.is-loading {
  color: #ffd98f !important;
}

body.is-light .home-result-actions .home-result-btn-check,
body.is-light .home-result-actions .home-result-btn-detail {
  background: linear-gradient(145deg, rgba(241, 248, 255, 0.8), rgba(222, 236, 252, 0.74)) !important;
  border: none !important;
  color: #5a7390 !important;
}

body.is-light .home-result-actions .home-result-btn-check {
  color: #16b468 !important;
}
