:root {
  --coral-600: #ed3010;
  --coral-500: #ff5533;
  --coral-400: #ff7c64;
  --peach-50: #fff5f2;
  --peach-100: #ffe8e1;
  --peach-200: #ffd4c7;
  --ink-950: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: rgba(255, 212, 199, 0.88);
  --sunrise: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
  --soft-shadow: 0 18px 45px rgba(255, 85, 51, 0.16);
  --deep-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink-950);
  background: linear-gradient(180deg, var(--peach-50) 0%, #ffffff 45%, var(--peach-50) 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--sunrise);
  box-shadow: 0 12px 32px rgba(255, 85, 51, 0.22);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 10px 24px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.mobile-link {
  padding: 12px 6px;
  color: var(--ink-700);
  border-bottom: 1px solid rgba(255, 212, 199, 0.7);
}

.home-main,
.page-main {
  min-height: 100vh;
}

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

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.18));
}

.hero-copy {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  right: 32px;
  bottom: 72px;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--coral-500);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 85, 51, 0.28);
}

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

.hero-copy p,
.page-hero p,
.detail-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.7;
}

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

.primary-btn,
.ghost-btn,
.home-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search-form button {
  color: #ffffff;
  background: var(--sunrise);
  box-shadow: var(--soft-shadow);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.ghost-btn.dark {
  color: var(--coral-600);
  background: rgba(255, 245, 242, 0.88);
  box-shadow: inset 0 0 0 1px var(--line);
}

.primary-btn:hover,
.ghost-btn:hover,
.home-search-form button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 38px rgba(255, 85, 51, 0.25);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

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

.section-heading,
.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.center-heading {
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

.section-heading h2,
.category-overview-head h2,
.detail-section h2,
.side-card h2,
.prose-card h2,
.help-grid h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 900;
  color: var(--ink-950);
}

.section-heading p,
.category-overview-head p {
  margin: 8px 0 0;
  color: var(--ink-600);
  line-height: 1.7;
}

.section-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--peach-100);
  box-shadow: inset 0 0 0 1px var(--line);
}

.section-more {
  flex: 0 0 auto;
  color: var(--coral-600);
  font-weight: 800;
}

.quick-search {
  margin-top: -34px;
  position: relative;
  z-index: 8;
  padding-top: 0;
}

.home-search-form {
  width: min(760px, 100%);
  margin: 24px auto 0;
  padding: 10px;
  display: flex;
  gap: 10px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--line);
}

.home-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 18px;
  color: var(--ink-800);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--deep-shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease;
}

.movie-link:hover .poster-shade {
  opacity: 1;
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--coral-500);
  background: rgba(255, 255, 255, 0.94);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-link:hover .play-bubble {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.duration-chip,
.category-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.duration-chip {
  left: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.68);
}

.category-chip {
  right: 12px;
  top: 12px;
  max-width: calc(100% - 120px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: var(--coral-500);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  min-width: 38px;
  text-align: center;
  background: var(--sunrise);
  box-shadow: 0 10px 22px rgba(255, 85, 51, 0.28);
}

.movie-info {
  flex: 1;
  padding: 18px;
}

.movie-info h2 {
  margin: 0 0 10px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--ink-950);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  transition: color 0.2s ease;
}

.movie-link:hover .movie-info h2 {
  color: var(--coral-500);
}

.movie-info p {
  margin: 0 0 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 44px;
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.6;
}

.movie-meta,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-meta {
  color: var(--ink-500);
  font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  display: inline-block;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--peach-200);
  vertical-align: middle;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags a {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--peach-50);
  color: var(--coral-600);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
}

.category-band {
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--peach-100), #ffe4df);
  box-shadow: var(--soft-shadow);
}

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  color: #ffffff;
  background: #111827;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
}

.category-tile img,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.24));
}

.tile-glow {
  position: absolute;
  inset: auto 20px 18px 20px;
  height: 46px;
  z-index: 1;
  border-radius: 999px;
  background: rgba(255, 85, 51, 0.3);
  filter: blur(22px);
}

.tile-title,
.tile-desc,
.tile-action {
  position: relative;
  z-index: 2;
}

.tile-title {
  font-size: 22px;
  font-weight: 900;
}

.tile-desc {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
  font-size: 13px;
}

.tile-action {
  margin-top: 14px;
  color: #ffffff;
  font-weight: 800;
}

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

.movie-card-wide .movie-link {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

.movie-card-wide .movie-info p {
  -webkit-line-clamp: 3;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--sunrise);
}

.small-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  padding: 92px max(32px, calc((100% - 1180px) / 2)) 56px;
}

.small-hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.small-hero > div {
  position: relative;
  z-index: 1;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(255, 85, 51, 0.1);
}

.search-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--peach-50);
  border: 1px solid var(--line);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink-800);
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-selects select {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 34px 0 14px;
  color: var(--ink-700);
  background: #ffffff;
  outline: none;
}

.filter-empty {
  padding: 20px;
  border-radius: 18px;
  background: var(--peach-50);
  color: var(--ink-600);
  border: 1px solid var(--line);
}

.listing-grid {
  align-items: stretch;
}

.category-overview-list {
  display: grid;
  gap: 42px;
}

.category-overview-item {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.detail-hero {
  min-height: 540px;
  padding-top: 64px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: #111827;
}

.detail-backdrop span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.7) 45%, rgba(17, 24, 39, 0.36));
  backdrop-filter: blur(2px);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-title-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--deep-shadow);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

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

.detail-primary,
.detail-side {
  display: grid;
  gap: 24px;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.28));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-icon {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--coral-500);
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.player-title {
  max-width: min(680px, 90%);
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 900;
  text-align: center;
}

.player-action {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--coral-500);
  font-weight: 800;
}

.detail-section,
.side-card,
.prose-card,
.help-grid article {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
}

.detail-section p,
.prose-card p,
.help-grid p {
  margin: 14px 0 0;
  color: var(--ink-600);
  line-height: 1.9;
  font-size: 16px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 212, 199, 0.72);
  color: var(--ink-600);
}

.info-list strong {
  color: var(--ink-950);
}

.info-list a {
  color: var(--coral-600);
  font-weight: 800;
}

.full-btn {
  width: 100%;
  margin-top: 14px;
}

.prose-card {
  max-width: 900px;
}

.prose-card h2 + p,
.help-grid h2 + p {
  margin-bottom: 22px;
}

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

.site-footer {
  margin-top: 42px;
  padding: 54px max(24px, calc((100% - 1180px) / 2)) 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--peach-50), #ffffff);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: var(--coral-500);
  font-size: 20px;
}

.footer-logo .brand-mark {
  background: var(--sunrise);
}

.footer-brand p,
.site-footer a,
.footer-bottom {
  color: var(--ink-600);
}

.footer-brand p {
  margin: 14px 0 0;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.site-footer a:hover {
  color: var(--coral-500);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .three-grid,
  .four-grid,
  .category-grid,
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .nav-toggle {
    display: flex;
  }

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

  .hero {
    height: 72vh;
    min-height: 560px;
  }

  .hero-copy {
    left: 18px;
    right: 18px;
    bottom: 74px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .section-wrap,
  .detail-hero-content {
    width: min(100% - 24px, 1180px);
  }

  .section-heading,
  .category-overview-head,
  .filter-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-heading,
  .category-overview-head {
    flex-direction: column;
  }

  .home-search-form {
    border-radius: 24px;
    flex-direction: column;
  }

  .home-search-form input {
    min-height: 48px;
  }

  .three-grid,
  .four-grid,
  .category-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .category-band {
    padding: 24px;
    border-radius: 26px;
  }

  .movie-card-wide .movie-link {
    grid-template-columns: 1fr;
  }

  .filter-selects {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .detail-title-row {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(260px, 78vw);
  }

  .small-hero {
    padding: 88px 18px 46px;
  }
}
