*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body,
.app-shell {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font, "Plus Jakarta Sans"), system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: var(--fs-body, 1rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--body-bg, var(--bg));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

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

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

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.page-main {
  flex: 1;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.studio-rail {
  height: 3px;
  background: linear-gradient(90deg, var(--copper) 0%, var(--gold) 46%, var(--patina) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border, var(--line));
  box-shadow: var(--header-shadow, none);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.header-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--logo-radius, 12px);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--btn-text, #fff);
  background: var(--logo-bg, var(--gold));
  box-shadow: var(--logo-shadow, none);
}

.header-brand__stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header-brand__title {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header-brand__sub {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.35;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px 16px;
  flex-wrap: wrap;
}

.header-nav a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--nav-fg, var(--muted));
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.header-nav a:hover {
  color: var(--gold);
}

.header-nav a.active,
.header-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-search {
  display: flex;
  height: 40px;
  min-width: min(220px, 100%);
  max-width: 320px;
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

.header-search:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 14px;
  color: var(--text);
}

.header-search input:focus {
  outline: none;
}

.header-search button {
  flex-shrink: 0;
  border: none;
  padding: 0 16px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--btn-text, #fff);
  background: var(--btn, var(--gold));
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.hero-kicker,
.section-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.hero-studio {
  border-bottom: 1px solid var(--line);
  background: var(--hero-bg, var(--bg));
}

.hero-bar,
.hero-studio__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 0 8px;
}

.hero-bar__copy {
  min-width: min(100%, 420px);
  flex: 1;
}

.hero-bar h1,
.hero-studio__intro h1 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.page-hero h1,
.detail-info h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
}

.hero-bar .hero-lead,
.hero-studio__intro .hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 52ch;
}

.page-hero p,
.detail-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.0625rem);
  line-height: 1.75;
  max-width: 640px;
}

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

.primary-btn,
.ghost-btn,
.link-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}

.primary-btn {
  color: var(--btn-text, #fff);
  background: var(--btn, var(--gold));
  box-shadow: var(--btn-shadow, none);
}

.ghost-btn {
  color: var(--btn-ghost-fg, var(--gold));
  background: var(--btn-ghost-bg, var(--card));
  border: 1px solid var(--btn-ghost-border, var(--line));
}

.hero-carousel {
  padding: 4px 0 28px;
}

.hero-carousel__stage {
  position: relative;
  min-height: 280px;
}

.hero-slide {
  display: none;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 8px 0 16px;
}

.hero-slide.active {
  display: grid;
}

.hero-copy .hero-actions .ghost-btn:last-child {
  display: none;
}

.hero-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 900;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep, var(--gold));
  font-size: 12px;
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.hero-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg2, var(--bg));
  border: 1px solid var(--line);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 420px;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.78));
}

.hero-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-control button,
.hero-dots button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
}

.hero-dots button.active {
  width: 28px;
  background: linear-gradient(90deg, var(--gold), var(--copper));
}

.section-block {
  padding: 36px 0 8px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-head a,
.cq-link-all,
.fsp-link-all {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--gold);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

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

.category-tile,
.overview-card,
.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 18px 18px;
  border-radius: var(--radius);
  background: var(--tile-bg, var(--card));
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  min-height: 108px;
}

.category-tile:hover,
.overview-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.category-tile strong,
.overview-main strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.category-tile span,
.overview-main span {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.overview-card {
  display: grid;
  gap: 14px;
}

.overview-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

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

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

.movie-card,
.tuy-card,
.fsp-hl-card,
.pick-card,
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.movie-card:hover,
.tuy-card:hover,
.fsp-hl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 115, 51, 0.35);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.poster-link,
.tuy-card__media,
.fsp-hl-card__media,
.pick-card__cover,
.video-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg2, var(--bg));
}

.poster-frame,
.tuy-card__media,
.fsp-hl-card__media {
  aspect-ratio: 3 / 4;
}

.poster-frame img,
.tuy-card__media img,
.fsp-hl-card__media img,
.pick-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge,
.tuy-card__badge,
.pick-card__badge,
.tag-left {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  color: var(--btn-text, #fff);
  background: var(--badge-bg, var(--gold));
}

.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gold);
  color: var(--btn-text, #fff);
  font-weight: 900;
}

.movie-card-body,
.tuy-card__body,
.fsp-hl-card__body,
.pick-card__body,
.video-body {
  padding: 14px 14px 16px;
}

.movie-card h3,
.tuy-card__title,
.pick-card h3,
.video-body h3 {
  margin: 0 0 6px;
  font-size: var(--fs-md);
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card h3 a:hover,
.tuy-card__title a:hover {
  color: var(--gold);
}

.movie-meta-line,
.tuy-card__meta,
.video-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.tuy-card__desc,
.pick-card__desc,
.fsp-hl-card__desc,
.movie-card p:not(.movie-meta-line) {
  display: none;
}

.tuy-card__pills,
.tuy-card__dur,
.tuy-card__play {
  display: none;
}

.page-hero {
  padding: 32px 0 8px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--gold);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  border: 1px solid var(--line);
  color: var(--chip-fg, var(--muted));
  background: var(--chip-bg, var(--card));
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.filter-chip:hover,
.filter-chip--active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--blue-soft);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--panel, var(--card));
  border: 1px solid var(--line);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--input-bg, var(--card));
  padding: 12px 16px;
  outline: none;
  color: var(--input-fg, var(--text));
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.empty-state {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 8px 0 28px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg2, var(--bg));
}

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

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

.detail-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel, var(--card));
}

.player-section,
.content-card,
.page-panel {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.player-section h2,
.content-card h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 900;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #020617;
}

.player-box video,
.video-el {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  display: block;
}

.video-error[hidden] {
  display: none !important;
}

.video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  font-weight: 800;
}

.detail-info-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.detail-info-grid div {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.detail-info-grid span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.play-info-desc {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-cloud a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

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

.note-card {
  padding: 20px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.note-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.site-footer {
  margin-top: auto;
}

.footer-upper {
  background: linear-gradient(180deg, var(--footer), var(--footer-deep));
  color: #e2e8f0;
  padding: 48px 0 40px;
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo__mark {
  width: 44px;
  height: 44px;
  border-radius: var(--logo-radius, 12px);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--btn-text, #fff);
  background: var(--logo-bg, var(--gold));
}

.footer-logo strong {
  display: block;
  font-size: 18px;
}

.footer-logo em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #94a3b8;
}

.footer-intro,
.footer-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #94a3b8;
}

.footer-h {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 600;
}

.footer-links a:hover {
  color: #93c5fd;
}

.footer-bar {
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 16px 0 20px;
}

.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-copy,
.footer-seo {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.bbaseo-fly {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  user-select: none;
  color: var(--copper);
}

.bbaseo-fly__mark {
  filter: drop-shadow(0 8px 14px rgba(184, 115, 51, 0.35));
  animation: bbaseo-bob 4.8s ease-in-out infinite;
}

.bbaseo-fly i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--patina);
  opacity: 0;
  animation: bbaseo-dot 4.8s ease-in-out infinite;
}

.bbaseo-fly i:nth-child(2) { left: 2px; top: 28px; animation-delay: 0.4s; }
.bbaseo-fly i:nth-child(3) { left: 10px; top: 34px; animation-delay: 1s; }
.bbaseo-fly i:nth-child(4) { left: 18px; top: 26px; animation-delay: 1.6s; }

.bbaseo-fly__text {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  background: linear-gradient(92deg, #b87333, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes bbaseo-bob {
  0%, 100% { transform: translate(0, 0) rotate(-12deg); }
  50% { transform: translate(8px, -12px) rotate(-4deg); }
}

@keyframes bbaseo-dot {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  40% { opacity: 0.75; transform: translate(-6px, 6px); }
}

.image-off {
  opacity: 0.2;
}
