:root {
  --primary-950: #082f49;
  --primary-900: #0c4a6e;
  --primary-800: #075985;
  --primary-700: #0369a1;
  --primary-600: #0284c7;
  --primary-500: #0ea5e9;
  --primary-100: #e0f2fe;
  --primary-50: #f0f9ff;
  --accent-600: #d97706;
  --accent-500: #f59e0b;
  --accent-400: #fbbf24;
  --accent-100: #fef3c7;
  --accent-50: #fffbeb;
  --neutral-950: #0c0a09;
  --neutral-900: #1c1917;
  --neutral-800: #292524;
  --neutral-700: #44403c;
  --neutral-600: #57534e;
  --neutral-500: #78716c;
  --neutral-300: #d6d3d1;
  --neutral-200: #e7e5e4;
  --neutral-100: #f5f5f4;
  --neutral-50: #fafaf9;
  --white: #ffffff;
  --shadow-md: 0 12px 28px rgba(12, 74, 110, 0.12);
  --shadow-lg: 0 22px 60px rgba(12, 74, 110, 0.22);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--neutral-50);
  color: var(--neutral-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--primary-900), var(--primary-800));
  box-shadow: 0 8px 24px rgba(12, 74, 110, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand {
  font-size: 20px;
}

.brand-mark {
  color: var(--accent-400);
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-weight: 650;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-400);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 8px;
  background: var(--white);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-menu.is-open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-link:hover,
.mobile-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-400);
}

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--neutral-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: 24px;
  bottom: 72px;
  max-width: 760px;
  color: var(--white);
}

.hero-tags,
.detail-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 5px 10px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.9);
}

.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  color: var(--white);
  background: var(--accent-500);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.28);
}

.btn-accent:hover {
  background: var(--accent-600);
}

.btn-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 42px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.hero-dot.is-active,
.hero-dot:hover {
  background: var(--accent-500);
}

.quick-search {
  position: relative;
  z-index: 3;
  width: min(980px, calc(100% - 32px));
  margin: -32px auto 0;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.quick-search form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.quick-search label {
  font-weight: 800;
  color: var(--primary-800);
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--white);
  color: var(--neutral-800);
  outline: none;
}

.quick-search input {
  padding: 0 14px;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.quick-search button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: var(--white);
  background: var(--primary-600);
  font-weight: 800;
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-spacing {
  padding-top: 48px;
  padding-bottom: 56px;
}

.content-section {
  margin-top: 56px;
}

.content-section:first-child {
  margin-top: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2,
.page-hero h1,
.detail-card h1 {
  margin: 0;
  color: var(--neutral-900);
  line-height: 1.18;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-head a {
  color: var(--primary-700);
  font-weight: 800;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

.grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.movie-card-small .movie-info p,
.side-recommend-list .movie-info p,
.side-recommend-list .movie-tags {
  display: none;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--neutral-200);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-wide .movie-cover {
  aspect-ratio: 16 / 10;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.15), transparent);
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(12, 74, 110, 0.2);
}

.movie-card:hover .movie-cover img {
  transform: scale(1.05);
}

.movie-card:hover .movie-cover::after,
.movie-card:hover .movie-hover {
  opacity: 1;
}

.movie-year {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--white);
  background: var(--accent-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-hover {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  opacity: 0;
  color: var(--white);
  font-size: 13px;
  line-height: 1.45;
  transition: opacity 0.25s ease;
}

.movie-info {
  padding-top: 10px;
}

.movie-card-wide .movie-info {
  padding-top: 0;
}

.movie-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--primary-600);
}

.movie-info p {
  margin: 8px 0 10px;
  color: var(--neutral-600);
  font-size: 14px;
}

.movie-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--neutral-600);
  font-size: 13px;
}

.movie-meta span + span::before,
.rank-meta span + span::before,
.detail-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--neutral-300);
}

.movie-tags span {
  padding: 4px 8px;
  color: var(--primary-700);
  background: var(--primary-50);
}

.soft-panel,
.ranking-panel {
  padding: 28px;
  border-radius: 24px;
}

.soft-panel {
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.ranking-panel {
  background: var(--neutral-100);
}

.horizontal-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
}

.scroll-card {
  width: 190px;
  flex: 0 0 190px;
  scroll-snap-align: start;
}

.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.category-tile,
.category-overview-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile {
  min-height: 148px;
  padding: 22px;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--primary-800);
  font-size: 20px;
}

.category-tile span,
.category-overview-card p {
  color: var(--neutral-600);
  font-size: 14px;
}

.category-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-overview-card {
  padding: 24px;
}

.category-main-link {
  display: block;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 13px;
  font-weight: 700;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-item {
  display: grid;
  grid-template-columns: 42px 86px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.06);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-weight: 900;
}

.rank-hot .rank-num {
  color: var(--white);
  background: var(--accent-500);
}

.rank-thumb {
  display: block;
  width: 86px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.rank-body p {
  margin: 0 0 8px;
  color: var(--neutral-600);
  font-size: 14px;
}

.movie-list {
  display: grid;
  gap: 16px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 46px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  box-shadow: var(--shadow-lg);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.26);
  filter: blur(4px);
}

.page-hero > div {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 48px);
}

.page-hero p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.page-hero .section-kicker {
  color: var(--accent-400);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin: 28px 0;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--neutral-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  padding: 0 12px;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--neutral-600);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--neutral-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary-700);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.player-card,
.detail-card,
.side-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.player-card {
  overflow: hidden;
  background: var(--neutral-950);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-backdrop,
.player-dark {
  position: absolute;
  inset: 0;
}

.player-backdrop {
  background-position: center;
  background-size: cover;
  filter: blur(1px);
  transform: scale(1.02);
}

.player-dark {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.3));
}

.player-play {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  padding-left: 5px;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent-500);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.38);
  font-size: 32px;
  line-height: 1;
}

.detail-card,
.side-card {
  margin-top: 20px;
  padding: 26px;
}

.detail-card h1 {
  font-size: clamp(26px, 3vw, 38px);
}

.detail-one-line {
  margin: 12px 0 16px;
  color: var(--neutral-700);
  font-size: 17px;
}

.detail-meta {
  margin-bottom: 18px;
}

.detail-tags {
  margin-bottom: 22px;
}

.detail-tags span {
  padding: 5px 10px;
  color: var(--accent-600);
  background: var(--accent-50);
}

.detail-card section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--neutral-200);
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: var(--neutral-900);
  font-size: 22px;
}

.detail-card p {
  color: var(--neutral-700);
}

.detail-side {
  position: sticky;
  top: 84px;
}

.side-card {
  margin-top: 0;
}

.side-recommend-list {
  display: grid;
  gap: 16px;
}

.side-recommend-list .movie-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
}

.side-recommend-list .movie-cover {
  border-radius: 12px;
}

.side-recommend-list .movie-info {
  padding-top: 0;
}

.site-footer {
  margin-top: 28px;
  padding: 48px 0 28px;
  color: var(--neutral-300);
  background: var(--neutral-900);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 16px;
}

.footer-grid p {
  margin: 10px 0 0;
  color: var(--neutral-300);
  font-size: 14px;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--accent-400);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--neutral-800);
  color: var(--neutral-300);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .grid-six {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .ranking-list.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    bottom: 92px;
  }

  .hero-dots {
    left: 24px;
    right: auto;
  }

  .quick-search form {
    grid-template-columns: 1fr;
  }

  .grid-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card-wide {
    grid-template-columns: 150px 1fr;
  }
}

@media (max-width: 620px) {
  .site-nav {
    width: min(100% - 24px, 1180px);
  }

  .mobile-menu {
    width: min(100% - 24px, 1180px);
    grid-template-columns: 1fr;
  }

  .hero {
    height: 540px;
  }

  .hero-content {
    left: 18px;
    right: 18px;
  }

  .hero p {
    font-size: 16px;
  }

  .page-shell,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .page-spacing {
    padding-top: 32px;
  }

  .grid-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-card-wide,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    align-items: start;
  }

  .rank-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .category-grid,
  .category-overview-grid,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .soft-panel,
  .ranking-panel,
  .page-hero,
  .detail-card,
  .side-card {
    padding: 20px;
    border-radius: 18px;
  }

  .side-recommend-list .movie-card {
    grid-template-columns: 86px 1fr;
  }
}
