:root {
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf5;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand-a: #f97316;
  --brand-b: #ec4899;
  --brand-c: #7c3aed;
  --shadow: 0 20px 45px rgba(249, 115, 22, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.14), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--page-bg) 46%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(254, 215, 170, 0.8);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--brand-a);
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.28);
}

.brand-text {
  font-size: clamp(20px, 2vw, 26px);
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 650;
}

.nav-link {
  color: #374151;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-a);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--brand-a);
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 650;
}

.mobile-nav a:hover {
  background: #fff7ed;
  color: var(--brand-a);
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8 52%, #faf5ff);
}

.hero-slide {
  display: none;
  min-height: 620px;
  align-items: center;
  padding: 64px 0 72px;
}

.hero-slide.is-active {
  display: flex;
  animation: fadeIn 0.7s ease both;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  gap: 48px;
  align-items: center;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-a);
  font-weight: 800;
  border: 1px solid rgba(249, 115, 22, 0.22);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.08);
}

.hero-title {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.06em;
}

.hero-title span {
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b), var(--brand-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 700px;
  color: #4b5563;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.85;
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.22);
}

.btn-soft {
  color: var(--brand-a);
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.24);
}

.btn-outline {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
}

.btn-primary:hover,
.btn-soft:hover,
.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.22);
}

.hero-visual {
  position: relative;
  min-height: 470px;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  height: 520px;
  border-radius: 34px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 26px 70px rgba(31, 41, 55, 0.24);
  transform: rotate(1.2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(17, 24, 39, 0.72));
}

.hero-float-card {
  position: absolute;
  left: -24px;
  bottom: 28px;
  max-width: 320px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-float-card strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 20px;
}

.hero-float-card p {
  color: #6b7280;
  line-height: 1.65;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-a);
  font-size: 28px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
}

.section {
  padding: 68px 0;
}

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

.section-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 900;
  color: #111827;
}

.section-desc {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(254, 215, 170, 0.9);
  box-shadow: var(--shadow);
}

.search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid #fed7aa;
  background: #ffffff;
  color: #111827;
  outline: none;
}

.search-input:focus {
  border-color: var(--brand-a);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-pill,
.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: #ffffff;
  color: #4b5563;
  border: 1px solid rgba(254, 215, 170, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.filter-pill:hover,
.category-chip:hover {
  color: var(--brand-a);
  border-color: var(--brand-a);
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(254, 215, 170, 0.8);
  box-shadow: 0 15px 35px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 24px 48px rgba(249, 115, 22, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  font-size: 12px;
  font-weight: 800;
}

.movie-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-meta,
.detail-meta,
.rank-meta {
  color: var(--brand-a);
  font-size: 13px;
  font-weight: 800;
}

.movie-title {
  margin: 8px 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
}

.movie-title a:hover {
  color: var(--brand-a);
}

.movie-desc {
  color: #6b7280;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
}

.card-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--brand-a);
  font-weight: 850;
}

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

.category-card {
  min-height: 230px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.92));
  border: 1px solid rgba(254, 215, 170, 0.9);
  box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
  color: #111827;
}

.category-card p {
  color: #6b7280;
  line-height: 1.75;
}

.category-card ul {
  margin-top: 18px;
  display: grid;
  gap: 9px;
}

.category-card li a {
  color: #374151;
  font-weight: 700;
}

.category-card li a:hover {
  color: var(--brand-a);
}

.page-hero {
  padding: 72px 0 42px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(253, 242, 248, 0.88));
  border-bottom: 1px solid rgba(254, 215, 170, 0.82);
}

.page-hero h1 {
  margin: 14px 0 14px;
  max-width: 900px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #111827;
}

.page-hero p {
  max-width: 860px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-a);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(254, 215, 170, 0.9);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.rank-number {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  width: 92px;
  height: 118px;
  border-radius: 18px;
  overflow: hidden;
  background: #fed7aa;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  margin: 6px 0 8px;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.rank-title a:hover {
  color: var(--brand-a);
}

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

.player-card,
.detail-card {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(254, 215, 170, 0.9);
  box-shadow: var(--shadow);
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  background: #111827;
}

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

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.78));
}

.play-button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.28);
}

.player-cover.is-hidden {
  display: none;
  pointer-events: none;
}

.player-info,
.detail-card {
  padding: 26px;
}

.detail-title {
  margin: 12px 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  font-weight: 900;
  color: #111827;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: #fed7aa;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.12);
}

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

.prose-block {
  display: grid;
  gap: 20px;
}

.prose-block h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.prose-block p {
  color: #4b5563;
  line-height: 1.92;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.info-list div {
  display: flex;
  gap: 12px;
  color: #4b5563;
}

.info-list strong {
  min-width: 52px;
  color: #111827;
}

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

.site-footer {
  margin-top: 56px;
  padding: 56px 0 32px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
  border-top: 1px solid rgba(254, 215, 170, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  margin-bottom: 14px;
  font-weight: 900;
  color: #111827;
}

.footer-text,
.footer-links a {
  color: #6b7280;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--brand-a);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(254, 215, 170, 0.9);
  color: #6b7280;
  text-align: center;
}

.is-hidden-card {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero-carousel,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 38px 0 64px;
  }

  .hero-grid,
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-poster {
    height: 420px;
    transform: none;
  }

  .hero-float-card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .section-head,
  .search-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

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

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

  .rank-item .btn-soft {
    grid-column: 2 / -1;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .hero-title,
  .page-hero h1 {
    letter-spacing: -0.035em;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 15px;
  }

  .rank-thumb {
    width: 74px;
    height: 98px;
  }
}
