html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f6f8fb;
  color: #111827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body,
button,
input {
  font: inherit;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #ffffff;
  background: linear-gradient(90deg, #0891b2 0%, #2563eb 48%, #7c3aed 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-weight: 900;
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-text em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 12px;
  color: #cffafe;
}

.header-search {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  max-width: 460px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(8, 47, 73, 0.16);
}

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-form input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: #ffffff;
}

.header-search input {
  padding: 12px 16px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: #06b6d4;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 0 18px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.search-page-form button:hover {
  background: #0891b2;
}

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

.nav-link,
.mobile-link {
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 13px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(255, 255, 255, 0.16);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 16px;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 12px;
}

.mobile-search input {
  padding: 12px 14px;
}

.mobile-search button {
  padding: 0 18px;
}

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

.mobile-link {
  padding: 12px 14px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(103, 232, 249, 0.38), transparent 28%), linear-gradient(135deg, #0891b2 0%, #1d4ed8 48%, #581c87 100%);
}

.hero-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 36px;
  align-items: center;
  padding: 70px 0 84px;
  position: relative;
  z-index: 2;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  filter: blur(1px);
}

.hero-bg-orb-one {
  right: -120px;
  top: 90px;
  width: 360px;
  height: 360px;
}

.hero-bg-orb-two {
  left: -160px;
  bottom: -160px;
  width: 420px;
  height: 420px;
}

.hero-heading {
  max-width: 610px;
}

.hero-site-label,
.hero-kicker,
.detail-kicker,
.page-hero span,
.section-heading span,
.rank-panel-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-heading h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-heading p {
  margin: 0 0 28px;
  color: #dffafe;
  font-size: 20px;
  line-height: 1.75;
}

.hero-search,
.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(8, 47, 73, 0.26);
}

.hero-search input,
.search-page-form input {
  padding: 17px 22px;
}

.hero-search button,
.search-page-form button {
  padding: 0 28px;
}

.hero-carousel {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 280px;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.66)), var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.38);
}

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

.hero-copy h2 {
  margin: 16px 0 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

.hero-copy p {
  margin: 0 0 20px;
  color: #e0f2fe;
  font-size: 17px;
  line-height: 1.8;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f172a;
  background: #cffafe;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.ghost-dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.16);
}

.primary-button:hover,
.ghost-button:hover,
.ghost-dark-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-dark-button {
  color: #0f172a;
  border: 2px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.hero-poster {
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.hero-poster .poster-shell {
  height: 100%;
}

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

.hero-dots {
  position: absolute;
  left: 34px;
  bottom: 26px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

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

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

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

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

.no-top-pad {
  padding-top: 0;
}

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

.section-heading h2,
.rank-panel-title h2 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.section-heading a,
.text-link {
  color: #0891b2;
  font-weight: 900;
}

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

.category-tile,
.category-card-cover {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 20px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.9), rgba(88, 28, 135, 0.82)), var(--tile-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.category-tile {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.category-tile span,
.category-card-cover span {
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  margin-top: 8px;
  font-style: normal;
  color: #e0f2fe;
  line-height: 1.5;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

.movie-card-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #0f172a, #155e75);
}

.poster-shell {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #0f172a, #155e75 52%, #7c3aed);
}

.poster-img,
.detail-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.poster-shell.is-missing .poster-fallback {
  display: grid;
}

.movie-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f172a;
  background: #facc15;
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
}

.movie-card-actions a {
  flex: 1 1 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: #0891b2;
  font-size: 13px;
  font-weight: 900;
}

.movie-card-actions a + a {
  color: #0f172a;
  background: #e0f2fe;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 0 0 70px;
}

.rank-panel {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
}

.rank-row:hover {
  background: #e0f2fe;
}

.rank-no {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #0891b2;
  font-weight: 900;
}

.rank-title {
  color: #0f172a;
  font-weight: 900;
}

.rank-meta {
  color: #64748b;
  font-size: 12px;
}

.page-main {
  padding: 28px 0 74px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 24px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #0891b2;
  font-weight: 800;
}

.page-hero {
  margin-bottom: 34px;
  padding: 42px;
  border-radius: 32px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.34), transparent 32%), linear-gradient(135deg, #0f172a, #155e75 52%, #581c87);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #dffafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.category-card-cover {
  min-height: 170px;
  display: flex;
  align-items: end;
}

.category-card-large h2 {
  margin: 6px 0 10px;
  color: #0f172a;
  font-size: 24px;
}

.category-card-large p {
  color: #475569;
  line-height: 1.7;
}

.category-samples {
  font-size: 13px;
}

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

.detail-main {
  padding-top: 28px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-bottom: 34px;
  padding: 34px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.12);
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.detail-copy h1 {
  margin: 14px 0;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
}

.detail-one-line {
  color: #334155;
  font-size: 18px;
  line-height: 1.85;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}

.detail-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f172a;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.player-section {
  margin: 34px 0;
  overflow: hidden;
  border-radius: 32px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.72), rgba(8, 145, 178, 0.42));
}

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

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

.player-overlay em {
  max-width: 80%;
  color: #cffafe;
  font-style: normal;
  text-align: center;
}

.play-triangle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.play-triangle::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #0891b2;
}

.player-info-strip {
  padding: 22px 26px;
  color: #dffafe;
}

.player-info-strip strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
}

.player-info-strip span {
  display: block;
  margin: 8px 0;
  color: #67e8f9;
  font-weight: 800;
}

.player-info-strip p {
  margin: 0;
  line-height: 1.75;
}

.content-panel {
  padding: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.content-panel h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 28px;
}

.content-panel h2:not(:first-child) {
  margin-top: 28px;
}

.content-panel p {
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.related-block {
  padding-bottom: 0;
}

.search-page-form {
  max-width: 760px;
  margin-top: 24px;
}

.search-status {
  margin-bottom: 22px;
  color: #334155;
  font-weight: 900;
}

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

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.site-footer p {
  max-width: 430px;
  line-height: 1.8;
}

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

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

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #0891b2;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1100px) {
  .header-search {
    max-width: 330px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

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

  .hero-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-carousel {
    min-height: 560px;
  }

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

  .section-split {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

  .category-list-grid {
    grid-template-columns: 1fr;
  }
}

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

  .header-search {
    display: none;
  }

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

  .hero-shell,
  .section-block,
  .section-split,
  .page-main {
    width: min(100% - 24px, 1200px);
  }

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

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

  .hero-search,
  .search-page-form {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .hero-search button,
  .search-page-form button {
    min-height: 48px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .hero-poster {
    max-width: 230px;
    margin: 0 auto;
  }

  .hero-carousel {
    min-height: 740px;
  }

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

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

  .category-card-large,
  .detail-hero,
  .footer-inner,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .category-card-cover {
    min-height: 150px;
  }

  .detail-hero {
    padding: 22px;
  }

  .detail-cover {
    max-width: 280px;
    margin: 0 auto;
  }

  .page-hero,
  .content-panel {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .category-grid,
  .movie-grid,
  .compact-grid,
  .rank-page-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 780px;
  }
}
