* {
  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: #111827;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #f3f4f6 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #111827 0%, #1f2937 50%, #111827 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

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

.brand {
  font-size: 22px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
}

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

.nav-link {
  color: #d1d5db;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fb923c;
}

.mobile-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

.quick-cats {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.62);
}

.quick-cats-inner {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.quick-cats-inner::-webkit-scrollbar {
  display: none;
}

.quick-cats a {
  flex: 0 0 auto;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.22s ease;
}

.quick-cats a:hover {
  color: #fdba74;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #000000;
}

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

.hero-slide.active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.48));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.hero-copy {
  width: min(760px, 100%);
  padding: 80px 0;
  animation: fadeInUp 0.7s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.24);
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 42px);
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.28);
}

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

.btn-secondary {
  color: #ffffff;
  background: #1f2937;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2);
}

.btn-light {
  color: #111827;
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(255, 255, 255, 0.14);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 42px;
  bottom: 42px;
  display: flex;
  gap: 10px;
}

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

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

.main-section {
  padding: 58px 0;
}

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

.section-head h2,
.page-title h1,
.detail-card h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.section-head p,
.page-title p {
  margin: 10px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

.section-head a {
  flex: 0 0 auto;
  color: #ea580c;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 26px;
  border-radius: 22px;
  color: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 46px rgba(15, 23, 42, 0.28);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.color-red { background: linear-gradient(135deg, #ef4444, #991b1b); }
.color-orange { background: linear-gradient(135deg, #f97316, #b45309); }
.color-green { background: linear-gradient(135deg, #22c55e, #166534); }
.color-blue { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.color-purple { background: linear-gradient(135deg, #8b5cf6, #4c1d95); }
.color-rose { background: linear-gradient(135deg, #f43f5e, #881337); }
.color-pink { background: linear-gradient(135deg, #ec4899, #9d174d); }
.color-slate { background: linear-gradient(135deg, #475569, #0f172a); }
.color-cyan { background: linear-gradient(135deg, #06b6d4, #155e75); }
.color-amber { background: linear-gradient(135deg, #f59e0b, #92400e); }
.color-stone { background: linear-gradient(135deg, #78716c, #292524); }
.color-indigo { background: linear-gradient(135deg, #6366f1, #312e81); }

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 9px 25px rgba(15, 23, 42, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.82));
  opacity: 0.76;
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-shade {
  opacity: 0.92;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.9);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

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

.movie-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-row span:first-child {
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ea580c;
}

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

.movie-card h3 a:hover {
  color: #ea580c;
}

.movie-card p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 12px;
}

.page-hero {
  padding: 74px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 0%, rgba(249, 115, 22, 0.32), transparent 34%),
    linear-gradient(135deg, #111827 0%, #1f2937 52%, #0f172a 100%);
}

.page-title {
  width: min(760px, 100%);
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.22);
}

.result-empty {
  display: none;
  padding: 48px 24px;
  border-radius: 20px;
  text-align: center;
  color: #6b7280;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.detail-player-wrap {
  padding: 32px 0;
  background: #000000;
}

.player-widget {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.player-widget video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.68));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-widget.playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.player-button {
  pointer-events: auto;
  min-width: 150px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.35);
  cursor: pointer;
  font-weight: 900;
}

.player-title {
  max-width: 86%;
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #ea580c;
  font-weight: 800;
}

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

.detail-card,
.side-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 9px 25px rgba(15, 23, 42, 0.08);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 800;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-card p {
  margin: 0 0 24px;
  color: #374151;
  line-height: 1.9;
}

.side-card {
  overflow: hidden;
  margin-bottom: 20px;
}

.side-card-inner {
  padding: 20px;
}

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

.info-list {
  display: grid;
  gap: 10px;
  color: #4b5563;
  font-size: 14px;
}

.info-list strong {
  color: #111827;
}

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

.related-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 64px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  background: #111827;
}

.related-item h3 {
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.related-item p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

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

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

@media (max-width: 760px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 14px 24px;
    background: #111827;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 0;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-dots {
    right: 24px;
    bottom: 24px;
  }

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

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

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

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

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

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

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

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