* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0f172a;
  color: #e5e7eb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.86);
  border-bottom: 1px solid rgba(30, 41, 59, 0.86);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #ffffff;
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.34);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 24px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-text em {
  margin-top: 3px;
  font-size: 12px;
  font-style: normal;
  color: rgba(34, 211, 238, 0.82);
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 180ms ease;
}

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
}

.header-search input,
.mobile-panel input,
.hero-search input,
.page-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid rgba(51, 65, 85, 0.92);
  outline: 0;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.62);
  color: #ffffff;
  padding: 12px 112px 12px 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.hero-search input:focus,
.page-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
  background: rgba(15, 23, 42, 0.82);
}

.header-search button,
.mobile-panel button,
.hero-search button,
.page-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  color: #ffffff;
  cursor: pointer;
  background: #06b6d4;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.86);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(15, 23, 42, 0.98);
  padding: 18px 20px 24px;
}

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

.mobile-panel form {
  position: relative;
  margin-bottom: 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  color: #cbd5e1;
  font-weight: 600;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease, visibility 600ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7000ms linear;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shade.vertical {
  background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.74) 42%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-shade.horizontal {
  background: linear-gradient(to right, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.64));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding-bottom: 84px;
}

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

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags strong,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 6px 12px;
  background: #06b6d4;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #dbeafe;
  font-size: 13px;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #ffffff;
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: #d1d5db;
  font-size: clamp(18px, 2vw, 24px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn.primary {
  background: #06b6d4;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: #22d3ee;
}

.btn.ghost {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(12px);
}

.btn.ghost:hover {
  border-color: #22d3ee;
  color: #22d3ee;
}

.btn.text {
  color: #67e8f9;
}

.hero-search {
  position: relative;
  width: min(520px, 100%);
  margin-top: 26px;
}

.hero-dots {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

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

.page-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-top {
  padding-top: 112px;
}

.section {
  padding: 56px 0;
}

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

.section-head h2,
.page-hero h1,
.movie-info-panel h1 {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-kicker.orange {
  background: #f97316;
}

.section-kicker.purple {
  background: #8b5cf6;
}

.section-link {
  color: #22d3ee;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.84);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.46);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.52);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.38), 0 0 0 1px rgba(34, 211, 238, 0.08);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #020617;
}

.compact .poster-wrap {
  aspect-ratio: 16 / 11;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
  filter: brightness(0.72);
}

.year-badge,
.type-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.year-badge {
  left: 12px;
}

.type-badge {
  right: 12px;
}

.play-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 220ms ease;
}

.play-hover i,
.player-button i {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #ffffff;
}

.play-hover::before {
  content: "";
  width: 68px;
  height: 68px;
  border-radius: 999px;
  position: absolute;
  background: rgba(6, 182, 212, 0.9);
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.42);
}

.play-hover i {
  position: relative;
  z-index: 1;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.28;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 16px;
  overflow: hidden;
  color: #94a3b8;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.rank-meta,
.info-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 13px;
}

.card-meta a,
.rank-meta a,
.info-line a {
  color: #22d3ee;
  font-weight: 700;
}

.highlight-section,
.filter-panel,
.page-hero,
.panel {
  border: 1px solid rgba(51, 65, 85, 0.72);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.64), rgba(15, 23, 42, 0.72));
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.22);
}

.highlight-section {
  padding: 38px;
}

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

.category-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(51, 65, 85, 0.84);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.52);
  transition: transform 220ms ease, border-color 220ms ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.5);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  min-height: 96px;
  background: #020617;
}

.category-covers img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.category-card strong {
  padding: 18px 18px 0;
  color: #ffffff;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  padding: 10px 18px 18px;
  color: #94a3b8;
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
  margin: 24px 0 18px;
  padding: 28px;
}

.filter-panel h2 {
  margin: 10px 0 0;
  color: #ffffff;
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  padding-right: 18px;
  border-radius: 14px;
}

.page-hero {
  padding: 56px;
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -140px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.18);
  filter: blur(12px);
}

.page-hero p {
  position: relative;
  max-width: 760px;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

.page-search {
  position: relative;
  width: min(560px, 100%);
  margin-top: 28px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 22px;
  padding: 14px;
  background: rgba(30, 41, 59, 0.48);
  transition: transform 180ms ease, border-color 180ms ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.48);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  background: #020617;
}

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

.rank-cover span {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #06b6d4;
  color: #ffffff;
  font-weight: 900;
}

.rank-item h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 20px;
}

.rank-item h3 a:hover {
  color: #22d3ee;
}

.rank-item p {
  margin: 0 0 12px;
  color: #94a3b8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 112px;
  margin-bottom: 24px;
  color: #94a3b8;
}

.breadcrumb a {
  color: #22d3ee;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.82fr);
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 22px 70px rgba(2, 6, 23, 0.48);
}

.player-panel video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.32));
}

.player-overlay.hidden {
  display: none;
}

.player-button {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 0 48px rgba(6, 182, 212, 0.48);
  transition: transform 180ms ease, background 180ms ease;
}

.player-overlay:hover .player-button {
  transform: scale(1.08);
  background: #22d3ee;
}

.player-overlay strong {
  max-width: min(80%, 620px);
  text-align: center;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.2;
}

.panel {
  padding: 28px;
}

.panel h1,
.panel h2,
.panel h3 {
  color: #ffffff;
}

.panel h2 {
  margin-top: 0;
}

.panel p {
  color: #cbd5e1;
  font-size: 16px;
}

.movie-info-panel section {
  border-top: 1px solid rgba(51, 65, 85, 0.86);
  margin-top: 24px;
  padding-top: 22px;
}

.info-line {
  margin: 18px 0;
  font-size: 15px;
}

.detail-side {
  min-width: 0;
}

.sticky-panel {
  position: sticky;
  top: 100px;
}

.side-poster {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 22px;
  background: #020617;
}

dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 14px;
  margin: 0;
}

dt {
  color: #94a3b8;
}

dd {
  margin: 0;
  color: #ffffff;
}

dd a {
  color: #22d3ee;
}

.related-section {
  padding-top: 60px;
}

.no-results {
  grid-column: 1 / -1;
  border: 1px solid rgba(51, 65, 85, 0.84);
  border-radius: 24px;
  padding: 44px;
  text-align: center;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.42);
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(30, 41, 59, 0.86);
  background: rgba(2, 6, 23, 0.45);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p,
.site-footer a {
  color: #94a3b8;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #22d3ee;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  border-top: 1px solid rgba(30, 41, 59, 0.86);
  color: #64748b;
  font-size: 14px;
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

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

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

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

@media (max-width: 820px) {
  .hero {
    min-height: 680px;
  }

  .hero-inner {
    align-items: flex-end;
    padding-bottom: 88px;
  }

  .hero-dots {
    left: 20px;
    right: auto;
  }

  .section-head,
  .rank-grid,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-grid {
    display: grid;
  }

  .detail-grid {
    display: grid;
  }

  .sticky-panel {
    position: static;
  }

  .page-hero,
  .highlight-section,
  .filter-panel,
  .panel {
    padding: 24px;
    border-radius: 22px;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    min-height: 68px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

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

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

  .hero-actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .movie-grid,
  .catalog-grid,
  .related-grid,
  .category-strip,
  .category-overview,
  .filter-controls {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 98px 1fr;
    gap: 12px;
  }

  .card-body h3,
  .rank-item h3 {
    font-size: 18px;
  }

  .breadcrumb {
    padding-top: 94px;
  }
}
