:root {
  --brand-start: #ea580c;
  --brand-end: #dc2626;
  --brand-soft: #fff7ed;
  --brand-dark: #111827;
  --text-main: #111827;
  --text-muted: #6b7280;
  --line-soft: #e5e7eb;
  --card-bg: #ffffff;
  --shadow-card: 0 10px 25px rgba(17, 24, 39, 0.08);
  --shadow-card-hover: 0 20px 45px rgba(17, 24, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 56%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.22);
}

.header-inner {
  max-width: 1180px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.logo-mark svg {
  width: 21px;
  height: 21px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #ffffff;
  font-size: 15px;
}

.main-nav a {
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.header-search {
  min-width: 260px;
  position: relative;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 9px 46px 9px 17px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.42);
}

.header-search button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ea580c;
  background: transparent;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

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

.mobile-panel a {
  display: block;
  color: #ffffff;
  padding: 10px 0;
}

.mobile-panel form {
  margin-top: 8px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.hero-copy {
  max-width: 680px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #f97316;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero p {
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 30px;
  color: #ffffff;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 23px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #f97316;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(249, 115, 22, 0.32);
}

.btn-primary:hover {
  background: #ea580c;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.section {
  padding: 48px 0;
}

.section-tight {
  padding: 30px 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.more-link {
  color: #ea580c;
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.category-tile {
  min-height: 165px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.category-tile:nth-child(2) {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.category-tile:nth-child(3) {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.category-tile:nth-child(4) {
  background: linear-gradient(135deg, #0f766e, #16a34a);
}

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

.category-tile h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.category-tile p {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.category-tile span {
  font-weight: 800;
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #fed7aa, #f97316 42%, #7f1d1d 100%);
}

.card-grid.compact .poster-frame {
  height: 190px;
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.09);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.play-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f97316;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.36);
}

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

.card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0;
  min-height: 50px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.38;
  transition: color 0.2s ease;
}

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

.card-desc {
  margin: 8px 0 12px;
  min-height: 44px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.58;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.rating {
  color: #d97706;
  font-weight: 900;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

.list-card {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.list-card .poster-frame {
  height: 132px;
}

.list-card-body {
  padding: 18px 18px 18px 0;
}

.list-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.list-card p {
  margin: 0 0 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-hero {
  background: linear-gradient(135deg, #111827, #7f1d1d 55%, #ea580c);
  color: #ffffff;
  padding: 68px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 12px;
  margin: 28px 0;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.rank-num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  height: 76px;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, #fed7aa, #f97316 42%, #7f1d1d 100%);
}

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

.rank-main h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 900;
}

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

.rank-side {
  color: #d97706;
  font-size: 18px;
  font-weight: 900;
}

.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.2);
  transform: scale(1.05);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(127, 29, 29, 0.82), rgba(234, 88, 12, 0.5));
}

.detail-content {
  position: relative;
  z-index: 2;
  min-height: 430px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding-top: 54px;
  padding-bottom: 54px;
}

.detail-poster {
  height: 390px;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 20%, #fed7aa, #f97316 42%, #7f1d1d 100%);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 820px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.meta-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.detail-hero .meta-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

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

.content-panel {
  border-radius: 22px;
  background: #ffffff;
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.content-panel + .content-panel {
  margin-top: 22px;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 25px;
  font-weight: 900;
}

.content-panel p {
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
  margin: 0;
}

.info-table {
  display: grid;
  gap: 12px;
}

.info-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.info-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.info-row span {
  color: #4b5563;
}

.player-wrap {
  overflow: hidden;
  border-radius: 24px;
  background: #030712;
  box-shadow: 0 24px 48px rgba(17, 24, 39, 0.2);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  color: #ffffff;
  background: #f97316;
  font-weight: 900;
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.38);
  z-index: 3;
}

.player-start:hover {
  background: #ea580c;
}

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

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  background: #111827;
}

.source-row button {
  border: 0;
  border-radius: 999px;
  padding: 9px 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.source-row button.is-active,
.source-row button:hover {
  background: #f97316;
}

.sidebar-list {
  display: grid;
  gap: 12px;
}

.sidebar-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.sidebar-card .poster-frame {
  height: 72px;
  border-radius: 12px;
}

.sidebar-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
}

.sidebar-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

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

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

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

.footer-inner p,
.footer-inner li {
  color: #9ca3af;
  line-height: 1.8;
}

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

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

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

.no-match {
  display: none;
  padding: 34px;
  text-align: center;
  color: #6b7280;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

@media (max-width: 1040px) {
  .header-search {
    min-width: 220px;
  }

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

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

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

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

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

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

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

  .hero {
    height: 540px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: min(280px, 86vw);
    height: 390px;
  }

  .rank-item {
    grid-template-columns: 42px 90px minmax(0, 1fr);
  }

  .rank-side {
    grid-column: 3;
    justify-self: start;
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 58px;
  }

  .logo {
    font-size: 18px;
  }

  .hero {
    height: 500px;
  }

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

  .hero-meta {
    gap: 8px;
  }

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

  .poster-frame,
  .card-grid.compact .poster-frame {
    height: 240px;
  }

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

  .list-card .poster-frame {
    height: 132px;
  }

  .list-card-body {
    padding: 12px 12px 12px 0;
  }

  .list-card h3 {
    font-size: 17px;
  }

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

  .content-panel {
    padding: 20px;
  }

  .rank-item {
    grid-template-columns: 38px 84px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-thumb {
    height: 66px;
  }

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