:root {
  --bg: #fffaf1;
  --bg-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.24);
  --brand: #f97316;
  --brand-dark: #ea580c;
  --amber: #f59e0b;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 60px rgba(124, 45, 18, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.16), transparent 36rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffaf0 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

input,
select,
button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  background: rgba(255, 250, 241, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.brand-text,
.footer-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--brand-dark), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  padding: 10px 14px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-dark);
  background: rgba(255, 237, 213, 0.9);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(124, 45, 18, 0.08);
}

.header-search input,
.mobile-search input {
  width: 170px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px;
  color: var(--text);
}

.header-search button,
.mobile-search button,
.primary-btn {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.25);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.12);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-dark);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.mobile-search input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 24px;
  min-height: 620px;
  overflow: hidden;
  border-radius: 36px;
  background: #23170f;
  box-shadow: 0 34px 80px rgba(124, 45, 18, 0.28);
}

.hero-track,
.hero-slide {
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: center;
  padding: 52px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 12, 6, 0.92), rgba(20, 12, 6, 0.58), rgba(20, 12, 6, 0.20)),
    radial-gradient(circle at 76% 20%, rgba(251, 146, 60, 0.42), transparent 24rem);
  z-index: 1;
}

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

.hero-content {
  color: #ffffff;
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 14px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 82px);
  max-width: 780px;
}

.hero-content p {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.tag-row span {
  color: var(--brand-dark);
  background: rgba(255, 237, 213, 0.86);
}

.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;
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.page-hero .ghost-btn,
.detail-copy .ghost-btn,
.category-page-hero .ghost-btn {
  color: var(--brand-dark);
  border-color: var(--line);
  background: #ffffff;
}

.hero-media {
  align-self: stretch;
  min-height: 480px;
  border-radius: 30px;
  overflow: hidden;
  transform: rotate(1.5deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-controls {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.quick-panel,
.section-block,
.page-hero,
.detail-hero,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.quick-panel a {
  min-height: 76px;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(124, 45, 18, 0.08);
}

.section-block {
  padding: 54px 0 0;
}

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

.section-heading span {
  display: block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.compact-heading h2 {
  font-size: 30px;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fde68a);
}

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

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

.card-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3,
.ranking-card h2,
.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.card-desc,
.ranking-card p,
.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.section-split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 26px;
}

.ranking-panel,
.latest-panel,
.search-panel {
  padding: 26px;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
}

.rank-item b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
}

.rank-item span {
  font-weight: 900;
}

.rank-item em,
.compact-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: 0.2s ease;
}

.compact-card:hover {
  background: #ffedd5;
}

.compact-card img {
  width: 92px;
  height: 62px;
  border-radius: 12px;
}

.compact-card strong {
  display: block;
  line-height: 1.25;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffedd5, #fef3c7);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.10);
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card strong {
  font-size: 23px;
  font-weight: 950;
}

.category-card em {
  max-width: 78%;
  margin-top: 8px;
  color: #7c2d12;
  font-style: normal;
}

.category-card img {
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 54%;
  height: 58%;
  border-radius: 22px;
  transform: rotate(-5deg);
  box-shadow: 0 18px 30px rgba(124, 45, 18, 0.18);
}

.category-orb {
  position: absolute;
  right: -36px;
  top: -36px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
}

.page-hero {
  margin-top: 34px;
  padding: 64px 44px;
  text-align: center;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.20), transparent 22rem),
    linear-gradient(135deg, #fff7ed, #ffffff 48%, #fef3c7);
  box-shadow: var(--shadow);
}

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

.page-hero p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.centered-actions {
  justify-content: center;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.08);
}

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffedd5;
}

.category-cover-strip img {
  width: 100%;
  height: 92px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
}

.toolbar label,
.search-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.toolbar input,
.search-controls input,
.search-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
}

.toolbar label {
  width: min(420px, 100%);
}

.search-controls {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

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

.ranking-layout {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 70px 220px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(251, 146, 60, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.08);
}

.ranking-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 950;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
}

.ranking-thumb img {
  width: 220px;
  height: 128px;
  border-radius: 18px;
}

.detail-hero {
  margin-top: 34px;
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.18), transparent 22rem),
    linear-gradient(135deg, #fff7ed, #ffffff 54%, #fef3c7);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--brand-dark);
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(124, 45, 18, 0.16);
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.lead-text {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 19px;
}

.large-tags {
  margin-top: 22px;
}

.player-section {
  margin-top: 26px;
}

.video-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 34px 80px rgba(17, 24, 39, 0.26);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58)),
    rgba(17, 24, 39, 0.25);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.1;
}

.narrow-block {
  max-width: 960px;
}

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

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

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

.info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.info-list div {
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 900;
}

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

.site-footer {
  margin-top: 70px;
  padding: 44px 0 26px;
  border-top: 1px solid rgba(251, 146, 60, 0.18);
  background: rgba(255, 247, 237, 0.86);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-inner p {
  max-width: 560px;
  color: var(--muted);
}

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

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 14px;
}

[hidden],
.is-filtered-out {
  display: none !important;
}

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

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

  .section-split,
  .search-controls {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-shell,
  .hero-track,
  .hero-slide {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 28px;
    align-content: center;
  }

  .hero-media {
    min-height: 280px;
    order: -1;
  }

  .hero-controls {
    left: 28px;
    right: 28px;
  }

  .quick-panel {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .ranking-thumb img {
    width: 100%;
    height: 190px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-shell {
    width: calc(100% - 20px);
    margin-top: 16px;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p,
  .page-hero p,
  .lead-text {
    font-size: 16px;
  }

  .page-hero,
  .detail-hero,
  .ranking-panel,
  .latest-panel,
  .search-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .movie-grid,
  .search-grid,
  .category-grid,
  .quick-panel,
  .compact-grid,
  .related-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-card {
    grid-template-columns: 104px 1fr;
  }
}
