
:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3f8;
  --surface: rgba(255,255,255,.92);
  --surface-strong: #ffffff;
  --ink: #223247;
  --muted: #64748b;
  --line: #dfe8f1;
  --accent: #45698c;
  --accent-2: #6f8fac;
  --accent-3: #9fb5c9;
  --shadow: 0 20px 50px rgba(29, 41, 57, .10);
  --shadow-soft: 0 10px 25px rgba(29, 41, 57, .08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans SC", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(111,143,172,.18), transparent 28%),
    radial-gradient(circle at top right, rgba(69,105,140,.12), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(223,232,241,.9);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  letter-spacing: .08em;
  background: linear-gradient(135deg, #3d5d7b, #6f8fac);
  box-shadow: 0 12px 28px rgba(69,105,140,.25);
}
.brand-text strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}
.brand-text small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link {
  padding: 10px 0;
  color: #31455e;
  font-weight: 600;
  transition: color .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-dropdown { position: relative; }
.nav-button {
  background: none;
  border: 0;
  cursor: pointer;
}
.chev { margin-left: 4px; font-size: 12px; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}
.nav-dropdown:hover .dropdown-panel { display: grid; }
.dropdown-link, .nav-mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #3d5169;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.dropdown-link:hover, .nav-mobile-link:hover { background: #edf3f8; color: var(--accent); transform: translateX(2px); }

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.mobile-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 14px;
  display: none;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-nav.open { display: flex; }

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 12px;
}
.page-pad { padding-top: 30px; }

.page-section {
  margin-top: 34px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}
.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(69,105,140,.10);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 8px;
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(37,56,78,.96) 0%, rgba(55,82,112,.92) 45%, rgba(101,131,160,.88) 100%);
  color: white;
  box-shadow: 0 24px 70px rgba(27, 44, 66, .24);
}
.hero-copy h1 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
}
.hero-copy p {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,.88);
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.stat-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}
.stat-card strong {
  display: block;
  font-size: 22px;
}
.stat-card span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}

.hero-quick-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: white;
  color: #203246;
  box-shadow: var(--shadow-soft);
}
.btn-secondary, .btn-ghost {
  background: rgba(255,255,255,.10);
  color: white;
  border-color: rgba(255,255,255,.25);
}
.btn-secondary:hover, .btn-ghost:hover { background: rgba(255,255,255,.16); }

.hero-shell {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow);
  min-height: 620px;
}
.hero-carousel {
  position: relative;
  min-height: 620px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  width: 100%;
  height: 620px;
  object-fit: cover;
  transform: scale(1.01);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,11,18,.88) 0%, rgba(6,11,18,.60) 30%, rgba(6,11,18,.10) 66%, rgba(6,11,18,.55) 100%),
    linear-gradient(180deg, rgba(10,18,28,.22) 0%, rgba(10,18,28,.46) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  padding: 44px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  color: white;
}
.hero-chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  font-size: 13px;
  font-weight: 700;
}
.hero-content h2 {
  margin: 16px 0 12px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.06;
}
.hero-content p {
  margin: 0;
  max-width: 700px;
  color: rgba(255,255,255,.88);
  line-height: 1.8;
}
.hero-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
}
.hero-meta span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: white;
  font-size: 24px;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.hero-control:hover { background: rgba(255,255,255,.26); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }
.hero-dots {
  position: absolute;
  left: 46px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.32);
}
.hero-dot.active { width: 28px; background: white; }

.search-bar-card,
.info-card,
.movie-card,
.bucket-card,
.category-overview-card,
.region-card,
.preview-card,
.detail-panel,
.detail-aside,
.detail-player-card,
.ranking-row {
  background: var(--surface);
  border: 1px solid rgba(223,232,241,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.movie-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #dbe4ee;
}
.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}
.movie-card:hover .movie-poster img { transform: scale(1.06); }
.card-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(35,50,71,.88);
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.rank-badge { left: auto; right: 12px; background: rgba(111,143,172,.90); }
.movie-body {
  padding: 16px 16px 18px;
}
.movie-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.movie-body p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.movie-meta,
.movie-tags,
.ranking-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.movie-meta {
  margin-top: 14px;
  color: #5d7188;
  font-size: 12px;
  font-weight: 700;
}
.movie-tags {
  margin-top: 12px;
  color: var(--accent);
  font-size: 12px;
}

.bucket-grid,
.overview-grid,
.region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.bucket-card,
.category-overview-card {
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bucket-card:hover,
.category-overview-card:hover,
.preview-card:hover,
.region-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.bucket-head,
.category-overview-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.bucket-head strong,
.category-overview-top strong,
.region-card strong {
  font-size: 18px;
}
.bucket-head span,
.category-overview-top span,
.region-card span {
  color: var(--muted);
  font-size: 13px;
}
.bucket-preview,
.category-overview-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.preview-card {
  padding: 8px;
  transition: transform .18s ease;
}
.preview-card img {
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.preview-card span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.category-overview-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.region-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.region-card {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-intro {
  padding: 18px 0 6px;
}
.page-intro h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
}
.page-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.8;
}
.category-hero {
  padding-bottom: 0;
}
.category-preview-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.category-preview-row .preview-card span { display: none; }

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr);
  gap: 20px;
}
.ranking-row {
  display: grid;
  grid-template-columns: 54px 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  margin-bottom: 14px;
}
.ranking-index {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
}
.ranking-cover img {
  width: 120px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
}
.ranking-body h3 {
  margin: 0;
  font-size: 20px;
}
.ranking-body p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}
.ranking-meta {
  margin-top: 12px;
  color: #5d7188;
  font-size: 12px;
  font-weight: 700;
}
.ranking-sidebar {
  display: grid;
  gap: 18px;
}
.sidebar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mini-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background .18s ease;
}
.mini-card:hover { background: #eef3f8; }
.mini-card img {
  width: 80px;
  aspect-ratio: 2/3;
  border-radius: 12px;
  object-fit: cover;
}
.mini-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}
.mini-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.search-bar-card {
  padding: 18px;
}
.search-form {
  display: flex;
  gap: 12px;
}
.search-form input {
  flex: 1;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 14px;
  outline: none;
  background: white;
}
.search-form input:focus {
  border-color: rgba(69,105,140,.65);
  box-shadow: 0 0 0 4px rgba(69,105,140,.10);
}
.search-form button,
.search-chip {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
}
.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.search-chip {
  min-height: 38px;
  padding: 0 14px;
  background: #edf3f8;
  color: var(--accent);
  border: 1px solid var(--line);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 20px;
  align-items: start;
}
.detail-media,
.detail-player-card {
  padding: 18px;
}
.detail-media {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}
.detail-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.detail-media-copy h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
}
.detail-media-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.detail-player-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}
.player-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
}
.movie-player {
  width: 100%;
  border-radius: 20px;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}
.player-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.player-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 20px;
  margin-top: 20px;
}
.detail-panel, .detail-aside, .info-card {
  padding: 18px;
}
.detail-panel h2,
.info-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}
.detail-panel p {
  margin: 0 0 18px;
  line-height: 1.85;
  color: #334155;
}
.detail-panel p + h2 { margin-top: 18px; }
.info-card dl {
  margin: 0;
}
.info-card dl > div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.info-card dl > div:first-child { border-top: 0; }
.info-card dt {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.info-card dd {
  margin: 6px 0 0;
  font-weight: 600;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--accent); font-weight: 700; }

.tag-pill {
  color: var(--accent);
  background: #edf3f8;
  border-color: rgba(69,105,140,.12);
}

.tip-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(69,105,140,.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}
.tip-box strong { display: block; margin-bottom: 8px; }

.site-footer {
  max-width: 1280px;
  margin: 30px auto 0;
  padding: 24px 20px 30px;
  color: #607289;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1.4fr 1fr;
  gap: 18px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
}
.footer-grid h4 {
  margin: 0 0 10px;
  color: var(--ink);
}
.footer-grid p { margin: 0; line-height: 1.8; }
.footer-grid a { color: var(--accent); margin-right: 10px; }
.footer-brand {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
}
.footer-copy {
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 13px;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: var(--shadow);
  display: none;
  z-index: 40;
}

.search-empty {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero,
  .detail-grid,
  .ranking-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .detail-media { grid-template-columns: 180px minmax(0, 1fr); }
  .bucket-grid, .overview-grid, .region-grid { grid-template-columns: 1fr; }
  .category-preview-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-grid; place-items: center; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-wrap, .hero-content, .detail-media, .detail-player-card, .detail-panel, .detail-aside, .info-card, .search-bar-card { padding: 16px; }
  .hero-shell, .hero-carousel, .hero-bg { min-height: 460px; height: 460px; }
  .hero-control { display: none; }
  .hero-content { max-width: none; }
  .detail-media { grid-template-columns: 1fr; }
  .category-preview-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form { flex-direction: column; }
  .search-form button { width: 100%; }
  .ranking-row { grid-template-columns: 1fr; }
  .ranking-index { text-align: left; }
}
@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-content h2, .hero-copy h1 { font-size: 30px; }
}
