:root {
  --orange: #ea580c;
  --amber: #f59e0b;
  --yellow: #facc15;
  --teal: #0d9488;
  --cyan: #0891b2;
  --blue: #2563eb;
  --emerald: #059669;
  --rose: #e11d48;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: var(--gray-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.32);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--gray-700);
  font-weight: 650;
  white-space: nowrap;
}

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

.nav a:hover,
.nav a.active {
  color: var(--orange);
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--gray-100);
  color: var(--gray-700);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 12px 0 18px;
}

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

.mobile-panel a {
  display: block;
  padding: 12px 4px;
  color: var(--gray-700);
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #c2410c, #ea580c 40%, #f59e0b 78%, #facc15);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.28), transparent 25%),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.20), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.62));
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: min(64%, 880px);
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(1.08) contrast(1.04);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 610px;
  display: flex;
  align-items: center;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 20px 0 14px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 700px;
  margin: 0 0 18px;
  font-size: clamp(18px, 2vw, 25px);
  opacity: 0.94;
}

.hero-summary {
  max-width: 650px;
  margin: 0 0 26px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
}

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

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

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

.button-primary {
  color: var(--orange);
  background: #fff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.20);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.button-orange {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 14px 24px rgba(234, 88, 12, 0.26);
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: #fff;
  background: transparent;
}

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

.hero-search button {
  flex: 0 0 auto;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.section {
  padding: 70px 0;
}

.section-white {
  background: #fff;
}

.section-blue {
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.section-green {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

.section-amber {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18;
  color: var(--gray-800);
}

.section-subtitle {
  margin: 8px 0 0;
  max-width: 680px;
  color: var(--gray-600);
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f0fdfa, #ecfeff);
  border: 1px solid rgba(13, 148, 136, 0.11);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  font-size: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.category-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

.poster-wrap.tall {
  aspect-ratio: 3 / 4;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 62%);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-badge,
.rank-item:hover .play-badge,
.related-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  max-width: calc(100% - 28px);
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.92);
}

.movie-body {
  padding: 18px;
}

.movie-title {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 18px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 700;
}

.badge.hot {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-num {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: var(--rose);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.26);
}

.rank-body {
  min-width: 0;
  padding: 4px 0;
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.rank-body p {
  margin: 0 0 10px;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-list {
  display: grid;
  gap: 16px;
}

.latest-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.latest-item .poster-wrap {
  height: 170px;
  aspect-ratio: auto;
}

.latest-body {
  padding: 22px 22px 22px 0;
}

.latest-body h3 {
  margin: 8px 0;
  font-size: 22px;
}

.page-hero {
  padding: 74px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan), var(--blue));
}

.page-hero.orange {
  background: linear-gradient(135deg, var(--orange), var(--amber), var(--yellow));
}

.page-hero.dark {
  background: linear-gradient(135deg, var(--gray-800), var(--gray-700), var(--gray-900));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  opacity: 0.9;
  font-size: 18px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: none;
  color: var(--gray-700);
  background: #fff;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.empty-state {
  display: none;
  padding: 44px;
  border-radius: 20px;
  text-align: center;
  color: var(--gray-600);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.empty-state.show {
  display: block;
}

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

.player-card,
.detail-card,
.sidebar-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.player-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.36);
  z-index: 2;
}

.player-cover.hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.play-trigger {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 168px;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.96);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

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

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

.meta-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.meta-panel div {
  text-align: center;
}

.meta-panel span {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
}

.meta-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--gray-800);
}

.content-block {
  margin-top: 24px;
}

.content-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.content-block p {
  margin: 0;
  color: var(--gray-700);
}

.review-box {
  padding: 20px;
  border-left: 4px solid var(--orange);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.sidebar-card {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.sidebar-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: var(--gray-50);
}

.related-card .poster-wrap {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.related-card h3 {
  margin: 2px 0 6px;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 13px;
}

.breadcrumb {
  margin-bottom: 22px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--orange);
  font-weight: 800;
}

.site-footer {
  padding: 52px 0 24px;
  color: #d1d5db;
  background: var(--gray-900);
}

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

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

.site-footer p,
.site-footer li {
  color: #9ca3af;
  font-size: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  font-size: 14px;
}

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

  .menu-button {
    display: grid;
    place-items: center;
  }

  .hero-image {
    width: 100%;
    opacity: 0.45;
  }

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

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

  .sidebar-card {
    position: static;
  }

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

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

  .logo {
    font-size: 21px;
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-copy {
    padding: 56px 0 80px;
  }

  .hero-actions,
  .section-header,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
    gap: 8px;
  }

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

  .section {
    padding: 48px 0;
  }

  .category-grid,
  .movie-grid,
  .movie-grid.featured-grid,
  .rank-list,
  .rank-list.full {
    grid-template-columns: 1fr;
  }

  .latest-item,
  .rank-item,
  .related-card {
    grid-template-columns: 1fr;
  }

  .latest-body {
    padding: 18px;
  }

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

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

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