:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.24);
  --brand: #f97316;
  --brand-dark: #c2410c;
  --brand-soft: #fed7aa;
  --gold: #f59e0b;
  --card: #ffffff;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.24), transparent 34%), var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #f97316, #fbbf24);
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f59e0b, #f97316 50%, #f59e0b);
  box-shadow: 0 12px 30px rgba(194, 65, 12, 0.25);
}

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

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

.brand__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: #fff;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.12);
  transition: transform 0.25s ease;
}

.brand:hover .brand__icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand__name {
  font-size: clamp(20px, 2vw, 28px);
  text-shadow: 0 3px 12px rgba(124, 45, 18, 0.35);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.nav-link {
  position: relative;
  color: #fff;
  font-weight: 700;
  opacity: 0.92;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

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

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

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #fb923c 45%, #ef4444);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.75) 0, transparent 22%), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.5) 0, transparent 24%);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 94px;
  opacity: 0;
  transform: translateY(26px) scale(0.99);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide__backdrop {
  position: absolute;
  inset: -90px calc(50% - 50vw);
  z-index: 0;
  opacity: 0.34;
  filter: blur(18px) saturate(1.3);
}

.hero-slide__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(124, 45, 18, 0.95), rgba(249, 115, 22, 0.76), rgba(245, 158, 11, 0.42));
}

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

.hero-slide__content,
.hero-slide__poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 8px 14px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-shadow: 0 12px 42px rgba(124, 45, 18, 0.46);
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-list span {
  padding: 6px 10px;
  color: #9a3412;
  background: rgba(255, 247, 237, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.button--light {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 18px 38px rgba(124, 45, 18, 0.2);
}

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

.detail-info .button--ghost,
.page-hero .button--ghost {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.65);
}

.hero-slide__poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.25;
  border: 10px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  box-shadow: 0 40px 90px rgba(124, 45, 18, 0.45);
  transform: rotate(2deg);
}

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

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

.hero-controls button {
  width: 42px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-controls button.is-active {
  background: #fff;
}

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

.section {
  padding: 70px 0;
}

.section-narrow {
  padding: 28px 0 10px;
}

.section--warm {
  position: relative;
}

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

.section-title h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.03em;
}

.section-title > a {
  color: var(--brand-dark);
  font-weight: 900;
}

.search-hero {
  margin-top: -54px;
  position: relative;
  z-index: 6;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  outline: 0;
}

.search-box input {
  padding: 0 18px;
}

.search-box button {
  min-height: 50px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  border: 0;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
}

.quick-links,
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a,
.page-links a {
  padding: 8px 12px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.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: 210px;
  padding: 22px;
  background: linear-gradient(145deg, #fff, #fff7ed);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.08);
}

.category-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-card h2 {
  margin: 0;
  font-size: 22px;
}

.category-card__head a {
  color: var(--brand-dark);
  font-weight: 900;
}

.category-card p {
  color: var(--muted);
  line-height: 1.75;
}

.category-card__links {
  display: grid;
  gap: 8px;
}

.category-card__links a {
  color: #7c2d12;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(124, 45, 18, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px rgba(124, 45, 18, 0.16);
}

.movie-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

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

.movie-card:hover .movie-card__cover img {
  transform: scale(1.05);
}

.movie-card__play,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.movie-card__play {
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 10px 20px rgba(124, 45, 18, 0.2);
}

.rank-badge {
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  color: var(--brand-dark);
  background: #fff;
}

.movie-card__body {
  padding: 16px;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card--compact h2 {
  font-size: 16px;
}

.movie-card--compact .tag-list span:nth-child(n+3) {
  display: none;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fff7ed 56%, #fef3c7);
}

.page-hero__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 58px;
}

.page-hero h1 {
  margin: 14px 0;
  color: #7c2d12;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  color: #7c2d12;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(124, 45, 18, 0.08);
}

.filter-panel__search input,
.filter-panel select {
  padding: 0 14px;
}

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

.empty-state {
  display: none;
  padding: 44px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 24px;
}

.detail-hero {
  color: #fff;
  background: linear-gradient(135deg, #7c2d12, #f97316);
}

.detail-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: blur(16px) saturate(1.2);
}

.detail-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(124, 45, 18, 0.96), rgba(249, 115, 22, 0.7));
}

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

.detail-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

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

.breadcrumb a {
  color: #fff;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border: 8px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  box-shadow: 0 34px 70px rgba(67, 20, 7, 0.34);
}

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

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-info p {
  max-width: 790px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.8;
}

.tag-list--detail span {
  background: rgba(255, 255, 255, 0.86);
}

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

.player-shell {
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.3);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.24), rgba(2, 6, 23, 0.55));
  cursor: pointer;
}

.player-overlay[hidden] {
  display: none;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: var(--brand-dark);
  background: #fff;
  border-radius: 999px;
  font-size: 38px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.player-title {
  padding: 24px;
  color: #fff;
}

.player-title h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.player-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.7;
}

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

.story-card,
.info-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(124, 45, 18, 0.08);
}

.story-card h2,
.info-card h2 {
  margin: 0 0 16px;
  color: #7c2d12;
  font-size: 24px;
}

.story-card p {
  margin: 0;
  color: #374151;
  line-height: 1.95;
}

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

.info-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  color: #7c2d12;
  font-weight: 900;
  text-align: right;
}

.site-footer {
  margin-top: 54px;
  color: #e5e7eb;
  background: #111827;
}

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

.brand--footer {
  margin-bottom: 14px;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fdba74;
  font-size: 18px;
}

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

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #fdba74;
}

.footer-bottom {
  padding: 18px 0;
  color: #9ca3af;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

@media (max-width: 820px) {
  .site-header__inner {
    height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(194, 65, 12, 0.96);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 80px;
  }

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

  .hero-slide__poster {
    max-width: 320px;
    margin: 0 auto;
    transform: none;
  }

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

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

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

  .filter-panel__selects,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section,
  .section-narrow,
  .page-hero__inner,
  .detail-hero__inner,
  .site-header__inner,
  .footer-grid {
    width: min(100% - 24px, 1180px);
  }

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

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

  .movie-grid,
  .movie-grid--home,
  .movie-grid--listing,
  .movie-grid--rank,
  .category-grid,
  .category-grid--large {
    grid-template-columns: 1fr;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .movie-card__cover {
    height: 100%;
    aspect-ratio: auto;
  }

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

  .hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .player-overlay span {
    width: 64px;
    height: 64px;
    font-size: 30px;
  }
}
