* {
  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: #3b2505;
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 42%, #ffffff 100%);
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 119, 6, 0.22);
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
}

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

.nav-wrap {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 14px 24px rgba(217, 119, 6, 0.24);
}

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

.brand-text strong {
  color: #78350f;
  font-size: 20px;
  letter-spacing: 0.03em;
}

.brand-text em {
  margin-top: 2px;
  color: #b45309;
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a {
  color: #78350f;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover {
  color: #d97706;
}

.desktop-nav a:hover {
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select,
.search-box input {
  border: 1px solid rgba(217, 119, 6, 0.34);
  outline: none;
  color: #78350f;
  background: #ffffff;
  border-radius: 999px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  width: 190px;
  padding: 9px 78px 9px 16px;
}

.top-search button,
.mobile-search button,
.search-box button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  border-radius: 999px;
  background: #d97706;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.top-search button {
  position: absolute;
  right: 4px;
  padding: 6px 14px;
  font-size: 13px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.search-box input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.top-search button:hover,
.mobile-search button:hover,
.search-box button:hover {
  background: #b45309;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #78350f;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(217, 119, 6, 0.22);
  background: #ffffff;
}

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

.mobile-panel nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  display: grid;
  gap: 10px;
}

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

.mobile-search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
}

.mobile-search button {
  padding: 10px 18px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #ffedd5 52%, #fde68a);
}

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

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.88) 0%, rgba(120, 53, 15, 0.66) 45%, rgba(251, 191, 36, 0.08) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-copy {
  width: min(650px, 100%);
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.38);
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.36);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 24px 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 28px;
  color: #fffbeb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

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

.btn {
  color: #ffffff;
  background: #d97706;
  box-shadow: 0 18px 34px rgba(217, 119, 6, 0.34);
}

.btn:hover,
.btn-light:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.btn-light {
  color: #78350f;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(69, 26, 3, 0.14);
}

.btn-ghost {
  color: #fffbeb;
  border: 1px solid rgba(255, 251, 235, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.hero-card {
  width: min(360px, 32vw);
  padding: 16px;
  border: 1px solid rgba(255, 251, 235, 0.28);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 58px rgba(69, 26, 3, 0.28);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
}

.hero-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-card-meta span {
  padding: 6px 10px;
  color: #fef3c7;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(69, 26, 3, 0.42);
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 56px;
  background: #fbbf24;
}

.category-strip,
.content-section,
.page-hero,
.detail-wrap,
.search-area {
  padding: 56px 0;
}

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

.category-tile {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border-radius: 22px;
  background: #fed7aa;
  box-shadow: 0 16px 34px rgba(146, 64, 14, 0.13);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 46px rgba(146, 64, 14, 0.22);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(69, 26, 3, 0.88), rgba(69, 26, 3, 0.08));
}

.category-tile div {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #ffffff;
}

.category-tile h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.category-tile p {
  margin: 0;
  color: #fde68a;
  font-size: 14px;
  line-height: 1.45;
}

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

.section-heading h2 {
  margin: 0;
  color: #78350f;
  font-size: clamp(26px, 4vw, 34px);
}

.section-heading p {
  margin: 8px 0 0;
  color: #9a5a18;
  line-height: 1.7;
}

.more-link {
  color: #d97706;
  font-weight: 700;
  white-space: nowrap;
}

.more-link span {
  margin-left: 4px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(146, 64, 14, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 24px 52px rgba(146, 64, 14, 0.18);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fef3c7;
}

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

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

.poster b {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.82);
  backdrop-filter: blur(4px);
  font-size: 13px;
}

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

.movie-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  color: #b45309;
  font-size: 13px;
}

.movie-card h3 {
  margin: 0;
  min-height: 48px;
  color: #78350f;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  min-height: 63px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: #6b4a16;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 6px 9px;
  color: #92400e;
  border-radius: 999px;
  background: #fef3c7;
  font-size: 12px;
}

.movie-card-large {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card-large .poster img {
  height: 100%;
  min-height: 250px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 170px 1fr;
}

.movie-card-horizontal .poster img {
  height: 100%;
  min-height: 220px;
}

.warm-band {
  background: linear-gradient(90deg, #fef3c7, #ffedd5);
}

.page-hero {
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  border-bottom: 1px solid rgba(217, 119, 6, 0.15);
}

.page-hero h1 {
  margin: 0 0 12px;
  color: #78350f;
  font-size: clamp(34px, 6vw, 54px);
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #8a4d0f;
  font-size: 17px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #b45309;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #d97706;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(146, 64, 14, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 12px 16px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 88px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
}

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

.rank-thumb img {
  width: 88px;
  height: 116px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info h3 {
  margin: 0 0 8px;
  color: #78350f;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: #6b4a16;
  line-height: 1.6;
}

.rank-meta {
  color: #b45309;
  font-weight: 700;
  white-space: nowrap;
}

.detail-hero {
  padding: 44px 0;
  background: radial-gradient(circle at 20% 10%, rgba(251, 191, 36, 0.28), transparent 30%), linear-gradient(135deg, #78350f, #451a03);
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.player-box {
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.24);
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(69, 26, 3, 0.28);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-stage video,
.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-stage video {
  z-index: 1;
  object-fit: cover;
  background: #111827;
}

.player-poster {
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.36);
  overflow: hidden;
}

.player-poster img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: blur(1px);
  transform: scale(1.04);
}

.player-poster span {
  display: inline-grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: #d97706;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

.player-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-copy {
  padding-top: 8px;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.16;
}

.detail-copy p {
  color: #fffbeb;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.detail-tags span {
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.14);
}

.side-poster {
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

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

.article-panel,
.side-panel {
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(146, 64, 14, 0.08);
}

.article-panel {
  padding: 28px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: #78350f;
}

.article-panel p {
  color: #4b3410;
  font-size: 16px;
  line-height: 1.9;
}

.side-panel {
  padding: 20px;
  position: sticky;
  top: 90px;
}

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

.recommend-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.recommend-list img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
}

.recommend-list strong {
  display: block;
  color: #78350f;
  line-height: 1.45;
}

.recommend-list span {
  display: block;
  margin-top: 4px;
  color: #b45309;
  font-size: 13px;
}

.search-box {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 26px;
}

.search-box input {
  flex: 1;
  padding: 14px 18px;
}

.search-box button {
  padding: 0 26px;
}

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

.empty-state {
  padding: 34px;
  color: #8a4d0f;
  border: 1px dashed rgba(217, 119, 6, 0.4);
  border-radius: 24px;
  background: rgba(255, 251, 235, 0.8);
}

.site-footer {
  padding: 38px 0;
  color: #8a4d0f;
  background: #fff7ed;
  border-top: 1px solid rgba(217, 119, 6, 0.15);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-brand {
  color: #78350f;
  font-size: 20px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #b45309;
  font-weight: 600;
}

.footer-inner p {
  margin: 0;
}

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

  .menu-button {
    display: block;
  }

  .hero-card {
    display: none;
  }

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

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

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

  .side-poster,
  .side-panel {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .nav-wrap,
  .footer-inner,
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-text em {
    font-size: 11px;
  }

  .hero,
  .hero-inner {
    min-height: 540px;
  }

  .hero-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .category-strip,
  .content-section,
  .page-hero,
  .detail-wrap,
  .search-area {
    padding: 38px 0;
  }

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

  .movie-card-large,
  .movie-card-horizontal {
    display: block;
  }

  .movie-card h3 {
    min-height: auto;
    font-size: 16px;
  }

  .movie-card p {
    min-height: auto;
    -webkit-line-clamp: 2;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
  }

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

  .rank-thumb img {
    width: 72px;
    height: 96px;
  }

  .search-box {
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .category-tile {
    min-height: 150px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .btn,
  .btn-light,
  .btn-ghost {
    width: 100%;
  }
}
