@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

:root {
  --primary-50: #fef8f2;
  --primary-100: #fdeee0;
  --primary-400: #f29d5b;
  --primary-500: #ee7f38;
  --primary-600: #e0642d;
  --primary-700: #ba4d27;
  --accent-50: #fefce8;
  --accent-500: #eab308;
  --accent-700: #a16207;
  --secondary-50: #f5f5f4;
  --secondary-100: #e7e6e3;
  --secondary-500: #736d5f;
  --secondary-700: #4d4944;
  --secondary-800: #433f3c;
  --warm-50: #fdf8f6;
  --warm-100: #f2e8e5;
  --warm-200: #eaddd7;
  --white: #ffffff;
  --black: #111111;
  --shadow: 0 16px 45px rgba(67, 63, 60, 0.12);
  --shadow-soft: 0 8px 22px rgba(67, 63, 60, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, 'Noto Sans SC', sans-serif;
  background: var(--warm-50);
  color: var(--secondary-800);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--warm-200);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 24px rgba(67, 63, 60, 0.08);
}

.top-nav {
  width: min(1280px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--secondary-800);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  color: var(--white);
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(238, 127, 56, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-weight: 700;
  color: var(--secondary-700);
  transition: color 0.2s ease, background-color 0.2s ease;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--warm-100);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--secondary-800);
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-400) 44%, var(--accent-500));
  color: var(--white);
  padding: 72px 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.28;
}

.hero-glow.one {
  width: 260px;
  height: 260px;
  background: var(--white);
  top: 26px;
  left: 8%;
}

.hero-glow.two {
  width: 360px;
  height: 360px;
  background: var(--accent-50);
  right: -80px;
  bottom: -120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 900;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(42px, 6vw, 72px);
  max-width: 720px;
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.hero-search,
.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.hero-search input,
.filter-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--secondary-800);
  padding: 12px 16px;
}

.hero-search button,
.filter-search button,
.hero-actions a,
.category-overview-head a {
  border: 0;
  white-space: nowrap;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--primary-500);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-search button:hover,
.filter-search button:hover,
.hero-actions a:hover,
.category-overview-head a:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-actions a:last-child {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.hero-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.content-section.white {
  width: 100%;
  max-width: none;
  background: var(--white);
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
}

.content-section.tint {
  width: 100%;
  max-width: none;
  background: linear-gradient(90deg, var(--warm-100), var(--primary-50));
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
}

.section-title {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 900;
  color: var(--secondary-800);
}

.title-line {
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-500), transparent);
}

.title-line.accent {
  background: linear-gradient(90deg, var(--accent-500), transparent);
}

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

.movie-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-700), var(--primary-700));
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.06);
}

.type-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(238, 127, 56, 0.92);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(234, 179, 8, 0.92);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  font-size: 36px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--secondary-800);
}

.card-body p {
  margin: 0 0 14px;
  color: var(--secondary-500);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row,
.tag-row,
.detail-meta,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-row span,
.detail-meta span,
.tag-cloud span,
.tag-row {
  font-size: 12px;
  color: var(--secondary-500);
}

.meta-row span,
.detail-meta span,
.tag-cloud span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--secondary-50);
}

.tag-row {
  color: var(--primary-700);
  font-weight: 700;
}

.movie-card-large {
  position: relative;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.movie-card-large .card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent);
}

.movie-card-large .poster-wrap {
  aspect-ratio: 4 / 5;
}

.movie-card-large .card-body h3,
.movie-card-large .card-body p,
.movie-card-large .tag-row,
.movie-card-large .meta-row span {
  color: var(--white);
}

.movie-card-large .meta-row span {
  background: rgba(255, 255, 255, 0.18);
}

.movie-card-compact .card-link {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.movie-card-compact .poster-wrap {
  border-radius: 14px;
}

.movie-card-compact .card-body {
  padding: 0;
}

.movie-card-compact .card-body p {
  -webkit-line-clamp: 1;
}

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

.category-tile,
.category-overview-block,
.text-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.category-tile a:first-child {
  display: block;
}

.category-tile span,
.category-overview-head h2 {
  display: block;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--secondary-800);
}

.category-tile p,
.category-overview-head p,
.text-panel p {
  margin: 0;
  color: var(--secondary-500);
  line-height: 1.8;
}

.tile-links {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.tile-links a {
  color: var(--primary-600);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.ranking-list.wide {
  margin-top: 24px;
}

.stacked-list {
  display: grid;
  gap: 36px;
}

.subsection h3 {
  margin: 0 0 18px;
  color: var(--secondary-700);
  font-size: 23px;
  font-weight: 900;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.page-hero {
  background: linear-gradient(135deg, var(--secondary-800), var(--secondary-700));
  color: var(--white);
  padding: 72px 0;
}

.page-hero > div {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--warm-200);
  font-size: 18px;
  line-height: 1.8;
}

.overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.filter-panel {
  margin-bottom: 26px;
}

.filter-search {
  margin-top: 0;
  max-width: 720px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  border: 1px solid var(--warm-200);
  background: var(--white);
  color: var(--secondary-700);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--primary-500);
  background: var(--primary-50);
  color: var(--primary-700);
}

.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: end;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--secondary-800), var(--secondary-700));
  color: var(--white);
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--warm-200);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--primary-400);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.detail-copy p {
  margin: 18px 0 20px;
  max-width: 820px;
  color: var(--warm-200);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta span,
.tag-cloud span {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.tag-cloud {
  margin-top: 14px;
}

.player-section {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
}

.player-shell {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--black);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--black);
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary-500);
  color: var(--white);
  font-size: 32px;
  box-shadow: 0 20px 42px rgba(238, 127, 56, 0.36);
}

.player-title {
  font-size: 22px;
  font-weight: 900;
}

.detail-content {
  padding-top: 32px;
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.text-panel h2:not(:first-child) {
  margin-top: 28px;
}

.site-footer {
  margin-top: 48px;
  padding: 48px 0 24px;
  background: var(--secondary-800);
  color: var(--warm-100);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.footer-inner p {
  max-width: 640px;
  color: var(--warm-200);
  line-height: 1.8;
}

.footer-inner h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--primary-400);
  font-weight: 800;
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--warm-200);
  text-align: center;
  font-size: 14px;
}

.is-hidden,
.movie-card.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-feature-grid,
  .movie-grid.four,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-poster {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  .top-nav {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--warm-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-section,
  .page-hero {
    padding: 46px 0;
  }

  .hero-search,
  .filter-search {
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search button,
  .filter-search button {
    width: 100%;
  }

  .hero-feature-grid,
  .movie-grid.four,
  .movie-grid.three,
  .movie-grid.two,
  .category-grid,
  .ranking-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .movie-card-compact .card-link {
    grid-template-columns: 128px 1fr;
  }

  .detail-hero {
    padding: 20px;
  }

  .detail-copy h1 {
    font-size: 34px;
  }

  .category-overview-head {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .movie-card-compact .card-link {
    grid-template-columns: 1fr;
  }

  .movie-card-compact .poster-wrap {
    aspect-ratio: 16 / 9;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .title-line {
    width: 100%;
    flex: none;
  }
}
