*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0f172a;
  color: #e5e7eb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #ffffff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

.desktop-nav a,
.mobile-panel a {
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #ffffff;
  background: #334155;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.top-search input,
.mobile-panel input,
.search-band input,
.page-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid #475569;
  background: #1e293b;
  color: #ffffff;
  outline: none;
  border-radius: 12px;
  padding: 10px 14px;
  transition: 0.2s ease;
}

.top-search input:focus,
.mobile-panel input:focus,
.search-band input:focus,
.page-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

.top-search button,
.mobile-panel button,
.search-band button,
.page-search button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  cursor: pointer;
  font-weight: 700;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #cbd5e1;
  background: #1e293b;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.category-ribbon {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.category-ribbon a {
  flex: 0 0 auto;
  color: #cbd5e1;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  transition: 0.2s ease;
}

.category-ribbon a:hover {
  color: #ffffff;
  background: #ea580c;
  border-color: #ea580c;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #334155;
  padding: 14px 24px 20px;
  background: #111827;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
}

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

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg,
.hero-bg img,
.hero-mask {
  position: absolute;
  inset: 0;
}

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

.hero-mask {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: #ffffff;
  background: #f97316;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.25);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 10px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-movie-title {
  display: block;
  color: #fed7aa;
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 12px;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead-text {
  color: #d1d5db;
  font-size: 18px;
  max-width: 720px;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 24px 0 18px;
}

.hero-meta span,
.detail-meta span {
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.9);
  border: 1px solid rgba(100, 116, 139, 0.5);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 22px;
  font-weight: 800;
  transition: 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.top-search button:hover,
.search-band button:hover,
.page-search button:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
}

.ghost-button {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.ghost-button:hover {
  background: #334155;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: 0.2s ease;
}

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

.search-band {
  max-width: 1180px;
  margin: -46px auto 40px;
  position: relative;
  z-index: 8;
  padding: 24px;
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.94);
  border: 1px solid rgba(71, 85, 105, 0.88);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
}

.search-band h2 {
  color: #ffffff;
  margin: 0 0 6px;
  font-size: 24px;
}

.search-band p {
  margin: 0;
  color: #94a3b8;
}

.search-band form,
.page-search {
  display: flex;
  gap: 10px;
}

.search-band input,
.page-search input {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  color: #0f172a;
  border-color: transparent;
}

.content-shell,
.detail-shell,
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-shell {
  padding-top: 42px;
  padding-bottom: 64px;
}

.section-block {
  margin: 0 0 64px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-title div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h2 {
  color: #ffffff;
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.section-title a {
  color: #fb923c;
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #1e293b;
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #334155, #111827);
  overflow: hidden;
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-badge,
.poster-year {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
}

.poster-badge {
  left: 10px;
}

.poster-year {
  right: 10px;
  background: rgba(234, 88, 12, 0.88);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.3;
}

.card-body h3 a:hover {
  color: #fb923c;
}

.card-meta {
  margin: 0 0 10px;
  color: #94a3b8;
  font-size: 13px;
}

.card-desc {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 14px;
}

.movie-card.large {
  display: grid;
  grid-template-columns: 38% 1fr;
}

.movie-card.large .poster-link {
  aspect-ratio: auto;
  min-height: 260px;
}

.movie-card.compact .card-desc,
.movie-card.compact .tag-row {
  display: none;
}

.panel-block {
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 1px solid rgba(71, 85, 105, 0.72);
}

.glow-block {
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(124, 45, 18, 0.28), rgba(127, 29, 29, 0.22));
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 48px 64px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 12px;
  border-radius: 16px;
  background: #1e293b;
  border: 1px solid #334155;
  transition: 0.2s ease;
}

.rank-item a:hover {
  border-color: #f97316;
  transform: translateX(4px);
}

.rank-num {
  color: #fb923c;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  background: #334155;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: #ffffff;
  margin-bottom: 5px;
}

.rank-info em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

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

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

.category-tile,
.overview-tile {
  display: block;
  padding: 20px;
  border-radius: 18px;
  background: #1e293b;
  border: 1px solid #334155;
  transition: 0.2s ease;
}

.category-tile:hover,
.overview-tile:hover {
  border-color: #f97316;
  transform: translateY(-4px);
}

.category-tile span,
.overview-tile h2 {
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
}

.category-tile p,
.overview-tile p {
  color: #94a3b8;
  margin: 8px 0 12px;
}

.category-tile div,
.tile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tile div a,
.tile-links a {
  color: #fed7aa;
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(249, 115, 22, 0.12);
}

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

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.page-hero {
  margin-bottom: 30px;
  padding: 44px;
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.26), transparent 34%), linear-gradient(135deg, #1e293b, #0f172a 64%, #111827);
  border: 1px solid rgba(71, 85, 105, 0.72);
}

.small-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 190px;
  gap: 12px;
  margin: 0 0 26px;
  padding: 18px;
  border-radius: 20px;
  background: #1e293b;
  border: 1px solid #334155;
}

.detail-main {
  background: #0f172a;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 42px 0 56px;
  background: #020617;
}

.detail-backdrop,
.detail-backdrop img,
.detail-backdrop div {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.15);
  transform: scale(1.04);
  opacity: 0.45;
}

.detail-backdrop div {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78));
}

.detail-shell {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
}

.breadcrumb a {
  color: #fb923c;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #1e293b;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

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

.detail-content {
  padding-top: 34px;
  padding-bottom: 64px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  border: 1px solid #1e293b;
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: 0.2s ease;
}

.video-start span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 18px 55px rgba(249, 115, 22, 0.35);
  font-size: 30px;
}

.video-start strong {
  font-size: 20px;
}

.video-shell.is-playing .video-start {
  opacity: 0;
  pointer-events: none;
}

.video-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.video-state.is-visible {
  opacity: 1;
}

.article-card {
  margin-top: 28px;
  padding: 28px;
  border-radius: 22px;
  background: #1e293b;
  border: 1px solid #334155;
}

.article-card h2 {
  color: #ffffff;
  margin: 0 0 14px;
  font-size: 26px;
}

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

.site-footer {
  background: linear-gradient(180deg, #0f172a, #020617);
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h2 {
  color: #ffffff;
  margin: 0 0 12px;
  font-size: 18px;
}

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

.footer-grid li {
  margin-bottom: 8px;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 20px 24px;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 14px;
}

.search-card {
  display: grid;
  grid-template-columns: 110px 1fr;
}

.search-card .poster-link {
  aspect-ratio: 2 / 3;
}

.search-card .card-body {
  padding: 18px;
}

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

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

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

  .split-layout,
  .search-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .desktop-nav,
  .top-search,
  .category-ribbon {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-shell {
    padding: 0 16px;
  }

  .hero-carousel {
    height: 620px;
  }

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

  .hero-mask {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.96));
  }

  .hero-arrow {
    display: none;
  }

  .search-band {
    margin: -34px 16px 34px;
    padding: 20px;
  }

  .search-band form,
  .page-search,
  .mobile-panel form {
    flex-direction: column;
  }

  .content-shell,
  .detail-shell,
  .footer-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .large-grid,
  .compact-grid,
  .category-movie-grid,
  .overview-grid,
  .category-grid,
  .full-rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .movie-card.large {
    display: block;
  }

  .movie-card.large .poster-link {
    min-height: 0;
    aspect-ratio: 2 / 3;
  }

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

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

  .detail-poster {
    max-width: 250px;
  }

  .detail-copy h1 {
    font-size: 40px;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 18px;
  }

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

  .hero-copy p,
  .page-hero p,
  .detail-copy .lead-text {
    font-size: 16px;
  }

  .movie-grid,
  .large-grid,
  .compact-grid,
  .category-movie-grid,
  .overview-grid,
  .category-grid,
  .full-rank-list {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 28px;
  }

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