:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(135deg, var(--amber-50), #ffffff 48%, #fff7ed);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 50%;
  box-shadow: 0 12px 22px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 16px;
  color: var(--slate-700);
  border-radius: 12px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: var(--amber-600);
  background: var(--amber-50);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--slate-900);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 20px 18px;
  border-top: 1px solid var(--slate-200);
}

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

.hero-carousel {
  position: relative;
  height: 72vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 35%, rgba(245, 158, 11, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.84) 78%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: absolute;
  left: max(28px, calc((100% - 1180px) / 2));
  right: max(28px, calc((100% - 1180px) / 2));
  bottom: 96px;
  max-width: 780px;
  color: #ffffff;
}

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

.hero-tags a,
.hero-tags span {
  padding: 7px 14px;
  background: rgba(245, 158, 11, 0.94);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero-content h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.outline-button {
  color: var(--amber-700, #b45309);
  border: 1px solid rgba(217, 119, 6, 0.30);
  background: rgba(255, 255, 255, 0.75);
}

.primary-button:hover,
.ghost-button:hover,
.outline-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.intro-band,
.search-panel,
.content-section,
.category-showcase,
.category-overview,
.detail-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px;
  margin-top: -40px;
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.intro-band h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-text h2,
.detail-side h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.intro-band h2,
.section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.intro-band p {
  margin: 12px 0 0;
  color: var(--slate-500);
  line-height: 1.8;
}

.search-panel {
  margin-top: 34px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-box input,
.filter-row select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--slate-900);
  background: var(--slate-50);
  font: inherit;
  outline: none;
}

.search-box input:focus,
.filter-row select:focus {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.search-box button {
  height: 46px;
  border: 0;
  padding: 0 18px;
  color: #ffffff;
  background: var(--slate-900);
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.content-section,
.category-showcase,
.category-overview {
  padding: 64px 0;
}

.warm-section {
  width: 100%;
  max-width: none;
  padding: 64px max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, var(--amber-100), #ffedd5);
}

.light-section {
  width: 100%;
  max-width: none;
  padding: 64px max(16px, calc((100% - 1180px) / 2));
  background: rgba(248, 250, 252, 0.95);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head a {
  color: var(--amber-600);
  font-weight: 900;
}

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

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

.movie-card[hidden] {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-900);
}

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

.movie-card-link:hover .poster-wrap img,
.category-tile:hover img {
  transform: scale(1.10);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.58));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-wrap::after {
  opacity: 1;
}

.type-pill,
.score-pill,
.rank-mark {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.type-pill {
  left: 12px;
  top: 12px;
  background: rgba(245, 158, 11, 0.94);
}

.score-pill {
  right: 12px;
  top: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-mark {
  left: 12px;
  bottom: 12px;
  min-width: 36px;
  text-align: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

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

.movie-card-body h3 {
  min-height: 52px;
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-meta-line {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: #cbd5e1;
}

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

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

.tag-row span,
.genre-row span {
  padding: 6px 10px;
  color: var(--slate-700);
  background: var(--slate-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.84));
}

.category-tile span,
.category-tile p {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
}

.category-tile span {
  bottom: 74px;
  font-size: 26px;
  font-weight: 950;
}

.category-tile p {
  bottom: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.6;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.movie-card-compact {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.42), transparent 28%),
    linear-gradient(135deg, #0f172a, #1e293b 46%, #92400e);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber-500);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero p:not(.eyebrow) {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

.category-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 950;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--slate-500);
  line-height: 1.8;
}

.category-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.category-card li a {
  color: var(--slate-700);
  font-weight: 700;
}

.category-card li a:hover {
  color: var(--amber-600);
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--slate-500);
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.empty-state.show {
  display: block;
}

.detail-top {
  padding: 36px 0 56px;
  background:
    radial-gradient(circle at 82% 0%, rgba(245, 158, 11, 0.24), transparent 32%),
    linear-gradient(135deg, var(--slate-900), #1f2937 68%, #7c2d12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

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

.detail-info {
  color: #ffffff;
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  font-weight: 800;
}

.detail-tags {
  margin: 18px 0 26px;
}

.player-section {
  padding: 54px 0;
  background: #020617;
}

.player-wrap {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  background: #000000;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.26), transparent 32%),
    rgba(2, 6, 23, 0.72);
  cursor: pointer;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.play-ring {
  display: inline-flex;
  width: 88px;
  height: 88px;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 50%;
  font-size: 42px;
  box-shadow: 0 22px 46px rgba(245, 158, 11, 0.34);
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(20px, 4vw, 36px);
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 58px 0;
}

.detail-text,
.detail-side {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.detail-text {
  padding: 32px;
}

.detail-text h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-text p {
  margin: 0 0 28px;
  color: var(--slate-700);
  line-height: 1.95;
  font-size: 16px;
}

.detail-side {
  padding: 28px;
  align-self: start;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  margin: 20px 0 0;
}

.detail-side dt {
  color: var(--slate-500);
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 700;
}

.related-section {
  padding-top: 10px;
}

.site-footer {
  margin-top: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.footer-logo {
  font-size: 24px;
}

.footer-brand p,
.site-footer li a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.footer-brand p {
  max-width: 560px;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--amber-500);
  font-size: 18px;
}

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

.site-footer li a:hover {
  color: var(--amber-500);
}

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

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 46px;
  height: 46px;
  border: 0;
  color: #ffffff;
  background: var(--amber-600);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

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

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

  .detail-cover {
    max-width: 420px;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-carousel {
    height: 68vh;
    min-height: 480px;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 76px;
  }

  .hero-control {
    display: none;
  }

  .intro-band,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-row,
  .search-box,
  .footer-grid,
  .movie-grid,
  .category-tile-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    flex-basis: 280px;
  }

  .detail-top {
    padding-top: 24px;
  }

  .detail-container,
  .content-section,
  .category-showcase,
  .category-overview,
  .intro-band,
  .search-panel {
    width: min(100% - 24px, 1180px);
  }

  .detail-text,
  .detail-side,
  .intro-band,
  .search-panel {
    padding: 22px;
  }
}
