:root {
  --bg: #fff7ed;
  --bg-soft: #fffbf5;
  --surface: #ffffff;
  --text: #19140f;
  --muted: #6f6257;
  --line: #f2dfcc;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #fed7aa;
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.14);
  --shadow-soft: 0 14px 32px rgba(120, 53, 15, 0.10);
  --radius: 22px;
  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(--text);
  background: linear-gradient(180deg, var(--bg), #ffffff 34%, #fffaf4 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.24);
}

.brand-name {
  font-size: 20px;
  white-space: nowrap;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #4b3e34;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: #fff0dc;
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 10px 22px rgba(120, 53, 15, 0.06);
}

.top-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 8px 4px 8px 12px;
  background: transparent;
}

.top-search button,
.large-search button,
.primary-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ef4444);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.26);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fff0dc;
  color: var(--brand-dark);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 900;
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b3e34;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #fff0dc;
  color: var(--brand-dark);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #1f1208;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 36%, rgba(249, 115, 22, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(10, 5, 2, 0.92) 0%, rgba(25, 12, 4, 0.72) 44%, rgba(25, 12, 4, 0.24) 100%),
    linear-gradient(0deg, rgba(15, 8, 3, 0.82) 0%, transparent 44%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 20px));
  top: 50%;
  transform: translateY(-48%);
  width: min(720px, calc(100vw - 48px));
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  background: rgba(20, 10, 4, 0.36);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.hero-kicker,
.section-heading p,
.page-hero > p:first-child {
  margin: 0 0 10px;
  color: #fed7aa;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 16px 0 0;
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1.14;
}

.hero-text {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.9;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
  font-size: 13px;
  font-weight: 800;
}

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

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.10);
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: #fff;
}

.search-panel,
.section-shell,
.page-hero,
.detail-wrap {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.search-panel {
  margin-top: -58px;
  position: relative;
  z-index: 3;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.search-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.large-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: #fff7ed;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.large-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  background: transparent;
}

.section-shell {
  padding: 64px 20px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.05em;
}

.section-heading a,
.text-link {
  color: var(--brand-dark);
  font-weight: 900;
}

.compact-heading {
  align-items: start;
  flex-direction: column;
  gap: 4px;
}

.chip-grid,
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-grid a,
.sub-nav a {
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: #543923;
  border: 1px solid var(--line);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.06);
}

.sub-nav {
  margin-bottom: 18px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(249, 115, 22, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #431407, #fb923c);
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card-body h3 a:hover {
  color: var(--brand-dark);
}

.card-meta,
.card-desc,
.card-tags {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.card-desc {
  color: #3f342b;
}

.card-tags {
  color: var(--brand-dark);
  font-weight: 700;
}

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

.side-rank,
.ranking-page {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.rank-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #431407, #fb923c);
}

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

.rank-cover span {
  position: absolute;
  left: 7px;
  top: 7px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  font-weight: 900;
}

.rank-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.rank-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.page-main {
  padding-bottom: 70px;
}

.page-hero {
  margin-top: 34px;
  padding: 52px 32px;
  border-radius: 34px;
  background: radial-gradient(circle at right top, rgba(249, 115, 22, 0.30), transparent 34%),
    linear-gradient(135deg, #1c1008, #5f2405 52%, #f97316);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.page-hero p:last-child {
  margin: 16px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.9;
}

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

.category-card {
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.category-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px;
  background: #fff4e6;
}

.category-images img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #431407, #fb923c);
}

.category-card div:last-child {
  padding: 22px;
}

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

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: #fffaf4;
  outline: none;
}

.detail-main {
  padding-bottom: 70px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #1a0d04;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) saturate(1.08);
  transform: scale(1.12);
  opacity: 0.42;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 30%, rgba(249, 115, 22, 0.34), transparent 36%),
    linear-gradient(90deg, rgba(10, 5, 2, 0.92), rgba(38, 16, 6, 0.76));
}

.detail-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  padding: 58px 20px;
  align-items: center;
}

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  background: linear-gradient(135deg, #431407, #fb923c);
}

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

.crumb {
  margin: 0 0 18px;
  color: #fed7aa;
  font-weight: 700;
}

.crumb a:hover {
  color: #fff;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-line {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.9;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.watch-section h2,
.detail-content h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.player-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.25), transparent 36%), rgba(0, 0, 0, 0.46);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-mask.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-orb {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ef4444);
  box-shadow: 0 20px 46px rgba(249, 115, 22, 0.38);
  font-size: 34px;
  padding-left: 5px;
}

.play-mask strong {
  font-size: 22px;
}

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

.detail-content article,
.detail-content aside {
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.detail-content p {
  margin: 0 0 22px;
  color: #3d332a;
  line-height: 2;
  font-size: 16px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffaf4;
}

.mini-card img {
  width: 68px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #431407, #fb923c);
}

.mini-card strong {
  display: block;
  line-height: 1.45;
}

.mini-card em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.site-footer {
  margin-top: 78px;
  color: #e8d9ca;
  background: #15100c;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 8px 0 0;
  color: #bda999;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fed7aa;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .top-search {
    display: none;
  }

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

  .split-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .side-rank {
    order: -1;
  }

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

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

  .mobile-toggle {
    display: block;
  }

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

  .nav-shell {
    gap: 12px;
  }

  .brand-name {
    font-size: 17px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    left: 16px;
    right: 16px;
    top: 52%;
    width: auto;
    padding: 24px;
    border-radius: 24px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel {
    margin: -34px 14px 0;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .large-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .movie-grid,
  .featured-grid,
  .all-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .card-desc {
    display: none;
  }

  .page-hero {
    margin: 20px 14px 0;
    padding: 34px 22px;
    border-radius: 26px;
  }

  .category-overview {
    grid-template-columns: 1fr;
  }

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

  .detail-wrap {
    grid-template-columns: 1fr;
    padding: 32px 18px;
  }

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

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .featured-grid,
  .all-grid {
    grid-template-columns: 1fr;
  }

  .poster-link {
    aspect-ratio: 16 / 20;
  }
}
