:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #24140b;
  --muted: #78675d;
  --line: rgba(217, 119, 6, 0.18);
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-soft: #fed7aa;
  --rose: #fb7185;
  --amber: #f59e0b;
  --shadow: 0 22px 70px rgba(154, 52, 18, 0.16);
  --radius: 24px;
  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;
  background:
    radial-gradient(circle at 14% 8%, rgba(251, 191, 36, 0.38), transparent 32rem),
    radial-gradient(circle at 86% 14%, rgba(251, 113, 133, 0.28), transparent 30rem),
    linear-gradient(135deg, #fff7ed 0%, #fffbeb 42%, #fff1f2 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 24px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--amber), var(--brand), var(--rose));
  box-shadow: 0 14px 26px rgba(234, 88, 12, 0.28);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #b45309, #ea580c, #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #4b3427;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand-dark);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 14px;
  gap: 8px;
  flex-wrap: wrap;
}

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

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 54px;
}

.hero-shell {
  margin: 8px auto 42px;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 237, 213, 0.82));
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 146, 60, 0.22);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: -40% 42% 20% -10%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.4), transparent 62%);
  pointer-events: none;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 30% -20% -30% 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.26), transparent 64%);
  pointer-events: none;
}

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

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.86);
  border: 1px solid rgba(251, 146, 60, 0.26);
  font-weight: 800;
  font-size: 13px;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #1f130c;
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #62483a;
  font-size: 18px;
  line-height: 1.9;
}

.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #8a5a39;
  font-size: 14px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(234, 88, 12, 0.32);
}

.btn.secondary {
  color: #9a3412;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(251, 146, 60, 0.32);
  box-shadow: none;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 430px;
  display: grid;
  align-items: center;
}

.hero-poster-frame {
  position: relative;
  width: min(100%, 420px);
  margin-left: auto;
  border-radius: 32px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 32px 70px rgba(124, 45, 18, 0.24);
  transform: rotate(2deg);
}

.hero-poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4.05;
  object-fit: cover;
  border-radius: 24px;
  background: #fed7aa;
}

.hero-float-card {
  position: absolute;
  left: -20px;
  bottom: 34px;
  max-width: 260px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 45px rgba(154, 52, 18, 0.17);
  border: 1px solid rgba(251, 146, 60, 0.22);
}

.hero-float-card strong {
  display: block;
  margin-bottom: 7px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 54px;
  bottom: 34px;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(154, 52, 18, 0.22);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--brand), var(--rose));
}

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

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

.section-heading span {
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 13px;
}

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

.section-heading p,
.page-title p {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(251, 146, 60, 0.2);
  box-shadow: 0 18px 44px rgba(154, 52, 18, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(154, 52, 18, 0.16);
  border-color: rgba(234, 88, 12, 0.42);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #ffe4e6);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(194, 65, 12, 0.88);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

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

.movie-card h3 {
  margin: 8px 0 9px;
  font-size: 18px;
  line-height: 1.3;
}

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

.movie-card p {
  color: var(--muted);
  margin: 0 0 13px;
  line-height: 1.72;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-weight: 800;
  font-size: 12px;
}

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

.category-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.2);
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(154, 52, 18, 0.08);
}

.category-card-main {
  display: block;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.86), rgba(255, 241, 242, 0.84));
}

.category-card-main span {
  display: block;
  font-size: 24px;
  font-weight: 950;
  margin-bottom: 8px;
}

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

.category-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px 22px;
}

.category-sample a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
}

.search-panel,
.page-panel,
.detail-panel {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: var(--shadow);
  padding: 28px;
  margin: 30px 0;
}

.search-box input,
.inline-filter input {
  width: 100%;
  border: 1px solid rgba(251, 146, 60, 0.32);
  border-radius: 18px;
  padding: 16px 18px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  box-shadow: 0 12px 26px rgba(154, 52, 18, 0.06);
}

.search-box input:focus,
.inline-filter input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.17);
}

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

.search-result-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.search-result-card img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

.search-result-card strong {
  display: block;
  margin-bottom: 5px;
}

.search-result-card span {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 247, 237, 0.88);
}

.inline-filter {
  display: grid;
  gap: 14px;
  margin: 20px 0 24px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  border: 1px solid rgba(251, 146, 60, 0.28);
  color: #7c2d12;
  background: #ffffff;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(251, 146, 60, 0.18);
  transition: transform 0.18s ease, background 0.18s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.rank-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  font-weight: 950;
}

.rank-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  background: #fed7aa;
}

.rank-title {
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.page-title {
  border-radius: 32px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.88), rgba(255, 241, 242, 0.86));
  border: 1px solid rgba(251, 146, 60, 0.22);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9a3412;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 14px;
}

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

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

.detail-cover {
  padding: 12px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 26px 60px rgba(154, 52, 18, 0.15);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #fed7aa;
}

.detail-title h1 {
  margin-bottom: 16px;
}

.detail-title p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #120a05;
  box-shadow: 0 28px 70px rgba(31, 19, 12, 0.26);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #120a05;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 10, 5, 0.62), rgba(154, 52, 18, 0.48));
}

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

.play-button {
  position: relative;
  z-index: 4;
  width: 88px;
  height: 88px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--rose));
  cursor: pointer;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
}

.play-button span {
  margin-left: 5px;
  font-size: 32px;
}

.text-block {
  color: #4b3427;
  line-height: 1.92;
  font-size: 16px;
}

.text-block h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.text-block p {
  margin: 0 0 18px;
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.prev-next a {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.2);
  color: #7c2d12;
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
}

.footer-inner p {
  color: var(--muted);
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  color: #7c2d12;
  background: #ffedd5;
  padding: 8px 11px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 40px;
  }

  .hero-shell {
    min-height: 820px;
  }

  .hero-poster-frame {
    margin: 0 auto;
  }

  .search-results,
  .rank-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  main {
    padding: 18px 14px 42px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .hero-shell {
    min-height: 760px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 28px;
    gap: 20px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-dots {
    left: 28px;
    bottom: 24px;
  }

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

  .detail-hero,
  .footer-inner,
  .prev-next {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .rank-item {
    grid-template-columns: 34px 52px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 3;
  }
}

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

  .search-panel,
  .page-panel,
  .detail-panel,
  .page-title {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-shell {
    min-height: 720px;
  }

  .hero-slide {
    padding: 22px;
  }

  .hero-poster-frame {
    width: 82%;
  }

  .hero-float-card {
    display: none;
  }
}
