:root {
  --bg: #fffaf0;
  --paper: #ffffff;
  --text: #1f2933;
  --muted: #667085;
  --line: #f0d8b8;
  --brand: #d97706;
  --brand-dark: #92400e;
  --brand-soft: #ffedd5;
  --accent: #f97316;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 45%, #fffaf0 100%);
  line-height: 1.65;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 119, 6, 0.16);
}

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

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.32);
}

.brand-text {
  font-size: 20px;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 999px;
  color: #7c2d12;
  font-size: 15px;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  background: var(--brand);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--brand);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 700;
}

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

.hero {
  position: relative;
  height: min(760px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 48%, rgba(245, 158, 11, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.66) 46%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(660px, calc(100% - 64px));
  transform: translateY(-50%);
  color: #fff;
}

.hero-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid rgba(251, 191, 36, 0.46);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(146, 64, 14, 0.26);
  font-weight: 800;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-meta,
.hero-tags,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta span,
.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

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

.hero-actions {
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-more,
.quick-search-form button,
.site-search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 850;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.32);
}

.primary-button:hover,
.quick-search-form button:hover,
.site-search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(234, 88, 12, 0.38);
}

.ghost-button {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #f59e0b;
}

.quick-search-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: -38px;
  padding: 20px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.quick-search-form,
.site-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.quick-search-form input,
.site-search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.quick-search-form input:focus,
.site-search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.quick-search-form button,
.site-search-box button {
  min-height: 48px;
  padding: 0 22px;
  color: #fff;
  background: var(--brand);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 800;
}

.content-section {
  padding: 56px 0 10px;
}

.hot-section {
  width: min(1180px, calc(100% - 32px));
  margin: 46px auto 0;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  box-shadow: var(--shadow);
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

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

.section-more {
  min-height: 40px;
  padding: 0 16px;
  color: #7c2d12;
  background: #ffedd5;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.15);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fdba74);
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-badge {
  top: 12px;
  right: 12px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(146, 64, 14, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.88);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: 0.22s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 54px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--brand);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-line {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #475467;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags,
.category-stats,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-tags span,
.category-stats span,
.rank-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 750;
}

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

.category-tile,
.category-overview-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
}

.category-tile strong,
.category-overview-title {
  color: #7c2d12;
  font-size: 20px;
  font-weight: 950;
}

.category-tile span,
.category-overview-card p {
  color: var(--muted);
  font-size: 14px;
}

.category-tile em {
  align-self: end;
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
}

.page-main {
  padding: 40px 0 80px;
}

.page-title-block {
  margin-bottom: 26px;
  padding: 28px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 26px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.page-title-block h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.page-title-block p {
  margin: 0;
  color: var(--muted);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 20px;
  background: #fff;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.category-tabs a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-weight: 800;
}

.category-tabs a.is-active {
  color: #fff;
  background: var(--brand);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 750;
}

.breadcrumb-light {
  color: rgba(255, 255, 255, 0.8);
}

.category-samples {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.category-samples a {
  color: #9a3412;
  font-size: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 56px 86px minmax(0, 1fr) 72px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.07);
}

.rank-number {
  color: var(--brand);
  font-size: 24px;
  font-weight: 950;
}

.rank-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #ffedd5;
}

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

.rank-title {
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.rank-info p {
  margin: 4px 0 9px;
  color: var(--muted);
  font-size: 14px;
}

.rank-score {
  justify-self: end;
  color: #fff;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--brand);
  font-weight: 950;
}

.search-workspace {
  padding: 22px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
}

.search-results-info {
  margin: 16px 0 20px;
  color: var(--muted);
  font-weight: 750;
}

.detail-main {
  background: #fff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding: 34px 0 60px;
  color: #fff;
  background: #111827;
}

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

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.48;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.28), transparent 35%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.72));
}

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

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

.detail-poster {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

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

.detail-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(146, 64, 14, 0.38);
  font-weight: 850;
}

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

.detail-one-line {
  max-width: 820px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta-grid span {
  padding: 8px 12px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 26px;
  background: #050505;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.2);
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
}

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

.player-start-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.42);
  font-size: 13px;
}

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

.detail-article,
.detail-side-card {
  padding: 26px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
}

.detail-article h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 22px;
  color: #344054;
  font-size: 16px;
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.detail-side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-side-card dd {
  margin: 0;
  color: #111827;
}

.site-footer {
  margin-top: 70px;
  padding: 32px 0;
  color: #7c2d12;
  background: #ffedd5;
}

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

.footer-inner p {
  margin: 6px 0 0;
  color: #9a3412;
}

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

.is-hidden-by-filter {
  display: none !important;
}

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

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

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: 620px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
  }

  .quick-search-panel,
  .quick-search-form,
  .site-search-box,
  .filter-panel,
  .detail-top,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .quick-search-panel,
  .footer-inner {
    display: grid;
  }

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

  .hot-section {
    padding: 22px;
  }

  .rank-row {
    grid-template-columns: 42px 70px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .detail-top {
    gap: 22px;
  }

  .detail-poster {
    width: min(240px, 72vw);
  }

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

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

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

  .section-heading {
    display: grid;
  }

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