
:root {
  --bg: #fff8f3;
  --bg-soft: #fff2e8;
  --surface: rgba(255,255,255,.86);
  --surface-strong: #ffffff;
  --text: #23140d;
  --muted: #7f6c61;
  --line: rgba(112, 78, 54, .12);
  --primary: #f06c25;
  --primary-2: #ff9b34;
  --primary-3: #ffcf9c;
  --shadow: 0 18px 50px rgba(96, 50, 20, .10);
  --shadow-sm: 0 8px 24px rgba(96, 50, 20, .08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240,108,37,.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255,155,52,.12), transparent 22%),
    linear-gradient(180deg, #fffaf6 0%, var(--bg) 40%, #fff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.badge { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; background:rgba(240,108,37,.10); color:var(--primary); font-size:12px; font-weight:700; }
.muted { color: var(--muted); }
.shadow-card { box-shadow: var(--shadow); }
.soft-card { box-shadow: var(--shadow-sm); }
.section { padding: 42px 0; }
.section-title { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:18px; }
.section-title h2 { margin:0; font-size: clamp(22px, 2.2vw, 32px); }
.section-title p { margin:4px 0 0; color:var(--muted); }
.header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 243, .86);
  border-bottom: 1px solid rgba(112, 78, 54, .10);
}
.navbar { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:72px; }
.brand { display:flex; align-items:center; gap:12px; min-width: 0; }
.brand-mark {
  width:44px; height:44px; border-radius:14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 28px rgba(240,108,37,.24);
  color:white; display:grid; place-items:center; font-weight:900;
}
.brand-text { min-width:0; }
.brand-text strong { display:block; font-size:18px; line-height:1.1; }
.brand-text span { display:block; font-size:12px; color:var(--muted); margin-top:2px; }
.nav-links { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.nav-links a, .nav-links button {
  padding:10px 14px; border-radius:14px; color:#3e2c22; border:1px solid transparent; background:transparent; cursor:pointer;
}
.nav-links a:hover, .nav-links button:hover, .nav-links a.active { background: rgba(240,108,37,.10); border-color: rgba(240,108,37,.14); color: var(--primary); }
.nav-tools { display:flex; align-items:center; gap:10px; }
.search-inline {
  display:flex; align-items:center; gap:8px; padding:10px 12px; border-radius:16px; background:white; border:1px solid rgba(112,78,54,.12); min-width: min(360px, 42vw);
}
.search-inline input { border:0; outline:none; width:100%; background:transparent; }
.search-inline button {
  border:0; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:white; padding:10px 14px; border-radius:12px; cursor:pointer;
}
.menu-toggle { display:none; }
.hero {
  position:relative; overflow:hidden;
  padding: 32px 0 14px;
}
.hero-shell {
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.36), transparent 24%),
    linear-gradient(135deg, #2c160d 0%, #4a2413 45%, #7c3512 100%);
  color:white; border-radius: 34px; padding: 26px; box-shadow: var(--shadow);
}
.hero-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: stretch; }
.hero-copy { padding: 8px 6px 8px 4px; }
.hero-copy h1 { margin: 0; font-size: clamp(32px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.03em; }
.hero-copy p { margin: 16px 0 0; color: rgba(255,255,255,.82); max-width: 62ch; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top: 20px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 12px 18px; border-radius: 16px; border:1px solid transparent; cursor:pointer; transition: .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:white; box-shadow: 0 16px 30px rgba(240,108,37,.25); }
.btn-ghost { background: rgba(255,255,255,.12); color:white; border-color: rgba(255,255,255,.16); }
.btn:hover { transform: translateY(-1px); }
.hero-stats { display:flex; gap:12px; flex-wrap:wrap; margin-top: 22px; }
.stat { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.12); }
.stat strong { display:block; font-size: 18px; }
.stat span { display:block; color: rgba(255,255,255,.74); font-size: 12px; }
.hero-featured { display:grid; gap:12px; }
.hero-slide {
  position:relative; overflow:hidden; border-radius: 28px; min-height: 220px;
  background: linear-gradient(135deg, var(--tone-a), var(--tone-b));
  color: #2a170e; box-shadow: 0 18px 40px rgba(0,0,0,.18);
  padding: 18px;
}
.hero-slide::after {
  content:""; position:absolute; inset:auto -14% -22% auto; width:220px; height:220px; border-radius:50%;
  background: rgba(255,255,255,.28); filter: blur(4px);
}
.hero-slide-top { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; position:relative; z-index:1; }
.hero-slide h3 { margin: 10px 0 8px; font-size: 26px; line-height:1.1; }
.hero-slide p { margin:0; color: rgba(43, 24, 12, .82); }
.hero-slide-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top: 18px; position:relative; z-index:1; }
.poster-mini {
  width: 104px; height: 150px; flex: 0 0 auto; border-radius: 20px; background: rgba(255,255,255,.32);
  border:1px solid rgba(255,255,255,.38); backdrop-filter: blur(10px); display:flex; align-items:end; justify-content:space-between; padding: 12px; color:white;
}
.poster-mini strong { font-size: 12px; max-width: 5em; }
.poster-mini span { font-size: 11px; opacity:.82; }
.chips { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.chip { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background: rgba(255,255,255,.11); border:1px solid rgba(255,255,255,.12); font-size:12px; }
.grid { display:grid; gap:16px; }
.movie-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.movie-card, .panel, .list-card { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); }
.movie-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.movie-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(240,108,37,.22); }
.movie-poster {
  position:relative; display:flex; flex-direction:column; justify-content:space-between;
  min-height: 250px; padding: 16px; color:white;
  background: linear-gradient(145deg, var(--tone-a), var(--tone-b));
}
.movie-poster::after {
  content:""; position:absolute; inset:auto -20% -25% auto; width:180px; height:180px; border-radius:50%; background: rgba(255,255,255,.16);
}
.movie-poster .year { position:relative; z-index:1; display:inline-flex; align-items:center; align-self:flex-start; padding:6px 10px; border-radius:999px; background:rgba(0,0,0,.14); font-size:12px; }
.movie-poster h3 { position:relative; z-index:1; margin: 0; font-size: 20px; line-height:1.15; text-shadow: 0 6px 16px rgba(0,0,0,.18); }
.movie-poster p { position:relative; z-index:1; margin: 8px 0 0; font-size: 12px; opacity:.92; }
.movie-meta { padding: 14px; }
.movie-meta .meta-line { display:flex; gap:8px; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.movie-meta .meta-line span { padding:4px 8px; border-radius:999px; background:#f8f2ec; }
.movie-meta .desc { margin:10px 0 0; color:#4b382f; font-size: 13px; }
.panel { padding: 18px; }
.stats-strip { display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-box { padding: 16px; border-radius: 20px; background: linear-gradient(135deg, rgba(240,108,37,.08), rgba(255,155,52,.06)); border:1px solid rgba(240,108,37,.10); }
.stat-box strong { display:block; font-size: 26px; }
.stat-box span { color: var(--muted); font-size: 13px; }
.category-strip { display:flex; gap:10px; overflow:auto; padding-bottom: 6px; }
.category-strip a { flex:0 0 auto; padding:10px 14px; border-radius:999px; background:white; border:1px solid var(--line); color:#4b382f; white-space:nowrap; }
.category-strip a.active, .category-strip a:hover { background: rgba(240,108,37,.10); color: var(--primary); border-color: rgba(240,108,37,.18); }
.page-hero { margin-top: 18px; }
.page-banner {
  border-radius: 30px; padding: 22px; color:white; background: linear-gradient(135deg, #31180d 0%, #5a2a14 50%, #8d4016 100%); box-shadow: var(--shadow);
}
.page-banner h1, .page-banner h2 { margin:0; font-size: clamp(28px, 4vw, 46px); line-height: 1.05; }
.page-banner p { margin: 12px 0 0; color: rgba(255,255,255,.82); max-width: 72ch; }
.filter-bar { display:flex; flex-wrap:wrap; gap:10px; margin-top: 16px; }
.filter-bar select, .filter-bar input {
  padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.14); color:white; outline:none;
}
.filter-bar select option { color:#111; }
.breadcrumb { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:14px; color:var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--primary); }
.detail-layout { display:grid; grid-template-columns: 420px minmax(0, 1fr); gap: 18px; align-items:start; }
.cover-card {
  padding: 18px; border-radius: 30px; color:white; overflow:hidden; position:relative; background: linear-gradient(135deg, var(--tone-a), var(--tone-b)); box-shadow: var(--shadow);
}
.cover-card::after { content:""; position:absolute; inset:auto -20% -24% auto; width:260px; height:260px; border-radius: 50%; background: rgba(255,255,255,.16); }
.cover-card .label { position:relative; z-index:1; display:inline-flex; padding:6px 10px; border-radius:999px; background:rgba(0,0,0,.16); font-size:12px; }
.cover-card h1 { position:relative; z-index:1; margin: 12px 0 10px; font-size: clamp(28px, 4vw, 42px); line-height:1.08; }
.cover-card .sub { position:relative; z-index:1; color: rgba(255,255,255,.82); }
.cover-card .cover-meta { position:relative; z-index:1; display:grid; gap: 10px; margin-top: 18px; }
.meta-row { display:flex; flex-wrap:wrap; gap:8px; }
.meta-pill { padding: 8px 12px; border-radius:999px; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.16); }
.player-card { padding: 18px; }
.player-box { position:relative; border-radius: 24px; overflow:hidden; background:#000; aspect-ratio: 16 / 9; }
.player-box video { width:100%; height:100%; display:block; background:#000; }
.player-overlay {
  position:absolute; inset:auto 16px 16px 16px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between;
}
.source-list { display:flex; gap:8px; flex-wrap:wrap; }
.source-btn { padding:8px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.14); color:#fff; cursor:pointer; }
.source-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; }
.related-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.list-grid { display:grid; gap:14px; }
.search-page form { display:flex; gap:10px; flex-wrap:wrap; margin-top: 16px; }
.search-page input, .search-page select {
  padding: 12px 14px; border-radius: 14px; border:1px solid rgba(112,78,54,.12); background:white; color:var(--text);
}
.search-page input { flex:1 1 320px; }
.search-page button { padding: 12px 18px; border:0; border-radius:14px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:white; cursor:pointer; }
.footer { margin-top: 28px; padding: 28px 0 42px; color: var(--muted); }
.footer .footer-inner { padding-top: 22px; border-top:1px solid rgba(112,78,54,.10); display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.footer-links { display:flex; gap:12px; flex-wrap:wrap; }
.footer-links a { color: var(--text); }
.small { font-size: 12px; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; background:#f4ebe4; padding:2px 6px; border-radius:6px; }
.mobile-only { display:none; }
.hidden { display:none !important; }

@media (max-width: 1100px) {
  .movie-grid, .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .search-inline { min-width: 280px; }
}
@media (max-width: 780px) {
  .navbar { align-items:flex-start; flex-direction:column; padding: 12px 0; }
  .nav-tools { width:100%; }
  .search-inline { min-width: 0; width:100%; }
  .nav-links { display:none; width:100%; }
  .nav-links.open { display:flex; }
  .menu-toggle { display:inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .movie-grid, .related-grid, .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-banner { padding: 18px; }
  .hero-shell { padding: 18px; border-radius: 28px; }
  .player-overlay { position: static; padding: 12px 0 0; }
}
@media (max-width: 520px) {
  .container { width: min(1240px, calc(100% - 20px)); }
  .movie-grid, .related-grid, .stats-strip { grid-template-columns: 1fr; }
  .mobile-only { display:inline-flex; }
}
