:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --deep-orange: #c2410c;
  --rose: #f43f5e;
  --emerald: #10b981;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --paper: #ffffff;
  --line: rgba(245, 158, 11, 0.22);
  --shadow: 0 24px 70px rgba(146, 64, 14, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 46%, #fef3c7 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f59e0b, #f97316 52%, #d97706);
  box-shadow: 0 16px 45px rgba(146, 64, 14, 0.22);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #f97316;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

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

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 8px 18px 18px;
  background: rgba(180, 83, 9, 0.96);
}

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

.mobile-link {
  display: block;
}

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

.mobile-categories a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-viewport {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.56fr);
  align-items: center;
  gap: 58px;
  padding: 72px max(28px, calc((100vw - 1240px) / 2)) 86px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.9s ease, transform 0.9s ease;
  background-image: radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.48), transparent 32%), linear-gradient(115deg, rgba(9, 9, 11, 0.92), rgba(124, 45, 18, 0.82) 54%, rgba(251, 146, 60, 0.46)), var(--hero-image), linear-gradient(135deg, #111827, #f59e0b);
  background-size: cover;
  background-position: center;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.28));
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 18px;
  color: #fff;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
}

.hero-one-line {
  max-width: 760px;
  margin: 0 0 14px;
  color: #ffedd5;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
}

.hero-summary {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

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

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
}

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

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.ghost-btn.dark {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.hero-poster {
  width: min(390px, 100%);
  aspect-ratio: 2 / 3;
  justify-self: center;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster::after,
.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

.home-search-strip,
.content-section,
.page-shell,
.detail-page {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.home-search-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -42px;
  margin-bottom: 42px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.home-search-strip h2,
.home-search-strip p {
  margin: 0;
}

.home-search-strip h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.home-search-strip p {
  color: var(--muted);
}

.content-section {
  padding-top: 58px;
  padding-bottom: 36px;
}

.content-section.no-top {
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.24);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.section-line {
  flex: 1;
  height: 2px;
  min-width: 80px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.45), transparent);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(146, 64, 14, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.54);
  box-shadow: 0 24px 65px rgba(146, 64, 14, 0.16);
  transform: translateY(-6px);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.65), transparent 42%), linear-gradient(135deg, #7c2d12, #f59e0b);
}

.card-cover img {
  transition: transform 0.35s ease, opacity 0.3s ease;
}

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

.image-hidden {
  opacity: 0;
}

.cover-year,
.cover-type,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.cover-year {
  right: 10px;
  top: 10px;
}

.cover-type {
  left: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #ea580c;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.hot-block,
.ranking-entry {
  position: relative;
}

.hot-block::before,
.ranking-entry::before {
  content: "";
  position: absolute;
  inset: 30px 12px 0;
  z-index: -1;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.48);
}

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

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

.category-card {
  min-height: 176px;
  overflow: hidden;
  border-radius: 26px;
  background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(249, 115, 22, 0.78)), var(--category-image), linear-gradient(135deg, #78350f, #f59e0b);
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 55px rgba(146, 64, 14, 0.16);
}

.category-card a {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 176px;
  padding: 22px;
  color: #fff;
}

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 25px;
}

.category-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
}

.category-card span:not(.category-glow) {
  color: #ffedd5;
  font-weight: 800;
}

.category-glow {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

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

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

.movie-card.is-compact {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.is-compact .card-cover {
  aspect-ratio: auto;
  min-height: 160px;
}

.movie-card.is-compact .card-body p {
  min-height: 0;
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.page-shell {
  padding-top: 34px;
  padding-bottom: 52px;
}

.page-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 360px;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 46px;
  border-radius: 34px;
  color: #fff;
  background-image: linear-gradient(115deg, rgba(17, 24, 39, 0.88), rgba(154, 52, 18, 0.78)), var(--page-image), linear-gradient(135deg, #111827, #f59e0b);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.compact-hero {
  min-height: 280px;
  background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 34%), linear-gradient(135deg, #9a3412, #f59e0b);
}

.page-hero h1 {
  max-width: 840px;
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.slim-actions {
  margin-top: 24px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 35px rgba(146, 64, 14, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #92400e;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.detail-page {
  padding-top: 28px;
  padding-bottom: 58px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ea580c;
}

.player-card {
  overflow: hidden;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(249, 115, 22, 0.34)), var(--player-image), linear-gradient(135deg, #000, #f59e0b);
  background-size: cover;
  background-position: center;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.4);
  font-size: 34px;
  text-indent: 5px;
}

.player-title {
  position: absolute;
  left: 30px;
  bottom: 28px;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.detail-info {
  padding: 30px;
}

.detail-info .eyebrow {
  color: #92400e;
  background: #fff7ed;
  border-color: #fed7aa;
}

.detail-info h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #92400e;
  font-size: 20px;
  font-weight: 900;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-weight: 800;
}

.large-tags span {
  font-size: 13px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
}

.detail-content article {
  padding: 28px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(146, 64, 14, 0.08);
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.detail-content p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.detail-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.detail-links a {
  padding: 16px 18px;
  border-radius: 18px;
  color: #9a3412;
  background: #fff;
  border: 1px solid #fed7aa;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

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

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 24px;
}

.footer-brand {
  font-size: 22px;
}

.footer-links,
.footer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.footer-links a,
.footer-categories a {
  color: rgba(255, 255, 255, 0.84);
}

.footer-links a:hover,
.footer-categories a:hover {
  color: #fbbf24;
}

.footer-copy {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 58px 24px 88px;
  }

  .hero-poster {
    width: min(280px, 72vw);
    transform: rotate(0deg);
  }

  .home-search-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .movie-grid.four-cols,
  .movie-grid.three-cols,
  .ranking-list,
  .ranking-grid,
  .detail-content,
  .detail-links {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

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

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions,
  .slim-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .home-search-strip,
  .content-section,
  .page-shell,
  .detail-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-section {
    padding-top: 42px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-line {
    display: none;
  }

  .movie-grid.four-cols,
  .movie-grid.three-cols,
  .category-grid,
  .category-grid.large {
    grid-template-columns: 1fr;
  }

  .movie-card.is-compact {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .movie-card.is-compact .card-cover {
    min-height: 148px;
  }

  .page-hero {
    min-height: 300px;
    padding: 30px 24px;
    border-radius: 26px;
  }

  .detail-info,
  .detail-content article {
    padding: 22px;
  }

  .player-title {
    left: 20px;
    bottom: 20px;
  }
}
