
:root {
  --bg: #fcfaf6;
  --bg-2: #f5efe4;
  --card: rgba(255,255,255,.84);
  --card-strong: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(148,163,184,.22);
  --accent: #f59e0b;
  --accent-2: #ea580c;
  --shadow: 0 20px 50px rgba(15, 23, 42, .10);
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, .08);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 20%, var(--bg-2) 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.container { width: min(1240px, calc(100vw - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(16px);
  background: rgba(252,250,246,.82);
  border-bottom: 1px solid rgba(148,163,184,.16);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.logo { display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.02em; }
.logo-text { font-size: 1.08rem; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 14px; display:grid; place-items:center;
  color: white; font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--shadow-sm);
}
.logo-mark.small { width: 36px; height: 36px; border-radius: 12px; }
.desktop-nav { margin-left: 10px; display:flex; flex-wrap:wrap; gap: 6px; }
.nav-link, .footer-links a, .hero-pills a, .search-hints a { transition: .2s ease; }
.nav-link {
  padding: 10px 14px; border-radius: 14px; color: #334155; font-weight: 600;
}
.nav-link:hover, .nav-link.active { background: rgba(245,158,11,.12); color: #92400e; }
.header-search { margin-left: auto; display:flex; gap:10px; align-items:center; }
.header-search input, .search-toolbar input, .hero-search input {
  width: min(360px, 26vw); min-width: 240px;
  padding: 13px 16px; border-radius: 16px; border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.9); outline: none; color: var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.header-search button, .search-toolbar button, .hero-search button {
  padding: 13px 16px; border: 0; border-radius: 16px; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white;
  box-shadow: 0 12px 24px rgba(245,158,11,.22);
}
.mobile-toggle { display:none; margin-left:auto; border:0; background:transparent; font-size: 22px; }
.mobile-panel { display:none; padding: 14px 16px 20px; border-top: 1px solid rgba(148,163,184,.16); }
.mobile-panel .nav-link { display:block; margin: 6px 0; }
.mobile-search { margin-top: 12px; flex-direction: column; align-items: stretch; }
.mobile-search input { width: 100%; min-width: 0; }

.hero-shell {
  position: relative; overflow: hidden; padding: 34px 0 26px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245,158,11,.16), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(234,88,12,.16), transparent 25%),
    linear-gradient(135deg, #111827 0%, #1f2937 55%, #4b1d05 100%);
  color: white;
}
.hero-shell:before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.12), rgba(15,23,42,.56));
}
.hero-grid, .category-hero-inner, .plain-hero-inner { position: relative; z-index: 1; }
.hero-grid { display:grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.hero-head {
  padding: 28px; border-radius: 32px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0,0,0,.22);
}
.hero-kicker {
  display:inline-flex; align-items:center; gap:8px; padding: 9px 14px; border-radius: 999px;
  background: rgba(245,158,11,.16); border: 1px solid rgba(255,255,255,.1); color: #fde68a; font-size: 13px; font-weight: 700;
}
.hero-head h1, .page-hero h1 { margin: 18px 0 12px; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; }
.hero-head p, .page-hero p { margin: 0; color: rgba(255,255,255,.86); line-height: 1.8; }
.hero-search { margin-top: 22px; display:flex; gap: 12px; }
.hero-search input { flex: 1; width: auto; min-width: 0; }
.hero-search button { white-space: nowrap; }
.hero-pills { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-pills a, .filter-chip {
  padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: white; font-weight: 600;
}
.hero-pills a:hover, .filter-chip:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
.hero-carousel {
  position: relative; min-height: 540px; border-radius: 34px; overflow: hidden;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 80px rgba(0,0,0,.22);
}
.hero-slide { position:absolute; inset:0; display:grid; grid-template-columns: 1.05fr .85fr; gap: 0; opacity:0; transform: translateX(24px); transition: .6s ease; }
.hero-slide.active { opacity:1; transform: translateX(0); }
.hero-copy { padding: 34px; display:flex; flex-direction:column; justify-content:center; }
.hero-copy h1 { font-size: clamp(1.8rem, 3vw, 3.4rem); }
.hero-lead { font-size: 1rem; margin-top: 6px; color: rgba(255,255,255,.9); }
.hero-tags { display:flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-tags span, .chip, .tag { display:inline-flex; align-items:center; gap:6px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 13px; }
.hero-actions { display:flex; gap: 12px; margin-top: 24px; }
.btn { display:inline-flex; align-items:center; justify-content:center; padding: 14px 18px; border-radius: 16px; font-weight: 800; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color:#fff; box-shadow: 0 14px 28px rgba(245,158,11,.24); }
.btn-secondary { background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.16); }
.btn.full { width: 100%; margin-top: 8px; }
.hero-mini { display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.hero-mini div { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.hero-mini strong { display:block; font-size: 1rem; }
.hero-mini span { display:block; font-size: 12px; color: rgba(255,255,255,.66); margin-top: 5px; }
.hero-poster { position: relative; display:flex; align-items:flex-end; min-height: 100%; }
.hero-poster img { height: 100%; object-fit: cover; }
.hero-poster-copy {
  position:absolute; left: 16px; right: 16px; bottom: 16px; padding: 18px; border-radius: 22px;
  background: rgba(15,23,42,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px);
}
.hero-poster-copy span { display:block; color: #fde68a; font-size: 13px; font-weight: 700; }
.hero-poster-copy strong { display:block; margin-top: 6px; font-size: 1.16rem; }
.hero-dots { position:absolute; left: 18px; bottom: 16px; z-index: 3; display:flex; gap: 8px; }
.hero-dots button {
  width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); color: white; font-weight: 800;
}
.hero-dots button.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.intro-strip { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.intro-card, .info-card, .spotlight-panel, .search-panel, .detail-section, .movie-card, .category-feature, .detail-poster, .player-shell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.intro-card { padding: 22px; }
.intro-card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.intro-card p { margin: 0; color: var(--muted); line-height: 1.8; }
.content-section { padding: 34px 0 6px; }
.section-head { display:flex; justify-content:space-between; align-items:flex-end; gap: 14px; margin-bottom: 16px; }
.section-title { margin: 0; font-size: 1.5rem; }
.section-sub { margin: 8px 0 0; color: var(--muted); }
.section-more { color: #92400e; font-weight: 700; }
.grid { display:grid; gap: 18px; }
.grid-normal { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.movie-card {
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.movie-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(15,23,42,.13); }
.movie-card.compact .movie-desc { -webkit-line-clamp: 2; }
.movie-poster { position: relative; display:block; aspect-ratio: 2/3; background: #e5e7eb; overflow:hidden; }
.movie-poster img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.movie-card:hover .movie-poster img { transform: scale(1.03); }
.poster-glow { position:absolute; inset:0; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.2) 100%); }
.movie-body { padding: 16px; }
.movie-meta, .movie-foot, .detail-meta-row, .search-hints, .source-list, .tag-row { display:flex; flex-wrap: wrap; gap: 8px; }
.movie-title { margin: 12px 0 8px; font-size: 1rem; line-height: 1.4; }
.movie-title a:hover, .text-link:hover { color: #92400e; }
.movie-desc { margin: 0; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.8em; }
.movie-foot { margin-top: 14px; justify-content: space-between; align-items:center; font-size: 13px; color: var(--muted); }
.text-link { color: #b45309; font-weight: 700; }
.muted { color: var(--muted); }
.rank-badge {
  position:absolute; left: 12px; top: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 16px;
  display:grid; place-items:center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 900; box-shadow: var(--shadow-sm);
}
.spotlight-grid { display:grid; grid-template-columns: 1.4fr .9fr; gap: 18px; padding: 30px 0 58px; }
.spotlight-panel { padding: 20px; }
.spotlight-list { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.spotlight-list a { position: relative; overflow:hidden; border-radius: 18px; }
.spotlight-list img { aspect-ratio: 2/3; object-fit: cover; }
.spotlight-list span { position:absolute; left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(15,23,42,.78); color:white; font-weight: 700; display:flex; justify-content:space-between; gap: 8px; }
.spotlight-list em { font-style: normal; opacity: .75; font-weight: 600; }
.rank-list { list-style:none; padding: 0; margin: 16px 0 0; display:grid; gap: 10px; }
.rank-list li { display:flex; align-items:center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.8); border: 1px solid rgba(148,163,184,.15); }
.rank-list span { width: 28px; height: 28px; border-radius: 10px; display:grid; place-items:center; background: rgba(245,158,11,.14); color: #92400e; font-weight: 800; }
.rank-list a { display:flex; justify-content:space-between; gap: 10px; width:100%; font-weight: 700; }
.rank-list a em { font-style: normal; color: var(--muted); font-weight: 500; }

.page-hero { padding: 34px 0 18px; }
.category-hero-inner, .plain-hero-inner { display:grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: center; }
.page-hero h1, .plain-hero h1 { color: var(--text); font-size: clamp(2rem, 4vw, 3.5rem); }
.page-hero p, .plain-hero p { color: var(--muted); }
.category-feature {
  display:block; overflow:hidden; padding: 14px;
}
.category-feature img { border-radius: 20px; aspect-ratio: 2/3; object-fit: cover; margin-bottom: 12px; }
.category-feature strong { display:block; font-size: 1.1rem; margin-bottom: 4px; }
.category-feature span { color: var(--muted); line-height: 1.7; }
.filter-chip { color: #fff; background: rgba(31,41,55,.82); border-color: rgba(255,255,255,.18); }
.plain-hero-inner { padding: 12px 0; }
.info-page { padding: 14px 0 48px; }
.info-card { padding: 24px; line-height: 1.9; }
.search-panel { padding: 20px; margin: 16px auto 48px; }
.search-toolbar { display:flex; gap: 12px; }
.search-toolbar input { flex: 1; width: auto; min-width: 0; }
.search-hints { margin-top: 14px; }
.search-hints a { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(148,163,184,.2); color: #475569; font-weight: 600; }
.search-hints a:hover { border-color: rgba(245,158,11,.45); color:#92400e; }
.search-stats { margin-top: 12px; color: var(--muted); }
.detail-wrap { padding: 26px 0 40px; }
.breadcrumb { display:flex; gap: 8px; align-items:center; color: var(--muted); margin-bottom: 16px; font-size: 14px; flex-wrap: wrap; }
.breadcrumb a { color: #92400e; }
.detail-grid { display:grid; grid-template-columns: 340px 1fr; gap: 20px; align-items:start; }
.detail-poster { padding: 16px; position: sticky; top: 96px; }
.detail-poster img { border-radius: 20px; aspect-ratio: 2/3; object-fit: cover; }
.poster-card { display:flex; justify-content:space-between; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.8); }
.poster-card span { color: var(--muted); }
.poster-card strong { font-size: 1.1rem; }
.poster-card em { color: #92400e; font-style: normal; }
.detail-main h1 { margin: 12px 0 10px; font-size: clamp(2rem, 4vw, 3rem); }
.detail-lead { color: var(--muted); line-height: 1.9; font-size: 1.03rem; }
.detail-meta-row span { padding: 8px 12px; border-radius: 999px; background: rgba(245,158,11,.09); color: #7c2d12; font-weight: 700; }
.tag-row .tag { background: rgba(31,41,55,.06); color: #334155; border: 1px solid rgba(148,163,184,.18); }
.detail-actions { display:flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.detail-section { padding: 20px; margin-top: 20px; }
.detail-section h2 { margin: 0 0 12px; font-size: 1.25rem; }
.player-shell { position: relative; overflow:hidden; }
.player-shell video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-overlay {
  position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; background: linear-gradient(180deg, rgba(15,23,42,.12), rgba(15,23,42,.24));
}
.play-center {
  pointer-events:auto; width: 84px; height: 84px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; font-weight: 900; box-shadow: 0 18px 40px rgba(245,158,11,.28);
}
.player-note { position:absolute; left: 18px; bottom: 16px; color: rgba(255,255,255,.86); font-size: 14px; }
.source-list { margin-top: 12px; }
.source-btn {
  border: 1px solid rgba(148,163,184,.22); background: rgba(255,255,255,.8); color: var(--text);
  padding: 12px 14px; border-radius: 16px; font-weight: 700; cursor: pointer; display:flex; flex-direction:column; gap: 2px;
}
.source-btn small { color: var(--muted); font-weight: 600; }
.source-btn.active { background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.4); color: #92400e; }
.site-footer { margin-top: 30px; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.55)); border-top: 1px solid rgba(148,163,184,.16); }
.footer-grid { display:grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 24px; padding: 28px 0; }
.footer-brand { display:flex; gap: 12px; align-items:center; }
.footer-name { font-weight: 900; font-size: 1.08rem; }
.footer-text { color: var(--muted); line-height: 1.8; }
.footer-links { display:flex; flex-wrap: wrap; gap: 10px; }
.footer-links a { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid rgba(148,163,184,.18); }
.footer-links a:hover { color: #92400e; border-color: rgba(245,158,11,.35); }
.footer-copy { padding: 14px 0 28px; color: var(--muted); font-size: 14px; }

@media (max-width: 1100px) {
  .grid-normal { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-compact { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .hero-grid, .detail-grid, .spotlight-grid, .category-hero-inner, .plain-hero-inner, .footer-grid { grid-template-columns: 1fr; }
  .detail-poster { position: static; }
}
@media (max-width: 860px) {
  .desktop-nav, .header-search { display:none; }
  .mobile-toggle { display:block; }
  .mobile-panel.open { display:block; }
  .hero-shell { padding-top: 24px; }
  .hero-slide { grid-template-columns: 1fr; }
  .hero-carousel { min-height: 700px; }
  .hero-poster img { height: 320px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-mini { grid-template-columns: 1fr; }
  .intro-strip { grid-template-columns: 1fr; }
  .grid-normal, .grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-toolbar, .hero-search { flex-direction: column; }
  .search-toolbar input, .hero-search input { width: 100%; }
  .search-toolbar button, .hero-search button { width: 100%; }
}
@media (max-width: 560px) {
  .container { width: min(100vw - 20px, 1240px); }
  .grid-normal, .grid-compact { grid-template-columns: 1fr; }
  .hero-head, .hero-carousel, .intro-card, .spotlight-panel, .search-panel, .detail-section, .detail-poster, .info-card { border-radius: 20px; }
  .hero-copy { padding: 22px; }
  .hero-carousel { min-height: 620px; }
  .hero-actions, .detail-actions, .source-list { flex-direction: column; }
  .play-center { width: 72px; height: 72px; }
}
