:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-500: #f97316;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --black: #000000;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(120, 53, 15, 0.11);
  --shadow-lg: 0 18px 45px rgba(120, 53, 15, 0.16);
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #111827;
  background: linear-gradient(180deg, var(--amber-50), #ffffff 34%, var(--amber-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav a:hover {
  color: var(--amber-700);
  background: var(--amber-100);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--amber-800);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--amber-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 1s ease, transform 1s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.56) 45%, rgba(0, 0, 0, 0.05));
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 70px;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-panel {
  max-width: 760px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.hero-panel h1,
.hero-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero-panel p {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255, 255, 255, 0.92);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--amber-500);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.28);
}

.primary-button:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
}

.secondary-button {
  color: var(--amber-800);
  background: var(--amber-100);
}

.secondary-button:hover {
  background: var(--amber-200);
}

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

.hero-dot {
  width: 44px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

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

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.36);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

.section {
  padding: 70px 0 0;
}

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

.section-kicker {
  margin: 0 0 5px;
  color: var(--amber-600);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-title,
.page-title {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.section-desc,
.page-desc {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--amber-700);
}

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

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

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

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

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: var(--amber-100);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card a:hover .card-cover img {
  transform: scale(1.08);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 56%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.card-cover figcaption {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-meta span {
  padding: 3px 8px;
  background: var(--amber-50);
  border-radius: 999px;
}

.card-body h3 {
  margin: 0 0 9px;
  color: var(--amber-900);
  font-size: 19px;
  line-height: 1.28;
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-line {
  margin-top: 12px;
  color: var(--amber-700);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card.horizontal a {
  display: grid;
  grid-template-columns: 210px 1fr;
}

.movie-card.horizontal .card-cover {
  height: 100%;
  aspect-ratio: auto;
}

.movie-card.large a {
  position: relative;
  color: #ffffff;
  min-height: 440px;
  background: #000000;
}

.movie-card.large .card-cover {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.movie-card.large .card-cover figcaption,
.movie-card.large .card-meta,
.movie-card.large .tag-line {
  display: none;
}

.movie-card.large .card-cover::after {
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.35), transparent);
}

.movie-card.large .card-body {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  max-width: 700px;
  padding: 42px;
}

.movie-card.large .card-body h3 {
  color: #ffffff;
  min-height: auto;
  font-size: clamp(30px, 5vw, 48px);
}

.movie-card.large .card-body p {
  color: rgba(255, 255, 255, 0.9);
  min-height: auto;
  font-size: 17px;
  -webkit-line-clamp: 3;
}

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

.category-card {
  display: block;
  min-height: 190px;
  padding: 28px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, var(--amber-50));
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong {
  display: block;
  color: var(--amber-900);
  font-size: 24px;
  line-height: 1.2;
}

.category-card p {
  margin: 12px 0 22px;
  color: var(--gray-600);
}

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

.filter-panel {
  margin: 34px 0 28px;
  padding: 20px;
  border: 1px solid rgba(245, 158, 11, 0.17);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--amber-900);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  color: var(--gray-700);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

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

.ranking-item a {
  display: grid;
  grid-template-columns: 64px 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 999px;
  font-weight: 900;
}

.ranking-item img {
  width: 150px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-item h3 {
  margin: 0 0 6px;
  color: var(--amber-900);
  font-size: 21px;
}

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

.ranking-item small {
  color: var(--amber-700);
}

.detail-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.detail-title {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.detail-one-line {
  max-width: 860px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) 360px;
  gap: 32px;
  padding: 46px 0 0;
}

.content-card,
.side-card {
  padding: 30px;
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 18px;
  color: var(--amber-900);
  font-size: 26px;
  line-height: 1.25;
}

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

.player-card {
  margin-bottom: 28px;
  padding: 0;
  overflow: hidden;
  background: #000000;
}

.player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.94);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  font-size: 36px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  color: var(--gray-700);
}

.info-list dt {
  color: var(--amber-800);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
}

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

.related-list a {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--amber-50);
  transition: background-color 0.2s ease;
}

.related-list a:hover {
  background: var(--amber-100);
}

.related-list img {
  width: 88px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.related-list strong {
  display: block;
  color: var(--amber-900);
  line-height: 1.25;
}

.related-list small {
  color: var(--gray-500);
}

.site-footer {
  margin-top: 80px;
  padding: 38px 0;
  color: var(--amber-800);
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.2), rgba(254, 243, 199, 0.88));
  border-top: 1px solid rgba(245, 158, 11, 0.15);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-inner p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.hidden-by-filter {
  display: none !important;
}

.empty-state {
  display: none;
  margin: 30px 0;
  padding: 30px;
  text-align: center;
  color: var(--amber-800);
  background: var(--amber-50);
  border-radius: var(--radius-lg);
}

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

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

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

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

  .menu-button {
    display: block;
  }

  .hero-slider {
    height: 72vh;
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .movie-card.horizontal a,
  .ranking-item a {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal .card-cover {
    aspect-ratio: 3 / 2;
  }

  .ranking-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .detail-hero {
    min-height: 520px;
  }
}

@media (max-width: 580px) {
  .header-inner,
  main,
  .page-shell,
  .detail-hero-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 24px, 1240px);
  }

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

  .hero-slider {
    min-height: 540px;
  }

  .hero-content {
    bottom: 54px;
  }

  .hero-panel h1,
  .hero-panel h2,
  .detail-title {
    font-size: 38px;
  }

  .hero-panel p,
  .detail-one-line {
    font-size: 16px;
  }

  .movie-grid,
  .movie-grid.compact,
  .movie-grid.two-column,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .content-card,
  .side-card {
    padding: 22px;
  }

  .movie-card.large a {
    min-height: 370px;
  }

  .movie-card.large .card-body {
    padding: 26px;
  }
}
