:root {
  --bg: #fff7ed;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fef3c7;
  --line: #fee2e2;
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #ea580c;
  --green: #14532d;
  --shadow: 0 24px 70px rgba(127, 29, 29, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(254, 226, 226, 0.9);
  backdrop-filter: blur(18px);
}

.main-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--red-dark);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.28);
}

.brand-text {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  color: #374151;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
  background: #fff1f2;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: #fee2e2;
  color: var(--red-dark);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 22px;
}

main {
  min-height: 70vh;
}

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

.hero-slide {
  display: none;
  min-height: 720px;
  position: relative;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.08);
  filter: blur(1px) saturate(1.15);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(249, 115, 22, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(23, 4, 4, 0.96), rgba(127, 29, 29, 0.68) 52%, rgba(20, 83, 45, 0.58));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 56px;
  padding: 90px 0 76px;
}

.hero-kicker,
.section-heading span,
.inner-hero span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 16px;
  padding: 7px 14px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-text h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.hero-text p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #ffe4e6;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.35);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 32px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

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

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

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

.quick-panel,
.section-block,
.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-panel {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-top: -54px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #fee2e2;
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--red-dark);
  font-weight: 900;
}

.quick-search input,
.list-tools input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #fecaca;
  border-radius: 18px;
  outline: none;
  color: #111827;
  background: #fff;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.quick-search input:focus,
.list-tools input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-links a,
.list-tools a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: var(--red-dark);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-weight: 800;
}

.section-block {
  padding: 76px 0;
}

.section-heading {
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading span {
  margin-left: auto;
  margin-right: auto;
  color: var(--red);
  background: #fff1f2;
  border-color: #fecdd3;
}

.section-heading h2,
.inner-hero h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p,
.inner-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-more {
  margin-top: 18px;
  color: var(--red);
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

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

.movie-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid rgba(254, 226, 226, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(127, 29, 29, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(127, 29, 29, 0.16);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

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

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

.play-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(220, 38, 38, 0.92);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.34);
}

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.movie-info {
  padding: 14px;
}

.movie-title {
  display: block;
  overflow: hidden;
  color: #111827;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.movie-meta {
  margin: 5px 0 8px;
  color: #9ca3af;
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-info p {
  min-height: 46px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row span {
  color: var(--red);
  background: #fff1f2;
}

.compact-card .movie-info p {
  display: none;
}

.category-section {
  padding: 86px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.45), transparent 28%),
    linear-gradient(135deg, #7f1d1d, #dc2626 52%, #14532d);
}

.category-section .category-grid,
.category-section .section-heading {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.light-heading h2,
.light-heading p {
  color: #fff;
}

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

.category-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 156px;
  padding: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, background 0.22s ease;
}

.overview-grid .category-card {
  color: var(--ink);
  background: #fff;
  border-color: #fee2e2;
  box-shadow: var(--shadow);
}

.category-card:hover {
  transform: translateY(-5px) scale(1.015);
  background: rgba(255, 255, 255, 0.22);
}

.overview-grid .category-card:hover {
  background: #fff7ed;
}

.category-thumb {
  width: 92px;
  height: 122px;
  overflow: hidden;
  border-radius: 18px;
  background: #fee2e2;
}

.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h3 {
  margin: 0 0 7px;
  font-size: 1.1rem;
}

.category-card p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.55;
}

.overview-grid .category-card p {
  color: var(--muted);
}

.category-card span {
  color: #fed7aa;
  font-weight: 900;
}

.overview-grid .category-card span {
  color: var(--red);
}

.inner-hero {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 72px 16px 60px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 70% 25%, rgba(249, 115, 22, 0.32), transparent 30%),
    linear-gradient(135deg, #450a0a, #991b1b 52%, #14532d);
}

.inner-hero h1,
.inner-hero p {
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  color: #ffe4e6;
  font-weight: 700;
}

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

.breadcrumb em {
  color: rgba(255, 255, 255, 0.5);
  font-style: normal;
}

.list-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.detail-wrap {
  padding: 34px 0 80px;
}

.detail-breadcrumb {
  justify-content: flex-start;
  margin: 0 0 20px;
  color: #6b7280;
}

.detail-breadcrumb a:hover {
  color: var(--red);
}

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

.detail-main,
.detail-side,
.player-card,
.detail-content,
.poster-card,
.side-panel {
  min-width: 0;
}

.player-card,
.detail-content,
.poster-card,
.side-panel {
  background: #fff;
  border: 1px solid #fee2e2;
  border-radius: 26px;
  box-shadow: 0 18px 52px rgba(127, 29, 29, 0.1);
}

.player-card {
  overflow: hidden;
  margin-bottom: 22px;
}

.player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
  cursor: pointer;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.player-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 50%;
  box-shadow: 0 16px 42px rgba(220, 38, 38, 0.38);
  font-size: 34px;
}

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

.detail-content {
  padding: 30px;
}

.detail-content h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.detail-content h2,
.side-panel h2 {
  margin: 28px 0 12px;
  color: #111827;
  font-size: 1.35rem;
}

.detail-content p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 1.02rem;
}

.lead-text {
  color: #991b1b !important;
  font-weight: 800;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 7px 11px;
  color: #7f1d1d;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  font-weight: 800;
}

.detail-tags {
  margin: 18px 0 4px;
}

.poster-card {
  overflow: hidden;
  padding: 16px;
  margin-bottom: 22px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
}

.full-btn {
  width: 100%;
  margin-top: 16px;
}

.side-panel {
  padding: 20px;
}

.side-panel h2 {
  margin-top: 0;
}

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

.side-related .movie-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  box-shadow: none;
}

.side-related .movie-cover {
  border-radius: 16px;
}

.side-related .movie-info {
  padding: 4px 0;
}

.site-footer {
  color: #d1fae5;
  background: linear-gradient(135deg, #052e16, #14532d 65%, #7f1d1d);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 30px;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 10px;
  color: #fecaca;
  font-size: 1.35rem;
  font-weight: 900;
}

.footer-brand p {
  max-width: 560px;
  margin: 0;
  color: #bbf7d0;
}

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

.footer-links a {
  padding: 8px 12px;
  color: #dcfce7;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.footer-links a:hover {
  color: #fecaca;
  background: rgba(255, 255, 255, 0.14);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 26px;
  color: #86efac;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

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

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

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

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid #fee2e2;
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

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

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 62px;
  }

  .hero-poster {
    display: none;
  }

  .quick-panel,
  .list-tools,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .main-nav,
  .quick-panel,
  .section-block,
  .detail-wrap,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 1.02rem;
  }

  .hero-slider,
  .hero-slide,
  .hero-content {
    min-height: 640px;
  }

  .hero-text h1 {
    font-size: 2.7rem;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }

  .hero-actions,
  .quick-links {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .quick-links a,
  .list-tools a {
    width: 100%;
  }

  .section-block {
    padding: 52px 0;
  }

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

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

  .category-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

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

  .detail-content,
  .side-panel {
    padding: 20px;
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .side-related .movie-card {
    grid-template-columns: 80px minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }
}
