* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1f1630;
  background: linear-gradient(180deg, #ffffff 0%, #fbf6ff 42%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(168, 85, 247, 0.14);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, #9333ea, #ec4899);
  box-shadow: 0 16px 36px rgba(147, 51, 234, 0.28);
  animation: floatMark 4s ease-in-out infinite;
}

.brand-name {
  font-size: 1.26rem;
  background: linear-gradient(90deg, #7e22ce, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 13px;
  color: #4b3b63;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #7e22ce;
  background: #f5e9ff;
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid #ead7ff;
  border-radius: 999px;
  background: #fbf7ff;
}

.nav-search input {
  width: 210px;
  padding: 9px 12px;
  color: #3a2d4e;
  border: 0;
  outline: none;
  background: transparent;
}

.nav-search button,
.search-panel button,
.primary-button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 15px 30px rgba(147, 51, 234, 0.26);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.nav-search button {
  padding: 8px 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: #f5e9ff;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 4px;
  background: #7e22ce;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid #ead7ff;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 55px rgba(88, 28, 135, 0.11);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel a,
.mobile-panel button {
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  color: #51356b;
  background: #faf5ff;
}

.mobile-panel form {
  display: grid;
  gap: 10px;
}

.mobile-panel input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ead7ff;
  border-radius: 14px;
  outline: none;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 54px 0 28px;
}

.hero-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 10% 16%, rgba(236, 72, 153, 0.14), transparent 25%),
    radial-gradient(circle at 82% 8%, rgba(124, 58, 237, 0.16), transparent 24%);
}

.hero-bg-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.5;
}

.orb-one {
  left: -110px;
  top: 96px;
  background: #f0abfc;
}

.orb-two {
  right: -120px;
  top: 20px;
  background: #c4b5fd;
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.94), rgba(190, 24, 93, 0.86));
  box-shadow: 0 36px 90px rgba(88, 28, 135, 0.25);
}

.hero-shell::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 420px;
  height: 180px;
  color: rgba(255, 255, 255, 0.18);
  content: "";
  background: currentColor;
  clip-path: path("M 10 90 Q 70 10 150 50 T 300 50 Q 360 10 410 90 L 410 180 L 10 180 Z");
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 430px;
  gap: 42px;
  align-items: center;
  padding: 62px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(32px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #7e22ce;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: #f3e8ff;
}

.hero-kicker {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 700px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-tags,
.tag-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: #6b21a8;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  background: #f3e8ff;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  font-weight: 800;
}

.primary-button:hover,
.nav-search button:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(147, 51, 234, 0.35);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.ghost-button.light {
  color: #7e22ce;
  border-color: #ead7ff;
  background: #ffffff;
}

.hero-poster {
  position: relative;
  z-index: 2;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(31, 22, 48, 0.4);
  transform: rotate(2deg);
}

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

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.34));
}

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

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.quick-search-section,
.content-section,
.detail-layout,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.search-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid #ead7ff;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 55px rgba(88, 28, 135, 0.1);
}

.search-panel label {
  color: #6b21a8;
  font-size: 1.2rem;
  font-weight: 900;
}

.search-panel div {
  display: flex;
  gap: 12px;
}

.search-panel input,
.filter-bar input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  color: #3a2d4e;
  border: 1px solid #ead7ff;
  border-radius: 18px;
  outline: none;
  background: #fffaff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-panel input:focus,
.filter-bar input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
}

.search-panel button {
  min-width: 132px;
  padding: 0 22px;
}

.content-section {
  padding: 62px 0 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-card h1,
.side-recommend h2 {
  margin: 0;
  color: #21162e;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-hero p,
.side-recommend p,
.prose-card p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #6d5b7e;
  line-height: 1.8;
}

.section-link,
.text-button {
  color: #7e22ce;
  border-radius: 999px;
  background: #f3e8ff;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 22px;
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #fbf5ff);
  box-shadow: 0 22px 54px rgba(88, 28, 135, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card::after {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 94px;
  height: 94px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(236, 72, 153, 0.18));
}

.category-card:hover,
.movie-card:hover {
  border-color: rgba(168, 85, 247, 0.34);
  box-shadow: 0 26px 70px rgba(88, 28, 135, 0.15);
  transform: translateY(-5px);
}

.category-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, #9333ea, #ec4899);
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
  display: block;
}

.category-card strong {
  color: #21162e;
  font-size: 1.08rem;
}

.category-card em {
  margin-top: 8px;
  color: #7c6a8d;
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.5;
}

.all-categories {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.movie-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(88, 28, 135, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #f3e8ff, #ffe4f2);
}

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

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

.poster-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(31, 22, 48, 0.42));
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 999px;
  background: rgba(126, 34, 206, 0.82);
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #8a789a;
  font-size: 0.8rem;
}

.movie-meta-line span {
  display: inline-flex;
  align-items: center;
}

.movie-meta-line span + span::before {
  width: 4px;
  height: 4px;
  margin-right: 8px;
  content: "";
  border-radius: 999px;
  background: #d8b4fe;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #21162e;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover {
  color: #7e22ce;
}

.movie-card p {
  min-height: 4.4em;
  margin: 0 0 12px;
  color: #695a77;
  font-size: 0.9rem;
  line-height: 1.65;
}

.movie-grid.compact .movie-card p {
  min-height: 3.1em;
}

.tag-row span {
  color: #7e22ce;
  background: #f7edff;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 390px;
  gap: 28px;
  align-items: start;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(168, 85, 247, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(88, 28, 135, 0.07);
}

.small-rank .rank-row {
  grid-template-columns: 46px 72px minmax(0, 1fr);
}

.small-rank .text-button {
  display: none;
}

.rank-number {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: #f3e8ff;
}

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

.rank-info h3 {
  margin: 0 0 6px;
  color: #21162e;
  font-size: 1.05rem;
}

.rank-info p {
  margin: 0 0 8px;
  color: #695a77;
  line-height: 1.55;
}

.side-recommend,
.prose-card {
  padding: 28px;
  border-radius: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, #6d28d9, #be185d);
  box-shadow: 0 28px 70px rgba(88, 28, 135, 0.18);
}

.side-recommend .section-kicker,
.side-recommend h2,
.side-recommend p {
  color: #ffffff;
}

.side-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.side-list a {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.12);
}

.side-list span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.page-hero {
  position: relative;
  margin-top: 42px;
  padding: 44px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff, #faf5ff);
  box-shadow: 0 26px 70px rgba(88, 28, 135, 0.11);
}

.page-hero::after {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  content: "";
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.24), transparent 68%);
}

.filter-area {
  padding-top: 32px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #ead7ff;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.filter-bar input {
  flex: 1 1 280px;
}

.chip.active,
.chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.page-link {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  place-items: center;
  color: #7e22ce;
  border: 1px solid #ead7ff;
  border-radius: 14px;
  background: #ffffff;
}

.page-link.active,
.page-link:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding-top: 42px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 34px;
  background: #160d20;
  box-shadow: 0 32px 82px rgba(31, 22, 48, 0.28);
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #160d20;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(22, 13, 32, 0.2), rgba(22, 13, 32, 0.56));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-icon {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  padding-left: 6px;
  font-size: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 20px 52px rgba(236, 72, 153, 0.36);
}

.detail-card,
.side-cover-card,
.side-box {
  padding: 24px;
  border: 1px solid rgba(168, 85, 247, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 55px rgba(88, 28, 135, 0.09);
}

.detail-card h1 {
  margin-top: 12px;
}

.detail-card h2 {
  margin: 28px 0 10px;
  color: #21162e;
  font-size: 1.35rem;
}

.detail-card p,
.lead-text {
  color: #5e506a;
  line-height: 1.9;
}

.lead-text {
  font-size: 1.08rem;
}

.detail-tags {
  margin-top: 24px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.side-cover-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #f3e8ff;
}

.side-cover-card h2 {
  margin: 16px 0 8px;
  color: #21162e;
}

.side-cover-card p {
  color: #746281;
}

.primary-button.full {
  width: 100%;
  margin-top: 16px;
}

.meta-table {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.meta-table div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0e4ff;
}

.meta-table dt {
  color: #8a789a;
}

.meta-table dd {
  margin: 0;
  color: #3a2d4e;
}

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

.prose-card {
  margin-top: 32px;
  color: #ffffff;
}

.prose-card h2,
.prose-card p {
  color: #ffffff;
}

.site-footer {
  position: relative;
  margin-top: 76px;
  padding: 66px 0 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf5ff, #ffffff);
}

.footer-wave {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34px;
  opacity: 0.55;
  background: radial-gradient(60px 28px at 60px 0, #e9d5ff 98%, transparent 100%);
  background-size: 120px 34px;
}

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

.footer-grid p,
.footer-links a {
  color: #6d5b7e;
  line-height: 1.75;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #21162e;
}

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

.footer-links a:hover {
  color: #7e22ce;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  color: #8a789a;
  border-top: 1px solid #ead7ff;
}

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

@keyframes floatMark {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

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

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

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

  .hero-poster {
    display: none;
  }

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

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

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

@media (max-width: 720px) {
  .nav-wrap,
  .quick-search-section,
  .content-section,
  .detail-layout,
  .page-hero,
  .mobile-panel {
    width: min(100% - 24px, 1180px);
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-shell {
    width: min(100% - 24px, 1180px);
    min-height: 540px;
    border-radius: 28px;
  }

  .hero-slide {
    padding: 34px 24px 72px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .search-panel div,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .search-panel button {
    min-height: 50px;
  }

  .category-grid,
  .all-categories,
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .rank-row,
  .small-rank .rank-row {
    grid-template-columns: 42px 68px minmax(0, 1fr);
  }

  .rank-row .text-button {
    display: none;
  }

  .page-hero {
    padding: 30px 24px;
  }

  .detail-card,
  .side-cover-card,
  .side-box {
    padding: 20px;
  }
}

@media (max-width: 460px) {
  .brand-name {
    font-size: 1.06rem;
  }

  .category-grid,
  .all-categories,
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }
}
