
:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --line: #e7e0d2;
  --ink: #111827;
  --muted: #6b7280;
  --accent: #b45309;
  --accent-2: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 28px 70px rgba(17, 24, 39, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --maxw: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(59, 130, 246, 0.08), transparent 22%),
    linear-gradient(180deg, #fffdfa 0%, var(--bg) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

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

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

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

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(100% - 32px, var(--maxw));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 253, 248, 0.82);
  border-bottom: 1px solid rgba(231, 224, 210, 0.9);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #111827, #7c2d12 56%, #f59e0b);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.22);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}

.brand-title {
  font-size: 1.06rem;
  line-height: 1.15;
}

.brand-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

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

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  transform: translateY(-1px);
}

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

.search-inline {
  width: min(320px, 44vw);
  position: relative;
}

.search-inline input,
.search-inline select,
.search-panel input,
.search-panel select,
.filter-row input,
.filter-row select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.search-inline input:focus,
.search-inline select:focus,
.search-panel input:focus,
.search-panel select:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: rgba(180, 83, 9, 0.5);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-inline svg,
.search-panel svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9ca3af;
}

.search-inline input {
  padding-left: 42px;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  border-radius: 14px;
  width: 46px;
  height: 46px;
  box-shadow: var(--shadow);
}

.mobile-nav {
  display: none;
  padding: 12px 0 18px;
  border-top: 1px solid rgba(231, 224, 210, 0.9);
}

.mobile-nav.open {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 20px;
}

.hero-card {
  border-radius: 32px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(91, 33, 182, 0.72) 46%, rgba(180, 83, 9, 0.86)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%);
  color: #fff;
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.65;
}

.hero-card::before {
  width: 260px;
  height: 260px;
  right: -90px;
  top: -80px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-card::after {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -140px;
  background: rgba(245, 158, 11, 0.18);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.02;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.03rem;
  margin: 0 0 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  font-weight: 700;
}

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

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.22);
}

.hero-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.metric {
  min-width: 116px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.metric strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.metric span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-rail {
  display: grid;
  gap: 14px;
}

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

.feature-card {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.feature-card-body {
  padding: 12px 14px 14px;
}

.feature-card-body h3,
.card h3,
.detail-title,
.section-title {
  margin: 0;
}

.badge-row,
.tag-row,
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  white-space: nowrap;
}

.badge-muted {
  background: #f5f5f4;
  color: #44403c;
}

.section {
  padding: 26px 0;
}

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

.section-title {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.2;
}

.section-desc {
  margin: 4px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

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

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

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

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(231, 224, 210, 0.9);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.card-media {
  position: relative;
  background: linear-gradient(135deg, #ede9fe, #fef3c7);
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.card-media .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.88));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

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

.card-title {
  font-size: 1rem;
  line-height: 1.35;
}

.card-meta,
.detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.card-text,
.detail-text,
.note-text {
  margin: 0;
  color: #475569;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.filter-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(231, 224, 210, 0.9);
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-helper {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: #374151;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.chip:hover,
.chip.active {
  background: rgba(245, 158, 11, 0.14);
  color: var(--accent);
  transform: translateY(-1px);
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
  align-items: start;
}

.poster-shell {
  position: sticky;
  top: 92px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, #1f2937, #7c2d12);
}

.poster-shell img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.poster-fallback {
  background: linear-gradient(135deg, #1f2937, #7c2d12);
  color: #fff;
  padding: 28px;
  min-height: 100%;
  display: grid;
  align-content: end;
}

.player-box,
.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(231, 224, 210, 0.95);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel {
  padding: 22px;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(231, 224, 210, 0.95);
}

.player-stage {
  background: #000;
}

.player-stage video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.meta-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: #faf7ef;
  border: 1px solid var(--line);
}

.meta-item strong {
  display: block;
  font-size: 1.02rem;
}

.meta-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-sections {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.detail-section {
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(231, 224, 210, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-section h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.detail-section p {
  margin: 0;
  color: #334155;
}

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

.related-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.related-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
}

.simple-table th,
.simple-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(231, 224, 210, 0.95);
  text-align: left;
  vertical-align: top;
}

.simple-table th {
  color: #6b7280;
  font-size: 0.88rem;
  white-space: nowrap;
}

.footer {
  margin-top: 28px;
  padding: 28px 0 36px;
  color: #64748b;
}

.footer-box {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(231, 224, 210, 0.95);
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.footer h3 {
  margin: 0 0 10px;
  color: var(--ink);
}

.footer a {
  color: #374151;
}

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

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

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

@media (max-width: 1100px) {
  .hero-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .poster-shell {
    position: relative;
    top: 0;
    max-width: 460px;
  }

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

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

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

@media (max-width: 760px) {
  .nav,
  .search-inline {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .filter-row,
  .meta-grid,
  .grid.cards,
  .grid.cards.compact,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .panel,
  .detail-section,
  .filter-panel,
  .footer-box {
    border-radius: 22px;
  }

  .hero-card {
    padding: 20px;
  }

  .hero-metrics {
    gap: 10px;
  }

  .metric {
    min-width: unset;
    flex: 1 1 120px;
  }

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