:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --amber: #f59e0b;
  --green: #22c55e;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --soft-pink: #fdf2f8;
  --line: #fed7aa;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(249, 115, 22, 0.13);
}

* {
  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(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(249, 115, 22, 0.12), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(236, 72, 153, 0.14), transparent 32%),
    linear-gradient(135deg, #fff7ed 0%, #fdf2f8 45%, #fffbeb 100%);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(253, 242, 248, 0.94));
  border-bottom: 1px solid rgba(249, 115, 22, 0.16);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.09);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.logo-text {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  color: #4b5563;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  transition: right 0.25s ease;
}

.main-nav a:hover {
  color: var(--orange-dark);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
}

.header-search {
  width: 235px;
  position: relative;
  flex-shrink: 0;
}

.header-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(251, 146, 60, 0.4);
  border-radius: 999px;
  outline: none;
  padding: 0 44px 0 16px;
  color: #374151;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  background: #ffffff;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  margin-left: auto;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(249, 115, 22, 0.14);
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: #4b5563;
  font-weight: 700;
}

.hero-section {
  padding: 30px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 30px 65px rgba(249, 115, 22, 0.22);
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 25%, rgba(236, 72, 153, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.54) 43%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: clamp(22px, 6vw, 74px);
  width: min(580px, calc(100% - 42px));
  transform: translateY(-50%);
  z-index: 2;
  color: #ffffff;
}

.hero-badge,
.section-kicker,
.type-badge,
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-badge {
  padding: 7px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.32);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0 0 22px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.28);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: var(--orange-dark);
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.14);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 38px rgba(236, 72, 153, 0.22);
}

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

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dots button {
  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-dots button.active {
  width: 34px;
  background: var(--orange);
}

.hero-side {
  display: grid;
  gap: 18px;
}

.side-panel,
.feature-panel,
.content-card,
.movie-card,
.rank-item,
.category-card,
.filter-panel,
.detail-card,
.player-card {
  border: 1px solid rgba(251, 146, 60, 0.16);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.side-panel,
.feature-panel,
.content-card,
.filter-panel,
.detail-card,
.player-card {
  border-radius: 24px;
}

.side-panel {
  padding: 22px;
}

.side-panel h2,
.side-panel h3 {
  margin: 0 0 14px;
  font-size: 21px;
}

.quick-list {
  display: grid;
  gap: 12px;
}

.quick-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  color: #4b5563;
  background: linear-gradient(90deg, #fff7ed, #fdf2f8);
  transition: transform 0.2s ease, color 0.2s ease;
}

.quick-list a:hover {
  color: var(--orange-dark);
  transform: translateX(4px);
}

.section {
  padding: 42px 0;
}

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

.section-kicker {
  padding: 6px 12px;
  margin-bottom: 10px;
  color: var(--orange-dark);
  font-size: 13px;
  background: #ffedd5;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.36);
  box-shadow: 0 24px 46px rgba(249, 115, 22, 0.2);
}

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

.poster.wide {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .poster img,
.rank-item:hover .poster img,
.related-item:hover .poster img {
  transform: scale(1.08);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  color: #ffffff;
  font-size: 12px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.card-title a:hover {
  color: var(--orange-dark);
}

.card-desc {
  margin: 0 0 14px;
  color: #6b7280;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta,
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

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

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

.category-card {
  min-height: 162px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 237, 0.88));
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(236, 72, 153, 0.18);
}

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

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 38px rgba(249, 115, 22, 0.16);
}

.rank-number {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  min-width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}

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

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

.page-hero {
  padding: 62px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.25), transparent 24%),
    linear-gradient(120deg, var(--orange), var(--pink));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.06em;
}

.page-hero p {
  margin: 0;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #fff7ed;
  font-weight: 700;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  margin: 0 0 28px;
}

.filter-panel select {
  padding-right: 16px;
  appearance: none;
}

.detail-shell {
  padding: 34px 0 64px;
}

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

.player-card {
  overflow: hidden;
  background: #111827;
}

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

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 3;
  background: rgba(0, 0, 0, 0.18);
}

.play-cover.is-hidden {
  display: none;
}

.play-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62);
}

.play-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.15), rgba(0, 0, 0, 0.52));
}

.play-button {
  position: relative;
  z-index: 4;
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 28px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-button:hover {
  transform: scale(1.07);
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.35);
}

.detail-card {
  padding: 24px;
  margin-top: 22px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.detail-card h2,
.detail-card h3 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.detail-card p {
  color: #4b5563;
  line-height: 1.9;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-row span {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #ffedd5;
  font-weight: 700;
  font-size: 13px;
}

.related-box {
  position: sticky;
  top: 92px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(251, 146, 60, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.related-box h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

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

.related-item .poster {
  border-radius: 14px;
}

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

.related-item h3:hover {
  color: var(--orange-dark);
}

.related-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 800;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.1);
}

.pagination a:hover,
.pagination span.current {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}

.site-footer {
  padding: 38px 0;
  color: #e5e7eb;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p,
.site-footer a {
  color: #d1d5db;
  line-height: 1.8;
}

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

.footer-bottom {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 820px) {
  .main-nav,
  .header-search {
    display: none;
  }

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

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

  .hero-carousel {
    min-height: 500px;
    border-radius: 22px;
  }

  .hero-content {
    top: auto;
    bottom: 64px;
    left: 22px;
    transform: none;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 38px;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid.compact,
  .rank-grid,
  .category-grid,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 540px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo {
    font-size: 21px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .hero-section {
    padding-top: 18px;
  }

  .hero-carousel {
    min-height: 475px;
  }

  .hero-control {
    width: 38px;
    height: 38px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section {
    padding: 30px 0;
  }

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

  .detail-card {
    padding: 18px;
  }
}
