:root {
  --bg: #fff7ed;
  --bg-soft: #fffaf5;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.brand-name {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  font-weight: 700;
  color: #374151;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #fff7ed;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.icon-button:hover {
  color: var(--orange);
  background: #ffedd5;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.header-search {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0 0 18px;
}

.header-search.open {
  display: flex;
}

.header-search input,
.search-page-form input,
.search-page-form select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 14px 16px;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.search-page-form input:focus,
.search-page-form select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.header-search button,
.search-page-form button,
.primary-button {
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.26);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
  border-top: 1px solid #ffedd5;
}

.mobile-nav.open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
  background: #fff7ed;
}

.page-bg {
  min-height: 70vh;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-space {
  padding-top: 32px;
  padding-bottom: 72px;
}

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
}

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

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

.hero-image,
.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.55) 44%, rgba(17, 24, 39, 0.1) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 70px);
  bottom: clamp(28px, 7vw, 72px);
  max-width: 700px;
  color: #ffffff;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: var(--orange);
}

.hero-content h1 {
  margin: 18px 0 10px;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4.5vw, 54px);
  line-height: 1.08;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.75;
  color: #f3f4f6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  padding: 13px 20px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(12px);
  font-size: 30px;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.66);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.category-tile,
.category-card,
.search-panel,
.poster-card,
.ranking-panel {
  border: 1px solid #ffedd5;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 118px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(124, 45, 18, 0.16);
}

.category-tile span,
.category-card h2 {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}

.category-tile p,
.category-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  color: var(--orange-dark);
  background: #ffedd5;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffedd5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

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

.movie-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.05));
  transition: opacity 0.2s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 10px;
  right: auto;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 10px 0 8px;
  min-height: 48px;
  font-size: 17px;
  line-height: 1.4;
}

.movie-info h3 a {
  transition: color 0.2s ease;
}

.movie-info h3 a:hover {
  color: var(--orange);
}

.movie-info p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #4b5563;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span {
  display: inline-flex;
  max-width: 100%;
}

.movie-card-large .movie-info h3 {
  font-size: 20px;
}

.movie-card-compact .movie-info h3 {
  font-size: 16px;
}

.movie-card-rank {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.movie-card-rank .movie-cover {
  aspect-ratio: auto;
  height: 100%;
  min-height: 138px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel {
  padding: 22px;
}

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

.rank-list .movie-card {
  grid-template-columns: 112px 1fr;
}

.rank-list .movie-info {
  padding: 12px;
}

.rank-list .movie-info p,
.rank-list .movie-tags {
  display: none;
}

.rank-list .movie-info h3 {
  min-height: auto;
  margin-top: 0;
  font-size: 15px;
}

.page-hero {
  padding: clamp(34px, 6vw, 70px);
  border-radius: 28px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.25), transparent 30%), linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: var(--shadow);
}

.small-hero h1 {
  max-width: 780px;
  margin: 12px 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
}

.small-hero p {
  max-width: 760px;
  margin: 0;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 900;
  color: #9a3412;
  background: #ffffff;
}

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

.category-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-main {
  display: block;
  padding: 24px;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 0 24px 24px;
}

.category-samples a {
  color: var(--orange-dark);
  font-weight: 700;
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.filter-chip {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 10px 16px;
  color: #9a3412;
  background: #ffffff;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: var(--orange);
}

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

.detail-main,
.detail-content {
  min-width: 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000000;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
}

.video-play {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 40px rgba(239, 68, 68, 0.35);
  font-size: 34px;
}

.video-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.detail-content {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #ffedd5;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-content h1 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
}

.detail-one-line {
  margin: 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

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

.text-block h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.text-block p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.poster-card {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.poster-card h2 {
  margin: 18px 20px 8px;
  font-size: 22px;
}

.poster-card p {
  margin: 0 20px 18px;
  color: var(--muted);
}

.poster-card a {
  display: inline-flex;
  margin: 0 20px 22px;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  color: #ffffff;
  background: var(--orange);
}

.search-panel {
  margin-top: 24px;
  padding: 20px;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 12px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 38px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px;
}

.footer-brand .brand {
  color: #ffffff;
}

.footer-brand p {
  max-width: 540px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
}

.footer-col a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fb923c;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}

@media (max-width: 1080px) {
  .grid-large,
  .grid-standard {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .poster-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-grid;
  }

  .hero {
    height: 620px;
    border-radius: 22px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.28));
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 62px;
  }

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

  .quick-categories,
  .category-grid,
  .grid-large,
  .grid-standard,
  .grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .hero {
    height: 590px;
  }

  .hero-control {
    width: 40px;
    height: 40px;
  }

  .quick-categories,
  .category-grid,
  .grid-large,
  .grid-standard,
  .grid-compact {
    grid-template-columns: 1fr;
  }

  .movie-card-rank,
  .rank-list .movie-card {
    grid-template-columns: 124px 1fr;
  }

  .movie-info p {
    min-height: auto;
  }

  .detail-content {
    padding: 20px;
  }
}
