:root {
  color-scheme: light;
  --bg: #e8f3ec;
  --bg-accent: #d7ede2;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --line: rgba(19, 48, 32, 0.08);
  --text: #183728;
  --muted: #678171;
  --green: #07c160;
  --green-deep: #049f4d;
  --green-soft: rgba(7, 193, 96, 0.12);
  --gold: #f5b83d;
  --shadow: 0 18px 42px rgba(30, 88, 52, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 980px;
  --header-height: 78px;
  --font-body: "MiSans", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-title: "MiSans", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

body.night-mode {
  color-scheme: dark;
  --bg: #0e1813;
  --bg-accent: #13221a;
  --panel: rgba(20, 30, 24, 0.92);
  --panel-strong: #17241d;
  --line: rgba(255, 255, 255, 0.07);
  --text: #ebfff2;
  --muted: #9bb4a3;
  --green: #2be786;
  --green-deep: #1dbd6a;
  --green-soft: rgba(43, 231, 134, 0.14);
  --gold: #ffd26d;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.52), transparent 22%),
    linear-gradient(180deg, var(--bg), var(--bg-accent));
  color: var(--text);
  overflow-x: hidden;
}

.global-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.backdrop-orb {
  position: absolute;
  border-radius: 999px;
  will-change: transform;
  opacity: 0.95;
}

.backdrop-orb-left,
.backdrop-orb-right,
.backdrop-orb-bottom {
  animation: backdrop-drift 16s ease-in-out infinite;
}

.backdrop-orb-left {
  width: 360px;
  height: 360px;
  left: -212px;
  top: -38px;
  background:
    radial-gradient(circle at 78% 38%, rgba(96, 220, 155, 0.24), rgba(96, 220, 155, 0.11) 32%, rgba(214, 246, 228, 0.14) 56%, transparent 76%);
  box-shadow:
    inset -18px -22px 44px rgba(76, 168, 115, 0.09),
    0 0 28px rgba(96, 220, 155, 0.04);
}

.backdrop-orb-right {
  width: 360px;
  height: 360px;
  right: -200px;
  top: 150px;
  background:
    radial-gradient(circle at 30% 34%, rgba(176, 236, 210, 0.22), rgba(176, 236, 210, 0.09) 34%, rgba(228, 248, 239, 0.12) 58%, transparent 76%);
  box-shadow:
    inset 16px -18px 42px rgba(86, 158, 121, 0.07),
    0 0 24px rgba(176, 236, 210, 0.04);
  animation-delay: -5s;
}

.backdrop-orb-bottom {
  width: 540px;
  height: 540px;
  left: 20%;
  bottom: -350px;
  background:
    radial-gradient(circle at 50% 22%, rgba(108, 225, 163, 0.18), rgba(108, 225, 163, 0.07) 36%, rgba(226, 247, 237, 0.12) 58%, transparent 78%);
  box-shadow:
    inset 0 -24px 56px rgba(84, 154, 118, 0.07),
    0 0 30px rgba(108, 225, 163, 0.04);
  animation-delay: -9s;
}

.backdrop-orb-left::after,
.backdrop-orb-right::after,
.backdrop-orb-bottom::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.backdrop-orb-left::after {
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.12) 16%, transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%, rgba(70, 140, 103, 0.04) 100%);
}

.backdrop-orb-right::after {
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.09) 16%, transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%);
}

.backdrop-orb-bottom::after {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08) 18%, transparent 40%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.06));
}

body.night-mode .backdrop-orb-left {
  background:
    radial-gradient(circle at 78% 38%, rgba(43, 231, 134, 0.2), rgba(43, 231, 134, 0.08) 30%, rgba(19, 82, 52, 0.38) 54%, rgba(10, 28, 19, 0.22) 66%, transparent 78%);
  box-shadow: inset -26px -30px 62px rgba(3, 15, 9, 0.34);
}

body.night-mode .backdrop-orb-left::after {
  background:
    radial-gradient(circle at 74% 24%, rgba(130, 255, 186, 0.11), rgba(130, 255, 186, 0.03) 14%, transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 34%, rgba(0, 0, 0, 0.18) 100%);
}

body.night-mode .backdrop-orb-right {
  background:
    radial-gradient(circle at 30% 34%, rgba(84, 196, 255, 0.14), rgba(84, 196, 255, 0.045) 34%, rgba(17, 52, 68, 0.16) 56%, transparent 74%);
  box-shadow: inset 20px -22px 52px rgba(3, 16, 24, 0.2);
}

body.night-mode .backdrop-orb-bottom {
  background:
    radial-gradient(circle at 50% 22%, rgba(43, 231, 134, 0.12), rgba(43, 231, 134, 0.04) 36%, rgba(13, 54, 34, 0.16) 58%, transparent 76%);
  box-shadow: inset 0 -30px 64px rgba(5, 18, 11, 0.22);
}

@keyframes backdrop-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, 16px, 0) scale(1.03);
  }
}

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

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

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
}

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

.app-shell {
  min-height: 100vh;
  padding: 14px 10px 32px;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.site-footer {
  width: min(var(--content-width), calc(100% - 20px));
  margin: 10px auto 0;
  padding: 14px 6px 6px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.site-footer-copy {
  flex: 1;
  min-width: 0;
}

.site-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.site-footer-links a {
  color: var(--muted);
}

.site-footer-links a:hover {
  color: var(--green-deep);
}

.site-footer-sep {
  opacity: 0.5;
}

.page-frame {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.topbar,
.site-footer,
.theme-flash {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-bottom: 14px;
}

.topbar-inner {
  width: min(var(--content-width), 100%);
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

body.night-mode .topbar-inner {
  background: rgba(16, 25, 20, 0.82);
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  padding: 7px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--green), #48da8d);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.14);
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  width: clamp(110px, 14vw, 170px);
  max-width: 100%;
}

.brand-copy strong {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a,
.nav-link-button {
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.nav-link-button:hover {
  color: var(--text);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search {
  position: relative;
  width: 222px;
}

.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  outline: none;
}

.header-search input:focus,
.hero-search-box input:focus,
.modal-form input:focus,
.modal-form textarea:focus,
.modal-form select:focus {
  border-color: rgba(7, 193, 96, 0.32);
  box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.13);
}

.input-icon,
.hero-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
}

.input-icon svg,
.hero-search-icon svg,
.icon-tool svg,
.theme-toggle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tool-filter svg {
  stroke-width: 1.22;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-tool-filter svg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.22;
}

.icon-tool > svg {
  width: 21px;
  height: 21px;
}

.icon-tool:not(.theme-toggle) svg {
  stroke-width: 1.28;
}

.icon-tool {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.icon-tool:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.mobile-nav-trigger,
.mobile-nav-panel {
  display: none;
}

.theme-toggle {
  position: relative;
  overflow: hidden;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.theme-toggle .theme-sun,
.theme-toggle .theme-moon {
  position: absolute;
  width: 18px;
  height: 18px;
  inset: 0;
  margin: auto;
  opacity: 1;
  transform-origin: center;
  transform: scale(1) rotate(0deg);
}

.theme-toggle .theme-moon {
  opacity: 0;
  transform: scale(0.72) rotate(-10deg);
}

body.night-mode .theme-toggle .theme-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

body.night-mode .theme-toggle .theme-sun {
  opacity: 0;
  transform: scale(0.72) rotate(10deg);
}

.theme-toggle svg {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.theme-toggle.is-burst::after {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  border: 2px solid rgba(7, 193, 96, 0.28);
  animation: toggle-burst 0.62s ease;
}

.hero-card,
.board-card,
.detail-card,
.modal-card,
.popover-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before,
.detail-card::before,
.board-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at right top, rgba(7, 193, 96, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 300px;
  gap: 14px;
  padding: 16px;
}

.hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.pill-tag,
.hero-mark,
.board-kicker,
.side-tag,
.section-mini-title {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  vertical-align: top;
}

.pill-tag-icon {
  width: 12px;
  height: 12px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 12px;
  color: currentColor;
}

.pill-tag-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-main h1,
.board-head h2,
.board-head h1,
.detail-summary h1,
.modal-card h3,
.popover-card h3,
.hero-side h2 {
  margin: 0;
  font-family: var(--font-title);
  letter-spacing: -0.03em;
}

.hero-main h1,
.board-head h1,
.detail-summary h1 {
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.04;
}

body[data-page="detail"] .detail-summary h1 {
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.12;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-main p,
.detail-summary p,
.board-meta,
.modal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.hero-main p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-side-note {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.hero-side-note-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--green-deep);
}

.hero-side-note-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-side-note-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-tip-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.hero-tip-note-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--green-deep);
}

.hero-tip-note-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-tip-note-text {
  min-width: 0;
}

.hero-search-box {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-search-box input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 14px 0 48px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  outline: none;
}

.hero-search-box button,
.solid-button,
.result-action-primary,
.result-action-secondary,
.mini-rank-item,
.filter-chip,
.keyword-button,
.poster-action,
.poster-action-secondary {
  border: 0;
}

.hero-search-box button,
.solid-button,
.result-action-primary,
.poster-action {
  min-width: 118px;
  height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green), #2bd67c);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(7, 193, 96, 0.22);
}

.hero-search-box button:hover,
.solid-button:hover,
.result-action-primary:hover,
.poster-action:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.keyword-wrap {
  display: grid;
  gap: 8px;
}

.keyword-list,
.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-head-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.keyword-list {
  width: 100%;
  gap: 6px;
  align-items: flex-start;
  align-content: flex-start;
}

.keyword-button,
.filter-chip,
.poster-action-secondary,
.result-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.filter-chip {
  padding: 6px 10px;
  border-radius: 10px;
}

.keyword-button {
  gap: 3px;
  padding: 5px 10px;
  border-radius: 10px;
  color: #4d6858;
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
}

.keyword-button[hidden] {
  display: none;
}

.keyword-button:hover,
.filter-chip:hover,
.poster-action-secondary:hover,
.result-action-secondary:hover {
  background: var(--green-soft);
  color: var(--green-deep);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.18), rgba(7, 193, 96, 0.1));
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.24);
}

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

.stat-tile {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}

.stat-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stat-tile span {
  color: #526d5d;
  font-size: 11px;
}

.stat-tile-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.16), rgba(7, 193, 96, 0.06));
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.14);
}

.stat-tile-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-tile strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.stat-tile-meta {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(7, 193, 96, 0.08), transparent),
    var(--panel-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-side-head,
.board-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.board-head {
  margin-bottom: 14px;
}

.board-head-column {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
}

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

.board-head-title-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--green-deep);
}

.board-head-title-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-head-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.board-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-self: flex-start;
}

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

.search-board-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.search-board-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.search-board-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.search-board-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 280px;
}

.search-board-filters.filter-chip-row,
.search-board-filters .filter-chip-row {
  justify-content: flex-end;
}

.board-sync-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
}

.board-sync-note strong {
  color: var(--text);
  font-weight: 400;
}

.hero-side-head a,
.board-link {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
}

.mini-rank-list {
  display: grid;
  gap: 8px;
}

.mini-rank-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.night-mode .mini-rank-item {
  background: rgba(255, 255, 255, 0.03);
}

.mini-rank-item:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.22);
}

.mini-rank-index {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 184, 61, 0.18);
  color: #bc7b00;
  font-size: 11px;
  font-weight: 800;
}

.mini-rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mini-rank-copy strong,
.poster-copy h3,
.search-item-copy h3 {
  font-size: 13px;
  line-height: 1.35;
}

.mini-rank-copy span {
  color: var(--muted);
  font-size: 11px;
}

.board-card,
.search-card,
.detail-card {
  padding: 16px;
}

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

.poster-card {
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 0;
  border-radius: 18px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  cursor: pointer;
}

.poster-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.24), 0 14px 24px rgba(18, 66, 38, 0.09);
}

.poster-card:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.3), 0 0 0 4px rgba(7, 193, 96, 0.12);
}

.poster-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.16), rgba(56, 194, 255, 0.14));
}

.poster-thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.18), transparent 0 16%),
    radial-gradient(circle at 18% 22%, rgba(202, 255, 239, 0.14), transparent 0 24%),
    radial-gradient(circle at 24% 78%, rgba(255, 255, 255, 0.1), transparent 0 28%),
    radial-gradient(circle at 110% 96%, rgba(84, 190, 255, 0.34), transparent 0 42%),
    linear-gradient(180deg, rgba(20, 207, 120, 0.98) 0%, rgba(33, 201, 152, 0.96) 46%, rgba(61, 194, 217, 0.96) 72%, rgba(86, 176, 249, 0.98) 100%);
  color: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  isolation: isolate;
}

.poster-fallback span {
  display: inline-block;
  max-width: 72%;
  padding: 7px 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.98);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(10, 49, 32, 0.22);
  position: relative;
  z-index: 3;
}

.poster-fallback::before,
.poster-fallback::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.poster-fallback::before {
  inset: auto -12% 14% -16%;
  height: 34%;
  border-radius: 999px 999px 40% 40%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  transform: rotate(6deg);
}

.poster-fallback::after {
  left: -8%;
  right: -8%;
  bottom: -2%;
  height: 26%;
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(47, 209, 178, 0.18), rgba(106, 197, 255, 0.28));
  filter: blur(2px);
}

.poster-badge,
.poster-score {
  position: absolute;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.poster-badge {
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--green-deep);
}

.poster-badge-icon {
  padding: 2px;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 6px 12px rgba(20, 60, 42, 0.08),
    inset 0 0 0 1px rgba(7, 193, 96, 0.08);
  backdrop-filter: blur(10px);
}

.poster-badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.poster-score {
  right: 8px;
  top: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #244437;
}

.poster-copy {
  display: grid;
  gap: 6px;
  padding: 10px 10px 12px;
}

.poster-copy h3,
.search-item-copy h3 {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-copy p,
.search-item-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  word-break: break-all;
  max-height: calc(1.45em * 2);
}

.poster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.poster-meta span,
.detail-meta span,
.detail-tags span,
.search-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 10px;
}

.poster-actions {
  display: grid;
  gap: 6px;
}

.poster-action,
.poster-action-secondary {
  width: 100%;
  min-height: 34px;
}

.poster-card-ranking .poster-meta,
.poster-card-ranking .poster-actions {
  display: none;
}

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

.search-item {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px 12px 10px;
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}

.search-item .poster-thumb {
  width: 104px;
}

.search-item-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.search-item-copy h3 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  word-break: break-all;
  min-height: calc(1.3em * 2);
  max-height: calc(1.3em * 2);
}

.search-item-copy p {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  white-space: normal;
  word-break: break-all;
  min-height: calc(1.45em * 3);
  max-height: calc(1.45em * 3);
}

.search-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-item-actions {
  display: grid;
  gap: 10px;
  width: 124px;
  padding: 4px 0 4px 8px;
  justify-self: end;
  align-content: center;
}

.result-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(245, 184, 61, 0.14);
  color: #b37b00;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(68, 58, 17, 0.32);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.result-state:hover {
  transform: translateY(-1px);
}

.result-state.is-checking {
  background: rgba(7, 193, 96, 0.12);
  color: var(--green-deep);
  border-color: rgba(7, 193, 96, 0.22);
}

.result-state.is-valid {
  background: rgba(7, 193, 96, 0.14);
  color: var(--green-deep);
  border-color: rgba(7, 193, 96, 0.2);
}

.result-state.is-invalid {
  background: rgba(245, 108, 108, 0.12);
  color: #c74e4e;
  border-color: rgba(245, 108, 108, 0.18);
}

.result-state.is-pending {
  background: rgba(245, 184, 61, 0.12);
  color: #a76f00;
  border-color: rgba(245, 184, 61, 0.18);
}

.result-state.is-valid,
.result-state.is-invalid,
.result-state.is-pending,
.result-state.is-checking {
  min-width: 92px;
}

.button-inline-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

.result-state-label {
  white-space: nowrap;
}

.result-action-primary,
.result-action-secondary {
  width: 100%;
  min-height: 38px;
}

.search-item-actions .result-state,
.search-item-actions .result-action-primary,
.search-item-actions .result-action-secondary {
  border-radius: 18px;
}

.search-item-actions .result-state {
  padding-inline: 12px;
}

.toolbar-stack {
  display: grid;
  gap: 12px;
}

.filter-toolbar-grid {
  display: grid;
  gap: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.toolbar-group {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid rgba(119, 141, 126, 0.16);
  background: transparent;
}

.toolbar-group:first-child {
  border-top: 0;
}

.toolbar-inline {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.toolbar-group strong {
  font-size: 11px;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0.02em;
}

.toolbar-group .filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.toolbar-group .filter-chip {
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 10px;
}

.filter-hero-card .board-head-column {
  gap: 6px;
  margin-bottom: 8px;
}

.filter-hero-card h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
}

.filter-hero-card .board-meta {
  max-width: 720px;
  font-size: 11px;
  line-height: 1.5;
}

body[data-page="filter"] #filter-board.poster-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pagination-bar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-chip {
  min-width: 40px;
  height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted-strong);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.page-chip:hover:not(:disabled) {
  color: var(--text);
  transform: translateY(-1px);
}

.page-chip.is-active {
  background: rgba(7, 193, 96, 0.14);
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.22);
}

.page-chip:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.page-gap {
  min-width: 24px;
  text-align: center;
  color: var(--muted);
}

.filter-empty-state {
  grid-column: 1 / -1;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 18px;
}

.filter-empty-card {
  display: grid;
  place-items: center;
  gap: 14px;
  width: min(100%, 340px);
  min-height: 240px;
  padding: 28px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 16%, rgba(7, 193, 96, 0.08), transparent 0 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 249, 245, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(119, 141, 126, 0.16),
    0 10px 30px rgba(20, 51, 35, 0.06);
  color: var(--muted-strong);
  text-align: center;
}

.filter-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 28%, rgba(7, 193, 96, 0.16), transparent 0 34%),
    linear-gradient(180deg, rgba(7, 193, 96, 0.1), rgba(106, 197, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.12);
}

.filter-empty-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--green-deep);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-empty-card strong {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}

.filter-empty-card span {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.filter-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.filter-empty-action {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted-strong);
  box-shadow: inset 0 0 0 1px var(--line);
}

.filter-empty-action.is-primary {
  background: rgba(7, 193, 96, 0.14);
  color: var(--green-deep);
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.2);
}

.loading-card-inline {
  min-height: 120px;
  padding: 16px;
  border-radius: 18px;
}

body[data-page="filter"] .board-card + .board-card {
  margin-top: 14px;
}

body[data-page="filter"] .filter-hero-card {
  padding-bottom: 16px;
}

.detail-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}

.detail-poster .poster-thumb {
  border-radius: 24px;
}

.detail-hero-shell {
  padding: 18px;
}

.detail-poster {
  display: grid;
  gap: 12px;
}

.detail-side-card {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px var(--line);
}

.detail-side-card strong {
  font-size: 11px;
  color: var(--green-deep);
}

.detail-side-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}

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

.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  gap: 14px;
  align-items: start;
}

.detail-head-copy {
  display: grid;
  gap: 8px;
}

.detail-status-card {
  display: grid;
  gap: 3px;
  padding: 12px 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(7, 193, 96, 0.08), rgba(106, 197, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(7, 193, 96, 0.16);
}

.detail-status-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.detail-status-card strong {
  font-size: 13px;
  color: var(--green-deep);
}

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

.detail-status-main-text {
  min-width: 0;
}

.detail-status-spinner {
  width: 14px;
  height: 14px;
  border-width: 1.8px;
}

.detail-status-card span {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

body.night-mode .detail-side-card,
body.night-mode .detail-status-card,
body.night-mode .detail-intro-card,
body.night-mode .detail-actions-card,
body.night-mode .detail-meta-card {
  background: rgba(18, 28, 22, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

body.night-mode .detail-status-card strong,
body.night-mode .detail-meta-card span,
body.night-mode .detail-intro-card p,
body.night-mode .detail-side-card p {
  color: #d0e2d8;
}

body.night-mode .detail-status-card .detail-status-label,
body.night-mode .detail-meta-card strong,
body.night-mode .detail-section-label,
body.night-mode .detail-side-card strong {
  color: #86dcb0;
}

body.night-mode .detail-status-card.is-valid {
  background: rgba(43, 231, 134, 0.12);
  box-shadow: inset 0 0 0 1px rgba(43, 231, 134, 0.18);
}

body.night-mode .detail-status-card.is-invalid {
  background: rgba(245, 108, 108, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 108, 108, 0.16);
}

body.night-mode .detail-status-card.is-pending,
body.night-mode .detail-status-card.is-checking {
  background: rgba(245, 184, 61, 0.1);
  box-shadow: inset 0 0 0 1px rgba(245, 184, 61, 0.16);
}

body.night-mode .detail-actions-card .poster-action-secondary,
body.night-mode .detail-actions-card .poster-action {
  background: rgba(17, 27, 21, 0.94);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

body.night-mode .detail-actions-card .poster-action {
  background: linear-gradient(135deg, var(--green), #2bd67c);
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 193, 96, 0.16);
}

body.night-mode .detail-actions-card .poster-action:hover,
body.night-mode .detail-actions-card .poster-action-secondary:hover {
  transform: translateY(-1px);
}

.detail-intro-card {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px var(--line);
}

.detail-section-label {
  font-size: 11px;
  color: var(--green-deep);
  font-weight: 600;
}

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

.detail-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  align-items: start;
}

.detail-actions-card {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.detail-meta-card {
  display: grid;
  gap: 5px;
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px var(--line);
}

.detail-meta-card strong {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

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

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

.detail-actions-card .detail-actions {
  flex-direction: column;
}

.detail-actions-main .poster-action,
.detail-actions-main .poster-action-secondary {
  min-width: 0;
}

.detail-actions a,
.detail-actions button {
  min-width: 0;
}

.detail-actions-card .poster-action,
.detail-actions-card .poster-action-secondary {
  width: 100%;
  min-height: 42px;
}

.empty-card,
.loading-card {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 180px;
  padding: 24px;
  border-radius: 20px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  text-align: center;
}

.loading-card strong {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--muted);
}

.loading-card-wide {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 320px;
  align-self: stretch;
}

.loading-orbit {
  position: relative;
  width: 72px;
  height: 72px;
  display: inline-grid;
  place-items: center;
}

.loading-orbit-core,
.loading-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.loading-orbit-core {
  inset: 23px;
  background: radial-gradient(circle, rgba(7, 193, 96, 0.22), rgba(7, 193, 96, 0.06));
  box-shadow: 0 0 18px rgba(7, 193, 96, 0.18);
}

.loading-orbit-ring-a {
  border: 4px solid rgba(7, 193, 96, 0.16);
  border-top-color: rgba(7, 193, 96, 0.95);
  border-right-color: rgba(56, 194, 255, 0.5);
  animation: spin 1s linear infinite;
}

.loading-orbit-ring-b {
  inset: 10px;
  border: 3px solid rgba(7, 193, 96, 0.1);
  border-bottom-color: rgba(7, 193, 96, 0.85);
  border-left-color: rgba(255, 255, 255, 0.85);
  animation: spin-reverse 1.35s linear infinite;
}

.modal-mask,
.popover-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(12, 26, 18, 0.54);
  backdrop-filter: blur(10px);
}

.modal-mask.is-open,
.popover-mask.is-open {
  display: flex;
}

.modal-card,
.popover-card {
  width: min(560px, 100%);
  padding: 18px;
}

.popover-card {
  width: min(1000px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 48, 32, 0.08);
  color: var(--muted);
  font-size: 22px;
}

.modal-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.modal-form label {
  display: grid;
  gap: 7px;
}

.modal-form span {
  font-size: 12px;
  font-weight: 700;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  outline: none;
  resize: vertical;
}

.fetch-resource-modal-card {
  width: min(520px, 100%);
  padding: 16px;
}

.fetch-resource-modal-body {
  min-height: 320px;
  display: grid;
}

body[data-page="detail"] .fetch-resource-modal-body {
  min-height: 240px;
}

.fetch-resource-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: 320px;
  text-align: center;
}

.fetch-resource-panel h3 {
  margin: 0;
  font-size: 28px;
  color: #0f3551;
}

.fetch-resource-lead {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.fetch-resource-panel-loading strong {
  color: #5f7f73;
  font-size: 24px;
  font-weight: 700;
}

.fetch-resource-panel-loading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.fetch-resource-qr-wrap {
  display: grid;
  place-items: center;
  width: 174px;
  height: 174px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(12, 45, 31, 0.08);
}

.fetch-resource-qr {
  width: 154px;
  height: 154px;
  display: block;
}

.fetch-resource-title {
  max-width: 100%;
  color: #17344b;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fetch-resource-link-row,
.fetch-resource-code-row {
  width: 100%;
  color: #456277;
  font-size: 13px;
  text-align: left;
}

.fetch-resource-link-row {
  text-align: center;
}

.fetch-resource-link-row a {
  color: #3b82f6;
  word-break: break-all;
}

.fetch-resource-link-box {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #456277;
  font-size: 13px;
  text-align: left;
  word-break: break-all;
}

.fetch-resource-action-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fetch-resource-copy,
.fetch-resource-open {
  width: 100%;
  min-height: 42px;
}

.fetch-resource-footnote {
  width: 100%;
  padding-top: 14px;
  border-top: 1px dashed rgba(12, 45, 31, 0.1);
  color: #8a98a6;
  font-size: 11px;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.fetch-resource-footnote-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: #28b66b;
  margin-top: 2px;
}

.fetch-resource-footnote-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fetch-resource-footnote-text {
  flex: 1;
}

.fetch-resource-panel-error {
  min-height: 220px;
}

.quick-search-form {
  margin: 8px 0 8px;
}

.search-grid-popover {
  margin-top: 8px;
  min-height: 280px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(119, 141, 126, 0.14);
}

.search-meta-inline {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-strong);
}

.popover-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
}

.popover-card .hero-search-box {
  min-height: 62px;
  border-radius: 20px;
  padding-right: 10px;
}

.popover-card .hero-search-box input {
  font-size: 15px;
}

.popover-card .hero-search-box button {
  min-width: 112px;
  height: 42px;
  border-radius: 16px;
  font-size: 14px;
}

.popover-card .filter-chip {
  min-height: 30px;
  padding: 0 12px;
  font-size: 11px;
}

.popover-card .filter-chip-row {
  gap: 7px;
  margin-top: 10px;
}

.popover-card .loading-card {
  min-height: 240px;
}

body.night-mode .popover-card .search-grid-popover {
  background: rgba(18, 28, 22, 0.9);
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: grid;
  gap: 8px;
}

.toast-item {
  min-width: 180px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(18, 28, 22, 0.9);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.26);
  animation: toast-in 0.3s ease;
}

.theme-flash {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}

.theme-flash.is-active {
  opacity: 1;
}

.theme-flash::before,
.theme-flash::after {
  content: "";
  position: absolute;
  inset: -12%;
  transition: transform 0.78s cubic-bezier(0.22, 0.82, 0.22, 1), opacity 0.42s ease;
  will-change: transform;
}

.theme-flash::before {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.78) 42%, rgba(244, 251, 246, 0.94) 50%, rgba(255, 255, 255, 0.72) 58%, rgba(255, 255, 255, 0) 82%);
  transform: translateX(-130%);
  opacity: 0;
}

.theme-flash::after {
  background: linear-gradient(100deg, rgba(4, 9, 7, 0) 18%, rgba(12, 20, 16, 0.8) 42%, rgba(10, 18, 14, 0.96) 50%, rgba(14, 24, 19, 0.72) 58%, rgba(4, 9, 7, 0) 82%);
  transform: translateX(130%);
  opacity: 0;
}

.theme-flash.is-night::after,
.theme-flash.is-day::before {
  transform: translateX(0);
  opacity: 1;
}

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

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

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toggle-burst {
  from {
    opacity: 0.8;
    transform: scale(0.5);
  }
  to {
    opacity: 0;
    transform: scale(1.15);
  }
}

@media (max-width: 1024px) {
  .toolbar-inline {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
  }

  .topbar-inner,
  .page-frame {
    width: min(calc(100vw - 20px), var(--content-width));
  }

  .topbar-inner {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .topbar-tools {
    justify-content: space-between;
  }

  .header-search {
    width: min(100%, 520px);
    flex: 1;
  }

  .hero-card,
  .detail-card {
    grid-template-columns: 1fr;
  }

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

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

  body[data-page="filter"] #filter-board.poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .backdrop-orb-left,
  .backdrop-orb-right,
  .backdrop-orb-bottom {
    opacity: 0.82;
  }
}

@media (max-width: 760px) {
  .toolbar-inline {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .toolbar-group strong {
    line-height: 1.2;
  }

  .toolbar-group {
    padding: 10px 12px;
  }

  .app-shell {
    padding: 10px 6px 24px;
  }

  .backdrop-orb-left {
    width: 220px;
    height: 220px;
    left: -128px;
    top: -12px;
  }

  .backdrop-orb-right {
    width: 220px;
    height: 220px;
    right: -130px;
    top: 140px;
  }

  .backdrop-orb-bottom {
    width: 340px;
    height: 340px;
    left: 12%;
    bottom: -220px;
  }

  .backdrop-orb-left,
  .backdrop-orb-right,
  .backdrop-orb-bottom {
    opacity: 0.72;
  }

  .topbar-inner {
    min-height: 0;
    padding: 8px 10px 8px;
    border-radius: 22px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
  }

  .brand {
    min-width: 0;
    grid-column: 1 / 2;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .brand-copy {
    width: min(170px, 44vw);
  }

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

  .search-board-copy {
    gap: 4px;
  }

  .search-board-title {
    font-size: 16px;
    line-height: 1.12;
  }

  .search-board-meta {
    font-size: 9px;
    line-height: 1.35;
  }

  .search-board-filters {
    min-width: 0;
    justify-content: flex-start;
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(119, 141, 126, 0.12);
  }

  .search-board-filters::-webkit-scrollbar,
  .search-board-filters .filter-chip-row::-webkit-scrollbar {
    display: none;
  }

  .search-board-filters.filter-chip-row,
  .search-board-filters .filter-chip-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 2px;
  }

  .search-board-filters .filter-chip {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 2px solid transparent;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted-strong);
    flex: 0 0 auto;
  }

  .search-board-filters .filter-chip:hover {
    background: transparent;
    transform: none;
  }

  .search-board-filters .filter-chip.is-active {
    background: transparent;
    box-shadow: none;
    color: var(--green-deep);
    border-bottom-color: rgba(7, 193, 96, 0.82);
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    font-size: 10px;
  }

  .main-nav {
    display: none;
  }

  .topbar-tools {
    grid-column: 2 / 3;
    justify-content: flex-end;
    gap: 6px;
  }

  .topbar-tools .header-search {
    display: none;
  }

  .mobile-nav-trigger {
    display: grid;
  }

  .mobile-nav-panel {
    display: none;
    grid-column: 1 / -1;
    margin-top: 0;
    padding: 6px 8px 4px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(119, 141, 126, 0.14);
  }

  .mobile-nav-panel.is-open {
    display: grid;
    gap: 8px;
  }

  .mobile-nav-list {
    display: grid;
    gap: 4px;
  }

  .mobile-nav-list a,
  .mobile-nav-list .nav-link-button {
    justify-content: flex-start;
    text-align: left;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted-strong);
    box-shadow: inset 0 0 0 1px rgba(119, 141, 126, 0.12);
  }

  body.night-mode .mobile-nav-panel {
    background: rgba(16, 25, 20, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  body.night-mode .mobile-nav-list a,
  body.night-mode .mobile-nav-list .nav-link-button {
    background: rgba(19, 31, 24, 0.92);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .hero-card,
  .board-card,
  .detail-card {
    padding: 12px;
    border-radius: 24px;
  }

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

  .detail-card {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

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

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

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

  .detail-poster .poster-thumb {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
  }

  .detail-poster .poster-thumb .poster-image,
  .detail-poster .poster-thumb .poster-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .detail-summary {
    gap: 12px;
    min-width: 0;
  }

  .detail-head-copy h1 {
    font-size: 18px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
  }

  .detail-head-copy {
    min-width: 0;
  }

  .detail-tags {
    gap: 6px;
  }

  .detail-tags span {
    font-size: 10px;
    padding: 4px 8px;
  }

  .detail-status-card {
    padding: 10px 11px;
    border-radius: 16px;
  }

  .detail-status-card strong {
    font-size: 12px;
  }

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

  .detail-meta-card,
  .detail-intro-card,
  .detail-actions-card,
  .detail-side-card {
    padding: 11px 12px;
    border-radius: 16px;
  }

  .detail-actions-card .detail-actions {
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
  }

  .detail-actions-main .poster-action,
  .detail-actions-main .poster-action-secondary {
    flex: 1 1 calc(50% - 4px);
    min-height: 40px;
  }

  .detail-actions-main .poster-action,
  .detail-actions-main .poster-action-secondary {
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
  }

  .detail-actions-main .poster-action:first-child {
    flex-basis: 100%;
  }

  .detail-intro-card p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-main h1 {
    font-size: 18px;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-main p {
    font-size: 9px;
    line-height: 1.35;
  }

  .hero-search-box {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px;
  }

  .hero-search-box input {
    height: 46px;
    padding-left: 42px;
    font-size: 14px;
  }

  .hero-search-box button {
    min-width: 100px;
    height: 46px;
    font-size: 14px;
    border-radius: 14px;
  }

  .keyword-wrap {
    gap: 6px;
  }

  .keyword-list {
    max-height: calc((26px + 6px) * 2 + 4px);
    overflow: hidden;
  }

  .keyword-button {
    min-height: 26px;
    padding: 0 9px;
    font-size: 9px;
  }

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

  .stat-tile {
    padding: 9px 8px;
  }

  .stat-tile-head {
    gap: 4px;
  }

  .stat-tile-head > span:first-child {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stat-tile-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 8px;
  }

  .stat-tile-icon svg {
    width: 12px;
    height: 12px;
  }

  .stat-tile strong {
    font-size: 15px;
  }

  .stat-tile span,
  .stat-tile-meta {
    font-size: 9px;
  }

  .stat-tile-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-tip-note {
    gap: 4px;
    font-size: 8px;
    line-height: 1.15;
  }

  .hero-tip-note-icon {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .hero-side {
    display: none;
  }

  .solid-button {
    width: 100%;
  }

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

  .board-head {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
  }

  .board-head-column {
    order: 2;
    gap: 4px;
  }

  .board-head-title-row {
    display: none;
  }

  .board-head-actions {
    order: 1;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
  }

  .ranking-tabbar,
  .ranking-tabbar .ranking-tab-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 2px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(119, 141, 126, 0.12);
  }

  .ranking-tabbar::-webkit-scrollbar,
  .ranking-tabbar .ranking-tab-row::-webkit-scrollbar {
    display: none;
  }

  .ranking-tab {
    min-width: 0;
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    flex: 0 0 auto;
    background: transparent;
    box-shadow: none;
    border-bottom: 2px solid transparent;
    color: var(--muted-strong);
  }

  .ranking-tab.filter-chip:hover {
    background: transparent;
    transform: none;
  }

  .ranking-tab.filter-chip.is-active {
    background: transparent;
    color: var(--green-deep);
    box-shadow: none;
    border-bottom-color: rgba(7, 193, 96, 0.82);
  }

  .board-sync-note {
    gap: 4px;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .board-sync-note span:last-child {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .board-sync-note span:last-child {
    font-size: 0;
  }

  .board-sync-note span:last-child::before {
    content: "第三方热播榜单数据更新同步时间：";
    font-size: 9px;
    color: var(--muted);
  }

  .board-sync-note span:last-child strong {
    font-size: 9px;
  }

  .poster-card-ranking {
    padding: 0;
    border-radius: 18px;
    background: var(--panel-strong);
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
  }

  .poster-card-ranking .poster-thumb {
    display: block;
    width: 100%;
    margin: 0;
    justify-self: stretch;
    align-self: start;
    border-radius: 18px 18px 0 0;
  }

  .poster-card-ranking .poster-thumb img,
  .poster-card-ranking .poster-thumb .poster-fallback {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .poster-card-ranking .poster-copy {
    padding: 8px 8px 10px;
    gap: 4px;
  }

  .poster-card-ranking .poster-copy h3,
  .poster-card-ranking .poster-copy p {
    padding-inline: 0;
  }

  .poster-card-ranking .poster-badge,
  .poster-card-ranking .poster-score {
    padding: 2px 5px;
    font-size: 8px;
    line-height: 1;
    border-radius: 999px;
    top: 6px;
  }

  .poster-card-ranking .poster-badge {
    left: 6px;
  }

  .poster-card-ranking .poster-score {
    right: 6px;
  }

  .poster-card-ranking .poster-badge-icon {
    width: 18px;
    height: 18px;
    padding: 1px;
    border-radius: 6px;
  }

  body[data-page="filter"] #filter-board.poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pagination-bar {
    gap: 6px;
  }

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

  .search-item {
    grid-template-columns: 84px 1fr;
  }

  .search-item .poster-thumb {
    width: 84px;
  }

  .search-item .poster-badge,
  .search-item .poster-score {
    top: 6px;
    padding: 2px 5px;
    font-size: 8px;
    line-height: 1;
  }

  .search-item .poster-badge {
    left: 6px;
  }

  .search-item .poster-score {
    right: 6px;
  }

  .search-item .poster-badge-icon {
    width: 18px;
    height: 18px;
    padding: 1px;
    border-radius: 6px;
  }

  .search-item-copy {
    gap: 6px;
  }

  .search-item-copy p {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: calc(1.45em * 2);
    max-height: calc(1.45em * 2);
  }

  .search-item-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    padding: 4px 0 0;
  }

  .result-state,
  .result-action-primary,
  .result-action-secondary {
    min-width: 0;
    min-height: 32px;
    padding-inline: 6px;
    font-size: 12px;
    border-radius: 16px;
  }

  .fetch-resource-panel {
    gap: 10px;
    min-height: 220px;
  }

  .fetch-resource-panel h3 {
    font-size: 16px;
    line-height: 1.15;
  }

  .fetch-resource-panel-loading strong {
    font-size: 10px;
    line-height: 1.15;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  .fetch-resource-panel-loading p,
  .fetch-resource-lead {
    font-size: 8.5px;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fetch-resource-title {
    font-size: 9px;
    max-width: 100%;
  }

  .fetch-resource-panel-mobile .fetch-resource-lead,
  .fetch-resource-panel-result .fetch-resource-lead,
  .fetch-resource-panel-loading p {
    width: 100%;
    font-size: 8.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fetch-resource-copy,
  .fetch-resource-open {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    padding-top: 0;
  }

  .fetch-resource-footnote {
    font-size: 8px;
    line-height: 1.35;
    gap: 6px;
    padding-top: 10px;
  }

  .fetch-resource-footnote-icon {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
    margin-top: 1px;
  }

  .fetch-resource-footnote-text {
    line-height: 1.45;
  }

  .site-footer {
    width: min(calc(100vw - 20px), var(--content-width));
    padding: 12px 2px 4px;
    flex-direction: column;
    gap: 8px;
  }

  .site-footer-links {
    justify-content: flex-start;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .hero-main h1 {
    font-size: 18px;
  }

  .hero-search-box {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-search-box button {
    min-width: 92px;
  }

  .keyword-list {
    max-height: calc((24px + 6px) * 2 + 4px);
  }

  .stat-grid {
    gap: 4px;
  }

  .topbar-inner,
  .page-frame,
  .site-footer {
    width: min(calc(100vw - 12px), var(--content-width));
  }

  .topbar-inner {
    min-height: 0;
    padding: 8px;
    gap: 6px;
  }

  .brand {
    gap: 8px;
  }

  .brand-copy {
    width: min(148px, 42vw);
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .icon-tool,
  .mobile-nav-trigger,
  .theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .icon-tool > svg {
    width: 20px;
    height: 20px;
  }

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

  .poster-card {
    padding: 8px;
    border-radius: 16px;
  }

  .poster-card-ranking {
    padding: 0;
    border-radius: 18px;
  }

  .poster-copy h3,
  .search-item-copy h3 {
    font-size: 12px;
  }

  .poster-copy p,
  .search-item-copy p,
  .board-meta {
    font-size: 10px;
  }

  .hero-main h1,
  .board-head h1 {
    font-size: 22px;
  }

  .detail-summary h1 {
    font-size: 17px;
    line-height: 1.18;
  }

  .detail-card {
    padding: 10px;
    border-radius: 20px;
    gap: 10px;
  }

  .detail-poster .poster-thumb {
    border-radius: 18px;
    aspect-ratio: 4 / 3;
  }

  .detail-status-card,
  .detail-meta-card,
  .detail-intro-card,
  .detail-actions-card,
  .detail-side-card {
    padding: 10px;
    border-radius: 14px;
  }

  .detail-actions-main .poster-action,
  .detail-actions-main .poster-action-secondary {
    min-height: 38px;
  }

  .detail-meta-card span,
  .detail-status-card span,
  .detail-side-card p,
  .detail-intro-card p {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  body[data-page="detail"] #detail-hero.detail-card {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="detail"] .detail-mobile-card {
    margin: 0;
  }

  body[data-page="detail"] .detail-mobile-card .search-item-actions {
    margin-top: 8px;
  }

  body[data-page="detail"] .detail-card {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  body[data-page="detail"] .detail-poster {
    display: block;
  }

  body[data-page="detail"] .detail-poster .poster-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 0;
    height: auto;
    overflow: hidden;
    border-radius: 18px;
  }

  body[data-page="detail"] .detail-poster .poster-thumb .poster-image,
  body[data-page="detail"] .detail-poster .poster-thumb .poster-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body[data-page="detail"] .detail-side-card,
  body[data-page="detail"] .detail-status-card,
  body[data-page="detail"] .detail-meta {
    display: none;
  }

  body[data-page="detail"] .detail-summary {
    min-width: 0;
    gap: 8px;
  }

  body[data-page="detail"] .detail-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="detail"] .detail-head-copy h1 {
    font-size: 16px;
    line-height: 1.18;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body[data-page="detail"] .detail-tags {
    gap: 6px;
  }

  body[data-page="detail"] .detail-tags span {
    font-size: 9px;
    padding: 4px 7px;
  }

  body[data-page="detail"] .detail-body-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body[data-page="detail"] .detail-intro-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="detail"] .detail-intro-card .detail-section-label {
    display: none;
  }

  body[data-page="detail"] .detail-intro-card p {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-soft);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body[data-page="detail"] .detail-actions-card {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="detail"] .detail-actions-card .detail-section-label {
    display: none;
  }

  body[data-page="detail"] .detail-actions-card .detail-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }

  body[data-page="detail"] .detail-actions-main .poster-action,
  body[data-page="detail"] .detail-actions-main .poster-action-secondary {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
  }

  body[data-page="detail"] .detail-actions-main .poster-action:first-child {
    flex-basis: auto;
  }
}

@media (max-width: 420px) {
  body[data-page="detail"] .detail-mobile-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  body[data-page="detail"] .detail-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
  }

  body[data-page="detail"] .detail-head-copy h1 {
    font-size: 15px;
  }

  body[data-page="detail"] .detail-intro-card p {
    font-size: 11px;
  }

  body[data-page="detail"] .detail-actions-main .poster-action,
  body[data-page="detail"] .detail-actions-main .poster-action-secondary {
    min-height: 36px;
    font-size: 12px;
  }
}
