:root {
  --ice-50: #f0f9ff;
  --ice-100: #e0f2fe;
  --ice-200: #bae6fd;
  --ice-400: #38bdf8;
  --ice-600: #0284c7;
  --ice-700: #0369a1;
  --ice-900: #0c4a6e;
  --glacier-50: #ecfeff;
  --glacier-600: #0891b2;
  --snow-50: #ffffff;
  --snow-100: #fafafa;
  --snow-200: #f4f4f5;
  --snow-300: #e4e4e7;
  --snow-500: #71717a;
  --snow-600: #52525b;
  --snow-700: #3f3f46;
  --snow-800: #27272a;
  --snow-900: #18181b;
  --shadow-soft: 0 18px 55px rgba(12, 74, 110, 0.13);
  --shadow-card: 0 12px 34px rgba(15, 23, 42, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--ice-50) 0%, #ffffff 46%, var(--snow-100) 100%);
  color: var(--snow-900);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--snow-200);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--snow-900);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ice-600), var(--glacier-600));
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.28);
}

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

.nav-link {
  color: var(--snow-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.brand:hover {
  color: var(--ice-700);
}

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

.header-search input,
.mobile-search input,
.big-search input,
.local-filter-form input {
  width: 100%;
  border: 1px solid var(--snow-300);
  outline: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--snow-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.local-filter-form input:focus {
  border-color: var(--ice-600);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.header-search button,
.mobile-search button,
.big-search button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--ice-600);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
  background: var(--ice-700);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--snow-700);
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--snow-200);
}

.mobile-link {
  display: block;
  padding: 11px 0;
  color: var(--snow-700);
  font-weight: 700;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 14px 0;
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 28px auto 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--snow-900);
  box-shadow: var(--shadow-soft);
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.16)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 52%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 42vw, 560px);
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ice-100);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-weight: 750;
  font-size: 14px;
}

.hero-content h1 {
  margin: 18px 0 4px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.08em;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.12;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--snow-200);
  font-size: 18px;
}

.tag-row,
.detail-tags,
.search-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.detail-tags span,
.search-tags a {
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-more,
.overview-head a,
.panel-title-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  background: #ffffff;
  color: var(--ice-700);
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.18);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.overview-head a:hover,
.panel-title-row a:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 999px;
  color: var(--snow-900);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: clamp(24px, 6vw, 72px);
  bottom: 30px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.hero-quick-links {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 390px;
}

.hero-quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 750;
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 0;
}

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

.section-heading {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}

.section-heading > span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ice-100);
  color: var(--ice-700);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.section-heading p {
  margin: 0 0 2px;
  color: var(--snow-500);
}

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

.hot-grid .movie-card-large {
  grid-column: span 2;
}

.movie-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
}

.movie-link,
.movie-list-card a {
  display: block;
  height: 100%;
}

.poster-wrap,
.movie-card-large .movie-link,
.movie-card-compact .movie-link {
  position: relative;
  overflow: hidden;
}

.poster-wrap {
  height: 245px;
}

.poster-wrap img,
.movie-card-large img,
.movie-card-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.05) 62%);
}

.mini-year {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 750;
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ice-700);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-weight: 900;
}

.play-bubble.small {
  width: 48px;
  height: 48px;
}

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

.card-body {
  padding: 16px;
}

.card-body h3,
.movie-card-compact h3,
.large-card-content h3,
.movie-list-card h3,
.rank-card h2 {
  margin: 0;
  color: var(--snow-900);
  line-height: 1.28;
}

.card-body h3 {
  min-height: 46px;
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  min-height: 44px;
  margin: 9px 0 13px;
  color: var(--snow-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--snow-500);
  font-size: 13px;
}

.card-meta span:first-child {
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--ice-700);
  background: var(--ice-50);
  font-weight: 750;
}

.movie-card-large {
  min-height: 420px;
}

.movie-card-large .movie-link {
  height: 420px;
}

.card-badges {
  position: absolute;
  right: 16px;
  top: 16px;
  display: flex;
  gap: 8px;
}

.card-badges span {
  border-radius: 999px;
  padding: 6px 11px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 750;
}

.large-card-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #ffffff;
}

.large-card-content h3 {
  color: #ffffff;
  font-size: 28px;
}

.large-card-content p {
  margin: 8px 0 12px;
  color: var(--snow-200);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-zone {
  margin-top: 58px;
  padding: 52px 0;
  background: linear-gradient(135deg, var(--ice-50), var(--glacier-50));
}

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

.category-panel,
.overview-panel,
.search-card,
.detail-card,
.side-card {
  border: 1px solid var(--snow-200);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.category-panel,
.overview-panel {
  padding: 22px;
}

.panel-title-row,
.overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--snow-200);
}

.panel-title-row h3,
.overview-head h2 {
  margin: 0;
  font-size: 22px;
}

.panel-title-row p,
.overview-head p {
  margin: 4px 0 0;
  color: var(--snow-500);
}

.panel-title-row a,
.overview-head a,
.section-more {
  color: var(--ice-700);
  background: var(--ice-50);
  white-space: nowrap;
}

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

.movie-card-compact {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.movie-card-compact .movie-link {
  height: 150px;
}

.movie-card-compact h3 {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

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

.ranking-list li a {
  display: grid;
  grid-template-columns: 46px 62px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.ranking-list img {
  width: 62px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-number {
  color: var(--ice-700);
  font-weight: 900;
}

.rank-title {
  color: var(--snow-900);
  font-weight: 800;
}

.rank-meta {
  color: var(--snow-500);
  font-size: 13px;
}

.search-card {
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 34%),
    #ffffff;
}

.search-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.search-card p {
  margin: 0 0 22px;
  color: var(--snow-600);
}

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

.search-tags {
  margin-top: 20px;
}

.search-tags a {
  color: var(--ice-700);
  background: var(--ice-50);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  min-height: 280px;
  display: flex;
  align-items: center;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 58px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.95), rgba(8, 145, 178, 0.88)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 30%);
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 790px;
  margin: 0;
  color: var(--ice-100);
  font-size: 18px;
}

.local-filter-form {
  width: min(620px, 100%);
  margin-top: 24px;
}

.local-filter-form input {
  border: none;
  padding: 15px 18px;
  border-radius: 16px;
}

.overview-head {
  display: block;
}

.overview-head a {
  margin-top: 14px;
}

.rank-page-list {
  display: grid;
  gap: 16px;
}

.rank-card {
  padding: 0;
}

.rank-card a {
  display: grid;
  grid-template-columns: 74px 140px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.rank-card img {
  width: 140px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-big {
  font-size: 34px;
  font-weight: 900;
  color: var(--ice-700);
  text-align: center;
}

.rank-card p {
  margin: 6px 0 12px;
  color: var(--snow-600);
}

.player-stage {
  background: #050505;
}

.player-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.video-frame video,
.player-cover,
.player-cover img,
.player-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-frame video {
  object-fit: contain;
  z-index: 1;
}

.player-cover {
  z-index: 3;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #ffffff;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover img {
  object-fit: cover;
}

.player-gradient {
  background:
    radial-gradient(circle at center, rgba(2, 132, 199, 0.25), transparent 28%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.12));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ice-700);
  background: rgba(255, 255, 255, 0.94);
  transform: translate(-50%, -50%);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
  font-size: 32px;
}

.player-title {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  text-align: left;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.48);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.55fr);
  gap: 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--snow-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--ice-700);
  font-weight: 700;
}

.detail-card,
.side-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
}

.detail-one-line {
  margin: 0 0 18px;
  color: var(--snow-600);
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ice-900);
  background: var(--ice-50);
  font-weight: 750;
  font-size: 14px;
}

.detail-tags {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--snow-200);
}

.detail-tags span {
  color: var(--ice-700);
  background: var(--ice-50);
}

.detail-content h2,
.side-card h2 {
  margin: 24px 0 12px;
  font-size: 23px;
}

.detail-content p,
.review-box p {
  color: var(--snow-700);
  white-space: pre-line;
}

.review-box {
  border-radius: 18px;
  padding: 20px;
  background: var(--snow-100);
}

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

.side-card {
  position: sticky;
  top: 92px;
}

.side-list {
  display: grid;
  gap: 14px;
}

.movie-list-card {
  box-shadow: none;
  border: 1px solid var(--snow-200);
}

.movie-list-card a {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  padding: 12px;
}

.movie-list-card img {
  width: 128px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.movie-list-card p {
  margin: 5px 0 6px;
  color: var(--snow-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-list-card span {
  color: var(--snow-500);
  font-size: 12px;
}

.site-footer {
  margin-top: 70px;
  padding: 48px 0 26px;
  color: var(--snow-300);
  background: var(--snow-900);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.45fr 0.7fr 0.85fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0;
  color: var(--snow-300);
}

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

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

.site-footer a:hover {
  color: var(--ice-400);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: var(--snow-500);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  background: var(--ice-600);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.is-filtered-out {
  display: none !important;
}

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

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

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

  .hero-content {
    right: 30px;
  }

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

  .detail-layout,
  .two-column-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    width: min(100% - 24px, 1180px);
    height: 62px;
  }

  .brand {
    font-size: 15px;
  }

  .hero-slider {
    width: min(100% - 24px, 1180px);
    min-height: 640px;
    border-radius: 22px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    top: 45%;
  }

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

  .hero-arrow {
    top: auto;
    bottom: 78px;
    width: 42px;
    height: 42px;
  }

  .hero-quick-links {
    left: 22px;
    right: 22px;
    bottom: 22px;
    justify-content: flex-start;
  }

  .hero-dots {
    bottom: 82px;
  }

  .content-section {
    width: min(100% - 24px, 1180px);
    padding-top: 42px;
  }

  .movie-grid,
  .category-grid,
  .overview-grid,
  .compact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .hot-grid .movie-card-large {
    grid-column: span 2;
  }

  .poster-wrap {
    height: 210px;
  }

  .page-hero {
    width: min(100% - 24px, 1180px);
    border-radius: 22px;
  }

  .rank-card a {
    grid-template-columns: 54px 94px 1fr;
    gap: 12px;
  }

  .rank-card img {
    width: 94px;
    height: 72px;
  }

  .rank-big {
    font-size: 24px;
  }

  .player-title {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .detail-card,
  .side-card,
  .category-panel,
  .overview-panel {
    padding: 18px;
  }

  .movie-list-card a {
    grid-template-columns: 100px 1fr;
  }

  .movie-list-card img {
    width: 100px;
    height: 74px;
  }

  .ranking-list li a {
    grid-template-columns: 38px 56px 1fr;
  }

  .rank-meta {
    display: none;
  }
}

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

  .hot-grid .movie-card-large {
    grid-column: span 1;
  }

  .movie-card-large .movie-link {
    height: 360px;
  }

  .big-search,
  .mobile-search {
    flex-direction: column;
  }

  .panel-title-row {
    display: block;
  }

  .panel-title-row a {
    margin-top: 12px;
  }
}
