* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #faf5ff;
  --bg-soft: #eff6ff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(255, 255, 255, 0.45);
  --purple: #9333ea;
  --pink: #db2777;
  --blue: #2563eb;
  --card: rgba(255, 255, 255, 0.74);
  --shadow: 0 25px 50px -12px rgba(31, 41, 55, 0.25);
  --soft-shadow: 0 16px 45px rgba(147, 51, 234, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(240, 147, 251, 0.26), transparent 34rem),
    radial-gradient(circle at 88% 10%, rgba(79, 172, 254, 0.22), transparent 32rem),
    linear-gradient(135deg, #faf5ff 0%, #fdf2f8 42%, #eff6ff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 80%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(1180px, calc(100% - 2rem));
  min-height: 74px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #4facfe, #00f2fe);
  box-shadow: 0 14px 28px rgba(147, 51, 234, 0.24);
}

.brand-text,
.footer-brand {
  font-size: 1.35rem;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  padding: 0.7rem 0.95rem;
  color: #4b5563;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #7e22ce;
  background: rgba(243, 232, 255, 0.86);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid rgba(147, 51, 234, 0.12);
  outline: none;
  color: #374151;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.header-search input {
  width: 220px;
  padding: 0.72rem 1rem;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  box-shadow: 0 10px 25px rgba(219, 39, 119, 0.18);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 232, 255, 0.92);
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: 0.75rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.76);
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.55rem;
}

.mobile-search input {
  padding: 0.8rem 1rem;
}

.hero-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
}

.hero-stage {
  position: relative;
  min-height: clamp(560px, 72vh, 740px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2rem;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(240, 147, 251, 0.24), transparent 20rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.68) 46%, rgba(17, 24, 39, 0.15) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, calc(100% - 3rem));
  margin-left: clamp(1.5rem, 7vw, 5rem);
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 0.9rem;
  padding: 0.42rem 0.78rem;
  color: #7e22ce;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(243, 232, 255, 0.92);
}

.hero-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  max-width: 11em;
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags {
  margin-bottom: 1.8rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.68rem;
  color: #6d28d9;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(196, 181, 253, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.primary-button,
.ghost-button,
.section-link,
.ranking-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.2rem;
  font-weight: 900;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-button,
.section-link,
.ranking-action {
  color: #ffffff;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue));
  box-shadow: 0 18px 35px rgba(147, 51, 234, 0.24);
}

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

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.ranking-action:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(16px);
}

.hero-control button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  display: flex;
  gap: 0.4rem;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0;
  opacity: 0.58;
}

.hero-dot.active {
  width: 28px !important;
  opacity: 1;
  background: linear-gradient(90deg, #f0abfc, #93c5fd);
}

.content-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 5rem auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p,
.page-hero p {
  max-width: 720px;
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

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

.glass-effect {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: var(--soft-shadow);
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 1.15rem;
}

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

.compact-card {
  width: 320px;
  flex: 0 0 auto;
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.category-card:hover img {
  transform: scale(1.08);
}

.poster-mask {
  position: absolute;
  inset: 0;
  opacity: 0.98;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.78), transparent 58%);
}

.play-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.corner-label,
.rank-badge {
  position: absolute;
  top: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.58rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

.corner-label {
  right: 0.75rem;
}

.rank-badge {
  left: 0.75rem;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.card-body {
  padding: 1rem;
}

.movie-title,
.ranking-title {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover,
.ranking-title:hover {
  color: var(--purple);
}

.movie-desc {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0.65rem 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.86rem;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: rgba(243, 232, 255, 0.72);
}

.tag-row {
  margin-top: 0.75rem;
}

.rail-scroll {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding: 0.45rem 0 1.25rem;
  scroll-snap-type: x mandatory;
}

.rail-scroll .movie-card {
  scroll-snap-align: start;
}

.rail-scroll::-webkit-scrollbar {
  height: 10px;
}

.rail-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, #c084fc, #f9a8d4, #93c5fd);
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
}

.category-tile {
  min-height: 210px;
  padding: 1rem;
  color: #ffffff;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(to top, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.18));
}

.category-tile span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 4rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile small {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  display: grid;
  min-height: 320px;
}

.category-covers {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.35rem;
  height: 190px;
  padding: 0.5rem;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.5s ease;
}

.category-covers img:first-child {
  grid-row: span 2;
}

.category-card-body {
  padding: 1rem 1.15rem 1.2rem;
}

.category-card-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.category-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-preview,
.ranking-list {
  display: grid;
  gap: 0.85rem;
}

.ranking-row {
  display: grid;
  grid-template-columns: 96px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 1.2rem;
}

.ranking-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 0.95rem;
}

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

.ranking-number {
  font-size: 1.65rem;
  font-weight: 950;
  color: var(--purple);
  text-align: center;
}

.ranking-content p {
  display: -webkit-box;
  margin: 0.35rem 0 0.5rem;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-action {
  min-height: 40px;
  padding: 0.62rem 0.95rem;
  white-space: nowrap;
}

.page-hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  overflow: hidden;
  border-radius: 2rem;
}

.soft-hero,
.category-hero {
  position: relative;
  background:
    radial-gradient(circle at 90% 12%, rgba(147, 51, 234, 0.22), transparent 22rem),
    radial-gradient(circle at 10% 80%, rgba(219, 39, 119, 0.16), transparent 24rem),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.page-hero-inner {
  padding: clamp(3rem, 8vw, 6rem);
}

.page-actions .ghost-button {
  color: var(--purple);
  border-color: rgba(147, 51, 234, 0.22);
  background: rgba(255, 255, 255, 0.68);
}

.filter-panel,
.search-panel {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 1.25rem;
}

.filter-panel input,
.search-panel input,
.search-panel select {
  min-height: 48px;
  padding: 0.78rem 1rem;
}

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

.detail-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.36)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 58%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0 2rem;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem;
}

.detail-poster {
  overflow: hidden;
  border-radius: 1.35rem;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy {
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 1.35rem;
}

.detail-copy h1 {
  color: #ffffff;
  -webkit-text-fill-color: transparent;
}

.lead-text {
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.detail-meta span {
  padding: 0.42rem 0.78rem;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
  margin-bottom: 1.25rem;
}

.detail-section {
  margin-top: 3rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  background: #030712;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030712;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  color: #ffffff;
  text-align: left;
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.72), rgba(3, 7, 18, 0.25));
}

.player-overlay.is-hidden {
  display: none;
}

.player-button {
  display: grid;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #ffffff;
  font-size: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.player-overlay strong,
.player-overlay span {
  display: block;
}

.player-overlay strong {
  margin-bottom: 0.4rem;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.player-overlay span {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.story-card {
  padding: 1.35rem;
  border-radius: 1.25rem;
}

.story-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.story-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
}

.footer-inner p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.7rem;
}

.footer-links a {
  padding: 0.5rem 0.78rem;
  color: #6d28d9;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(243, 232, 255, 0.76);
}

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

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

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

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

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

  .detail-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .ranking-row {
    grid-template-columns: 86px 44px minmax(0, 1fr);
  }

  .ranking-action {
    grid-column: 3;
    width: max-content;
  }
}

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

  .brand-text {
    font-size: 1.15rem;
  }

  .hero-wrap,
  .content-section,
  .page-hero,
  .detail-inner,
  .footer-inner {
    width: min(100% - 1rem, 1180px);
  }

  .hero-stage {
    min-height: 620px;
    border-radius: 1.4rem;
  }

  .hero-content {
    width: calc(100% - 2rem);
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 16vw, 4rem);
  }

  .hero-control {
    right: 50%;
    transform: translateX(50%);
  }

  .section-heading {
    display: block;
  }

  .section-link {
    margin-top: 1rem;
  }

  .movie-grid,
  .feature-grid,
  .full-grid,
  .related-grid,
  .category-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

  .compact-card {
    width: 82vw;
  }

  .page-hero-inner {
    padding: 2rem 1.25rem;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-grid,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 280px;
  }

  .ranking-row {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
  }

  .ranking-number {
    position: absolute;
    left: 1rem;
    top: 1rem;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    font-size: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple), var(--pink));
  }

  .ranking-row {
    position: relative;
  }

  .ranking-action {
    grid-column: 2;
  }

  .player-overlay {
    flex-direction: column;
    text-align: center;
  }
}
