* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgb(245, 158, 11) rgb(15, 23, 42);
}

body {
  margin: 0;
  color: rgb(243, 244, 246);
  background: linear-gradient(180deg, rgb(2, 6, 23), rgb(23, 37, 84) 48%, rgb(2, 6, 23));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  height: auto;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: linear-gradient(90deg, rgb(15, 23, 42), rgb(30, 58, 138), rgb(15, 23, 42));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .32);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgb(245, 158, 11);
  box-shadow: 0 0 28px rgba(245, 158, 11, .36);
}

.brand-name {
  font-size: 25px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, rgb(252, 211, 77), rgb(245, 158, 11));
  -webkit-background-clip: text;
  background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color .2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: rgb(251, 191, 36);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.home-search input,
.filter-bar input,
.filter-bar select {
  color: white;
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 999px;
  outline: none;
}

.header-search input {
  width: 160px;
  padding: 8px 14px;
}

.header-search button,
.home-search button,
.filter-bar button,
.primary-btn {
  border: 0;
  color: white;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(245, 158, 11), rgb(217, 119, 6));
  box-shadow: 0 10px 24px rgba(245, 158, 11, .22);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.header-search button {
  padding: 8px 14px;
}

.header-search button:hover,
.home-search button:hover,
.filter-bar button:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 32px rgba(245, 158, 11, .28);
}

.menu-toggle {
  display: none;
  border: 0;
  color: white;
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 8px 11px;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: rgb(2, 6, 23);
}

.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-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(2, 6, 23), rgba(2, 6, 23, .72) 42%, rgba(2, 6, 23, .12));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  max-width: 1280px;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgb(251, 191, 36);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  text-shadow: 0 16px 32px rgba(0, 0, 0, .45);
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 20px;
  color: rgb(229, 231, 235);
  font-size: clamp(16px, 2vw, 22px);
  text-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.hero-meta,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.hero-meta span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  color: rgb(229, 231, 235);
  background: rgba(15, 23, 42, .68);
  border: 1px solid rgba(251, 191, 36, .18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-weight: 800;
}

.ghost-btn {
  border-radius: 999px;
  color: white;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(0, 0, 0, .42);
  transition: background .2s ease, border-color .2s ease;
}

.ghost-btn:hover {
  background: rgba(0, 0, 0, .68);
  border-color: rgba(251, 191, 36, .38);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, .46);
  font-size: 34px;
  line-height: 1;
  transition: background .2s ease;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, .7);
}

.hero-nav.prev {
  left: 20px;
}

.hero-nav.next {
  right: 20px;
}

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

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

.hero-dots button.active {
  width: 34px;
  background: rgb(245, 158, 11);
}

.main-content {
  padding: 48px 0 0;
}

.page-hero-small {
  padding-top: 52px;
}

.page-hero-small h1,
.intro-section h2 {
  margin: 0 0 12px;
  color: white;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}

.page-hero-small > p,
.intro-section p {
  max-width: 860px;
  color: rgb(209, 213, 219);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgb(156, 163, 175);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: rgb(251, 191, 36);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 52px;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, .86), rgba(15, 23, 42, .72));
  box-shadow: 0 22px 50px rgba(0, 0, 0, .24);
}

.home-search {
  display: flex;
  gap: 10px;
}

.home-search input {
  width: min(360px, 42vw);
  padding: 13px 18px;
}

.home-search button {
  padding: 13px 22px;
  border: 0;
}

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

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

.section-heading h2 {
  margin: 0;
  color: white;
  font-size: clamp(24px, 3vw, 34px);
}

.section-heading a,
.section-heading span {
  color: rgb(251, 191, 36);
}

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

.movie-card {
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgb(30, 41, 59);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
  transition: transform .25s ease, box-shadow .25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .35);
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgb(15, 23, 42);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .22), transparent);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: rgb(245, 158, 11);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.86);
  transition: opacity .22s ease, transform .22s ease;
}

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

.year-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 3px 9px;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, .72);
}

.card-body {
  padding: 12px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: white;
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .2s ease;
}

.movie-card:hover strong {
  color: rgb(251, 191, 36);
}

.card-body span {
  display: block;
  overflow: hidden;
  color: rgb(156, 163, 175);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.category-tile,
.category-overview-card a {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgb(30, 41, 59), rgb(15, 23, 42));
  box-shadow: 0 16px 36px rgba(0, 0, 0, .25);
  transition: transform .22s ease, background .22s ease;
}

.category-tile {
  padding: 24px;
}

.category-tile:hover,
.category-overview-card a:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgb(51, 65, 85), rgb(30, 41, 59));
}

.category-tile span,
.category-overview-body h2 {
  display: block;
  color: rgb(251, 191, 36);
  font-size: 22px;
  font-weight: 800;
}

.category-tile strong {
  display: block;
  margin: 6px 0 12px;
  color: white;
}

.category-tile em,
.category-overview-body p {
  color: rgb(156, 163, 175);
  font-style: normal;
  font-size: 14px;
}

.category-overview-card a {
  height: 100%;
}

.mini-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 160px;
  overflow: hidden;
}

.mini-posters img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-body {
  padding: 22px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: end;
  margin: 34px 0 28px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, .7);
  border: 1px solid rgba(148, 163, 184, .18);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: rgb(209, 213, 219);
  font-size: 13px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 12px;
}

.filter-bar button {
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
}

.filter-bar button[data-filter-reset] {
  color: white;
  background: rgb(51, 65, 85);
  box-shadow: none;
}

.filter-empty {
  margin: 0 0 28px;
  padding: 18px;
  color: rgb(251, 191, 36);
  border-radius: 14px;
  background: rgba(245, 158, 11, .12);
}

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

.rank-row {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(30, 41, 59, .78);
  border: 1px solid rgba(148, 163, 184, .12);
  transition: transform .2s ease, background .2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  background: rgba(51, 65, 85, .9);
}

.rank-link {
  display: grid;
  grid-template-columns: 64px 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.rank-num {
  color: rgb(251, 191, 36);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-link img {
  width: 76px;
  height: 104px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-info strong {
  color: white;
  font-size: 18px;
}

.rank-info em {
  color: rgb(251, 191, 36);
  font-style: normal;
  font-size: 13px;
}

.rank-info span {
  display: -webkit-box;
  overflow: hidden;
  color: rgb(156, 163, 175);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-detail {
  padding-top: 30px;
}

.player-card {
  margin-bottom: 30px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15, 23, 42, .78);
  box-shadow: 0 25px 70px rgba(0, 0, 0, .38);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: black;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .1));
  transition: opacity .22s ease, visibility .22s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgb(245, 158, 11);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
  font-size: 34px;
}

.player-shell.playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.movie-title-block {
  padding: 24px 28px 30px;
}

.movie-title-block h1 {
  margin: 0 0 12px;
  color: white;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.1;
}

.movie-title-block p:last-child {
  max-width: 920px;
  margin: 0;
  color: rgb(209, 213, 219);
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 56px;
}

.detail-poster {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 16px;
}

.detail-poster img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34);
}

.primary-btn.full {
  width: 100%;
}

.detail-content {
  display: grid;
  gap: 18px;
}

.text-panel,
.tag-panel {
  padding: 22px;
  border-radius: 18px;
  background: rgba(30, 41, 59, .62);
  border: 1px solid rgba(148, 163, 184, .12);
}

.text-panel.highlight {
  color: rgb(251, 191, 36);
  font-size: 18px;
  font-style: italic;
}

.text-panel h2,
.tag-panel h2 {
  margin: 0 0 12px;
  color: rgb(251, 191, 36);
  font-size: 22px;
}

.text-panel p {
  margin: 0;
  color: rgb(209, 213, 219);
}

.tag-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-panel a {
  padding: 5px 12px;
  border-radius: 999px;
  color: rgb(209, 213, 219);
  background: rgb(51, 65, 85);
}

.tag-panel a:hover {
  color: rgb(251, 191, 36);
}

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

.site-footer {
  margin-top: 64px;
  background: linear-gradient(90deg, rgb(15, 23, 42), rgb(30, 58, 138), rgb(15, 23, 42));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 18px;
}

.site-footer p,
.site-footer li,
.footer-bottom {
  color: rgb(156, 163, 175);
}

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

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.footer-bottom {
  padding: 16px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

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

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

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

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

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

  .header-search {
    display: none;
  }

  .hero-slider {
    height: 76vh;
    min-height: 540px;
  }

  .hero-content {
    bottom: 70px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-meta {
    gap: 8px;
  }

  .hero-nav {
    width: 38px;
    height: 38px;
  }

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

  .home-search {
    width: 100%;
    flex-direction: column;
  }

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

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

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

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

  .rank-link {
    grid-template-columns: 48px 62px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-link img {
    width: 62px;
    height: 88px;
  }

  .detail-poster {
    position: static;
    max-width: 260px;
  }

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