:root {
  --bg: #fffdf3;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.82);
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(31, 41, 55, 0.10);
  --yellow: #facc15;
  --yellow-dark: #ca8a04;
  --green: #bef264;
  --green-dark: #65a30d;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(120, 113, 16, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), transparent 36rem),
    radial-gradient(circle at top right, rgba(190, 242, 100, 0.22), transparent 34rem),
    linear-gradient(180deg, #fffbea 0%, #f8fafc 46%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #facc15 0%, #fde047 46%, #bef264 100%);
  box-shadow: 0 12px 35px rgba(133, 77, 14, 0.16);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  color: #1f2937;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--yellow-dark);
  box-shadow: 0 10px 24px rgba(133, 77, 14, 0.16);
}

.brand-name {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(31, 41, 55, 0.78);
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.88);
  color: var(--yellow-dark);
  box-shadow: 0 10px 20px rgba(133, 77, 14, 0.12);
}

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

.top-search input,
.large-search input,
.filter-bar select,
.inline-filter input {
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.top-search input {
  width: 220px;
}

.top-search input:focus,
.large-search input:focus,
.inline-filter input:focus {
  background: #ffffff;
  border-color: rgba(202, 138, 4, 0.48);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.20);
}

.top-search button,
.large-search button,
.primary-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #ca8a04, #65a30d);
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(101, 163, 13, 0.26);
  transition: 0.22s ease;
}

.top-search button:hover,
.large-search button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(101, 163, 13, 0.34);
}

.mobile-nav {
  display: none;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #172012;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.72s ease, transform 1.2s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.55) 48%, rgba(15, 23, 42, 0.16) 100%),
    radial-gradient(circle at 78% 24%, rgba(250, 204, 21, 0.35), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 56px;
  color: #ffffff;
}

.hero-copy {
  max-width: 720px;
  padding: 90px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #713f12;
  background: linear-gradient(135deg, #fef08a, #bbf7d0);
  font-weight: 900;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(250, 204, 21, 0.22);
}

.hero-copy h1,
.page-hero h1,
.detail-side h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-copy p {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
  max-width: 680px;
  margin: 24px 0 0;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(250, 204, 21, 0.14);
  color: #a16207;
  border: 1px solid rgba(202, 138, 4, 0.16);
}

.hero-tags span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.ghost-btn {
  border-radius: 999px;
  padding: 12px 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  font-weight: 800;
  transition: 0.22s ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 460px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.38);
  border: 8px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.2), rgba(190, 242, 100, 0.2));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  transition: 0.28s ease;
}

.hero-poster:hover img {
  transform: scale(1.04);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  transition: 0.22s ease;
}

.hero-dot.is-active {
  width: 58px;
  background: #facc15;
}

.quick-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  margin-top: -56px;
  position: relative;
  z-index: 7;
}

.quick-search-card,
.quick-links,
.text-panel,
.ranking-list,
.category-card,
.category-big-card {
  background: var(--panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

.quick-search-card {
  padding: 32px;
}

.quick-search-card h2,
.section-heading h2,
.text-panel h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
  font-weight: 950;
}

.quick-search-card p,
.section-heading p,
.page-hero p,
.text-panel p,
.detail-line {
  color: var(--muted);
  line-height: 1.9;
}

.large-search {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.large-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
}

.quick-links {
  padding: 22px;
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 12px 16px;
  background: #ffffff;
  color: #3f3f46;
  font-weight: 800;
  border: 1px solid var(--line);
  transition: 0.22s ease;
}

.category-chip:hover,
.hot-entry {
  color: #713f12;
  background: linear-gradient(135deg, #fef08a, #bbf7d0);
  transform: translateY(-2px);
}

section.container {
  margin-top: 72px;
}

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

.section-heading p {
  margin: 8px 0 0;
}

.section-more {
  min-width: max-content;
  color: var(--yellow-dark);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(55, 65, 81, 0.10);
  border: 1px solid rgba(31, 41, 55, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(55, 65, 81, 0.16);
}

.poster {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.05;
  background: linear-gradient(145deg, #fef3c7, #d9f99d);
}

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

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

.poster-year,
.poster-type {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.poster-year {
  left: 12px;
}

.poster-type {
  right: 12px;
}

.card-body {
  padding: 17px;
}

.card-category {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.card-body h3 a:hover {
  color: var(--yellow-dark);
}

.card-body p {
  min-height: 58px;
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.card-tags {
  min-height: 29px;
}

.card-list {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.poster-small {
  width: 78px;
  border-radius: 16px;
}

.card-list .card-body {
  padding: 0;
}

.card-list .card-body p {
  min-height: 0;
  margin-bottom: 8px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #84cc16);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.24);
}

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

.full-ranking {
  max-width: 920px;
  margin: 0 auto;
}

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

.category-card,
.category-big-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  transition: 0.22s ease;
}

.category-card:hover,
.category-big-card:hover {
  transform: translateY(-5px);
}

.category-card strong,
.category-big-card h2 {
  font-size: 22px;
  font-weight: 950;
}

.category-card span,
.category-big-card p {
  color: var(--muted);
  line-height: 1.8;
}

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

.category-big-card {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
}

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

.category-posters img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

.page-hero {
  padding: 76px 0 42px;
  background:
    radial-gradient(circle at 18% 0%, rgba(250, 204, 21, 0.32), transparent 30rem),
    radial-gradient(circle at 86% 10%, rgba(190, 242, 100, 0.38), transparent 28rem);
}

.page-hero h1 {
  color: var(--ink);
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-bar select {
  min-width: 160px;
  border-color: rgba(202, 138, 4, 0.18);
}

.inline-filter {
  max-width: 660px;
}

.detail-hero {
  padding: 44px 0 30px;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.18), rgba(190, 242, 100, 0.16)),
    #111827;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 32px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  width: 100%;
  cursor: pointer;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(250, 204, 21, 0.22), transparent 20rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  transition: 0.25s ease;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #84cc16);
  color: #1f2937;
  font-size: 34px;
  box-shadow: 0 20px 54px rgba(250, 204, 21, 0.34);
}

.player-overlay strong {
  max-width: 70%;
  font-size: 24px;
  text-align: center;
}

.detail-side {
  color: #ffffff;
}

.breadcrumb,
.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.detail-side h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 58px);
}

.detail-line {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

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

.text-panel {
  padding: 28px;
}

.text-panel p {
  margin-bottom: 0;
  font-size: 16px;
}

.site-footer {
  margin-top: 90px;
  padding: 46px 0 58px;
  background: #172012;
  color: rgba(255, 255, 255, 0.82);
}

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

.footer-brand {
  color: #facc15;
  font-size: 24px;
  font-weight: 950;
}

.footer-inner p {
  max-width: 720px;
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #fef3c7;
  font-weight: 800;
}

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

@media (max-width: 1100px) {
  .top-search input {
    width: 170px;
  }

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

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

  .hero-content {
    grid-template-columns: 1fr 270px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .brand-name {
    font-size: 20px;
  }

  .main-nav {
    display: none;
  }

  .top-search {
    width: 100%;
  }

  .top-search input {
    flex: 1;
    width: auto;
  }

  .mobile-nav {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
  }

  .mobile-link {
    flex: 1;
    padding: 10px 6px;
    text-align: center;
    font-weight: 800;
    color: rgba(31, 41, 55, 0.7);
  }

  .mobile-link.is-active {
    color: var(--yellow-dark);
  }

  .hero-carousel,
  .hero-content {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
    min-height: auto;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 48px 0 88px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-poster {
    min-height: 0;
    max-width: 330px;
    margin: 0 auto;
  }

  .hero-poster img {
    min-height: 0;
  }

  .quick-panel,
  .detail-layout,
  .detail-content,
  .category-big-card {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 560px) {
  .container,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .large-search {
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.four,
  .category-grid,
  .category-big-grid {
    grid-template-columns: 1fr;
  }

  .card-list {
    grid-template-columns: auto 64px minmax(0, 1fr);
  }

  .poster-small {
    width: 64px;
  }

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

  .play-icon {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
