:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #a855f7;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --rose-soft: #fdf2f8;
  --purple-soft: #faf5ff;
  --blue-soft: #eff6ff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(236, 72, 153, 0.18);
  --shadow: 0 18px 45px rgba(168, 85, 247, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 48%, #eff6ff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.14);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.28);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink-dark);
  background: #fce7f3;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(236, 72, 153, 0.08);
}

.header-search input,
.mobile-panel input,
.wide-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  background: #ffffff;
  color: #111827;
}

.header-search input {
  width: 190px;
  padding: 11px 12px 11px 18px;
}

.header-search button,
.wide-search button,
.search-page-form button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 20px 18px;
}

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

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

.mobile-panel input {
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid #fbcfe8;
}

.mobile-panel button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  padding: 12px 18px;
}

main {
  overflow: hidden;
}

.home-hero {
  position: relative;
  max-width: 1200px;
  min-height: 650px;
  margin: 34px auto 28px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, #f472b6, #a855f7 52%, #60a5fa);
  box-shadow: 0 30px 80px rgba(168, 85, 247, 0.32);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: center;
  padding: 72px;
  color: #ffffff;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.2);
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(168, 85, 247, 0.46), rgba(236, 72, 153, 0.32));
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: inline-flex;
  color: var(--pink-dark);
  background: #fce7f3;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 24px;
  font-size: clamp(17px, 2vw, 24px);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.hero-tags,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.rank-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 14px;
  font-weight: 650;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: var(--pink-dark);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.26);
}

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

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

.hero-poster {
  display: block;
  height: 480px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.36);
  transform: rotate(2deg);
}

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

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-poster span,
.movie-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.88);
  box-shadow: 0 18px 38px rgba(236, 72, 153, 0.3);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 72px;
  bottom: 46px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  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-glow {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.36;
}

.hero-glow-one {
  width: 160px;
  height: 160px;
  top: 42px;
  left: 42px;
  background: #ffffff;
}

.hero-glow-two {
  width: 210px;
  height: 210px;
  right: 90px;
  top: 120px;
  background: #f9a8d4;
}

.hero-glow-three {
  width: 180px;
  height: 180px;
  left: 35%;
  bottom: 90px;
  background: #c4b5fd;
}

.quick-categories,
.search-panel,
.content-section,
.page-hero,
.category-overview,
.category-nav-line,
.filter-panel,
.rank-list,
.search-page-panel,
.detail-page {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 10px 0 28px;
}

.category-chip,
.category-nav-line a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 750;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-chip:hover,
.category-nav-line a:hover,
.category-nav-line a.is-active {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(236, 72, 153, 0.28);
}

.search-panel,
.search-page-panel,
.filter-panel {
  display: grid;
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding-top: 28px;
  padding-bottom: 28px;
  box-shadow: var(--shadow);
}

.search-panel {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
}

.search-panel h2,
.page-hero h1,
.section-heading h2,
.detail-head h1,
.text-block h2,
.detail-side h2,
.rank-card h2,
.category-tile h2 {
  margin: 0;
  letter-spacing: -0.04em;
  color: #111827;
}

.search-panel h2,
.page-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.search-panel p,
.page-hero p,
.category-tile p {
  color: var(--muted);
  line-height: 1.8;
}

.wide-search,
.search-page-form {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid #fbcfe8;
  background: #ffffff;
}

.wide-search input,
.search-page-form input {
  padding: 16px 20px;
}

.wide-search button,
.search-page-form button {
  padding-left: 28px;
  padding-right: 28px;
}

.content-section {
  padding-top: 54px;
  padding-bottom: 54px;
}

.section-soft,
.section-blue,
.section-warm {
  border-radius: 32px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.section-soft {
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.88), rgba(250, 245, 255, 0.9));
}

.section-blue {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(236, 254, 255, 0.92));
}

.section-warm {
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.92), rgba(253, 244, 255, 0.92), rgba(239, 246, 255, 0.92));
}

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

.section-heading span {
  color: var(--pink-dark);
  font-size: 14px;
  font-weight: 850;
}

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

.section-heading a {
  color: var(--pink-dark);
  font-weight: 800;
}

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

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-color: #f9a8d4 transparent;
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 52px rgba(168, 85, 247, 0.2);
}

.movie-cover {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
}

.movie-card.is-large .movie-cover {
  height: 320px;
}

.movie-card.is-compact .movie-cover {
  height: 170px;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.62));
  transition: opacity 0.28s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.movie-badge,
.movie-time {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-badge {
  top: 12px;
  left: 12px;
  background: rgba(236, 72, 153, 0.88);
}

.movie-time {
  right: 12px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.68);
}

.movie-play {
  z-index: 4;
  width: 58px;
  height: 58px;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.movie-content {
  padding: 18px;
}

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

.movie-content h3 a:hover,
.related-card:hover strong,
.rank-card h2 a:hover,
.category-tile a:hover h2 {
  color: var(--pink-dark);
}

.movie-line {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 3.3em;
}

.movie-meta {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
}

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-tags span {
  border-radius: 999px;
  background: #fce7f3;
  color: var(--pink-dark);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 750;
}

.page-hero {
  margin-top: 34px;
  margin-bottom: 26px;
  border-radius: 36px;
  padding-top: 64px;
  padding-bottom: 64px;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.98), rgba(250, 245, 255, 0.98), rgba(239, 246, 255, 0.98));
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  margin-top: 16px;
  margin-bottom: 14px;
}

.compact-hero p {
  max-width: 780px;
  margin: 0;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 20px;
  padding-bottom: 58px;
}

.category-tile {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
}

.tile-mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  margin-bottom: 16px;
}

.category-tile h2 {
  font-size: 25px;
}

.category-tile ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.category-tile li a {
  color: #4b5563;
  font-weight: 650;
}

.category-nav-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-panel {
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  padding: 13px 16px;
}

.rank-list {
  display: grid;
  gap: 16px;
  padding-bottom: 60px;
}

.rank-card {
  display: grid;
  grid-template-columns: 70px 155px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
}

.rank-index {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-size: 22px;
  font-weight: 900;
}

.rank-cover {
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
}

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

.rank-card h2 {
  font-size: 22px;
}

.rank-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.rank-meta span {
  background: #fce7f3;
  color: var(--pink-dark);
}

.search-page-panel {
  margin-bottom: 28px;
}

.search-results:empty::before {
  content: "输入关键词后显示相关影片";
  display: block;
  grid-column: 1 / -1;
  padding: 50px;
  text-align: center;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 30px 0 18px;
  color: #6b7280;
  font-weight: 650;
}

.breadcrumb a {
  color: var(--pink-dark);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  min-height: 520px;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28);
}

.player-wrap video {
  width: 100%;
  height: min(70vh, 650px);
  min-height: 520px;
  display: block;
  background: #111827;
  object-fit: contain;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.22), rgba(17, 24, 39, 0.28));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.92);
  font-size: 34px;
  box-shadow: 0 24px 48px rgba(236, 72, 153, 0.35);
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  margin-top: 28px;
}

.detail-main,
.detail-side {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
}

.detail-main {
  padding: 28px;
}

.detail-side {
  padding: 22px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.detail-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-poster {
  width: 220px;
  height: 310px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.14);
}

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

.detail-line {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta span {
  background: #fce7f3;
  color: var(--pink-dark);
}

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

.text-block {
  margin-top: 30px;
}

.text-block h2,
.detail-side h2 {
  font-size: 24px;
  margin-bottom: 14px;
}

.text-block p {
  color: #4b5563;
  line-height: 1.95;
  font-size: 17px;
}

.highlight-block {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-thumb {
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
}

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

.related-info strong {
  display: block;
  line-height: 1.4;
  color: #111827;
}

.related-info em {
  display: block;
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
  margin-top: 5px;
}

.detail-more {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 20px;
  background: linear-gradient(135deg, #fce7f3, #ede9fe, #dbeafe);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  justify-content: center;
  font-size: 24px;
}

.site-footer p {
  max-width: 760px;
  margin: 14px auto;
  color: #4b5563;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 20px 0;
  color: var(--pink-dark);
  font-weight: 750;
}

.copyright {
  font-size: 14px;
}

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

@media (max-width: 1060px) {
  .header-search {
    display: none;
  }

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

  .hero-poster {
    height: 390px;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

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

  .home-hero {
    margin: 18px 16px 24px;
    min-height: 740px;
    border-radius: 28px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 34px 26px 74px;
  }

  .hero-poster {
    height: 300px;
    transform: none;
  }

  .hero-dots {
    left: 26px;
    bottom: 28px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 52px 104px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-card p {
    display: none;
  }

  .detail-head {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 100%;
    height: auto;
    max-height: 520px;
  }

  .player-wrap,
  .player-wrap video {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

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

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

  .page-hero,
  .search-panel,
  .content-section,
  .category-overview,
  .category-nav-line,
  .filter-panel,
  .rank-list,
  .search-page-panel,
  .detail-page {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .rank-card {
    grid-template-columns: 42px 86px minmax(0, 1fr);
    padding: 12px;
  }

  .rank-index {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 18px;
  }

  .rank-cover {
    height: 72px;
  }

  .detail-main,
  .detail-side {
    padding: 18px;
    border-radius: 22px;
  }

  .related-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }
}
