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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  box-shadow: 0 12px 28px rgba(185, 28, 28, 0.25);
}

.nav-wrap {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
}

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

.nav-links a {
  color: #fff7ed;
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search input {
  width: 230px;
  border: 0;
  border-radius: 999px;
  padding: 10px 70px 10px 18px;
  outline: none;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 0 rgba(253, 186, 116, 0);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(253, 186, 116, 0.55);
}

.nav-search button {
  position: absolute;
  right: 6px;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ea580c;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

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

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.64) 42%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-copy {
  max-width: 660px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.hero h1,
.hero h2 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 7vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero p {
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
  max-width: 620px;
}

.hero-meta,
.detail-pills,
.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.hero-meta {
  margin-bottom: 30px;
  color: #f8fafc;
  font-weight: 700;
}

.hero-actions,
.section-head,
.category-head,
.search-row,
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn,
.hero-button,
.detail-play-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  background: #f97316;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.hero-button:hover,
.detail-play-link:hover {
  transform: translateY(-1px) scale(1.02);
  background: #ea580c;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.45);
}

.btn-ghost {
  color: #ea580c;
  background: #fff7ed;
  box-shadow: none;
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.46);
  transform: translateY(-1px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.container {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 54px 24px;
}

.section {
  margin-bottom: 72px;
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  color: #111827;
}

.section-title span {
  width: 10px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f97316, #ef4444);
}

.section-lead,
.page-lead {
  max-width: 820px;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 17px;
}

.grid,
.category-grid,
.rank-grid,
.related-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link,
.card-body,
.poster-wrap {
  display: block;
}

.poster-wrap {
  position: relative;
  height: 255px;
  overflow: hidden;
  background: #1f2937;
}

.poster-wrap img,
.list-cover img,
.category-card img,
.detail-poster img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover img,
.category-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #f97316;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.38);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #ffffff;
}

.movie-card:hover .play-icon,
.list-cover:hover .play-icon,
.rank-item:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-body strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 52px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.42;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: #ea580c;
}

.card-body em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 45px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: #64748b;
  font-style: normal;
  font-size: 14px;
}

.card-meta {
  color: #64748b;
  font-size: 14px;
}

.card-meta span:first-child {
  color: #eab308;
  font-weight: 800;
}

.list-stack {
  display: grid;
  gap: 16px;
}

.movie-card-list {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 142px;
}

.list-cover {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.list-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.list-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.list-body h3:hover {
  color: #ea580c;
}

.list-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0 0 12px;
  color: #64748b;
  overflow: hidden;
}

.panel {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.18);
}

.panel-blue {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.13);
}

.panel-purple {
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.13);
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.82));
}

.category-card img {
  position: absolute;
  inset: 0;
}

.category-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 146px;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
}

.category-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
  color: #f1f5f9;
  font-size: 14px;
}

.page-hero {
  background: linear-gradient(135deg, #111827, #7c2d12 55%, #dc2626);
  color: #ffffff;
}

.page-hero .container {
  padding-top: 70px;
  padding-bottom: 70px;
}

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

.breadcrumbs a:hover {
  color: #ffffff;
}

.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.search-row {
  align-items: stretch;
}

.search-row input,
.search-row select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 13px 15px;
  color: #111827;
  background: #fff7ed;
  outline: none;
}

.search-row select {
  max-width: 240px;
}

.search-row input:focus,
.search-row select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2);
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 18px;
  color: #64748b;
  background: #ffffff;
  text-align: center;
}

.empty-state.show {
  display: block;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.rank-cover {
  position: relative;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: #111827;
}

.rank-no {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.rank-body h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

.rank-body h3:hover {
  color: #ea580c;
}

.rank-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0 0 12px;
  color: #64748b;
  overflow: hidden;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.32;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.05);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(15, 23, 42, 0.78), rgba(124, 45, 18, 0.58));
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 58px 24px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  height: 430px;
  border-radius: 26px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
}

.detail-info .lead {
  max-width: 820px;
  margin: 18px 0 24px;
  color: #e5e7eb;
  font-size: 19px;
}

.detail-pills {
  margin-bottom: 24px;
}

.detail-pills span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
  font-size: 13px;
}

.player-section,
.article-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

.player-section {
  padding: 26px;
}

.player-section h2,
.article-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.player-shell {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.76));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-badge {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.42);
}

.play-badge::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 23px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #ffffff;
}

.player-cover strong {
  max-width: min(680px, 90%);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.15;
}

.player-cover small {
  color: #fed7aa;
  font-size: 16px;
  font-weight: 800;
}

.article-card {
  margin-top: 28px;
  padding: 30px;
}

.article-card p {
  color: #374151;
  font-size: 17px;
  margin: 0 0 22px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.tag-list span {
  color: #9a3412;
  background: #ffedd5;
}

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

.site-footer {
  margin-top: 30px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 52px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 14px;
}

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

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

.site-footer a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 20px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

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

@media (max-width: 860px) {
  .nav-wrap {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 4px;
  }

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

  .nav-links a {
    width: 100%;
    padding: 11px 0;
  }

  .nav-search {
    width: 100%;
    order: 4;
  }

  .nav-search input {
    width: 100%;
  }

  .hero {
    height: 600px;
  }

  .hero-slide::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.74));
  }

  .hero-control {
    display: none;
  }

  .hero-actions,
  .section-head,
  .category-head,
  .search-row,
  .detail-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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

  .detail-poster {
    max-width: 320px;
    height: 450px;
  }

  .search-row select {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 38px 16px;
  }

  .hero {
    height: 620px;
  }

  .hero-inner {
    padding: 0 18px;
  }

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

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

  .poster-wrap {
    height: 300px;
  }

  .movie-card-list,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .list-cover,
  .rank-cover {
    height: 220px;
  }

  .panel,
  .player-section,
  .article-card {
    padding: 20px;
    border-radius: 22px;
  }

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