* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #292524;
  background: linear-gradient(180deg, #fafaf9 0%, #ffffff 42%, #fafaf9 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 211, 209, 0.75);
  box-shadow: 0 10px 30px rgba(41, 37, 36, 0.06);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #d97706, #92400e);
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.28);
}

.brand-copy strong {
  display: block;
  color: #1c1917;
  font-size: 19px;
  line-height: 1.1;
}

.brand-copy em {
  display: block;
  color: #78716c;
  font-style: normal;
  font-size: 12px;
  margin-top: 3px;
}

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

.desktop-nav a {
  position: relative;
  color: #57534e;
  font-weight: 700;
  padding: 28px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 0;
  height: 2px;
  background: #d97706;
  transition: width 0.25s ease;
}

.desktop-nav a:hover {
  color: #b45309;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.header-search input,
.hero-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select,
.mobile-nav input {
  border: 1px solid #d6d3d1;
  background: #ffffff;
  color: #292524;
  outline: none;
  border-radius: 999px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.mobile-nav input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

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

.header-search button,
.hero-search button,
.search-page-form button,
.mobile-nav button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #d97706, #b45309);
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  background: #f5f5f4;
  color: #44403c;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid #e7e5e4;
  background: #ffffff;
}

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

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  flex: 1;
  min-width: 0;
}

.mobile-nav a {
  padding: 11px 12px;
  border-radius: 12px;
  color: #57534e;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: #f5f5f4;
  color: #b45309;
}

.hero {
  position: relative;
  height: min(640px, calc(100vh - 76px));
  min-height: 430px;
  overflow: hidden;
  background: #1c1917;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.92) 0%, rgba(28, 25, 23, 0.62) 42%, rgba(28, 25, 23, 0.16) 100%), linear-gradient(0deg, rgba(28, 25, 23, 0.92), transparent 48%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0 0;
  padding-bottom: 78px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero h1 {
  width: min(780px, 100%);
  margin: 18px 0 14px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.45);
}

.hero p {
  width: min(680px, 100%);
  color: #e7e5e4;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  margin: 0 0 20px;
}

.hero-meta,
.detail-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #d6d3d1;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-actions,
.detail-info .primary-button {
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 16px 40px rgba(217, 119, 6, 0.32);
}

.ghost-button {
  margin-left: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.intro-band {
  padding: 28px 0;
  background: linear-gradient(90deg, #fff7ed, #fafaf9);
  border-bottom: 1px solid #f5f5f4;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.intro-grid h2,
.sub-hero h1,
.section-heading h2,
.detail-info h1 {
  margin: 12px 0;
  color: #1c1917;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.intro-grid h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.intro-grid p,
.sub-hero p,
.section-heading p,
.side-panel p,
.article-card p {
  color: #57534e;
  line-height: 1.8;
}

.hero-search,
.search-page-form,
.filter-bar {
  display: flex;
  gap: 10px;
}

.hero-search input,
.search-page-form input {
  flex: 1;
  min-width: 0;
}

.page-section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f5f5f4, #ffffff);
}

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

.section-heading h2 {
  font-size: clamp(27px, 3.4vw, 42px);
}

.section-heading a {
  color: #b45309;
  font-weight: 900;
}

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

.category-pill,
.category-overview-card,
.side-panel,
.article-card,
.info-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(41, 37, 36, 0.08);
}

.category-pill {
  display: block;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill strong,
.category-overview-card strong {
  display: block;
  color: #1c1917;
  font-size: 21px;
  margin-bottom: 10px;
}

.category-pill span,
.category-overview-card em {
  color: #78716c;
  font-style: normal;
  line-height: 1.7;
}

.category-pill:hover,
.movie-card:hover,
.compact-card:hover,
.category-overview-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(41, 37, 36, 0.14);
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 22px;
  box-shadow: 0 15px 38px rgba(41, 37, 36, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(180, 83, 9, 0.92);
  font-size: 12px;
  font-weight: 900;
}

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

.card-body strong {
  color: #1c1917;
  font-size: 18px;
  line-height: 1.35;
}

.card-body em {
  color: #57534e;
  font-style: normal;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  color: #78716c;
  font-size: 13px;
}

.tag-row {
  margin-top: auto;
  color: #b45309;
  font-size: 13px;
  font-weight: 800;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 102px;
  padding: 24px;
}

.side-panel h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.compact-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.compact-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fafaf9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card img {
  width: 70px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: #d6d3d1;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  color: #1c1917;
  line-height: 1.35;
}

.compact-card em {
  margin-top: 7px;
  color: #78716c;
  font-style: normal;
  font-size: 13px;
}

.panel-link {
  width: 100%;
  color: #ffffff;
  background: #1c1917;
}

.sub-hero {
  padding: 64px 0 58px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.36), transparent 34%), linear-gradient(135deg, #292524, #1c1917 66%, #451a03);
}

.sub-hero .breadcrumb,
.detail-top .breadcrumb {
  margin-bottom: 30px;
}

.sub-hero h1 {
  color: #ffffff;
  font-size: clamp(35px, 6vw, 60px);
}

.sub-hero p {
  width: min(780px, 100%);
  color: #e7e5e4;
  margin: 0;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a8a29e;
  font-size: 14px;
}

.breadcrumb a {
  color: #d97706;
  font-weight: 800;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 8px;
  color: #a8a29e;
}

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

.category-overview-card {
  display: block;
  overflow: hidden;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-thumbs img {
  height: 110px;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
  background: #d6d3d1;
}

.filter-bar {
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  box-shadow: 0 14px 36px rgba(41, 37, 36, 0.06);
}

.filter-bar input {
  flex: 1;
  min-width: 0;
}

.filter-bar select {
  min-width: 150px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 86px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  box-shadow: 0 12px 30px rgba(41, 37, 36, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.rank-row img {
  width: 86px;
  height: 108px;
  object-fit: cover;
  border-radius: 14px;
  background: #d6d3d1;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  font-size: 20px;
  color: #1c1917;
}

.rank-info em {
  margin-top: 8px;
  color: #57534e;
  font-style: normal;
  line-height: 1.6;
}

.rank-meta {
  color: #78716c;
  white-space: nowrap;
  font-weight: 800;
}

.search-page-form {
  width: min(760px, 100%);
  margin-top: 28px;
}

.detail-top {
  padding: 50px 0 64px;
  color: #ffffff;
  background: radial-gradient(circle at 74% 18%, rgba(245, 158, 11, 0.32), transparent 28%), linear-gradient(135deg, #1c1917, #292524 64%, #451a03);
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
  border-radius: 28px;
  background: #d6d3d1;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 68px);
}

.detail-one-line {
  width: min(760px, 100%);
  margin: 0 0 22px;
  color: #e7e5e4;
  font-size: 20px;
  line-height: 1.8;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-cloud span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.player-section {
  padding: 54px 0;
  background: #0c0a09;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2));
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  padding-left: 5px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  box-shadow: 0 18px 46px rgba(217, 119, 6, 0.34);
  font-size: 34px;
}

.play-overlay strong {
  font-size: 19px;
}

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

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

.article-card,
.info-card {
  padding: 28px;
}

.article-card h2,
.info-card h2 {
  margin: 0 0 16px;
  color: #1c1917;
  font-size: 25px;
}

.article-card h2:not(:first-child) {
  margin-top: 30px;
}

.article-card p {
  margin: 0;
  font-size: 17px;
}

.info-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.info-card dt {
  color: #a8a29e;
  font-size: 13px;
  font-weight: 900;
}

.info-card dd {
  margin: -8px 0 0;
  color: #292524;
  line-height: 1.6;
}

.site-footer {
  color: #d6d3d1;
  background: linear-gradient(180deg, #292524, #1c1917);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 52px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.site-footer p {
  color: #a8a29e;
  line-height: 1.8;
}

.site-footer h3 {
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 11px;
  color: #d6d3d1;
}

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

.footer-bottom {
  border-top: 1px solid rgba(214, 211, 209, 0.18);
  padding: 22px 16px;
  text-align: center;
  color: #a8a29e;
}

.is-filtered-out {
  display: none !important;
}

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

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

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

  .two-column-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .header-inner {
    min-height: 66px;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    padding-bottom: 70px;
  }

  .hero-arrow {
    display: none;
  }

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

  .detail-poster {
    width: min(280px, 75vw);
  }

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

  .rank-row {
    grid-template-columns: 42px 70px 1fr;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy em {
    display: none;
  }

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

  .hero {
    min-height: 510px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .ghost-button {
    margin-left: 0;
  }

  .page-section {
    padding: 46px 0;
  }

  .section-heading {
    display: block;
  }

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

  .hero-search,
  .search-page-form,
  .filter-bar,
  .mobile-nav form {
    flex-direction: column;
  }

  .filter-bar select {
    width: 100%;
  }

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

  .rank-row {
    gap: 12px;
    padding: 12px;
  }

  .rank-index {
    width: 36px;
    height: 36px;
  }

  .rank-row img {
    width: 70px;
    height: 90px;
  }
}
