:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, #fff7ed 0, #ffffff 22rem, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--amber-dark));
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.28);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-dark);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(146, 64, 14, 0.22);
}

.brand-text {
  font-size: 1.45rem;
}

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

.desktop-nav a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 0.96rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  color: #fff7ed;
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  width: 230px;
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  padding: 10px 44px 10px 16px;
  color: var(--slate-900);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: var(--amber-dark);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search input {
  padding-right: 16px;
}

.mobile-search button,
.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-search button,
.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.28);
}

.secondary-button {
  color: var(--amber-dark);
  background: var(--white);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  color: var(--white);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

main {
  min-height: 60vh;
}

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

.page-section {
  padding: 44px 0;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.72);
  transform: scale(1.04);
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(245, 158, 11, 0.28), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.78) 43%, rgba(15, 23, 42, 0.34) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0) 48%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 50px;
  padding-top: 74px;
}

.hero-copy {
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-row-meta,
.movie-meta,
.result-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-meta span,
.detail-meta span,
.movie-card-tags span,
.result-meta span {
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--slate-900);
  background: #fef3c7;
  font-size: 0.84rem;
  font-weight: 800;
}

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

.hero-poster {
  padding: 12px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
}

.hero-controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(245, 158, 11, 0.85);
  transform: translateY(-2px);
}

.hero-dots {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

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

.hero-dot.is-active {
  width: 30px;
  background: var(--amber);
}

.quick-panel {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 24px;
  backdrop-filter: blur(12px);
}

.quick-panel h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.quick-panel p {
  margin: 0;
  color: var(--slate-600);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-links a,
.category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--amber-dark);
  background: #fff7ed;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.quick-links a:hover,
.category-pill:hover {
  background: #fed7aa;
  transform: translateY(-2px);
}

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

.section-heading h2,
.page-title h1,
.category-card h2,
.detail-copy h1,
.static-page h1 {
  margin: 0;
  letter-spacing: -0.05em;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.section-heading p,
.page-title p,
.category-card p,
.detail-copy p,
.static-page p {
  color: var(--slate-600);
  line-height: 1.8;
}

.section-kicker {
  display: inline-block;
  color: var(--amber-dark);
  font-weight: 900;
  margin-bottom: 8px;
}

.section-more {
  flex: 0 0 auto;
  color: var(--amber-dark);
  font-weight: 900;
}

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

.movie-card,
.movie-row,
.category-card,
.rank-card,
.static-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover,
.movie-row:hover,
.category-card:hover,
.rank-card:hover,
.static-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.18);
}

.movie-poster,
.movie-row-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fb923c);
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--white);
  background: linear-gradient(90deg, #ef4444, #f97316);
  font-size: 0.76rem;
  font-weight: 900;
}

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

.movie-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.movie-card h3,
.movie-row h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.movie-row h3 a:hover {
  color: var(--amber-dark);
}

.movie-card p,
.movie-row p {
  min-height: 3.2em;
  margin: 10px 0 12px;
  color: var(--slate-600);
  font-size: 0.92rem;
  line-height: 1.65;
}

.movie-meta {
  justify-content: space-between;
  color: var(--slate-500);
  font-size: 0.84rem;
}

.movie-row {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 16px;
  padding: 12px;
}

.movie-row-poster {
  border-radius: 16px;
}

.movie-row-poster img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.movie-row-body {
  padding: 5px 5px 5px 0;
}

.movie-row-meta {
  color: var(--slate-500);
  font-size: 0.86rem;
}

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

.category-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  min-height: 190px;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.22), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  z-index: 0;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-card h2 {
  font-size: 1.55rem;
}

.category-count {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--amber-dark);
  background: #ffedd5;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 54px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 12%, rgba(245, 158, 11, 0.38), transparent 30%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.page-title h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
}

.page-title p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
}

.filter-bar,
.search-panel {
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  border: 1px solid var(--slate-200);
  background: var(--white);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px 150px;
  gap: 12px;
}

.search-panel input,
.search-panel select {
  border-radius: 14px;
  padding: 12px 14px;
}

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

.search-empty {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--slate-600);
  text-align: center;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 78px 130px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-number {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
  font-size: 1.2rem;
}

.rank-card img {
  width: 130px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
}

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

.rank-body p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.65;
}

.rank-score {
  text-align: right;
  color: var(--amber-dark);
  font-weight: 900;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 30px;
}

.player-section {
  margin-bottom: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--slate-950);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.3);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber), var(--orange));
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.35);
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.detail-copy {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-copy h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

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

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.detail-tags span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--amber-dark);
  background: #fff7ed;
  font-weight: 800;
}

.detail-copy h2,
.sidebar h2,
.static-page h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.detail-copy p {
  color: var(--slate-700);
}

.sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar-box {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.sidebar-box h2 {
  margin-top: 0;
}

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

.sidebar-mini {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.sidebar-mini img {
  width: 76px;
  height: 104px;
  object-fit: cover;
  border-radius: 12px;
}

.sidebar-mini strong {
  display: block;
  line-height: 1.35;
}

.sidebar-mini span {
  display: block;
  color: var(--slate-500);
  font-size: 0.85rem;
  margin-top: 5px;
}

.static-page {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

.static-card {
  padding: 30px;
}

.static-card ul {
  line-height: 2;
  color: var(--slate-700);
}

.site-footer {
  color: var(--white);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
  margin-top: 36px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.66);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-grid a:hover {
  color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 18px 0 24px;
}

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

  .header-search {
    margin-left: auto;
  }

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

  .hero-inner {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    height: 62px;
  }

  .header-search {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 58px;
  }

  .hero-poster {
    max-width: 260px;
  }

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

  .quick-links {
    justify-content: flex-start;
  }

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

  .filter-bar,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 54px 96px 1fr;
  }

  .rank-card img {
    width: 96px;
    height: 70px;
  }

  .rank-score {
    grid-column: 2 / 4;
    text-align: left;
  }

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

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

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

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-actions {
    display: grid;
  }

  .movie-grid,
  .category-grid,
  .result-list {
    grid-template-columns: 1fr;
  }

  .movie-row,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .movie-row-poster img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

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