:root {
  --orange: #f97316;
  --pink: #ec4899;
  --blue: #3b82f6;
  --ink: #1f2937;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #fff7ed;
  --line: rgba(249, 115, 22, 0.18);
  --shadow: 0 20px 50px rgba(31, 41, 55, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 50%, #eff6ff 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.08);
}

.nav-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #f472b6);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.24);
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 650;
  color: #374151;
}

.nav-links a,
.mobile-panel a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: var(--orange);
  transform: translateY(-1px);
}

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

.top-search input,
.local-filter input,
.hero-search-card input,
.mobile-panel input {
  width: 240px;
  height: 42px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-search input:focus,
.local-filter input:focus,
.hero-search-card input:focus,
.mobile-panel input:focus {
  border-color: #fdba74;
  box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.22);
}

.top-search button,
.hero-search-card button,
.mobile-panel button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.hero-search-card button:hover,
.mobile-panel button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.3);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--orange);
  background: #ffffff;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

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

.mobile-panel input {
  flex: 1;
  width: auto;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  width: min(1240px, calc(100% - 32px));
  min-height: 580px;
  margin: 28px auto 0;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-track {
  position: relative;
  height: 580px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 44px;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 750;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.hero-tags,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.chip-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.hero-cover {
  align-self: center;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-cover img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-cover:hover img {
  transform: scale(1.04);
}

.hero-controls {
  position: absolute;
  left: 64px;
  bottom: 28px;
  display: flex;
  gap: 9px;
  z-index: 3;
}

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.hero-search-card {
  position: absolute;
  right: 34px;
  bottom: 24px;
  z-index: 4;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
}

.hero-search-card form {
  display: flex;
  gap: 8px;
}

.category-ribbon,
.content-section,
.rank-section,
.page-main,
.detail-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.category-ribbon,
.content-section,
.rank-section {
  margin-top: 54px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.section-heading a {
  color: var(--orange);
  font-weight: 800;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-pills a {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #374151;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.08);
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-pills a:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.42);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 50px rgba(31, 41, 55, 0.14);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111827;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.play-dot {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 18px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.card-meta span,
.detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
}

.card-body h3 {
  margin: 12px 0 8px;
  min-height: 50px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

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

.card-body p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.chip-row span {
  color: var(--orange);
  background: #fff7ed;
}

.rank-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.74);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-list a:hover {
  transform: translateX(4px);
  background: #ffffff;
}

.rank-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 900;
}

.rank-list strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
}

.rank-list em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
}

.page-main {
  padding-top: 28px;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 52px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(236, 72, 153, 0.86), rgba(59, 130, 246, 0.78));
  box-shadow: var(--shadow);
  color: #ffffff;
}

.soft-hero .eyebrow {
  background: rgba(255, 255, 255, 0.18);
}

.local-filter input {
  width: min(420px, 100%);
  height: 50px;
}

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

.category-card {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card span {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 12px 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card em {
  color: var(--orange);
  font-style: normal;
  font-weight: 700;
}

.detail-main {
  padding-top: 28px;
}

.detail-head {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 38px;
  padding: 56px;
  border-radius: 32px;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18)), var(--detail-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #fed7aa;
  font-weight: 800;
}

.detail-copy .detail-meta {
  margin-top: 18px;
}

.detail-copy .detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-poster {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48));
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.34);
  font-size: 38px;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  margin-top: 32px;
}

.detail-article,
.related-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(31, 41, 55, 0.08);
}

.detail-block + .detail-block {
  margin-top: 26px;
}

.detail-block h2,
.related-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.detail-block p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

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

.info-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.info-list dt {
  color: var(--muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
}

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

.small-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  border-radius: 18px;
}

.small-card .poster {
  height: 100%;
  aspect-ratio: auto;
}

.small-card .card-body {
  padding: 14px;
}

.small-card .card-body h3 {
  min-height: auto;
  margin: 8px 0;
  font-size: 15px;
}

.small-card .card-body p,
.small-card .chip-row {
  display: none;
}

.site-footer {
  margin-top: 72px;
  padding: 44px 0 28px;
  background: linear-gradient(90deg, #ffedd5, #fce7f3, #dbeafe);
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.footer-grid a {
  display: block;
  margin: 9px 0;
  color: #4b5563;
}

.footer-grid a:hover {
  color: var(--orange);
}

.copyright {
  width: min(1240px, calc(100% - 32px));
  margin: 26px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.hidden-by-filter {
  display: none;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 44px;
  }

  .hero-cover {
    display: none;
  }

  .hero-search-card {
    left: 34px;
    right: auto;
  }

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

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

  .detail-poster {
    display: none;
  }

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

@media (max-width: 720px) {
  .nav-wrap,
  .hero-slider,
  .category-ribbon,
  .content-section,
  .rank-section,
  .page-main,
  .detail-main,
  .footer-grid,
  .copyright {
    width: min(100% - 22px, 1240px);
  }

  .brand {
    font-size: 18px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .hero-slider,
  .hero-track {
    min-height: 650px;
    height: 650px;
  }

  .hero-slide {
    padding: 32px 24px 128px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 15px;
  }

  .hero-search-card {
    right: 18px;
    left: 18px;
    bottom: 58px;
    border-radius: 22px;
  }

  .hero-search-card form,
  .mobile-panel form {
    display: grid;
  }

  .hero-search-card input,
  .hero-search-card button {
    width: 100%;
  }

  .hero-controls {
    left: 24px;
    bottom: 24px;
  }

  .section-heading,
  .page-hero {
    display: block;
  }

  .page-hero,
  .detail-head {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .local-filter {
    margin-top: 22px;
  }

  .local-filter input {
    width: 100%;
  }

  .movie-grid,
  .rank-list,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    border-radius: 20px;
  }

  .detail-content {
    gap: 18px;
  }

  .detail-article,
  .related-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .small-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .player-box {
    border-radius: 20px;
  }
}
