:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --yellow: #f59e0b;
  --cream: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.18);
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 45px rgba(251, 113, 133, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 52%, #fefce8 100%);
  min-height: 100vh;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.08);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.25);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-6deg);
}

.brand strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #f97316, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.nav-links summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 13px;
  color: #4b5563;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links summary:hover,
.nav-links a.active {
  color: var(--orange-dark);
  background: rgba(255, 237, 213, 0.9);
  transform: translateY(-1px);
}

.nav-links details {
  position: relative;
}

.nav-links details > summary {
  list-style: none;
}

.nav-links details > summary::-webkit-details-marker {
  display: none;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 220px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(31, 41, 55, 0.15);
  border: 1px solid rgba(251, 146, 60, 0.16);
}

.nav-menu a {
  display: block;
  width: 100%;
  padding: 10px 12px;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 237, 213, 0.95);
  color: var(--orange-dark);
  padding: 9px 12px;
  font-weight: 900;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 56px 0;
}

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

.section-head h2,
.section-head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 680px;
}

.gradient-title {
  background: linear-gradient(90deg, #f97316, #ec4899, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 43%, rgba(17, 24, 39, 0.28) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
}

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

.hero-inner {
  min-height: 660px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px 22px 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.88);
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.25);
}

.hero-content h1,
.hero-content h2 {
  margin: 22px 0 0;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-shadow: 0 14px 50px rgba(0, 0, 0, 0.4);
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.hero-content h2 {
  font-size: clamp(34px, 5vw, 64px);
}

.hero-content p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.hero-meta {
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #9a3412;
  background: #ffedd5;
}

.hero-meta .pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #f97316, #ec4899);
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.25);
}

.btn-light {
  color: #9a3412;
  background: rgba(255, 255, 255, 0.92);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.62)),
    var(--poster-img);
  background-size: cover;
  background-position: center;
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 110px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.82), rgba(236, 72, 153, 0.82));
  filter: blur(24px);
  opacity: 0.7;
}

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

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

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

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

.search-card,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 146, 60, 0.16);
}

.search-input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(251, 146, 60, 0.2);
  outline: none;
  border-radius: 16px;
  padding: 13px 15px;
  background: #fff7ed;
  color: var(--ink);
}

.search-input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(236, 72, 153, 0.56);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.08);
}

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

.category-card {
  padding: 22px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.96));
  border: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 16px 42px rgba(251, 146, 60, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(236, 72, 153, 0.16);
}

.category-card h3 {
  margin: 0;
  font-size: 22px;
}

.category-card p {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.category-card span {
  color: var(--orange-dark);
  font-weight: 900;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 14px 35px rgba(31, 41, 55, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 58px rgba(236, 72, 153, 0.18);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  background-image:
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.76)),
    var(--poster-img),
    linear-gradient(135deg, #fed7aa, #fbcfe8);
  background-size: cover;
  background-position: center;
}

.poster::before {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.88);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.movie-card:hover .poster::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(90deg, #f97316, #ec4899);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.25);
}

.duration {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.78);
}

.movie-body {
  padding: 15px;
  flex: 1;
}

.movie-body h3 {
  margin: 0 0 8px;
  min-height: 46px;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-body p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.score {
  color: #f59e0b;
  font-weight: 900;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 90px 1fr;
  gap: 15px;
  align-items: center;
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(236, 72, 153, 0.15);
}

.rank-no {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.rank-poster,
.mini-poster {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background-image:
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.58)),
    var(--poster-img),
    linear-gradient(135deg, #fed7aa, #fbcfe8);
  background-size: cover;
  background-position: center;
}

.rank-info h3,
.rank-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.58)),
    var(--hero-img),
    linear-gradient(135deg, #f97316, #ec4899);
  background-size: cover;
  background-position: center;
}

.page-hero .container {
  padding-top: 76px;
  padding-bottom: 76px;
}

.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p,
.detail-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.detail-hero .container {
  padding-top: 56px;
  padding-bottom: 62px;
}

.detail-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background-image:
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.58)),
    var(--poster-img),
    linear-gradient(135deg, #fed7aa, #fbcfe8);
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-meta {
  margin-top: 22px;
}

.detail-meta .pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 64px;
}

.content-card,
.player-card,
.side-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(31, 41, 55, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.14);
}

.content-card,
.player-card {
  padding: 24px;
  margin-bottom: 24px;
}

.content-card h2,
.player-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.content-card p {
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  border: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.35), rgba(17, 24, 39, 0.82)),
    linear-gradient(135deg, rgba(249, 115, 22, 0.42), rgba(236, 72, 153, 0.2));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 20px 50px rgba(236, 72, 153, 0.36);
  font-size: 32px;
  padding-left: 4px;
}

.play-overlay strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.side-card {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 20px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.4;
}

.related-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.tag-list {
  margin-top: 16px;
}

.search-results {
  display: grid;
  gap: 16px;
}

.search-result {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.07);
}

.empty-state {
  padding: 44px 22px;
  text-align: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
}

.site-footer {
  padding: 38px 22px;
  color: #7c2d12;
  text-align: center;
  background: rgba(255, 247, 237, 0.78);
  border-top: 1px solid rgba(251, 146, 60, 0.16);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-weight: 800;
}

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

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

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

  .hero-inner {
    grid-template-columns: 1fr 280px;
  }

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

  .side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .navbar {
    flex-wrap: wrap;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links details {
    width: 100%;
  }

  .nav-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
    border-radius: 14px;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 68px;
  }

  .hero-poster {
    width: min(300px, 72vw);
    justify-self: center;
  }

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

  .detail-poster {
    width: min(270px, 74vw);
  }

  .rank-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container,
  .navbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand strong {
    font-size: 19px;
  }

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

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

  .section-head {
    display: block;
  }

  .rank-item {
    grid-template-columns: 46px 72px 1fr;
    gap: 12px;
  }

  .movie-body h3 {
    font-size: 15px;
  }

  .content-card,
  .player-card {
    padding: 18px;
    border-radius: 22px;
  }

  .related-item,
  .search-result {
    grid-template-columns: 70px 1fr;
  }
}
