:root {
  --bg-start: #fff7ed;
  --bg-mid: #fff1f2;
  --bg-end: #fffbeb;
  --text-main: #111827;
  --text-soft: #6b7280;
  --line: rgba(251, 146, 60, 0.24);
  --orange: #ea580c;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 20px 55px rgba(154, 52, 18, 0.14);
  --shadow-soft: 0 12px 34px rgba(154, 52, 18, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 8%, rgba(251, 191, 36, 0.28), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(244, 63, 94, 0.18), transparent 24rem),
    linear-gradient(135deg, var(--bg-start), var(--bg-mid) 52%, var(--bg-end));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow-x: hidden;
}

img {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(244, 63, 94, 0.14));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08);
  backdrop-filter: blur(18px);
}

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

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #7c2d12;
  letter-spacing: -0.02em;
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
}

.site-logo-text {
  font-size: 1.08rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link,
.mobile-nav-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--orange);
}

.header-category-strip {
  border-top: 1px solid rgba(251, 146, 60, 0.16);
}

.header-category-inner {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 9px 0 11px;
  scrollbar-width: none;
}

.header-category-inner::-webkit-scrollbar {
  display: none;
}

.header-category-inner a {
  flex: 0 0 auto;
  color: #9a3412;
  font-size: 0.92rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid var(--line);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #9a3412;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #fff7ed;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-bottom: 1px solid rgba(251, 146, 60, 0.2);
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.06);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.62) 44%, rgba(17, 24, 39, 0.22) 100%),
    linear-gradient(0deg, rgba(255, 247, 237, 1) 0%, rgba(255, 247, 237, 0.1) 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 78px 0 96px;
}

.hero-eyebrow,
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: #fff7ed;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.28);
  border: 1px solid rgba(253, 186, 116, 0.44);
  backdrop-filter: blur(12px);
}

.page-eyebrow {
  color: #9a3412;
  background: #fff7ed;
}

.hero h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 950;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.hero p {
  max-width: 660px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  color: #7c2d12;
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid rgba(251, 146, 60, 0.26);
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.32);
}

.btn-light {
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(253, 186, 116, 0.52);
}

.hero-poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px);
}

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

.hero-poster-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 16px;
  color: #ffffff;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.66);
  backdrop-filter: blur(16px);
}

.hero-poster-caption strong {
  display: block;
  font-size: 1.04rem;
}

.hero-poster-caption span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

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

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

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

.main-section,
.page-section {
  padding: 56px 0;
}

.section-heading,
.page-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2,
.page-title-row h1 {
  color: #111827;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-title-row p {
  max-width: 760px;
  margin-top: 10px;
  color: var(--text-soft);
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  color: var(--orange);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(251, 146, 60, 0.4);
  box-shadow: var(--shadow);
}

.movie-poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fed7aa;
}

.movie-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.movie-rating {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 8px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 18px rgba(234, 88, 12, 0.24);
}

.movie-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 12px;
  color: #7c2d12;
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.movie-card:hover .movie-play {
  transform: translateY(0);
  opacity: 1;
}

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

.movie-card h3 {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--orange);
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.1em;
  margin-top: 7px;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  color: #9a3412;
  font-size: 0.8rem;
  font-weight: 800;
}

.movie-meta span,
.movie-meta a {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff7ed;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 237, 0.9));
  border: 1px solid rgba(251, 146, 60, 0.2);
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(244, 63, 94, 0.16));
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  color: #7c2d12;
  font-size: 1.35rem;
  font-weight: 950;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.75;
}

.category-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 18px;
  color: var(--orange);
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 8px 22px rgba(154, 52, 18, 0.08);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--rose));
  font-weight: 950;
}

.rank-item img {
  width: 86px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info h2,
.rank-info h3 {
  font-size: 1.12rem;
  font-weight: 950;
}

.rank-info p {
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.7;
}

.rank-score {
  color: var(--orange);
  font-size: 1.2rem;
  font-weight: 950;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(140px, 0.45fr));
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.2);
  box-shadow: var(--shadow-soft);
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  color: #111827;
  border: 1px solid rgba(251, 146, 60, 0.3);
  border-radius: 15px;
  outline: none;
  background: #ffffff;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(124, 45, 18, 0.84));
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: blur(1px) saturate(1.1);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.35);
}

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

.detail-text {
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

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

.detail-text h1 {
  max-width: 860px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-intro {
  max-width: 860px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.6fr);
  gap: 28px;
}

.content-card,
.side-card {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.2);
  box-shadow: var(--shadow-soft);
}

.content-card + .content-card,
.side-card + .side-card {
  margin-top: 22px;
}

.content-card h2,
.side-card h2 {
  color: #111827;
  font-size: 1.38rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.content-card p,
.side-card p {
  margin-top: 14px;
  color: #4b5563;
  line-height: 1.95;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.18);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.55);
  cursor: pointer;
}

.player-cover[hidden] {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.play-ring {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 18px 44px rgba(234, 88, 12, 0.35);
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #ffffff;
}

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

.related-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 72px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: block;
  font-weight: 900;
  line-height: 1.35;
}

.related-item span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.site-footer {
  margin-top: 56px;
  padding: 44px 0;
  border-top: 1px solid rgba(251, 146, 60, 0.22);
  background: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
}

.footer-inner p {
  max-width: 520px;
  margin-top: 12px;
  color: var(--text-soft);
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 12px;
  color: #9a3412;
  font-weight: 800;
  border-radius: 999px;
  background: #fff7ed;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

  body.menu-open .mobile-nav {
    display: block;
  }

  .hero,
  .hero-stage,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 64px 0 92px;
  }

  .hero-poster-card {
    max-width: 280px;
  }

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

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

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

  .detail-hero-inner,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 260px;
  }

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

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 540px) {
  .site-header-inner,
  .header-category-inner,
  .container,
  .footer-inner,
  .detail-hero-inner,
  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .site-logo-text {
    max-width: 170px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

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

  .category-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .page-title-row {
    align-items: start;
    flex-direction: column;
  }

  .content-card,
  .side-card {
    padding: 20px;
  }
}
