
:root {
  --bg: #090b12;
  --bg-2: #111523;
  --panel: rgba(16, 20, 32, 0.78);
  --panel-2: rgba(20, 25, 40, 0.92);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --muted: #aab2c5;
  --soft: #78809c;
  --accent: #fb7185;
  --accent-2: #f97316;
  --shadow: 0 22px 55px rgba(0,0,0,.36);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251,113,133,.16), transparent 28%),
    radial-gradient(circle at top right, rgba(249,115,22,.12), transparent 32%),
    linear-gradient(180deg, #06070c 0%, #0a0d16 36%, #090b12 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 85%);
  opacity: .16;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.wrap { width: min(1300px, calc(100% - 32px)); margin: 0 auto; }
.glass-panel {
  background: linear-gradient(180deg, rgba(19,24,37,.88), rgba(10,13,21,.78));
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 14, .65);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(251,113,133,.95), rgba(249,115,22,.95));
  color: white; font-weight: 900; box-shadow: 0 12px 34px rgba(251,113,133,.28);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 1rem; line-height: 1.2; }
.brand-text small { color: var(--muted); font-size: .82rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.nav-links a {
  padding: 10px 14px; border-radius: 999px; color: var(--muted);
  border: 1px solid transparent; transition: .2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); }
.nav-toggle { display: none; border: 0; background: rgba(255,255,255,.06); color: #fff; padding: 12px 14px; border-radius: 14px; }

.hero { margin-top: 26px; }
.hero-main {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr .85fr;
  gap: 22px;
  padding: 24px;
  overflow: hidden;
}
.hero-content { padding: 18px 10px 8px 10px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(251,113,133,.18), rgba(249,115,22,.14));
  color: #ffd2d8;
  border: 1px solid rgba(251,113,133,.18);
  font-size: .84rem;
  letter-spacing: .04em;
}
.hero h1, .page-hero h1, .detail-info h1 {
  margin: 16px 0 12px;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 4.8rem); max-width: 12ch; }
.hero p, .page-hero p, .detail-info .lead-line {
  color: var(--muted); font-size: 1.02rem; max-width: 58ch;
}
.hero-search {
  display: flex; gap: 10px; margin: 24px 0 18px;
}
.hero-search input {
  flex: 1; min-width: 0; padding: 16px 18px;
  border-radius: 18px; border: 1px solid rgba(255,255,255,.12);
  color: #fff; background: rgba(255,255,255,.05);
  outline: none;
}
.hero-search button, .primary-btn, .ghost-btn, .text-link, .source-chip {
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}
.hero-search button {
  padding: 0 18px; border: 0; border-radius: 18px; color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(251,113,133,.22);
}
.hero-search button:hover { transform: translateY(-1px); }
.hero-links, .action-row, .pager-links, .footer-links, .source-list, .tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-links a, .primary-btn, .ghost-btn, .text-link {
  display: inline-flex; align-items: center; justify-content: center; padding: 11px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}
.hero-links a, .ghost-btn, .text-link { color: #fff; background: rgba(255,255,255,.05); }
.hero-links a:hover, .ghost-btn:hover, .text-link:hover { background: rgba(255,255,255,.09); transform: translateY(-1px); }
.primary-btn { color: white; background: linear-gradient(135deg, #fb7185, #f97316); border: 0; }
.primary-btn:hover { transform: translateY(-2px); }

.hero-slider { position: relative; min-height: 680px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; display: block;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.04) contrast(1.02); }
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,12,.05) 0%, rgba(5,7,12,.36) 44%, rgba(5,7,12,.95) 100%);
}
.hero-copy {
  position: absolute; inset: auto 24px 20px 24px; z-index: 3;
  padding: 22px; border-radius: 26px; background: rgba(8,11,19,.42);
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
}
.hero-copy .eyebrow { color: #ffd2d8; font-size: .83rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-copy h2 { margin: 10px 0 8px; font-size: 1.9rem; line-height: 1.14; }
.hero-copy p { color: rgba(255,255,255,.84); margin: 0; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.hero-actions .pill { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .86rem; }
.btn-link { color: #fff; font-weight: 700; }
.hero-dots { position: absolute; left: 22px; bottom: 20px; z-index: 4; display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.34); }
.dot.is-active { width: 28px; background: linear-gradient(135deg, #fb7185, #f97316); }

.hero-side { padding: 12px 4px 12px 0; display: flex; flex-direction: column; gap: 12px; }
.hero-side h2 { margin: 12px 0 0; font-size: 1.2rem; }
.hero-side p { color: var(--muted); margin: 0 0 6px; }
.mini-feature {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center;
  padding: 10px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.mini-feature:hover { background: rgba(255,255,255,.07); transform: translateY(-1px); }
.mini-feature img { width: 64px; height: 88px; object-fit: cover; border-radius: 14px; }
.mini-feature strong { display: block; font-size: .96rem; margin-bottom: 4px; }
.mini-feature span { color: var(--muted); font-size: .84rem; }

.section-block { margin: 28px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 10px 0 0; font-size: clamp(1.3rem, 2.2vw, 2rem); }
.section-note { color: var(--muted); margin: 0; }
.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.movie-card {
  background: linear-gradient(180deg, rgba(18,22,34,.92), rgba(11,14,22,.92));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.movie-card:hover { transform: translateY(-4px); border-color: rgba(251,113,133,.24); }
.movie-poster-wrap { position: relative; display: block; aspect-ratio: 2/3; overflow: hidden; }
.movie-poster-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.movie-card:hover .movie-poster-wrap img { transform: scale(1.04); }
.poster-badge {
  position: absolute; left: 12px; top: 12px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(9,11,18,.7); backdrop-filter: blur(10px);
  font-size: .8rem; color: #fff; border: 1px solid rgba(255,255,255,.12);
}
.movie-body { padding: 14px 14px 16px; }
.movie-meta { color: #ffb0bc; font-size: .82rem; margin-bottom: 8px; }
.movie-body h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.35; }
.movie-body h3 a:hover, .text-link:hover { color: #ffd6de; }
.movie-body p { margin: 0; color: var(--muted); font-size: .88rem; min-height: 3.2em; }
.movie-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.movie-tags span, .tag {
  padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.06);
  color: #d6dcee; font-size: .76rem; border: 1px solid rgba(255,255,255,.05);
}
.compact-card .movie-body p { min-height: 0; }
.featured-grid .movie-card:first-child { grid-column: span 2; }
.featured-grid .movie-card:first-child .movie-poster-wrap { aspect-ratio: 16/9; }
.featured-grid .movie-card:first-child .movie-body p { min-height: 4.6em; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.cat-tile, .overview-card {
  padding: 18px; border-radius: 24px; background: linear-gradient(180deg, rgba(20,24,37,.86), rgba(10,12,20,.84));
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.cat-tile:hover, .overview-card:hover { transform: translateY(-3px); border-color: rgba(251,113,133,.22); }
.cat-tile span, .overview-card .section-label { margin-bottom: 10px; }
.cat-tile strong, .overview-card strong { display: block; font-size: 1.2rem; margin: 8px 0; }
.cat-tile em, .overview-card p { color: var(--muted); font-style: normal; display: block; }
.overview-card strong { margin-top: 16px; color: #ffd2d8; }
.category-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.page-top { padding: 24px 0 36px; }
.page-hero { padding: 28px; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 3.8rem); }
.category-feature {
  display: grid; grid-template-columns: 1.3fr .8fr; gap: 16px;
}
.feature-lead {
  display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center;
  padding: 18px; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.feature-lead img { width: 200px; height: 292px; object-fit: cover; border-radius: 20px; }
.feature-lead h2 { margin: 10px 0 8px; }
.mini-rank-panel {
  padding: 18px; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.mini-rank-panel ol { padding: 0; margin: 10px 0 0; list-style: none; }
.mini-rank-panel li + li { margin-top: 10px; }
.mini-rank-panel a { display: grid; grid-template-columns: 42px 1fr 50px; gap: 8px; align-items: center; }
.mini-rank-panel span, .mini-rank-panel em, .mini-rank-panel i { font-style: normal; }
.mini-rank-panel span { color: #ffd2d8; }
.mini-rank-panel em { color: #fff; }
.mini-rank-panel i { color: var(--muted); text-align: right; }
.ranking-panel { padding-bottom: 10px; }
.ranking-list { list-style: none; margin: 0; padding: 0; }
.ranking-list li + li { margin-top: 10px; }
.ranking-list a {
  display: grid; grid-template-columns: 60px 1fr 60px; gap: 12px; align-items: center; padding: 12px 14px;
  border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.ranking-list a:hover { background: rgba(255,255,255,.08); }
.rank-no {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 14px;
  background: linear-gradient(135deg, rgba(251,113,133,.18), rgba(249,115,22,.14)); color: #ffd2d8; font-weight: 800;
}
.ranking-list i { font-style: normal; color: var(--muted); text-align: right; }

.detail-page { padding-bottom: 36px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--muted); margin: 10px 2px 18px; flex-wrap: wrap; }
.detail-hero {
  display: grid; grid-template-columns: 330px 1fr; gap: 22px; padding: 22px;
}
.detail-poster { position: relative; }
.detail-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 24px; border: 1px solid rgba(255,255,255,.08); }
.poster-overlay {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: space-between;
  padding: 12px 14px; border-radius: 18px; background: rgba(9,11,18,.72); border: 1px solid rgba(255,255,255,.12);
}
.detail-info h1 { font-size: clamp(2rem, 3vw, 3.6rem); margin-top: 14px; }
.detail-meta { color: #ffd0d7; margin-bottom: 14px; }
.lead-line { font-size: 1.08rem; }
.tag-row { margin: 12px 0 14px; }
.text-panel {
  padding: 22px 24px; border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: #d9deea;
}
.text-panel p { margin: 0 0 12px; }
.player-shell {
  position: relative; border-radius: 24px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.08);
}
.detail-video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.play-cover {
  position: absolute; inset: 0; border: 0; background: linear-gradient(180deg, rgba(8,10,16,.1), rgba(8,10,16,.78));
  color: #fff; display: grid; place-items: center; gap: 10px; cursor: pointer;
}
.play-cover .play-icon {
  width: 76px; height: 76px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fb7185, #f97316); box-shadow: 0 18px 38px rgba(251,113,133,.25);
  font-size: 1.6rem; padding-left: 5px;
}
.play-cover strong { font-size: 1.3rem; }
.play-cover small { color: rgba(255,255,255,.8); }
.source-list { margin-top: 14px; }
.source-chip {
  padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff;
}
.source-chip.is-active, .source-chip:hover { background: linear-gradient(135deg, rgba(251,113,133,.2), rgba(249,115,22,.2)); border-color: rgba(251,113,133,.24); }
.related-grid .related-card { transform: none; }
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 28px 0 40px; color: var(--muted);
}
.footer-links { justify-content: flex-end; }
.footer-links a { color: #fff; opacity: .8; }
.footer-links a:hover { opacity: 1; }
.compact-search { max-width: 720px; }
.search-empty {
  padding: 30px; text-align: center; color: var(--muted);
  border: 1px dashed rgba(255,255,255,.14); border-radius: 20px;
}
.hidden { display: none !important; }

@media (max-width: 1240px) {
  .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .featured-grid .movie-card:first-child { grid-column: span 2; }
  .hero-main { grid-template-columns: 1fr; }
  .hero-slider { min-height: 520px; }
}
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; right: 16px; top: 76px; display: none; flex-direction: column; align-items: stretch;
    width: min(86vw, 360px); padding: 12px; background: rgba(8,10,15,.98); border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  }
  .nav-links.is-open { display: flex; }
  .movie-grid, .category-grid, .category-overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-feature, .detail-hero { grid-template-columns: 1fr; }
  .feature-lead { grid-template-columns: 1fr; }
  .feature-lead img { width: 100%; height: auto; aspect-ratio: 2/3; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .wrap { width: min(100% - 20px, 1300px); }
  .hero-main, .detail-hero, .page-hero { padding: 18px; }
  .movie-grid, .category-grid, .category-overview-grid { grid-template-columns: 1fr; }
  .hero-slider { min-height: 420px; }
  .hero-copy { inset: auto 14px 14px 14px; padding: 16px; }
  .hero-copy h2 { font-size: 1.45rem; }
  .hero-search, .action-row, .pager-links { flex-direction: column; align-items: stretch; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .ranking-list a, .mini-rank-panel a { grid-template-columns: 42px 1fr 44px; }
}
