:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --yellow: #f59e0b;
  --black: #111827;
  --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.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff7ed 0, #ffffff 340px, #f9fafb 100%);
  line-height: 1.6;
}

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

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

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: linear-gradient(90deg, var(--orange-dark), var(--red), var(--orange));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(194, 65, 12, 0.26);
}

.nav-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand {
  font-size: 22px;
  white-space: nowrap;
}

.brand-icon,
.footer-brand span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

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

.main-nav a {
  padding: 9px 13px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 270px;
}

.header-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 82px 10px 14px;
  outline: none;
}

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

.header-search button {
  position: absolute;
  right: 5px;
  border: 0;
  border-radius: 10px;
  padding: 6px 10px;
  color: var(--orange-dark);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 11px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #9a3412, #dc2626 48%, #f97316);
}

.hero-slide {
  display: none;
  min-height: 560px;
  position: relative;
  isolation: isolate;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.08) contrast(1.08);
  z-index: -3;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(127, 29, 29, 0.72), rgba(234, 88, 12, 0.58));
}

.hero-inner {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 42px;
  padding: 62px 0 74px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  margin: 18px 0 14px;
  max-width: 820px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

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

.hero-info span,
.detail-chip,
.tag-row span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
}

.hero-info span {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.94);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--orange-dark);
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-poster-card {
  position: relative;
  border-radius: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(12px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  object-fit: cover;
  background: linear-gradient(135deg, #7c2d12, #ea580c);
}

.hero-mini {
  position: absolute;
  left: -20px;
  right: 22px;
  bottom: 26px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(17, 24, 39, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-mini strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

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

.hero-dots button {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dots button.active {
  background: #ffffff;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: #ffffff;
}

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

.section-title h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--gray-900);
  letter-spacing: -0.03em;
}

.section-title h2 {
  font-size: 31px;
}

.section-title p,
.page-hero p {
  margin: 7px 0 0;
  color: var(--gray-600);
}

.gradient-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 22px rgba(220, 38, 38, 0.18);
}

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

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

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

.movie-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, #7c2d12, #ea580c 52%, #dc2626);
}

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

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

.poster-wrap.image-missing::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

img.is-missing {
  display: none;
}

.poster-wrap img.is-missing {
  display: none;
}

.hero-poster-card.image-missing {
  min-height: 360px;
  display: grid;
  place-items: center;
}

.hero-poster-card.image-missing::after {
  content: attr(data-title);
  padding: 24px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.hero-slide.image-missing .hero-bg {
  display: none;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.82);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(8px);
}

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

.quality-mark,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.quality-mark {
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 36px;
  padding: 5px 8px;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

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

.movie-meta-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

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

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

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

.tag-row span,
.detail-chip,
.filter-chip {
  color: var(--orange-dark);
  background: #ffedd5;
}

.movie-card.horizontal .movie-link,
.movie-card.list .movie-link {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.movie-card.horizontal .poster-wrap,
.movie-card.list .poster-wrap {
  aspect-ratio: auto;
  min-height: 190px;
}

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

.category-tile {
  border-radius: 20px;
  padding: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-tile span,
.category-tile p {
  color: rgba(255, 255, 255, 0.88);
}

.category-tile p {
  margin: 8px 0 0;
  font-size: 14px;
}

.rank-panel {
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(145deg, #111827, #7f1d1d 70%, #ea580c);
  box-shadow: var(--shadow);
}

.rank-panel h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank-list-item a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #7c2d12;
  background: #ffffff;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-type {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(120deg, var(--orange-dark), var(--red), var(--orange));
  padding: 64px 0;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.filter-bar {
  position: sticky;
  top: 76px;
  z-index: 40;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.filter-form {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(120px, 0.6fr));
  gap: 12px;
}

.filter-form input,
.filter-form select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 11px 13px;
  background: #ffffff;
  outline: none;
}

.result-count {
  margin-top: 10px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.detail-card,
.player-card,
.info-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.32), rgba(2, 6, 23, 0.76)),
    radial-gradient(circle at 50% 40%, rgba(234, 88, 12, 0.32), transparent 38%);
  text-align: center;
}

.play-button {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 50px rgba(220, 38, 38, 0.38);
  cursor: pointer;
  font-size: 30px;
}

.video-overlay strong {
  display: block;
  margin-top: 16px;
  font-size: 22px;
}

.player-status {
  padding: 12px 16px;
  color: var(--gray-600);
  background: #fff7ed;
  font-size: 14px;
}

.detail-card {
  padding: 28px;
}

.detail-title h1 {
  font-size: clamp(32px, 4.4vw, 54px);
}

.detail-title p {
  margin: 12px 0 0;
  color: var(--gray-600);
  font-size: 18px;
}

.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 0;
}

.detail-section {
  margin-top: 30px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

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

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

.side-poster .poster-wrap {
  border-radius: 24px 24px 0 0;
}

.info-card {
  overflow: hidden;
}

.info-list {
  padding: 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: var(--gray-500);
}

.info-list dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.search-empty,
.no-results {
  padding: 42px;
  border-radius: 24px;
  color: var(--gray-600);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.site-footer {
  margin-top: 72px;
  color: #ffffff;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  padding: 46px 0 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  display: block;
  margin: 7px 0;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 28px;
  font-size: 14px;
}

.two-column-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.category-overview-card {
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-overview-card .category-tile {
  border-radius: 0;
  box-shadow: none;
}

.category-overview-card .preview-list {
  padding: 18px;
}

.preview-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

.preview-list a:last-child {
  border-bottom: 0;
}

.preview-list span:last-child {
  color: var(--gray-500);
  font-size: 13px;
}

.about-card {
  border-radius: 24px;
  padding: 32px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.about-card h2 {
  margin-top: 0;
}

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

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

  .hero-inner,
  .detail-layout,
  .two-column-feature,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster-card,
  .side-poster {
    max-width: 420px;
  }

  .side-poster {
    position: static;
  }
}

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

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: rgba(127, 29, 29, 0.96);
    box-shadow: var(--shadow);
  }

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

  .header-search {
    display: none;
  }

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

  .hero-inner {
    min-height: auto;
    padding: 48px 0 82px;
  }

  .hero-poster-card {
    display: none;
  }

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

  .section-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-list-item a {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-type {
    display: none;
  }
}

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

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

  .movie-card.horizontal .movie-link,
  .movie-card.list .movie-link {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .movie-card.horizontal .poster-wrap,
  .movie-card.list .poster-wrap {
    min-height: 160px;
  }

  .detail-card {
    padding: 22px;
  }

  .play-button {
    width: 72px;
    height: 72px;
  }
}
