:root {
  --brand: #f97316;
  --brand-strong: #ea580c;
  --brand-soft: #fff7ed;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --radius: 1.25rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img.image-hidden {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.page-shell,
.hero-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444 58%, #db2777);
  box-shadow: 0 12px 36px rgba(249, 115, 22, 0.34);
}

.brand-text {
  font-size: 1.2rem;
}

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

.main-nav a,
.footer-links a,
.hero-category-links a,
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--brand-strong);
  background: var(--brand-soft);
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--brand-strong);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(255, 237, 213, 0.52), transparent 28%), linear-gradient(135deg, #fb923c 0%, #f97316 42%, #ef4444 72%, #be185d 100%);
}

.hero::after {
  position: absolute;
  right: -220px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(8px);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.24), transparent 54%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  padding: 78px 0 58px;
}

.hero-slide {
  display: none;
  min-height: 560px;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  gap: 56px;
}

.hero-slide.active {
  display: grid;
  animation: fadeIn 0.56s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.78;
}

.hero-tags,
.meta-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.meta-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.18);
}

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

.primary-btn,
.ghost-btn,
.site-search button,
.player-button,
.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
}

.primary-btn {
  min-height: 52px;
  padding: 0 24px;
  color: var(--brand-strong);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
}

.ghost-btn {
  min-height: 52px;
  padding: 0 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.38), rgba(255, 255, 255, 0.13));
  box-shadow: 0 36px 120px rgba(15, 23, 42, 0.26);
}

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

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 62%);
}

.hero-poster span {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  z-index: 1;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.25;
}

.hero-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.hero-dots,
.hero-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot,
.hero-arrows button {
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 99px;
}

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

.hero-arrows button {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #ffffff;
  font-size: 1.75rem;
}

.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-category-links a {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 800;
}

.site-search {
  display: flex;
  gap: 10px;
  width: min(680px, 100%);
  margin-top: 26px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.page-hero .site-search,
.list-toolbar .site-search {
  margin: 0;
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
}

.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 999px;
  min-height: 48px;
  font-size: 1rem;
}

.site-search button {
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.page-shell {
  padding: 48px 0 64px;
}

.page-hero {
  padding: 48px 0;
  background: linear-gradient(180deg, #fff7ed 0%, rgba(255, 255, 255, 0) 100%);
}

.page-hero h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p,
.detail-title p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.section-block {
  margin-top: 56px;
}

.section-head,
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
}

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

.movie-grid.wide-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 22px;
  color: inherit;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow);
}

.feature-grid .movie-card:first-child {
  grid-row: span 2;
}

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

.feature-grid .movie-card:first-child .poster-wrap {
  aspect-ratio: 1 / 1.12;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 54%);
}

.card-score,
.card-region {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.card-score {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #111827;
  background: #facc15;
}

.card-region {
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
}

.card-content {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-content strong {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 1rem;
  line-height: 1.4;
}

.card-content span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.9rem;
  line-height: 1.55;
}

.card-content small {
  color: #9ca3af;
  font-weight: 700;
  line-height: 1.5;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 26px;
  color: inherit;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.07);
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card strong {
  font-size: 1.38rem;
}

.category-card span {
  color: var(--muted);
  line-height: 1.7;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 74px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 18px;
  color: inherit;
  background: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

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

.rank-item img {
  width: 74px;
  height: 94px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #111827, #f97316);
}

.rank-item strong,
.rank-item small {
  display: block;
}

.rank-item strong {
  margin-bottom: 7px;
}

.rank-item small {
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.player-card,
.detail-panel,
.side-panel {
  border: 1px solid rgba(229, 231, 235, 0.84);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 56px rgba(15, 23, 42, 0.08);
}

.player-card {
  overflow: hidden;
}

.player {
  position: relative;
  background: #000000;
}

.player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.2), rgba(0, 0, 0, 0.7));
  transition: opacity 0.2s ease;
}

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

.player-button {
  width: 88px;
  height: 88px;
  padding-left: 6px;
  color: var(--brand-strong);
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
}

.detail-title,
.detail-panel {
  padding: 26px;
}

.meta-tags {
  margin-top: 18px;
}

.meta-tags span {
  padding: 8px 12px;
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.detail-panel {
  display: grid;
  gap: 26px;
  margin-top: 24px;
}

.detail-panel h2,
.side-panel h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.detail-panel p {
  margin: 0;
  color: #374151;
  font-size: 1.02rem;
  line-height: 1.95;
}

.detail-tags span {
  padding: 7px 11px;
  color: #374151;
  background: #f3f4f6;
}

.side-panel {
  padding: 18px;
}

.side-panel .rank-item {
  grid-template-columns: 64px 1fr;
}

.side-panel .rank-no {
  display: none;
}

.side-panel .rank-item img {
  width: 64px;
  height: 82px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}

.no-results {
  display: none;
  padding: 28px;
  border-radius: 22px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.no-results.show {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #111827;
  color: #ffffff;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  padding: 38px 0;
}

.footer-shell p {
  max-width: 560px;
  color: #d1d5db;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.load-more-btn {
  min-height: 48px;
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

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

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

@media (max-width: 980px) {
  .hero-slide,
  .detail-layout,
  .rank-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

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

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

  .main-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    border-radius: 14px;
  }

  .hero-shell {
    padding-top: 48px;
  }

  .hero-slide {
    min-height: auto;
    gap: 30px;
  }

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

  .site-search {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

  .site-search input,
  .site-search button {
    width: 100%;
  }

  .section-head,
  .list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .card-content {
    padding: 12px;
  }

  .card-content span {
    display: none;
  }

  .rank-item {
    grid-template-columns: auto 64px 1fr;
  }

  .rank-item img {
    width: 64px;
    height: 82px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.wide-grid,
  .feature-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.45rem;
  }
}
