body {
  margin: 0;
  background: #0a0e27;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 14, 39, 0.95);
  border-bottom: 1px solid rgba(42, 56, 87, 0.35);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a90e2, #38bdf8);
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.38);
}

.brand-icon svg {
  width: 21px;
  height: 21px;
  fill: #fff;
}

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

.desktop-nav a,
.mobile-panel a {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: #4a90e2;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 300px;
}

.header-search input,
.mobile-panel input,
.quick-search-block input,
.local-filter input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid rgba(42, 56, 87, 0.72);
  background: #1e2847;
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.quick-search-block input:focus,
.local-filter input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.16);
}

.header-search button,
.mobile-panel button,
.quick-search-block button,
.local-filter button,
.search-panel button,
.btn-primary,
.btn-ghost {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.mobile-panel button,
.quick-search-block button,
.btn-primary {
  color: #fff;
  background: #4a90e2;
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.25);
}

.btn-ghost,
.local-filter button,
.search-panel button {
  color: #dbeafe;
  background: rgba(42, 56, 87, 0.72);
  border: 1px solid rgba(74, 144, 226, 0.28);
}

.header-search button:hover,
.mobile-panel button:hover,
.quick-search-block button:hover,
.btn-primary:hover,
.btn-ghost:hover,
.local-filter button:hover,
.search-panel button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(74, 144, 226, 0.33);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: #1e2847;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  display: block;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(42, 56, 87, 0.4);
  padding: 16px 24px 22px;
  background: rgba(10, 14, 39, 0.98);
}

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

.mobile-panel nav,
.mobile-panel form {
  max-width: 1280px;
  margin: 0 auto;
}

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

.mobile-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #141b3d;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0a0e27 0%, rgba(10, 14, 39, 0.78) 35%, rgba(10, 14, 39, 0.1) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 68px;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 48px));
  max-width: 1280px;
}

.hero-tags,
.detail-labels,
.mini-tags,
.detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-labels span,
.mini-tags span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #dbeafe;
  background: rgba(74, 144, 226, 0.22);
  border: 1px solid rgba(74, 144, 226, 0.28);
  border-radius: 999px;
  font-style: normal;
  font-size: 13px;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 26px;
  color: #d1d5db;
  font-size: 19px;
  line-height: 1.7;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  font-size: 34px;
  cursor: pointer;
  z-index: 4;
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

.hero-dots button {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.active {
  background: #4a90e2;
}

.quick-search-block,
.content-section,
.category-overview-band,
.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search-block {
  margin-top: -32px;
  position: relative;
  z-index: 5;
  padding-top: 24px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: center;
  background: rgba(20, 27, 61, 0.95);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.quick-search-block h2,
.section-heading h2,
.detail-content h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.quick-search-block p,
.section-heading p,
.page-hero p,
.detail-content p,
.footer-inner p,
.card-meta p,
.detail-one-line {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.quick-search-block form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.content-section,
.category-overview-band {
  padding-top: 62px;
}

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

.section-heading a {
  color: #93c5fd;
  font-weight: 700;
  white-space: nowrap;
}

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

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

.movie-card {
  min-width: 0;
}

.movie-card[hidden] {
  display: none;
}

.movie-card-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #1e2847;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 24px rgba(74, 144, 226, 0.3);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #141b3d;
}

.compact-card .poster-frame {
  aspect-ratio: 16 / 24;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
}

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

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

.play-hover span,
.player-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.94);
  box-shadow: 0 0 24px rgba(74, 144, 226, 0.45);
  position: relative;
}

.play-hover span::after,
.player-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #fff;
}

.card-region,
.card-year,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.card-region {
  left: 12px;
  background: rgba(74, 144, 226, 0.9);
}

.card-year {
  right: 12px;
  background: rgba(0, 0, 0, 0.62);
}

.rank-badge {
  left: 12px;
  top: 48px;
  background: rgba(245, 158, 11, 0.95);
}

.card-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

.card-info h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.card-info p {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #d1d5db;
  font-size: 13px;
}

.card-meta {
  padding: 12px 2px 0;
}

.card-meta p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 46px;
  overflow: hidden;
  font-size: 14px;
}

.mini-tags {
  margin-top: 10px;
}

.mini-tags span {
  min-height: 23px;
  padding: 3px 8px;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  background: #141b3d;
  border: 1px solid rgba(42, 56, 87, 0.6);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 39, 0.92), rgba(10, 14, 39, 0.24));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.category-tile strong {
  bottom: 78px;
  font-size: 22px;
}

.category-tile em {
  bottom: 18px;
  color: #cbd5e1;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
}

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

.page-main,
.detail-main {
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #93c5fd;
}

.page-hero {
  min-height: 260px;
  border-radius: 28px;
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(74, 144, 226, 0.34), transparent 32%),
    linear-gradient(135deg, rgba(20, 27, 61, 0.98), rgba(10, 14, 39, 0.98));
  border: 1px solid rgba(74, 144, 226, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.compact-hero {
  grid-template-columns: 1fr;
}

.page-hero span {
  color: #93c5fd;
  font-weight: 800;
}

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.03em;
}

.local-filter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

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

.category-mini-list a {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 18px;
  background: #141b3d;
  border: 1px solid rgba(42, 56, 87, 0.5);
}

.category-mini-list strong {
  font-size: 20px;
}

.category-mini-list span {
  color: #cbd5e1;
  line-height: 1.6;
}

.top-rank-grid {
  max-width: 1280px;
  margin: 36px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 20px;
}

.top-rank-card {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(74, 144, 226, 0.24);
  background: #141b3d;
}

.top-rank-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.18));
}

.top-rank-card div,
.top-rank-number {
  position: absolute;
  z-index: 2;
}

.top-rank-number {
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4a90e2;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}

.top-rank-card div {
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.top-rank-card strong {
  font-size: 30px;
  display: block;
  margin-bottom: 12px;
}

.top-rank-card p {
  color: #d1d5db;
  line-height: 1.7;
}

.top-rank-card em {
  display: inline-flex;
  margin-top: 12px;
  color: #bfdbfe;
  font-style: normal;
  font-weight: 700;
}

.search-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: 22px;
  background: #141b3d;
  border: 1px solid rgba(74, 144, 226, 0.16);
}

.search-panel form {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(150px, 0.5fr)) auto;
  gap: 12px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 34px;
  padding: 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 16%, rgba(74, 144, 226, 0.22), transparent 34%),
    linear-gradient(135deg, #141b3d, #0a0e27);
  border: 1px solid rgba(74, 144, 226, 0.18);
}

.detail-poster {
  border-radius: 22px;
  overflow: hidden;
  background: #1e2847;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

.detail-intro h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  font-size: 18px;
}

.detail-tags {
  margin: 22px 0;
}

.player-section {
  padding-top: 54px;
}

.stream-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  border: 1px solid rgba(74, 144, 226, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.stream-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  cursor: pointer;
  z-index: 2;
}

.player-overlay strong {
  font-size: 18px;
}

.stream-player.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  padding-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.detail-content article {
  padding: 28px;
  border-radius: 22px;
  background: #141b3d;
  border: 1px solid rgba(42, 56, 87, 0.5);
}

.detail-content p {
  font-size: 16px;
}

.detail-pager {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 34px;
}

.detail-pager a {
  padding: 12px 18px;
  border-radius: 999px;
  background: #1e2847;
  color: #dbeafe;
  border: 1px solid rgba(74, 144, 226, 0.22);
  font-weight: 700;
}

.site-footer {
  margin-top: 72px;
  background: #141b3d;
  border-top: 1px solid rgba(42, 56, 87, 0.45);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 32px;
}

.footer-inner h3 {
  margin: 0 0 16px;
}

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

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #4a90e2;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  color: #94a3b8;
  border-top: 1px solid rgba(42, 56, 87, 0.35);
}

@media (max-width: 1180px) {
  .movie-grid,
  .small-grid,
  .rank-list,
  .category-tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .header-inner {
    height: 66px;
  }

  .hero-content {
    bottom: 58px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-block,
  .page-hero,
  .detail-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .small-grid,
  .rank-list,
  .category-tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-rank-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner,
  .quick-search-block,
  .content-section,
  .category-overview-band,
  .page-main,
  .detail-main,
  .top-rank-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text {
    font-size: 18px;
  }

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

  .hero-content {
    width: calc(100% - 32px);
  }

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

  .quick-search-block,
  .quick-search-block form,
  .local-filter,
  .mobile-panel form,
  .search-panel form {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .small-grid,
  .rank-list,
  .category-tile-grid,
  .category-mini-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .page-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 22px;
  }

  .detail-pager {
    flex-wrap: wrap;
  }

  .card-info h3 {
    font-size: 15px;
  }

  .card-meta p,
  .mini-tags {
    display: none;
  }
}
