* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-500: #f43f5e;
  --blue-50: #eff6ff;
  --blue-600: #2563eb;
  --cyan-50: #ecfeff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 6px 18px rgba(120, 53, 15, 0.08);
  --shadow-md: 0 12px 32px rgba(120, 53, 15, 0.12);
  --shadow-xl: 0 24px 60px rgba(120, 53, 15, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50) 50%, #fefce8);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--gray-700);
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-inner a,
.section-more {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-inner a:hover,
.section-more:hover {
  color: var(--amber-600);
}

.nav-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--amber-100);
  font-size: 24px;
  cursor: pointer;
}

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

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 650;
}

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

main {
  overflow: hidden;
}

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

.hero {
  position: relative;
  min-height: 680px;
  padding: 78px 0 74px;
  background:
    radial-gradient(circle at 12% 16%, rgba(245, 158, 11, 0.28), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(249, 115, 22, 0.24), transparent 30%),
    linear-gradient(135deg, #fff7d6 0%, #fff1dd 50%, #fff7b8 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.62;
  pointer-events: none;
}

.hero::before {
  width: 210px;
  height: 210px;
  top: 68px;
  left: 9%;
  background: rgba(245, 158, 11, 0.45);
}

.hero::after {
  width: 280px;
  height: 280px;
  right: 10%;
  bottom: 70px;
  background: rgba(249, 115, 22, 0.36);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 46px;
  align-items: center;
}

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

.hero-copy {
  padding: 12px 0;
}

.hero-kicker,
.section-heading span,
.page-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 750;
}

.hero h1,
.hero h2 {
  margin: 24px 0 18px;
  color: var(--amber-900);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 28px;
  color: var(--amber-800);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.62;
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  border: 0;
  font-weight: 780;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.btn-ghost {
  color: var(--amber-700);
  background: rgba(255, 255, 255, 0.86);
}

.hero-media {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow-xl);
  transform: rotate(1.2deg);
  background: var(--white);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.hero-poster-layer {
  position: absolute;
  inset: auto 20px 20px 20px;
  padding: 20px;
  color: var(--white);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.78));
}

.hero-poster-layer strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.hero-dot {
  width: 44px;
  height: 8px;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(180, 83, 9, 0.22);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--amber-600);
}

.search-panel {
  margin-top: 34px;
  padding: 10px;
  display: flex;
  gap: 10px;
  max-width: 680px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-md);
}

.search-panel input,
.search-input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 16px 18px;
  border-radius: 18px;
  color: var(--gray-800);
  background: var(--white);
  font-size: 16px;
}

.search-panel button {
  white-space: nowrap;
}

.section {
  padding: 68px 0;
}

.section-alt {
  background: linear-gradient(90deg, var(--blue-50), var(--cyan-50));
}

.section-warm {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.75), rgba(255, 247, 237, 0.9));
}

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

.section-heading h2 {
  margin: 14px 0 0;
  color: var(--gray-800);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

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

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

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

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

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

.movie-badge,
.movie-region {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  font-size: 12px;
  font-weight: 760;
}

.movie-badge {
  left: 12px;
  color: var(--amber-700);
}

.movie-region {
  right: 12px;
  color: var(--blue-600);
}

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

.movie-card-title {
  margin: 0 0 10px;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-link:hover .movie-card-title {
  color: var(--amber-600);
}

.movie-card-desc {
  min-height: 44px;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta-line {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-500);
  font-size: 12px;
}

.movie-meta-line span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.horizontal-card img {
  width: 160px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.horizontal-card h3 {
  margin: 4px 0 10px;
  font-size: 22px;
}

.horizontal-card p {
  color: var(--gray-600);
  line-height: 1.68;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
  font-size: 18px;
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-item p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 28px;
  color: var(--gray-800);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -44px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 12px;
  color: var(--amber-900);
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--gray-600);
  line-height: 1.65;
}

.page-hero {
  padding: 58px 0 46px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.86), rgba(255, 247, 237, 0.9));
}

.page-hero h1 {
  margin: 18px 0 12px;
  color: var(--amber-900);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 880px;
  margin: 0;
  color: var(--amber-800);
  font-size: 18px;
  line-height: 1.72;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.filter-chip {
  border: 0;
  border-radius: var(--radius-full);
  padding: 10px 14px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 720;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0 0 26px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-card,
.sidebar-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--black);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  font-size: 34px;
  cursor: pointer;
}

.player-error {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.82);
}

.player-error.is-visible {
  display: block;
}

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

.detail-card h1 {
  margin: 12px 0 14px;
  color: var(--gray-900);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.12;
}

.detail-card h2,
.detail-card h3,
.sidebar-card h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
}

.detail-card p {
  color: var(--gray-700);
  line-height: 1.85;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
}

.sidebar-card {
  padding: 20px;
  position: sticky;
  top: 92px;
}

.sidebar-poster {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 18px;
}

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

.mini-card a {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card a:hover {
  background: var(--amber-50);
  transform: translateX(2px);
}

.mini-card img {
  width: 68px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card span,
.mini-card small {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card span {
  color: var(--gray-800);
  font-weight: 760;
}

.mini-card small {
  color: var(--gray-500);
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--amber-700);
  font-weight: 720;
}

.breadcrumb a:hover {
  color: var(--orange-600);
}

.pagination,
.alpha-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.pagination a,
.alpha-links a {
  padding: 10px 14px;
  border-radius: var(--radius-full);
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 720;
}

.pagination a:hover,
.alpha-links a:hover {
  color: var(--white);
  background: var(--amber-600);
}

.site-footer {
  margin-top: 48px;
  color: var(--amber-50);
  background: linear-gradient(135deg, var(--amber-900), #7c2d12);
}

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

.footer-brand p,
.footer-inner a,
.footer-bottom {
  color: var(--amber-200);
}

.footer-inner h2 {
  margin: 0 0 15px;
  color: var(--amber-100);
  font-size: 18px;
}

.footer-inner a {
  display: block;
  margin: 9px 0;
  font-size: 14px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(253, 230, 138, 0.24);
  text-align: center;
  font-size: 14px;
}

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

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid-four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .sidebar-card {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: 52px 0;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    transform: none;
  }

  .section-heading,
  .search-box,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .rank-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 20px;
  }

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

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

  .movie-card-title {
    font-size: 15px;
  }

  .movie-card-desc {
    font-size: 13px;
  }

  .horizontal-card,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .horizontal-card img,
  .rank-item img {
    width: 100%;
    height: auto;
  }

  .detail-card {
    padding: 20px;
  }
}
