:root {
  --rose: #e11d48;
  --rose-dark: #be123c;
  --orange: #f97316;
  --amber: #f59e0b;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: rgba(31, 41, 55, 0.1);
  --shadow: 0 18px 45px rgba(127, 29, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px rgba(127, 29, 29, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.3);
}

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

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

.desktop-nav a {
  padding: 9px 13px;
  color: #374151;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.22s ease;
}

.desktop-nav a:hover {
  color: var(--rose);
  background: rgba(225, 29, 72, 0.08);
}

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px 10px 16px;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search button {
  height: 100%;
  padding: 10px 15px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 14px;
  background: rgba(225, 29, 72, 0.09);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 4px;
  background: var(--rose);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 800;
}

.mobile-panel a:hover {
  background: rgba(225, 29, 72, 0.08);
  color: var(--rose);
}

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

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #111827;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5.5s ease;
}

.hero-slide.is-active img {
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(249, 115, 22, 0.42), transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  color: var(--rose);
  background: rgba(225, 29, 72, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.hero p {
  max-width: 690px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.4vw, 25px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.tag-row span {
  background: rgba(225, 29, 72, 0.08);
  color: var(--rose);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.24s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 16px 34px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px rgba(225, 29, 72, 0.42);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.24s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.quick-panel {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  margin: -58px auto 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.quick-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-card h2 {
  margin: 10px 0 16px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.big-search {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.18);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.big-search input {
  width: 100%;
  min-width: 0;
  padding: 15px 18px;
  border: 0;
  outline: 0;
  background: transparent;
}

.big-search button {
  padding: 14px 24px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  cursor: pointer;
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--rose);
  font-weight: 900;
}

.section {
  padding: 72px 0;
}

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

.section-head h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-head p {
  max-width: 620px;
  margin: 10px auto 0;
  color: var(--muted);
}

.center-head {
  justify-content: center;
  text-align: center;
}

.center-head .eyebrow {
  margin: 0 auto;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(127, 29, 29, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(127, 29, 29, 0.16);
}

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

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
}

.card-label,
.rank-badge,
.card-play {
  position: absolute;
  z-index: 2;
}

.card-label {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
  font-weight: 950;
}

.card-play {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: scale(0.92);
  transition: 0.24s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: scale(1);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.card-body h3 a:hover {
  color: var(--rose);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 800;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

.category-band {
  padding: 76px 0;
  background: linear-gradient(135deg, #fff1f2, #fffbeb 55%, #fff7ed);
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 22px;
  color: #fff;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 20px 45px rgba(127, 29, 29, 0.14);
}

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

.category-tile:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 86px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(127, 29, 29, 0.08);
  transition: 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(127, 29, 29, 0.14);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  font-weight: 950;
}

.rank-item img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-copy strong,
.rank-copy small {
  display: block;
}

.rank-copy strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.rank-copy small {
  color: var(--muted);
  font-size: 12px;
}

.rank-item em {
  color: var(--rose);
  font-style: normal;
  font-weight: 950;
}

.page-hero {
  padding: 92px 0 72px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(249, 115, 22, 0.5), transparent 34%),
    linear-gradient(135deg, #111827, #7f1d1d 62%, #f97316);
}

.slim-hero {
  padding-top: 78px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 16px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

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

.page-hero .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

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

.breadcrumb a:hover {
  color: #fff;
}

.inline-search {
  max-width: 720px;
  margin-top: 28px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-row a {
  padding: 8px 14px;
  color: var(--rose);
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.08);
  font-weight: 900;
}

.filter-row a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--orange));
}

.detail-hero-section {
  padding: 56px 0 66px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 15%, rgba(249, 115, 22, 0.48), transparent 35%),
    linear-gradient(135deg, #111827, #4c0519 55%, #9a3412);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.watch-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.watch-player video,
.player-start,
.player-start img,
.player-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.watch-player video {
  z-index: 1;
  object-fit: cover;
}

.player-start {
  z-index: 3;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.player-start img {
  object-fit: cover;
}

.player-gradient {
  background:
    radial-gradient(circle at 50% 50%, rgba(225, 29, 72, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
}

.play-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--orange));
  box-shadow: 0 20px 45px rgba(225, 29, 72, 0.42);
  font-size: 32px;
  transform: translate(-50%, -50%);
}

.watch-player.is-playing .player-start {
  display: none;
}

.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.16);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-stats span {
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.detail-stats strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 30px;
  align-items: start;
}

.detail-article,
.related-panel {
  padding: 26px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-article h2 {
  margin: 0 0 12px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

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

.detail-article p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.movie-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.movie-info-list div {
  padding: 13px;
  border-radius: 18px;
  background: #fff7ed;
}

.movie-info-list dt {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 900;
}

.movie-info-list dd {
  margin: 3px 0 0;
  font-weight: 900;
}

.compact-head {
  align-items: center;
  margin-bottom: 18px;
}

.compact-head h2 {
  font-size: 28px;
}

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

.site-footer {
  padding: 44px 0;
  color: #fff;
  background: #111827;
}

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

.footer-brand {
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

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

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

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: 580px;
  }

  .hero-content {
    padding-top: 34px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-panel {
    grid-template-columns: 1fr;
    margin-top: -34px;
  }

  .section-head,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

  .rank-item {
    grid-template-columns: 40px 74px 1fr;
  }

  .rank-item em {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    height: 530px;
  }

  .hero h1 {
    font-size: 40px;
  }

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

  .hero-actions,
  .big-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .big-search button {
    width: 100%;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .rank-list,
  .rank-board,
  .movie-info-list,
  .detail-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .page-hero,
  .detail-hero-section {
    padding: 46px 0;
  }

  .detail-article,
  .related-panel,
  .quick-card {
    padding: 20px;
    border-radius: 22px;
  }
}
