* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #faf8f3 0%, #ffffff 42%, #faf8f3 100%);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 220, 197, 0.7);
  box-shadow: 0 8px 30px rgba(125, 104, 64, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #b59a61, #8f7040);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(181, 154, 97, 0.24);
}

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

.brand-text strong {
  font-size: 24px;
  color: #7d6840;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 3px;
  color: #8a8173;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  position: relative;
  padding: 9px 0;
  color: #5d6675;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #8f7040;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b59a61, #d3b170);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #7d6840;
  background: #f5f0e6;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 16px;
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #5d6675;
  background: #ffffff;
  border: 1px solid #eee3cf;
}

.mobile-link.active {
  color: #7d6840;
  background: #f5f0e6;
}

.hero {
  position: relative;
  height: min(720px, calc(100vh - 72px));
  min-height: 540px;
  overflow: hidden;
  background: #17120a;
}

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

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

.hero-bg,
.page-hero-bg,
.detail-bg,
.poster,
.detail-poster {
  background-color: #d8c5a1;
  background-position: center;
  background-size: cover;
}

.hero-bg {
  position: absolute;
  inset: 0;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 8, 4, 0.90), rgba(10, 8, 4, 0.36) 46%, rgba(10, 8, 4, 0.18)), radial-gradient(circle at 18% 42%, rgba(181, 154, 97, 0.32), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 88px;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.hero-meta,
.hero-tags,
.tag-row,
.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

.hero-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags span,
.tag-row span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #7d6840;
  background: #f5f0e6;
  font-size: 13px;
  font-weight: 600;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(181, 154, 97, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #b59a61, #8f7040);
  box-shadow: 0 16px 35px rgba(181, 154, 97, 0.28);
}

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

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-3px);
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.quick-area,
.section,
.detail-main,
.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

.quick-inner,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head.with-filter {
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #b59a61;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.quick-inner h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.side-panel h2 {
  margin: 0;
  color: #1f2937;
  line-height: 1.18;
}

.quick-inner h2,
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.quick-inner p {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

.filter-bar {
  display: flex;
  gap: 10px;
  width: min(100%, 460px);
}

.filter-bar input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 16px;
  color: #3f3a31;
  background: #ffffff;
  border: 1px solid #e8dcc5;
  border-radius: 999px;
  outline: none;
  box-shadow: 0 10px 24px rgba(125, 104, 64, 0.08);
}

.filter-bar input:focus {
  border-color: #b59a61;
}

.filter-bar button {
  height: 48px;
  padding: 0 18px;
  color: #7d6840;
  background: #f5f0e6;
  border: 1px solid #e8dcc5;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

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

.category-card {
  min-height: 132px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f9f0dd);
  border: 1px solid #eee3cf;
  box-shadow: 0 12px 30px rgba(125, 104, 64, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card strong {
  display: block;
  color: #7d6840;
  font-size: 20px;
  margin-bottom: 10px;
}

.category-card span {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

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

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #eee3cf;
  border-radius: 24px;
  box-shadow: 0 14px 35px rgba(125, 104, 64, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
  box-shadow: 0 22px 45px rgba(125, 104, 64, 0.14);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  min-height: 240px;
}

.poster-type,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.poster-type {
  right: 12px;
}

.rank-badge {
  left: 12px;
  font-style: normal;
}

.card-body {
  padding: 17px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8a8173;
  font-size: 13px;
  margin-bottom: 8px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.tag-row {
  gap: 7px;
}

.tag-row span {
  padding: 5px 9px;
  font-size: 12px;
}

.page-hero,
.detail-hero {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  color: #ffffff;
  background: #17120a;
}

.page-hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  filter: saturate(1.05);
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 8, 4, 0.88), rgba(10, 8, 4, 0.38)), radial-gradient(circle at 16% 22%, rgba(181, 154, 97, 0.34), transparent 34%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 24px 74px;
}

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

.page-hero p,
.detail-info p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 560px;
  margin: 0 auto;
  padding: 68px 24px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
}

.detail-poster {
  min-height: 470px;
  border-radius: 28px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-info {
  color: #ffffff;
  padding-bottom: 20px;
}

.detail-info p {
  margin: 16px 0 22px;
}

.detail-links {
  margin: 20px 0 26px;
}

.detail-links a {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.player-section {
  padding-top: 40px;
  padding-bottom: 30px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
  border: 0;
  cursor: pointer;
  text-align: center;
}

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

.player-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #b59a61, #8f7040);
  box-shadow: 0 18px 48px rgba(181, 154, 97, 0.32);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 22px;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 34px;
}

.detail-article,
.side-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #eee3cf;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(125, 104, 64, 0.08);
}

.detail-article {
  padding: 32px;
}

.detail-article h2 {
  margin-top: 28px;
  font-size: 28px;
}

.detail-article h2:first-child {
  margin-top: 0;
}

.detail-article p {
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.info-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #faf8f3;
  border: 1px solid #eee3cf;
}

.info-grid span {
  display: block;
  color: #8a8173;
  font-size: 13px;
  margin-bottom: 8px;
}

.info-grid strong {
  color: #7d6840;
}

.side-panel {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 96px;
}

.side-panel h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

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

.side-list a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: #faf8f3;
  border: 1px solid #eee3cf;
}

.side-list span {
  color: #1f2937;
  font-weight: 800;
}

.side-list small {
  color: #8a8173;
}

.site-footer {
  margin-top: 50px;
  background: #17120a;
  color: #ffffff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

[data-card].is-hidden {
  display: none;
}

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

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

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

  .menu-button {
    display: block;
  }

  .quick-inner,
  .section-head,
  .section-head.with-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar {
    width: 100%;
  }

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

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

  .detail-poster {
    width: min(100%, 360px);
    min-height: 520px;
  }

  .side-panel {
    position: static;
  }

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

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

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

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 600px;
    height: calc(100vh - 64px);
  }

  .hero-content {
    padding: 56px 18px 92px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-area,
  .section,
  .detail-main,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .poster {
    min-height: 340px;
  }

  .page-hero-content {
    padding: 86px 16px 58px;
  }

  .detail-wrap {
    min-height: auto;
    padding: 48px 16px;
  }

  .detail-poster {
    min-height: 430px;
  }

  .detail-article {
    padding: 22px;
  }

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