:root {
  --site-bg: #fff7ed;
  --panel-bg: #ffffff;
  --muted-bg: #fff1f2;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --accent: #ec4899;
  --accent-strong: #db2777;
  --violet: #8b5cf6;
  --gold: #f59e0b;
  --shadow-soft: 0 18px 45px rgba(249, 115, 22, 0.14);
  --shadow-card: 0 16px 40px rgba(31, 41, 55, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff1f2 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(249, 115, 22, 0.16);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.10);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand);
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
}

.logo-text {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: #374151;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.2s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--brand);
  background: #fff7ed;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 42px;
  background: radial-gradient(circle at 15% 5%, rgba(236, 72, 153, 0.22), transparent 32%), radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.24), transparent 30%), linear-gradient(135deg, #fff7ed 0%, #fff 44%, #fff1f2 100%);
}

.hero::before {
  position: absolute;
  inset: auto -14% 0 -12%;
  height: 180px;
  content: "";
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.18), rgba(236, 72, 153, 0.18));
  filter: blur(60px);
}

.hero-shell {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 44px;
  min-height: 520px;
}

.hero-slide.is-active {
  display: grid;
  animation: slideFade 0.55s ease both;
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.10);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 720px;
  margin: 22px 0 24px;
  color: #4b5563;
  font-size: 18px;
}

.hero-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

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

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.34);
}

.btn-secondary {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(249, 115, 22, 0.24);
}

.btn-secondary:hover {
  color: var(--accent-strong);
  border-color: rgba(236, 72, 153, 0.35);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(620px, 100%);
  margin: 28px 0 18px;
  padding: 8px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.hero-search input,
.filter-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #374151;
  background: transparent;
}

.hero-search input {
  padding: 0 14px;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 500px;
  border-radius: 36px;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
  box-shadow: 0 30px 80px rgba(249, 115, 22, 0.26);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.hero-poster:hover img {
  transform: scale(1.045);
}

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

.hero-poster-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: #ffffff;
}

.hero-poster-caption strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
}

.hero-poster-caption span {
  color: rgba(255, 255, 255, 0.82);
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-control,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.24);
}

.hero-control {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.45;
}

.hero-dot.is-active {
  width: 32px;
  opacity: 1;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-links a {
  padding: 8px 13px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.section {
  padding: 54px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.55), rgba(255, 255, 255, 0.2));
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-dark);
  font-weight: 850;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.30);
  box-shadow: 0 24px 56px rgba(236, 72, 153, 0.16);
}

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

.card-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

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

.card-badge,
.card-score,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.18);
}

.card-score {
  top: 12px;
  right: 12px;
  min-width: 44px;
  padding: 5px 8px;
  background: linear-gradient(135deg, var(--gold), var(--brand));
}

.card-badge {
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.70);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 900;
}

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

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-row span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.meta-row span {
  color: #9a3412;
  background: #fff7ed;
}

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

.tag-row span {
  color: #be185d;
  background: #fdf2f8;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: var(--radius-lg);
  color: #3b2f2f;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(252, 231, 243, 0.94));
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(236, 72, 153, 0.16);
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 950;
}

.category-tile span {
  color: #6b4f4f;
  font-size: 14px;
}

.category-tile em {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(249, 115, 22, 0.28);
  font-size: 58px;
  font-style: normal;
  font-weight: 950;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

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

.rank-cover {
  overflow: hidden;
  width: 92px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: #ffedd5;
}

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

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 950;
}

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

.page-hero {
  padding: 56px 0 36px;
  background: radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.22), transparent 30%), radial-gradient(circle at 86% 14%, rgba(236, 72, 153, 0.18), transparent 28%);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.filter-panel {
  position: sticky;
  top: 72px;
  z-index: 18;
  margin: 0 0 26px;
  padding: 14px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.filter-input {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip {
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  padding: 7px 11px;
  color: #9a3412;
  background: #ffffff;
  font-size: 13px;
  font-weight: 850;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 24px 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--brand-dark);
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.90), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #ffedd5;
  box-shadow: 0 22px 50px rgba(31, 41, 55, 0.16);
}

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

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-info .lead {
  margin: 18px 0;
  color: #4b5563;
  font-size: 18px;
}

.info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.info-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  font-weight: 850;
}

.watch-panel,
.content-panel,
.related-panel {
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(249, 115, 22, 0.14);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.watch-panel h2,
.content-panel h2,
.related-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 950;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: 0 24px 58px rgba(17, 24, 39, 0.22);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.10), rgba(17, 24, 39, 0.70));
}

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

.player-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 18px 44px rgba(236, 72, 153, 0.36);
  font-size: 34px;
}

.player-overlay strong {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 18px;
}

.player-message {
  display: none;
  margin-top: 12px;
  color: #be123c;
  font-weight: 800;
}

.player-message.is-visible {
  display: block;
}

.content-panel p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 17px;
}

.site-footer {
  margin-top: 64px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
  border-top: 1px solid rgba(249, 115, 22, 0.16);
}

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

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 950;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 14px;
}

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

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

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(249, 115, 22, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 34px;
  border: 1px dashed #fdba74;
  border-radius: 22px;
  color: #9a3412;
  text-align: center;
  background: #fff7ed;
  font-weight: 850;
}

.empty-state.is-visible {
  display: block;
}

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

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(249, 115, 22, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

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

  .hero-slide,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 380px;
  }

  .hero-controls {
    position: static;
    margin-top: 18px;
  }

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

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, 1220px);
  }

  .logo {
    font-size: 22px;
  }

  .hero {
    padding-top: 32px;
  }

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

  .hero-search,
  .filter-row {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

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

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

  .section-head {
    display: block;
  }

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

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

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

  .rank-cover {
    width: 72px;
  }

  .detail-hero,
  .watch-panel,
  .content-panel,
  .related-panel {
    padding: 18px;
    border-radius: 24px;
  }

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