:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #ecfeff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #020617;
  --dark-2: #0f172a;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --green: #10b981;
  --red: #f43f5e;
  --amber: #f59e0b;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #f1f5f9 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #020617 0%, #0f172a 46%, #020617 100%);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

.site-header__inner {
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 45%, #2563eb 100%);
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.32);
}

.brand__mark--small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand__text {
  font-size: 20px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 650;
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #22d3ee;
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: #67e8f9;
}

.main-nav a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 10px 20px 18px;
  background: #0f172a;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.hero {
  position: relative;
  background: #020617;
}

.hero-stage {
  position: relative;
  height: clamp(520px, 72vh, 680px);
  overflow: hidden;
  background: linear-gradient(135deg, #020617 0%, #0f172a 55%, #1e293b 100%);
}

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

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

.hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.25), transparent 26%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.75) 45%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.06) 56%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 90px 20px 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow--dark {
  color: #0e7490;
  background: #cffafe;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 760px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow--prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-arrow--next {
  right: 22px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-search-panel {
  position: relative;
  z-index: 8;
  max-width: 1180px;
  margin: -100px auto 0;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
  gap: 24px;
}

.hero-search-panel h2 {
  margin: 14px 0 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.2;
}

.hero-search-panel p {
  margin: 0;
  color: var(--muted);
}

.hero-search {
  align-self: center;
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 18px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.hero-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: #ffffff;
}

.hero-search input {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 13px;
}

.hero-search button {
  border: 0;
  padding: 0 20px;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  font-weight: 800;
  cursor: pointer;
}

.hero-category-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-category-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #0e7490;
  background: #cffafe;
  font-weight: 750;
}

.section,
.page-shell,
.detail-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 68px 20px;
}

.section--first {
  padding-top: 58px;
}

.section--soft {
  margin-top: 32px;
  margin-bottom: 32px;
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 100%);
}

.section--rank {
  padding-top: 50px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 14px 24px rgba(6, 182, 212, 0.22);
}

.section-heading--amber .section-heading__icon {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.section-heading--red .section-heading__icon {
  background: linear-gradient(135deg, #ef4444, #ec4899);
}

.section-heading--green .section-heading__icon {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.section-heading--blue .section-heading__icon {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.section-heading h2,
.page-hero h1,
.detail-title-block h1 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  color: inherit;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}

.movie-card--compact .movie-card__media {
  aspect-ratio: 16 / 9;
}

.movie-card__media img,
.movie-list-item__cover img,
.detail-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card__media img,
.movie-list-item__cover img {
  transition: transform 0.45s ease;
}

.movie-card:hover .movie-card__media img,
.movie-list-item:hover .movie-list-item__cover img {
  transform: scale(1.1);
}

.movie-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(2, 6, 23, 0.72) 100%);
}

.movie-card__play,
.play-small {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .movie-card__play,
.movie-list-item:hover .play-small {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.movie-card__year,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-card__body {
  display: block;
  padding: 16px;
}

.movie-card__body strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card__body span {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card__body em {
  display: block;
  margin-top: 10px;
  color: #0891b2;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

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

.category-card,
.category-overview-card,
.side-card,
.content-page,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.category-card,
.category-overview-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  min-height: 148px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card strong,
.category-overview-card span {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.category-card span,
.category-overview-card strong {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
}

.category-overview-card em {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  font-style: normal;
}

.category-overview-card em a {
  padding: 6px 9px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
}

.category-preview-stack {
  display: grid;
  gap: 54px;
}

.category-preview__head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.category-preview__head h3 {
  margin: 0 0 6px;
  font-size: 26px;
}

.category-preview__head p {
  margin: 0;
  color: var(--muted);
}

.category-preview__head a {
  color: #0891b2;
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-list-item {
  display: flex;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, background 0.2s ease;
}

.movie-list-item:hover {
  transform: translateX(4px);
  background: #f8fafc;
}

.movie-list-item__cover {
  position: relative;
  width: 160px;
  height: 96px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.play-small {
  width: 38px;
  height: 38px;
}

.movie-list-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-list-item__body strong {
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-list-item__body em {
  display: -webkit-box;
  margin: 7px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-list-item__body span {
  color: #0891b2;
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  padding: 58px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.28), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 55%, #1e40af 100%);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin-top: 16px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.filter-panel {
  margin-bottom: 28px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.filter-input,
.filter-select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
}

.detail-shell {
  padding-top: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-player {
  background: #000000;
}

.player-cover {
  border: 0;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  overflow: hidden;
  background: #020617;
  z-index: 3;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.player-cover__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.15), transparent 30%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.86));
}

.player-cover__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  font-size: 30px;
}

.player-cover__title {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 26px;
  text-align: left;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 5;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  display: none;
}

.player-message.is-visible {
  display: block;
}

.detail-title-block,
.detail-section,
.side-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-title-block h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 48px);
}

.detail-title-block p,
.detail-section p,
.content-page p {
  color: #475569;
  font-size: 16px;
  line-height: 1.9;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 800;
  font-size: 13px;
}

.detail-title-block .tag-cloud span {
  color: #0e7490;
  background: #cffafe;
}

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

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

.detail-poster {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0 0 22px;
}

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.content-page {
  padding: 34px;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 38px;
}

.footer-card p {
  max-width: 440px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h3 {
  margin: 0 0 10px;
  color: #ffffff;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 22px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.is-filter-hidden {
  display: none !important;
}

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

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

  .hero-search-panel,
  .detail-layout,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero-arrow {
    display: none;
  }

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    height: 62px;
  }

  .brand__text {
    font-size: 16px;
  }

  .hero-stage {
    height: 620px;
  }

  .hero-slide__content {
    padding: 72px 18px 190px;
  }

  .hero-search-panel {
    margin: -120px 14px 0;
    padding: 20px;
  }

  .hero-search,
  .filter-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section,
  .page-shell,
  .detail-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section--soft,
  .page-hero {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .movie-grid--four,
  .movie-grid--three,
  .category-list,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-list-item {
    gap: 12px;
  }

  .movie-list-item__cover {
    width: 120px;
    height: 78px;
  }

  .detail-title-block,
  .detail-section,
  .side-card {
    padding: 20px;
  }
}
