:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-800: #9a3412;
  --orange-900: #7c2d12;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-900), var(--orange-800));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}

.header-inner {
  max-width: 1180px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-300), var(--white));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--amber-300);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  background: rgba(120, 53, 15, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-weight: 650;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

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

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(217, 119, 6, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.98) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 64px 20px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(217, 119, 6, 0.22);
  border: 1px solid rgba(252, 211, 77, 0.34);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 740px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.ghost-light-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 15px 30px rgba(217, 119, 6, 0.35);
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-light-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-light-btn {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  aspect-ratio: 3 / 4;
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 0 0 12px rgba(217, 119, 6, 0.25);
  font-size: 28px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  font-size: 38px;
  line-height: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.04);
}

.hero-arrow.prev {
  left: 20px;
  transform: translateY(-50%);
}

.hero-arrow.next {
  right: 20px;
  transform: translateY(-50%);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 28px;
  background: var(--amber-500);
}

.hero-search-wrap {
  position: relative;
  z-index: 5;
  max-width: 1000px;
  margin: -34px auto 0;
  padding: 0 20px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-search input,
.search-field input,
.select-row select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--white);
  outline: none;
}

.hero-search button,
.hero-search a {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 800;
  cursor: pointer;
}

.hero-search a {
  background: var(--gray-900);
}

.page-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px;
}

.wide-section {
  max-width: 1340px;
}

.inner-section {
  padding-top: 0;
  padding-bottom: 0;
}

.page-band {
  padding: 72px 0;
}

.warm-band {
  background: linear-gradient(90deg, var(--amber-50), #fff7ed);
}

.dark-band {
  color: var(--white);
  background: var(--gray-900);
}

.accent-band {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-900), var(--orange-900));
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
}

.section-heading h2 span {
  width: 5px;
  height: 32px;
  border-radius: 999px;
  background: var(--amber-600);
}

.section-heading p {
  margin: 0;
  color: var(--gray-500);
}

.light-heading p {
  color: rgba(255, 255, 255, 0.72);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow);
}

.movie-thumb {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-900), var(--amber-900));
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.movie-card:hover .movie-thumb img {
  transform: scale(1.08);
  opacity: 0.82;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.type-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-body {
  padding: 14px;
}

.movie-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-body h3 a:hover {
  color: var(--amber-700);
}

.movie-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
}

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

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

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

.category-tile {
  min-height: 160px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius);
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgba(252, 211, 77, 0.35), transparent 34%),
    linear-gradient(135deg, var(--gray-900), var(--amber-900));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

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

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px 52px 1fr;
  gap: 16px;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.dark-band .rank-card {
  color: var(--gray-900);
}

.rank-cover {
  display: block;
  width: 112px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-900);
}

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

.rank-number {
  font-size: 32px;
  font-weight: 950;
  color: var(--amber-600);
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.rank-body p {
  margin: 0 0 10px;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.center-action {
  margin-top: 30px;
  text-align: center;
}

.sub-page {
  min-height: 60vh;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.38), transparent 28%),
    linear-gradient(90deg, var(--gray-900), var(--amber-900));
}

.small-hero {
  padding: 70px 20px;
}

.small-hero > div {
  max-width: 1180px;
  margin: 0 auto;
}

.small-hero p {
  margin: 0 0 8px;
  color: var(--amber-300);
  font-weight: 800;
}

.small-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  font-weight: 950;
}

.small-hero span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px;
  background: linear-gradient(135deg, var(--gray-900), var(--amber-900));
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.category-card-body {
  padding: 20px;
}

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

.category-card-body p {
  margin: 0;
  color: var(--gray-500);
}

.search-panel {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.search-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-weight: 850;
}

.select-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--gray-500);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.empty-state.is-visible {
  display: block;
}

.detail-page {
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

.player-band {
  padding: 36px 20px;
  background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.player-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 0 0 18px rgba(217, 119, 6, 0.24);
  font-size: 34px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.player-shell.is-playing .player-start,
.player-shell.is-started .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-side {
  color: var(--white);
}

.player-side h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 950;
}

.player-side p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
}

.detail-section {
  padding-top: 40px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--gray-500);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--amber-700);
}

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

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-900);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-content {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.detail-content p {
  margin: 0 0 24px;
  color: var(--gray-700);
  font-size: 17px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: var(--gray-50);
}

.info-list dt {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 850;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 30px;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  padding: 16px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[hidden] {
  display: none !important;
}

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

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

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

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .rank-card {
    grid-template-columns: 88px 42px 1fr;
    gap: 12px;
  }

  .rank-cover {
    width: 88px;
  }

  .rank-number {
    font-size: 26px;
  }

  .search-panel,
  .player-layout,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-arrow {
    display: none;
  }

  .page-section,
  .page-band {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .movie-grid,
  .movie-grid.four-col {
    gap: 14px;
  }

  .movie-body {
    padding: 12px;
  }

  .movie-body h3 {
    font-size: 15px;
  }

  .category-grid,
  .category-index-grid,
  .rank-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .select-row,
  .info-list {
    grid-template-columns: 1fr;
  }

  .player-band {
    padding: 22px 12px;
  }

  .detail-content {
    padding: 22px;
  }
}
