:root {
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --orange-900: #7c2d12;
  --orange-800: #9a3412;
  --orange-50: #fff7ed;
  --stone-950: #0c0a09;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

body {
  margin: 0;
  background: #f8fafc;
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--amber-900), var(--orange-800));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-name {
  font-size: 24px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fde68a;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-radius: 12px;
  width: 44px;
  height: 40px;
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--gray-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}

.hero-slide-active {
  display: block;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 25%, rgba(245, 158, 11, 0.25), transparent 34%),
    linear-gradient(90deg, rgba(3, 7, 18, 0.90) 0%, rgba(3, 7, 18, 0.62) 42%, rgba(3, 7, 18, 0.18) 100%),
    linear-gradient(0deg, rgba(3, 7, 18, 0.78) 0%, transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 126px 0 110px;
  color: var(--white);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.20);
  color: #fde68a;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  max-width: 780px;
  margin: 24px 0 18px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: var(--amber-600);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.35);
}

.primary-button:hover {
  background: var(--amber-700);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.44);
}

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.ghost-button.light {
  background: rgba(255, 255, 255, 0.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-1px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--amber-500);
}

.search-panel {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.search-shell {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 28px;
  align-items: center;
}

.search-shell h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
}

.search-shell p {
  margin: 0;
  color: var(--gray-600);
}

.search-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 18px;
  font-size: 16px;
  outline: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.search-input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.content-section {
  padding: 72px 0;
}

.soft-section {
  background: linear-gradient(90deg, #fffbeb, var(--orange-50));
}

.editor-section {
  background: linear-gradient(90deg, var(--amber-900), var(--orange-900));
  color: var(--white);
}

.rank-strip {
  background: var(--gray-900);
  color: var(--white);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2 span {
  width: 5px;
  height: 34px;
  border-radius: 999px;
  background: var(--amber-600);
}

.section-heading p {
  margin: 10px 0 0 19px;
  color: var(--gray-600);
}

.editor-section .section-heading p,
.rank-strip .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

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

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

.movie-link {
  display: block;
  height: 100%;
  background: var(--white);
  color: var(--gray-900);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  transform: translateY(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-900), var(--orange-800));
}

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

.movie-link:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 42%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-link:hover .poster-wrap::after {
  opacity: 1;
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--amber-600);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 10px;
  right: auto;
  background: rgba(17, 24, 39, 0.82);
}

.play-hover {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-600);
  color: var(--white);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-link:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  padding: 15px;
}

.movie-info h3 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-meta span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-tile {
  position: relative;
  min-height: 186px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px;
  color: var(--white);
  text-decoration: none;
  background: var(--gray-900);
  box-shadow: var(--soft-shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.10));
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 2;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-style: normal;
}

.category-tile:hover img {
  opacity: 0.74;
  transform: scale(1.06);
}

.center-action {
  margin-top: 34px;
  text-align: center;
}

.page-hero {
  padding: 90px 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.28), transparent 30%),
    linear-gradient(90deg, var(--gray-950), var(--amber-900));
  color: var(--white);
}

.page-hero span {
  display: inline-flex;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.detail-hero {
  padding: 56px 0;
  background:
    radial-gradient(circle at 76% 22%, rgba(245, 158, 11, 0.24), transparent 32%),
    linear-gradient(135deg, var(--gray-950), var(--amber-900));
  color: var(--white);
}

.detail-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-900), var(--orange-800));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a {
  color: #fde68a;
  text-decoration: none;
}

.detail-main-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.detail-main-copy p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 28px;
}

.detail-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fde68a;
  font-weight: 700;
}

.player-section {
  padding-top: 54px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.watch-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.76));
  cursor: pointer;
}

.player-cover span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber-600);
  color: var(--white);
  font-size: 38px;
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.45);
}

.player-cover strong {
  font-size: 22px;
}

.player-frame.is-playing .player-cover {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 42px 0 18px;
}

.detail-article,
.detail-side {
  background: var(--white);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--soft-shadow);
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
}

.detail-article h2:not(:first-child) {
  margin-top: 34px;
}

.detail-article p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 96px;
}

.detail-side dl {
  margin: 0;
}

.detail-meta-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-200);
}

.detail-meta-row dt {
  color: var(--gray-500);
}

.detail-meta-row dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #fef3c7;
  color: var(--amber-800);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  background: linear-gradient(90deg, var(--gray-950), var(--gray-800));
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-inner h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 640px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: #fde68a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

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

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

@media (max-width: 800px) {
  .site-header-inner {
    min-height: 62px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: var(--amber-800);
  }

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

  .nav-link {
    border-radius: 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero,
  .hero-slide img {
    min-height: 560px;
  }

  .hero-copy {
    padding: 96px 0 96px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .content-section {
    padding: 52px 0;
  }

  .detail-layout,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(280px, 76vw);
  }

  .detail-side {
    position: static;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .movie-info {
    padding: 12px;
  }

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

  .movie-info p {
    font-size: 13px;
  }

  .movie-meta {
    display: block;
  }

  .player-cover span {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
