:root {
  --red-950: #450a0a;
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --cream: #fffbeb;
  --paper: #fff7ed;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(120, 53, 15, 0.16);
  --shadow: 0 18px 45px rgba(69, 10, 10, 0.14);
  --radius: 22px;
}

* {
  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(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 46%, #fef2f2 100%);
  line-height: 1.6;
}

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

img,
video {
  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: 50;
  color: #fff;
  background: linear-gradient(90deg, var(--red-900), var(--red-700), var(--amber-800));
  box-shadow: 0 12px 32px rgba(69, 10, 10, 0.24);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--red-900);
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #fcd34d, #ca8a04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
}

.brand-name {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  display: block;
  margin-top: 3px;
  color: #fde68a;
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--amber-300);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-300);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.top-search input,
.mobile-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 10px 0 10px 16px;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: #fde68a;
}

.top-search button,
.mobile-search button {
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
}

.menu-button {
  display: none;
  color: #fff;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-search {
  width: min(640px, 100%);
  margin: 0 auto 12px;
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.mobile-nav {
  width: min(640px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 10px 4px;
  border-bottom: 1px solid rgba(253, 230, 138, 0.3);
  color: #fff7ed;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
  transform: scale(1.03);
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 25%, rgba(245, 158, 11, 0.34), transparent 34%),
    linear-gradient(90deg, rgba(69, 10, 10, 0.92) 0%, rgba(127, 29, 29, 0.78) 42%, rgba(0, 0, 0, 0.38) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 340px;
  gap: 42px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: max-content;
  margin-bottom: 16px;
  padding: 8px 14px;
  color: var(--amber-300);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 680px;
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: clamp(16px, 2vw, 21px);
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--red-900);
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.34);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.btn-soft {
  color: var(--red-900);
  background: #fffbeb;
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(69, 10, 10, 0.82));
}

.hero-tags {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff7ed;
  font-size: 12px;
  font-weight: 700;
  background: rgba(153, 27, 27, 0.74);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-dot,
.hero-arrow {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.active {
  width: 32px;
  background: var(--amber-300);
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

main {
  display: block;
}

.page-block {
  padding: 58px 0 0;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--red-900);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 900;
}

.section-heading p,
.page-intro {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  white-space: nowrap;
  color: var(--red-800);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(69, 10, 10, 0.10);
  border: 1px solid rgba(180, 83, 9, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #f59e0b);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
  filter: brightness(0.78);
}

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-card-body h3 {
  margin: 7px 0 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card-body h3 a:hover {
  color: var(--red-800);
}

.movie-card-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: var(--amber-800);
  font-size: 12px;
  font-weight: 900;
}

.tag-row,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius);
  color: #fff;
  background: radial-gradient(circle at 78% 18%, rgba(252, 211, 77, 0.38), transparent 30%), linear-gradient(135deg, var(--red-900), var(--amber-800));
  box-shadow: var(--shadow);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: #ffedd5;
}

.category-tile span {
  margin-top: 18px;
  color: var(--amber-300);
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(69, 10, 10, 0.08);
}

.rank-number {
  color: var(--red-900);
  font-size: 30px;
  font-weight: 1000;
  text-align: center;
}

.rank-item img {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.rank-item h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 20px;
}

.rank-item p {
  margin: 0;
  color: var(--muted);
}

.rank-score {
  min-width: 72px;
  color: var(--amber-700);
  font-size: 24px;
  font-weight: 1000;
  text-align: right;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.filter-bar input,
.filter-bar select,
.search-panel input {
  min-height: 44px;
  border: 1px solid rgba(180, 83, 9, 0.22);
  outline: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
}

.filter-bar input {
  flex: 1 1 260px;
}

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

.pagination a,
.pagination span {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--red-900);
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
}

.pagination .current {
  color: #fff;
  background: linear-gradient(135deg, var(--red-800), var(--amber-700));
}

.detail-hero {
  color: #fff;
  background: radial-gradient(circle at 84% 10%, rgba(245, 158, 11, 0.34), transparent 32%), linear-gradient(135deg, var(--red-950), var(--red-800) 54%, var(--amber-900));
}

.detail-hero-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: end;
  padding: 54px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.03;
  font-weight: 1000;
}

.detail-copy p {
  margin: 18px 0 0;
  max-width: 780px;
  color: #ffedd5;
  font-size: 18px;
}

.detail-copy .meta-pills {
  margin-top: 20px;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(69, 10, 10, 0.82));
}

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

.play-button {
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--red-900);
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.player-title {
  padding: 18px 22px;
  color: #ffedd5;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.92), rgba(120, 53, 15, 0.88));
}

.content-panel {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(69, 10, 10, 0.08);
}

.content-panel h2 {
  margin: 0 0 12px;
  color: var(--red-900);
  font-size: 26px;
}

.content-panel p {
  margin: 0 0 14px;
}

.breadcrumb {
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.search-panel {
  padding: 28px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-900), var(--amber-800));
  box-shadow: var(--shadow);
}

.search-panel h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.search-box-large {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.search-box-large input {
  flex: 1;
  border: 0;
}

.search-box-large button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--red-900);
  font-weight: 900;
  background: var(--amber-300);
  padding: 0 24px;
}

.notice-empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.site-footer {
  margin-top: 68px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #000000);
}

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

.site-footer h2 {
  width: fit-content;
  margin: 0 0 14px;
  color: var(--amber-500);
  font-size: 20px;
  font-weight: 900;
  border-bottom: 2px solid var(--amber-500);
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

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

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

.footer-bottom {
  padding: 20px 16px;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

@media (max-width: 880px) {
  .main-nav,
  .top-search {
    display: none;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .header-inner {
    min-height: 68px;
  }

  .hero-slider {
    min-height: 680px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 54px 0 84px;
  }

  .hero-poster {
    width: min(300px, 72vw);
    justify-self: center;
  }

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

  .detail-poster {
    width: min(300px, 72vw);
  }

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

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

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

  .brand-subtitle {
    font-size: 11px;
  }

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

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

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

  .movie-card-body p {
    display: none;
  }

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

  .rank-item {
    grid-template-columns: 46px 76px 1fr;
  }

  .rank-score {
    grid-column: 3;
    text-align: left;
    font-size: 18px;
  }

  .rank-item img {
    width: 76px;
  }

  .search-box-large {
    flex-direction: column;
  }

  .search-box-large button {
    min-height: 44px;
  }

  .play-button {
    width: 78px;
    height: 78px;
    font-size: 28px;
  }
}
