:root {
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-400: #f5b759;
  --primary-500: #f3ab3c;
  --primary-600: #f19d36;
  --secondary-50: #f8fafc;
  --secondary-100: #d9e2ec;
  --secondary-400: #829ab1;
  --secondary-500: #627d98;
  --secondary-600: #486581;
  --secondary-700: #334e68;
  --secondary-800: #243b53;
  --secondary-900: #102a43;
  --white: #ffffff;
  --black: #000000;
  --soft-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --medium-shadow: 0 8px 30px rgba(16, 42, 67, 0.14);
  --strong-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
  --glow-shadow: 0 0 20px rgba(243, 171, 60, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--secondary-800);
  background: #f9fafb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--soft-shadow);
}

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

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary-800);
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), #ff835c);
  box-shadow: var(--glow-shadow);
  font-size: 13px;
}

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

.nav-links a,
.mobile-menu a {
  font-size: 14px;
  font-weight: 650;
  color: var(--secondary-600);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary-600);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: var(--secondary-50);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--secondary-800);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid #edf2f7;
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-menu.open {
  display: block;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(243, 171, 60, 0.28), transparent 28%), var(--secondary-900);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--secondary-900), rgba(16, 42, 67, 0.78), rgba(16, 42, 67, 0.18));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-400);
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 26px;
  color: #d9e2ec;
  font-size: 18px;
  line-height: 1.75;
}

.hero-tags,
.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span,
.info-pills span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 13px;
  color: var(--white);
  font-size: 13px;
  font-weight: 650;
  backdrop-filter: blur(6px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-btn,
.secondary-btn,
.hero-search button,
.page-search button,
.play-layer,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn,
.hero-search button,
.page-search button,
.play-layer {
  background: var(--primary-500);
  color: var(--white);
  box-shadow: var(--glow-shadow);
}

.primary-btn,
.secondary-btn {
  min-height: 46px;
  padding: 0 24px;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.primary-btn:hover,
.hero-search button:hover,
.page-search button:hover,
.play-layer:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.5);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dots button.active {
  width: 28px;
  background: var(--primary-500);
}

.hero-search,
.page-search {
  display: flex;
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-search input,
.page-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 15px 18px;
  color: var(--white);
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.hero-search button,
.page-search button {
  padding: 0 22px;
  border-radius: 0;
  box-shadow: none;
}

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

.page-shell {
  padding: 56px 0;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.page-hero .page-shell {
  padding: 58px 0 50px;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #d9e2ec;
  line-height: 1.8;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.category-card {
  display: block;
  padding: 24px;
  border-radius: 20px;
  color: var(--secondary-800);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.category-card span {
  color: var(--secondary-500);
  font-size: 14px;
}

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

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

.section-head h2 {
  margin: 0;
  color: var(--secondary-800);
  font-size: clamp(26px, 3vw, 34px);
}

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 20% 12%, rgba(243, 171, 60, 0.45), transparent 32%), linear-gradient(135deg, var(--secondary-900), var(--secondary-700));
}

.poster-frame img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card a:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 750;
}

.movie-card-body {
  padding: 15px;
}

.movie-card h3 {
  margin: 0 0 9px;
  overflow: hidden;
  color: var(--secondary-800);
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-card a:hover h3 {
  color: var(--primary-600);
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--secondary-500);
  font-size: 12px;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--secondary-600);
  background: var(--primary-50);
  font-size: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.rank-num {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--primary-500);
  font-weight: 850;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--secondary-900), var(--secondary-600));
}

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

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.rank-item p {
  margin: 0;
  color: var(--secondary-500);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--secondary-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--primary-600);
}

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

.video-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--black);
  box-shadow: var(--strong-shadow);
}

.video-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.play-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  font-size: 26px;
  transform: translate(-50%, -50%);
}

.video-box.is-playing .play-layer {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 6;
  display: none;
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.78);
}

.player-message.show {
  display: block;
}

.detail-card,
.side-card,
.text-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

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

.detail-card h1 {
  margin: 0 0 16px;
  color: var(--secondary-800);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.detail-card p,
.text-card p {
  color: var(--secondary-600);
  line-height: 1.9;
}

.detail-side {
  display: grid;
  gap: 20px;
}

.side-card {
  padding: 20px;
}

.side-card h2,
.text-card h2 {
  margin: 0 0 14px;
  color: var(--secondary-800);
  font-size: 21px;
}

.side-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--secondary-900), var(--secondary-600));
}

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

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--secondary-600);
  font-size: 14px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 10px;
}

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

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

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  color: var(--secondary-700);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.pagination a:hover,
.pagination span.active {
  color: var(--white);
  background: var(--primary-500);
}

.page-search {
  margin-top: 24px;
  background: var(--white);
  border-color: #e5e7eb;
}

.page-search input {
  color: var(--secondary-800);
}

.page-search input::placeholder {
  color: var(--secondary-400);
}

.search-result-note {
  margin: 0 0 20px;
  color: var(--secondary-500);
}

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

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

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

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

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

  .hero {
    height: 560px;
  }

  .hero-control {
    display: none;
  }

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

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

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

@media (max-width: 560px) {
  .nav-shell,
  .footer-shell,
  .page-shell,
  .hero-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 17px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

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

  .hero-actions {
    display: grid;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    min-height: 46px;
  }

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

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

  .movie-card-body {
    padding: 12px;
  }

  .detail-card,
  .text-card,
  .side-card {
    padding: 18px;
  }

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

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

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

.site-footer {
  color: #d9e2ec;
  background: var(--secondary-900);
}

.footer-shell {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-logo {
  color: var(--white);
}

.footer-brand p {
  max-width: 520px;
  color: #aebdca;
  line-height: 1.8;
}

.footer-links h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 9px 0;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 16px;
  text-align: center;
  color: #aebdca;
  font-size: 14px;
}
