:root {
  --primary-50: #fef9ee;
  --primary-100: #fdf2d7;
  --primary-200: #fae1ae;
  --primary-300: #f7ca7a;
  --primary-400: #f3a844;
  --primary-500: #f08d1f;
  --primary-600: #e17015;
  --primary-700: #bb5413;
  --primary-800: #954217;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --dark: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 42%, #f9fafb 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--primary-800), var(--primary-700), var(--primary-600));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(149, 66, 23, 0.28);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--primary-800);
  background: var(--primary-100);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong,
.footer-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--primary-100);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-weight: 650;
}

.nav-links a,
.top-search button {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-100);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.filter-panel input,
.filter-panel select,
.large-search input {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  outline: none;
}

.top-search input {
  width: 190px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.top-search input::placeholder {
  color: var(--primary-200);
}

.top-search button,
.btn,
.large-search button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 750;
}

.top-search button {
  padding: 10px 14px;
  color: var(--primary-800);
  background: var(--primary-100);
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: var(--dark);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease, transform 1.2s ease;
  transform: scale(1.04);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 32%, rgba(240, 141, 31, 0.24), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding: 72px 0;
  max-width: 1180px;
}

.eyebrow,
.section-title span,
.page-hero span,
.search-band span,
.card-tags span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.eyebrow {
  padding: 8px 14px;
  color: var(--primary-100);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2.2vw, 22px);
}

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

.hero-tags span {
  padding: 7px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.large-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  box-shadow: 0 16px 30px rgba(187, 84, 19, 0.28);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.btn:hover,
.top-search button:hover,
.large-search button:hover {
  transform: translateY(-2px);
}

.btn-small {
  min-height: 38px;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--primary-600);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: var(--primary-400);
}

.quick-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 28px;
  margin-top: -48px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.category-chips a {
  padding: 10px 15px;
  border: 1px solid var(--primary-200);
  border-radius: 999px;
  color: var(--primary-800);
  background: var(--primary-50);
  font-weight: 700;
}

.section-block,
.split-section,
.category-grid,
.ranking-list,
.detail-content {
  padding: 72px 0 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-title.compact {
  display: block;
  margin-bottom: 18px;
}

.section-title span,
.page-hero span,
.search-band span {
  margin-bottom: 8px;
  color: var(--primary-700);
  text-transform: uppercase;
}

.section-title h2,
.page-hero h1,
.search-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-title a,
.text-link {
  color: var(--primary-700);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

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

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

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

.movie-card,
.ranking-card,
.category-card,
.info-card,
.story-block,
.rank-panel,
.latest-panel {
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--primary-100);
}

.poster-link img,
.ranking-cover img,
.detail-poster img,
.player-cover img,
.category-cover img {
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 16px;
}

.card-tags {
  margin-bottom: 10px;
}

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

.movie-card h2,
.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card p,
.ranking-card p,
.category-card p,
.page-hero p,
.story-block p,
.info-card dd,
.site-footer p {
  color: var(--muted);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 28px;
}

.rank-panel,
.latest-panel {
  padding: 24px;
}

.rank-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--soft);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary-600);
  font-weight: 800;
}

.rank-row img {
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row strong,
.rank-row em {
  display: block;
}

.rank-row em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.search-band {
  margin-top: 72px;
  padding: 72px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 28px;
  align-items: center;
}

.search-band span {
  color: var(--primary-100);
}

.large-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.large-search input {
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  background: #ffffff;
}

.large-search button {
  padding: 0 20px;
}

.page-main {
  min-height: 72vh;
  padding-bottom: 72px;
}

.page-hero {
  padding: 76px 0 18px;
}

.page-hero p {
  max-width: 780px;
  font-size: 18px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 180px;
}

.category-cover img {
  min-width: 0;
  border-radius: 16px;
}

.category-card span {
  color: var(--primary-700);
  font-weight: 800;
}

.category-card h2 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--soft);
  border-color: var(--line);
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 16px;
}

.ranking-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
}

.ranking-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary-600);
  font-weight: 900;
}

.detail-main {
  padding-bottom: 72px;
}

.detail-hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  background: var(--dark);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.05);
}

.detail-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  align-items: center;
  min-height: 520px;
  padding: 72px 0;
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.74);
}

.breadcrumbs a {
  color: var(--primary-100);
}

.breadcrumbs em {
  font-style: normal;
}

.detail-intro h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-line {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.detail-tags {
  margin: 22px 0 28px;
}

.player-section {
  padding-top: 64px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #000000;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.26));
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  filter: blur(1px) saturate(1.05);
  opacity: 0.72;
}

.player-cover button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  font-weight: 850;
}

.player-cover button span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--primary-700);
  background: #ffffff;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 22px;
}

.story-block,
.info-card {
  padding: 24px;
}

.story-block h2,
.info-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.story-block p {
  margin: 0;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 16px;
  margin: 0;
}

.info-card dt {
  color: var(--ink);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
}

.site-footer {
  margin-top: 80px;
  padding: 58px 0 24px;
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffffff;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  font-size: 14px;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .nav-wrap {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links,
  .top-search {
    display: none;
    grid-column: 1 / -1;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .top-search {
    display: flex;
  }

  .site-header.is-open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
  }

  .site-header.is-open .top-search {
    width: 100%;
    padding-bottom: 16px;
  }

  .top-search input {
    width: 100%;
  }

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

  .split-section,
  .search-band-inner,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 22px, 1180px);
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero {
    height: 74vh;
    min-height: 520px;
  }

  .hero-content {
    padding: 64px 12px 80px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-panel,
  .filter-panel,
  .large-search,
  .detail-top,
  .category-card,
  .ranking-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    margin-top: 18px;
  }

  .movie-grid,
  .featured-grid,
  .small-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card-body {
    padding: 13px;
  }

  .movie-card h2,
  .ranking-card h2 {
    font-size: 16px;
  }

  .section-block,
  .split-section,
  .category-grid,
  .ranking-list,
  .detail-content {
    padding-top: 46px;
  }

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

  .detail-top {
    gap: 24px;
    min-height: auto;
  }

  .detail-poster {
    width: min(240px, 70vw);
  }

  .video-shell {
    border-radius: 18px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .featured-grid,
  .small-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .detail-intro h1 {
    letter-spacing: -0.03em;
  }
}
