:root {
  --p50: #fef9ee;
  --p100: #fdf2d7;
  --p400: #f3a844;
  --p600: #e17015;
  --p700: #bb5413;
  --p800: #954217;
  --a800: #933017;
  --g50: #f9fafb;
  --g100: #f3f4f6;
  --g200: #e5e7eb;
  --g500: #6b7280;
  --g600: #4b5563;
  --g900: #111827;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--g900);
  background: linear-gradient(180deg, var(--g50), #ffffff 45%, #faf9f6);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, select { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--p800), var(--p700), var(--a800));
  box-shadow: 0 18px 35px rgba(149, 66, 23, 0.26);
}
.header-inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
}
.brand-text { white-space: nowrap; font-size: 20px; }
.desktop-nav { display: flex; gap: 20px; margin-left: auto; }
.desktop-nav a, .mobile-panel a { color: rgba(255,255,255,0.88); font-weight: 700; }
.desktop-nav a:hover, .mobile-panel a:hover { color: var(--p100); }
.header-search {
  min-width: 280px;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
}
.header-search input, .mobile-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 9px 12px;
}
.header-search input::placeholder, .mobile-panel input::placeholder { color: rgba(255,255,255,0.75); }
.header-search button, .mobile-panel button {
  border: 0;
  border-radius: 999px;
  color: var(--p800);
  background: #ffffff;
  font-weight: 900;
  padding: 8px 16px;
  cursor: pointer;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255,255,255,0.16);
  padding: 9px 12px;
}
.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}
.mobile-panel.is-open { display: block; }
.mobile-panel nav { display: grid; gap: 12px; margin-bottom: 14px; }
.mobile-panel form { display: flex; gap: 8px; padding: 8px; border-radius: 18px; background: rgba(255,255,255,0.14); }
.page-main { min-height: 70vh; }
.hero-carousel { position: relative; min-height: 72vh; overflow: hidden; background: #111827; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .75s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.92), rgba(0,0,0,.48) 50%, rgba(0,0,0,.12)); }
.hero-content {
  position: absolute;
  left: 50%;
  bottom: 80px;
  width: min(1200px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
}
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 12px; color: var(--p100); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero-title { margin: 0 0 16px; font-size: clamp(38px, 7vw, 76px); line-height: 1.02; font-weight: 900; text-shadow: 0 14px 30px rgba(0,0,0,.4); }
.hero-meta, .detail-meta { color: rgba(255,255,255,.78); font-weight: 700; }
.hero-desc { max-width: 700px; margin: 16px 0 22px; color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.8; }
.hero-tags, .mini-tags, .detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; color: var(--p800); background: var(--p100); padding: 6px 10px; font-size: 13px; font-weight: 800; }
.hero-tags .tag, .detail-tags .tag { color: #ffffff; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.primary-button { background: var(--p600); padding: 14px 28px; box-shadow: 0 16px 30px rgba(225,112,21,.32); }
.primary-button:hover { background: var(--p700); transform: translateY(-1px); }
.secondary-button { background: rgba(255,255,255,.16); padding: 14px 24px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.26); }
.secondary-button:hover { transform: translateY(-1px); }
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0,0,0,.44);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 30px;
}
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots { position: absolute; left: 50%; bottom: 28px; z-index: 4; display: flex; gap: 8px; transform: translateX(-50%); }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.55); }
.hero-dots button.is-active { width: 34px; background: #ffffff; }
.container-block { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 58px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.section-title-wrap { display: flex; align-items: center; gap: 10px; }
.section-title-wrap h2 { margin: 0; font-size: clamp(24px, 4vw, 34px); font-weight: 900; }
.section-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 14px; color: #ffffff; background: var(--p600); box-shadow: 0 12px 25px rgba(225,112,21,.25); }
.section-more { color: var(--p700); font-weight: 900; }
.movie-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.movie-card { overflow: hidden; border-radius: 18px; background: #ffffff; box-shadow: 0 14px 32px rgba(17,24,39,.08); transition: transform .22s ease, box-shadow .22s ease; }
.movie-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.poster-link { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: linear-gradient(135deg, var(--p50), #f5f3ec); }
.poster-link img { height: 100%; object-fit: cover; transition: transform .3s ease; }
.movie-card:hover .poster-link img { transform: scale(1.05); }
.rating-badge, .rank-badge, .play-chip { position: absolute; z-index: 2; border-radius: 999px; font-size: 13px; font-weight: 900; }
.rating-badge { top: 10px; right: 10px; color: #111827; background: rgba(255,255,255,.9); padding: 6px 9px; }
.rank-badge { top: 10px; left: 10px; min-width: 32px; text-align: center; color: #ffffff; background: #df5015; padding: 6px 8px; }
.play-chip { left: 12px; bottom: 12px; color: #ffffff; background: rgba(0,0,0,.62); padding: 7px 12px; }
.movie-card-body { padding: 14px 14px 16px; }
.movie-card h3 { min-height: 44px; margin: 0 0 8px; font-size: 16px; line-height: 1.35; font-weight: 900; }
.card-meta { margin: 0 0 8px; color: var(--g500); font-size: 13px; }
.card-desc { min-height: 44px; margin: 0 0 12px; color: var(--g600); font-size: 14px; line-height: 1.55; }
.mini-tags .tag { padding: 4px 8px; font-size: 12px; }
.feature-band { background: linear-gradient(135deg, var(--p50), #ffffff, #faf9f6); }
.rank-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.rank-list { display: grid; gap: 14px; }
.rank-row { display: grid; grid-template-columns: 48px 72px 1fr auto; gap: 14px; align-items: center; border-radius: 18px; background: #ffffff; padding: 12px; box-shadow: 0 12px 30px rgba(17,24,39,.08); }
.rank-num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #ffffff; background: var(--p600); font-weight: 900; }
.rank-row img { height: 96px; object-fit: cover; border-radius: 14px; }
.rank-row h3 { margin: 0 0 8px; font-weight: 900; }
.rank-row p { margin: 0; color: var(--g600); line-height: 1.6; }
.rank-score { color: var(--p700); font-weight: 900; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.category-tile { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 22px; color: #ffffff; background: linear-gradient(135deg, var(--p700), var(--a800)); padding: 24px; box-shadow: var(--shadow); }
.category-tile h2, .category-tile p { margin: 0; }
.category-tile h2 { font-size: 24px; font-weight: 900; }
.category-tile p { color: rgba(255,255,255,.84); line-height: 1.7; }
.page-hero { color: #ffffff; background: radial-gradient(circle at 18% 20%, rgba(243,168,68,.8), transparent 26%), linear-gradient(125deg, var(--p800), var(--p700), var(--a800)); }
.slim-hero { min-height: 300px; display: grid; place-items: end start; }
.page-hero-content { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0; }
.page-hero h1 { max-width: 960px; margin: 0 0 14px; font-size: clamp(34px, 6vw, 58px); line-height: 1.1; font-weight: 900; }
.page-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.8; }
.category-intro { color: var(--g600); line-height: 1.8; margin: 0 0 20px; }
.filter-panel, .search-panel { display: grid; grid-template-columns: 1fr 180px 180px; gap: 12px; margin: 0 0 26px; border-radius: 22px; background: #ffffff; padding: 14px; box-shadow: 0 12px 28px rgba(17,24,39,.08); }
.search-panel { grid-template-columns: 1fr 180px 180px 120px; }
.filter-panel input, .filter-panel select, .search-panel input, .search-panel select { width: 100%; border: 1px solid var(--g200); border-radius: 16px; color: var(--g900); background: var(--g50); padding: 12px 14px; outline: 0; }
.search-panel button { border: 0; border-radius: 16px; color: #ffffff; background: var(--p600); font-weight: 900; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span { min-width: 42px; border-radius: 14px; color: var(--g600); background: #ffffff; padding: 10px 14px; text-align: center; box-shadow: 0 8px 20px rgba(17,24,39,.08); }
.pagination a.active { color: #ffffff; background: var(--p600); }
.detail-hero { position: relative; overflow: hidden; color: #ffffff; background: #111827; }
.detail-backdrop { position: absolute; inset: 0; opacity: .32; }
.detail-backdrop img { height: 100%; object-fit: cover; filter: blur(10px); transform: scale(1.05); }
.detail-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #111827, rgba(17,24,39,.55)); }
.detail-wrap { position: relative; width: min(1200px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: end; padding: 68px 0; }
.detail-poster { overflow: hidden; border-radius: 24px; box-shadow: 0 30px 70px rgba(0,0,0,.38); }
.detail-poster img { aspect-ratio: 2 / 3; object-fit: cover; }
.detail-copy h1 { margin: 0 0 14px; font-size: clamp(34px, 6vw, 64px); line-height: 1.08; font-weight: 900; }
.detail-summary { max-width: 860px; color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.85; }
.detail-content { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0; }
.player-section { display: grid; grid-template-columns: 1.45fr .55fr; gap: 26px; align-items: start; }
.player-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 24px; background: #030712; box-shadow: var(--shadow); }
.movie-video { width: 100%; height: 100%; object-fit: contain; background: #000000; }
.play-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border: 0; color: #ffffff; background: linear-gradient(0deg, rgba(0,0,0,.54), rgba(0,0,0,.12)); cursor: pointer; }
.play-overlay.is-hidden { display: none; }
.play-overlay span { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--p600); box-shadow: 0 18px 40px rgba(225,112,21,.45); font-size: 34px; }
.play-overlay strong { display: block; margin-top: 110px; font-size: 20px; }
.detail-panel, .text-panel { border-radius: 24px; background: #ffffff; padding: 24px; box-shadow: 0 14px 34px rgba(17,24,39,.08); }
.detail-panel h2, .text-panel h2 { margin: 0 0 16px; font-size: 24px; font-weight: 900; }
.detail-panel p, .text-panel p { margin: 0 0 16px; color: var(--g600); line-height: 1.9; }
.text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.related-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.compact-card { display: grid; gap: 10px; color: var(--g900); font-weight: 900; }
.compact-card img { aspect-ratio: 2 / 3; border-radius: 16px; object-fit: cover; box-shadow: 0 12px 24px rgba(17,24,39,.08); }
.search-results-empty { display: none; border-radius: 22px; background: #ffffff; padding: 28px; color: var(--g600); box-shadow: 0 12px 28px rgba(17,24,39,.08); }
.search-results-empty.is-visible { display: block; }
.hidden-card { display: none; }
.site-footer { color: rgba(255,255,255,.82); background: #111827; }
.footer-inner { width: min(1200px, calc(100% - 32px)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 28px; padding: 42px 0; }
.footer-brand { color: #ffffff; margin-bottom: 12px; font-size: 20px; }
.footer-inner p { max-width: 650px; margin: 0; line-height: 1.8; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 22px; }
.footer-links a:hover { color: var(--p400); }
@media (max-width: 1100px) {
  .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player-section, .rank-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .desktop-nav, .header-search { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-carousel { min-height: 78vh; }
  .hero-arrow { display: none; }
  .movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-poster { max-width: 260px; }
  .text-grid, .filter-panel, .search-panel { grid-template-columns: 1fr; }
  .related-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-text { font-size: 18px; }
  .hero-title { font-size: 40px; }
  .hero-desc { font-size: 16px; }
  .container-block, .detail-content { padding: 42px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid, .related-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-row { grid-template-columns: 38px 62px 1fr; }
  .rank-score { grid-column: 3; }
}
