:root {
  --page: #fff7ed;
  --panel: #ffffff;
  --ink: #2f2417;
  --muted: #7c5e46;
  --line: rgba(146, 64, 14, 0.16);
  --amber: #d97706;
  --orange: #ea580c;
  --gold: #f59e0b;
  --dark: #241307;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.16);
  --soft-shadow: 0 10px 28px rgba(120, 53, 15, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 50%, #fff1e6 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.12);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 28px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
  color: #7c2d12;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: #b45309;
  font-size: 12px;
}

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

.nav-link {
  color: #7c2d12;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange);
  transform: translateY(-1px);
}

.nav-link-soft {
  color: #a16207;
}

.header-search,
.mobile-search,
.inline-search,
.filter-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.inline-search input,
.filter-box input {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  outline: none;
  padding: 11px 16px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  width: 250px;
}

.header-search input:focus,
.mobile-search input:focus,
.inline-search input:focus,
.filter-box input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.header-search button,
.mobile-search button,
.inline-search button,
.filter-box button,
.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.header-search button,
.mobile-search button,
.inline-search button,
.filter-box button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  padding: 11px 18px;
  box-shadow: 0 12px 26px rgba(234, 88, 12, 0.22);
}

.ghost-btn,
.section-more {
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  padding: 11px 18px;
  backdrop-filter: blur(8px);
}

.section-more {
  color: #9a3412;
  border-color: rgba(217, 119, 6, 0.26);
  background: rgba(255, 255, 255, 0.78);
}

.section-more.light {
  color: #fff7ed;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #9a3412;
  font-size: 30px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

.mobile-nav {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #2b1608;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: flex;
  align-items: flex-end;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.9s ease, transform 1.2s ease;
  transform: scale(1.02);
}

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

.hero-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 84px;
  color: #fff;
  max-width: 740px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: #9a3412;
  background: rgba(251, 191, 36, 0.22);
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-meta,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-meta span,
.detail-meta span,
.movie-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 11px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.section {
  padding: 58px 0;
}

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

.page-hero,
.intro-panel {
  margin-top: 40px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.page-hero {
  padding: 48px;
}

.page-hero h1,
.intro-panel h2,
.section-heading h2 {
  margin: 16px 0 10px;
  color: #431407;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.page-hero p,
.intro-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.intro-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.inline-search input {
  min-width: 320px;
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading.light h2 {
  color: #fff7ed;
}

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

.category-tile,
.category-card a {
  display: flex;
  min-height: 178px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.9));
  padding: 22px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card a:hover,
.movie-card:hover,
.horizontal-card:hover,
.ranking-row:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.category-card h2 {
  color: #9a3412;
  font-weight: 900;
}

.category-tile strong {
  font-size: 19px;
  color: #431407;
}

.category-tile p,
.category-card p {
  margin: 0;
  color: var(--muted);
}

.category-samples {
  display: grid;
  gap: 8px;
  color: #b45309;
  font-weight: 700;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-link {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4.05;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #f97316);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.66));
  pointer-events: none;
}

.poster-badge,
.poster-score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.poster-badge {
  left: 12px;
  top: 12px;
  background: rgba(234, 88, 12, 0.92);
}

.poster-score {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.68);
}

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-body h3 {
  margin: 0;
  color: #431407;
  font-size: 18px;
  line-height: 1.25;
}

.movie-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.movie-meta span {
  background: rgba(251, 191, 36, 0.18);
  color: #92400e;
}

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

.tag-row span {
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.1);
  color: #9a3412;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.tag-row.large span {
  font-size: 13px;
  padding: 7px 11px;
}

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

.horizontal-card,
.ranking-row {
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.horizontal-card a {
  display: grid;
  grid-template-columns: 178px 1fr;
  gap: 18px;
  padding: 14px;
}

.horizontal-card img {
  width: 178px;
  height: 108px;
  border-radius: 16px;
  object-fit: cover;
}

.horizontal-card h3,
.ranking-copy h2 {
  margin: 0 0 8px;
  color: #431407;
  font-size: 19px;
}

.horizontal-card p,
.ranking-copy p {
  margin: 0 0 8px;
  color: var(--muted);
}

.horizontal-card span,
.ranking-copy div {
  color: #b45309;
  font-weight: 800;
  font-size: 13px;
}

.score-section {
  background: linear-gradient(135deg, #7c2d12 0%, #c2410c 48%, #d97706 100%);
}

.filter-box {
  margin-top: 24px;
  max-width: 760px;
}

.search-page-box {
  max-width: 900px;
}

.category-list {
  align-items: stretch;
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 70px 126px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.rank-number {
  color: #ea580c;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.ranking-row img {
  width: 126px;
  height: 82px;
  border-radius: 16px;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 28px;
  color: #9a3412;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 28px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 237, 213, 0.78));
  padding: 32px;
  box-shadow: var(--soft-shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 18px 0 12px;
  color: #431407;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
}

.detail-meta {
  color: #92400e;
  margin-bottom: 18px;
}

.detail-meta span {
  background: rgba(251, 191, 36, 0.2);
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #120905;
  box-shadow: 0 24px 60px rgba(67, 20, 7, 0.28);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.24), rgba(0, 0, 0, 0.5));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-button {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 20px 45px rgba(234, 88, 12, 0.35);
  font-size: 34px;
  text-indent: 4px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
}

.detail-content article,
.detail-content aside {
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 26px;
  background: #fff;
  padding: 28px;
  box-shadow: var(--soft-shadow);
}

.detail-content h2 {
  margin: 0 0 14px;
  color: #431407;
  font-size: 24px;
}

.detail-content p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.detail-content dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-content dt {
  color: #92400e;
  font-weight: 900;
}

.detail-content dd {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 70px;
  color: #ffedd5;
  background: linear-gradient(135deg, #431407, #7c2d12 48%, #92400e);
}

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

.brand-footer .brand-copy strong,
.brand-footer .brand-copy small {
  color: #ffedd5;
}

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

.site-footer p {
  margin: 14px 0 0;
  color: rgba(255, 237, 213, 0.82);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 237, 213, 0.86);
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 237, 213, 0.18);
  padding: 18px;
  text-align: center;
  color: rgba(255, 237, 213, 0.78);
}

.searchable-card.is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

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

@media (max-width: 820px) {
  .hero-carousel {
    min-height: 540px;
  }

  .hero-copy {
    padding-bottom: 76px;
  }

  .hero-control {
    display: none;
  }

  .intro-panel,
  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .inline-search,
  .filter-box {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-search input {
    min-width: 0;
  }

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

  .horizontal-card a {
    grid-template-columns: 130px 1fr;
  }

  .horizontal-card img {
    width: 130px;
    height: 96px;
  }

  .ranking-row a {
    grid-template-columns: 48px 100px 1fr;
  }

  .ranking-row img {
    width: 100px;
    height: 76px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 66px;
  }

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

  .brand-copy small {
    font-size: 11px;
  }

  .hero-carousel {
    min-height: 500px;
  }

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

  .hero-meta span,
  .detail-meta span,
  .movie-meta span {
    font-size: 12px;
  }

  .page-hero,
  .intro-panel,
  .detail-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .section {
    padding: 38px 0;
  }

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

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .movie-grid.two-col,
  .rank-strip {
    grid-template-columns: 1fr;
  }

  .horizontal-card a,
  .ranking-row a {
    grid-template-columns: 1fr;
  }

  .horizontal-card img,
  .ranking-row img {
    width: 100%;
    height: 170px;
  }

  .rank-number {
    text-align: left;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .player-button {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
