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

:root {
  --sunrise-50: #fff9f0;
  --sunrise-100: #ffe8d5;
  --sunrise-300: #ffb07a;
  --sunrise-400: #ff883c;
  --sunrise-500: #ff6916;
  --sunrise-600: #f04e0c;
  --morning-500: #f0601f;
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f9fafb;
  --radius: 1rem;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, .10), 0 4px 6px -4px rgba(0, 0, 0, .10);
  --shadow-lg: 0 20px 35px rgba(17, 24, 39, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans SC', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink-900);
  background: linear-gradient(180deg, var(--sunrise-50), #ffffff 28rem, var(--soft));
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid rgba(229, 231, 235, .8);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .06);
  backdrop-filter: blur(10px);
}

.site-nav {
  max-width: 80rem;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 900;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
  box-shadow: 0 8px 18px rgba(255, 105, 22, .35);
  font-size: .82rem;
}

.brand-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.45rem;
  line-height: 1;
  background: linear-gradient(90deg, var(--sunrise-500), var(--morning-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: .95rem;
  font-weight: 600;
}

.nav-link {
  color: var(--ink-700);
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sunrise-500);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: .75rem;
  background: #f3f4f6;
  padding: .5rem .7rem;
  font-size: 1.25rem;
}

.mobile-menu {
  border-top: 1px solid var(--line);
  padding: .75rem 1rem 1rem;
  background: white;
}

.mobile-menu a {
  display: block;
  padding: .75rem 0;
  color: var(--ink-700);
  font-weight: 600;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 35rem;
  overflow: hidden;
  background: var(--ink-900);
}

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

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

.hero-content {
  position: absolute;
  left: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
  right: 1rem;
  bottom: clamp(4.5rem, 10vw, 7rem);
  max-width: 45rem;
  color: white;
  animation: fadeIn .65s ease both;
}

.hero-tags,
.detail-meta,
.meta-row,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}

.hero-tags span,
.tag-list span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  border-radius: 999px;
  padding: .35rem .75rem;
  background: rgba(255, 255, 255, .20);
  color: white;
  font-size: .85rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.hero-content h1 {
  margin: 1rem 0 .9rem;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}

.hero-content p {
  max-width: 39rem;
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border-radius: 999px;
  padding: .75rem 1.3rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn.primary {
  color: white;
  background: linear-gradient(90deg, var(--sunrise-500), var(--morning-500));
  box-shadow: 0 14px 28px rgba(240, 96, 31, .32);
}

.btn.ghost {
  color: white;
  background: rgba(255, 255, 255, .20);
  backdrop-filter: blur(6px);
}

.btn.ghost.light {
  color: var(--sunrise-600);
  background: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.hero-prev {
  left: 1.2rem;
}

.hero-next {
  right: 1.2rem;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  display: flex;
  gap: .5rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: .72rem;
  height: .72rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .46);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 2rem;
  background: white;
}

.search-band {
  padding: 2rem 1rem 0;
}

.search-inner {
  max-width: 80rem;
  margin: -4.5rem auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 30rem);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(255, 232, 213, .9);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.search-inner h2,
.section-head h2 {
  margin: 0;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.search-inner p,
.section-head p {
  margin: .45rem 0 0;
  color: var(--ink-600);
  line-height: 1.7;
}

.global-search {
  position: relative;
}

.global-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1rem;
  background: #fff;
  color: var(--ink-900);
  outline: none;
  font: inherit;
}

.global-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--sunrise-500);
  box-shadow: 0 0 0 4px rgba(255, 105, 22, .12);
}

.global-results {
  position: absolute;
  top: calc(100% + .6rem);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 26rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow-lg);
  padding: .5rem;
}

.search-result {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: .75rem;
  padding: .55rem;
  border-radius: .75rem;
}

.search-result:hover {
  background: var(--sunrise-50);
}

.search-result img {
  width: 4rem;
  height: 5.6rem;
  border-radius: .65rem;
  object-fit: cover;
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result span {
  margin-top: .35rem;
  color: var(--ink-500);
  font-size: .82rem;
}

.content-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-kicker {
  display: inline-block;
  width: .28rem;
  height: 1.8rem;
  margin-right: .6rem;
  border-radius: 999px;
  vertical-align: middle;
  background: linear-gradient(180deg, var(--sunrise-500), var(--morning-500));
}

.section-link {
  flex-shrink: 0;
  color: var(--sunrise-600);
  font-weight: 800;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

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

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(10rem, 12rem);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: .8rem;
  scrollbar-width: thin;
}

.movie-card,
.rank-card,
.category-tile,
.category-card-large {
  min-width: 0;
}

.movie-link {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

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

.poster-wrap,
.wide-cover {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
}

.poster-wrap {
  aspect-ratio: 2 / 3;
}

.wide-cover {
  aspect-ratio: 16 / 9;
}

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

.movie-link:hover img {
  transform: scale(1.06);
}

.type-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  border-radius: 999px;
  padding: .28rem .55rem;
  color: white;
  background: var(--sunrise-500);
  font-size: .75rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.card-content,
.wide-info {
  padding: .9rem;
}

.card-content h3,
.wide-info h3 {
  margin: 0 0 .55rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1rem;
  line-height: 1.4;
}

.movie-link:hover h3 {
  color: var(--sunrise-600);
}

.meta-row {
  justify-content: space-between;
  color: var(--ink-500);
  font-size: .82rem;
}

.card-content p,
.wide-info p {
  margin: .65rem 0 0;
  color: var(--ink-600);
  font-size: .84rem;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-wide .movie-link {
  position: relative;
  background: #111827;
}

.movie-card-wide .wide-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, .82), transparent);
  padding: 4rem 1.2rem 1.2rem;
}

.movie-card-wide .wide-info p,
.movie-card-wide .meta-row {
  color: rgba(255, 255, 255, .84);
}

.category-grid,
.category-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.category-tile,
.category-card-large {
  display: block;
  border-radius: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 232, 213, .9);
  background: linear-gradient(135deg, #fff, var(--sunrise-50));
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.category-tile strong,
.category-card-large h2 {
  display: block;
  margin: 0 0 .55rem;
  color: var(--ink-900);
  font-size: 1.15rem;
}

.category-tile span,
.category-card-large p {
  color: var(--ink-600);
  line-height: 1.7;
  font-size: .92rem;
}

.category-card-large {
  padding: 0;
  overflow: hidden;
}

.category-card-large > div:last-child {
  padding: 1rem;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 9rem;
  background: var(--ink-900);
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-strip {
  margin-top: 4rem;
  padding: 4rem 1rem;
  color: white;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.ranking-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.ranking-inner .section-head p,
.ranking-inner .section-link {
  color: rgba(255, 255, 255, .72);
}

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

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

.rank-card a {
  display: grid;
  grid-template-columns: 3rem 5rem 1fr;
  gap: .85rem;
  align-items: center;
  min-height: 7rem;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 1rem;
  padding: .75rem;
  background: rgba(255, 255, 255, .07);
  transition: transform .2s ease, background .2s ease;
}

.ranking-page-list .rank-card a {
  border-color: var(--line);
  background: white;
}

.rank-card a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .12);
}

.ranking-page-list .rank-card a:hover {
  background: var(--sunrise-50);
}

.rank-num {
  color: var(--sunrise-400);
  font-weight: 900;
  font-size: 1.2rem;
  text-align: center;
}

.rank-card img {
  width: 5rem;
  height: 6.7rem;
  border-radius: .7rem;
  object-fit: cover;
}

.rank-card h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
}

.rank-card p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .85rem;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-page-list .rank-card p {
  color: var(--ink-600);
}

.rank-card em {
  display: block;
  margin-top: .4rem;
  color: rgba(255, 255, 255, .64);
  font-style: normal;
  font-size: .78rem;
}

.ranking-page-list .rank-card em {
  color: var(--ink-500);
}

.site-footer {
  margin-top: 4rem;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner strong {
  display: block;
  margin-bottom: .5rem;
  color: white;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.25rem;
}

.footer-inner p {
  max-width: 38rem;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: #e5e7eb;
  font-weight: 700;
}

.page-main {
  min-height: 65vh;
}

.page-hero {
  color: white;
  background: linear-gradient(135deg, #111827, #3a2418 55%, var(--sunrise-600));
  padding: 5rem 1rem;
}

.page-hero > div {
  max-width: 80rem;
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 50rem;
  margin: .65rem 0 1rem;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12;
}

.page-hero p {
  max-width: 44rem;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  line-height: 1.8;
}

.soft-hero {
  color: var(--ink-900);
  background: linear-gradient(135deg, var(--sunrise-50), #fff, #fff7ed);
}

.soft-hero p {
  color: var(--ink-600);
}

.dark-hero {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  padding: .4rem .8rem;
  color: var(--sunrise-700);
  background: var(--sunrise-100);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 14rem 12rem;
  gap: .85rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: white;
  box-shadow: var(--shadow);
}

.detail-main {
  background: #fff;
}

.detail-hero {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 4rem 1rem;
}

.detail-wrap {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) 1fr;
  gap: 2rem;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 24px 44px rgba(0, 0, 0, .35);
  background: #000;
}

.breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, .78);
  font-size: .95rem;
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: white;
}

.detail-intro h1 {
  max-width: 48rem;
  margin: 0 0 .75rem;
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 48rem;
  color: rgba(255, 255, 255, .88);
  line-height: 1.8;
  font-size: 1.08rem;
}

.detail-meta {
  margin: 1.2rem 0;
}

.detail-meta span,
.detail-hero .tag-list span {
  background: rgba(255, 255, 255, .16);
}

.detail-hero .btn {
  margin-top: 1.4rem;
}

.player-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1rem 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(0, 0, 0, .15), rgba(0, 0, 0, .58));
  cursor: pointer;
  transition: opacity .25s ease, visibility .25s ease;
}

.play-overlay span {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: .25rem;
  background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
  box-shadow: 0 20px 45px rgba(240, 96, 31, .42);
  font-size: 2rem;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  max-width: 58rem;
}

.detail-content h2 {
  margin: 2rem 0 .8rem;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.75rem;
}

.detail-content p {
  margin: 0 0 1rem;
  color: var(--ink-700);
  font-size: 1.02rem;
  line-height: 2;
}

.compact-card a {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: .75rem;
  align-items: center;
}

.compact-card img {
  width: 5rem;
  height: 3.2rem;
  border-radius: .6rem;
  object-fit: cover;
}

.compact-card span,
.compact-card em {
  display: block;
}

.compact-card em {
  color: var(--ink-500);
  font-style: normal;
  font-size: .8rem;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

  .hero {
    height: 74vh;
    min-height: 34rem;
  }

  .hero-arrow {
    display: none;
  }

  .search-inner,
  .featured-grid,
  .ranking-list,
  .detail-wrap,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .search-inner {
    margin-top: -3rem;
  }

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

  .category-grid,
  .category-card-grid,
  .ranking-page-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-wrap {
    align-items: start;
  }

  .detail-poster {
    width: min(15rem, 70vw);
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 1.15rem;
  }

  .hero-content {
    bottom: 5rem;
  }

  .content-section {
    padding-top: 3rem;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-card a {
    grid-template-columns: 2.5rem 4rem 1fr;
  }

  .rank-card img {
    width: 4rem;
    height: 5.4rem;
  }
}
