:root {
  --pink: #ec4899;
  --pink-dark: #be185d;
  --purple: #a855f7;
  --purple-dark: #6d28d9;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --yellow: #fde047;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.10);
  --white-soft: rgba(255, 255, 255, 0.82);
  --shadow: 0 22px 60px rgba(88, 28, 135, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  color: #fff;
  background: linear-gradient(90deg, rgba(236, 72, 153, .98), rgba(168, 85, 247, .98), rgba(59, 130, 246, .98));
  box-shadow: 0 12px 34px rgba(109, 40, 217, 0.24);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark,
.footer-brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #7e22ce;
  background: linear-gradient(135deg, #fef08a, #fbcfe8);
  box-shadow: 0 8px 18px rgba(251, 207, 232, 0.35);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(90deg, #fef9c3, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  white-space: nowrap;
}

.nav-link {
  opacity: .92;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fef08a;
  opacity: 1;
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.intro-search input,
.search-box-large input {
  border: 0;
  outline: 0;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, .24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.header-search input {
  width: 190px;
  padding: 10px 14px;
  color: #fff;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, .78);
}

.header-search button,
.mobile-search button,
.intro-search button,
.search-box-large button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.header-search button,
.mobile-search button {
  padding: 10px 15px;
  color: #581c87;
  background: #fde047;
}

.header-search button:hover,
.mobile-search button:hover,
.intro-search button:hover,
.search-box-large button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.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: rgba(255, 255, 255, .18);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  background: linear-gradient(90deg, rgba(236, 72, 153, .98), rgba(168, 85, 247, .98), rgba(59, 130, 246, .98));
}

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 0 16px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 15px;
  color: #fff;
}

main {
  padding-top: 68px;
}

.hero-banner,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.hero-banner {
  min-height: 640px;
  color: #fff;
  background: linear-gradient(120deg, var(--pink), var(--purple), var(--blue));
}

.stars-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .38) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, .24) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .26) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 82%, rgba(255, 255, 255, .20) 0 2px, transparent 3px);
  background-size: 210px 210px, 280px 280px, 240px 240px, 320px 320px;
  animation: starDrift 18s linear infinite;
}

@keyframes starDrift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-90px, 70px, 0);
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .8s ease, transform 1.4s ease;
  pointer-events: none;
}

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

.hero-backdrop,
.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-backdrop::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 40%, rgba(255, 255, 255, .20), transparent 30%), linear-gradient(180deg, transparent, rgba(17, 24, 39, .28));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 58px;
  min-height: 640px;
  padding: 56px 0;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #581c87;
  background: rgba(254, 240, 138, .94);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(250, 204, 21, .20);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 36px rgba(88, 28, 135, .30);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: clamp(18px, 2vw, 24px);
  color: rgba(255, 255, 255, .91);
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  padding: 8px 13px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  color: #581c87;
  background: linear-gradient(135deg, #fef08a, #fbcfe8);
  box-shadow: 0 16px 34px rgba(251, 207, 232, .26);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .20);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: #fff;
  background: rgba(17, 24, 39, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(17, 24, 39, .32);
  transform: rotate(2deg);
  transition: transform .25s ease;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .08));
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  color: #581c87;
  background: rgba(254, 240, 138, .95);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
  transform: translate(-50%, -50%);
  font-size: 24px;
}

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

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

.hero-dot.is-active {
  width: 58px;
  background: #fef08a;
}

.intro-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: center;
  margin-top: -52px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 7;
}

.intro-strip h2,
.section-head h2,
.content-card h2,
.player-title h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.intro-strip h2 {
  font-size: clamp(26px, 4vw, 40px);
}

.intro-strip p,
.section-head p,
.content-card p,
.player-title p {
  color: var(--muted);
}

.intro-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #f3e8ff;
}

.intro-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  background: #fff;
}

.intro-search button,
.search-box-large button {
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
}

.page-section {
  padding: 58px 0;
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p {
  margin: 8px 0 0;
  max-width: 680px;
}

.section-more {
  color: #7e22ce;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 34px rgba(88, 28, 135, .12);
  transition: transform .22s ease, box-shadow .22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 58px rgba(88, 28, 135, .22);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fbcfe8, #ddd6fe, #bfdbfe);
}

.poster-wrap img,
.rank-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, .42));
  opacity: .86;
}

.play-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #7e22ce;
  background: rgba(254, 240, 138, .94);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

.card-body {
  padding: 16px;
}

.card-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7e22ce;
  font-size: 12px;
  font-weight: 900;
}

.card-meta span,
.rank-meta span {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3e8ff;
}

.movie-card h3,
.rank-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover {
  color: #db2777;
}

.movie-card p,
.rank-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags span {
  padding: 5px 8px;
  color: #be185d;
  background: #fce7f3;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
}

.feature-large .movie-card {
  height: 100%;
}

.large-card {
  display: grid;
  grid-template-columns: .75fr 1fr;
}

.large-card .poster-wrap {
  min-height: 100%;
  aspect-ratio: auto;
}

.large-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.large-card h3 {
  font-size: clamp(24px, 3vw, 36px);
}

.large-card p {
  min-height: 68px;
  font-size: 16px;
  -webkit-line-clamp: 3;
}

.feature-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compact-card .card-body {
  padding: 14px;
}

.compact-card h3,
.mini-card h3 {
  font-size: 16px;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, rgba(236, 72, 153, .90), rgba(168, 85, 247, .90));
  box-shadow: 0 18px 40px rgba(88, 28, 135, .18);
}

.category-card {
  min-height: 210px;
  padding: 24px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 58px rgba(88, 28, 135, .25);
}

.category-card::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}

.category-icon {
  display: block;
  font-size: 36px;
  margin-bottom: 12px;
}

.category-card strong {
  display: block;
  font-size: 22px;
  font-weight: 950;
}

.category-card em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  opacity: .82;
}

.category-preview {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  font-size: 13px;
  opacity: .9;
}

.tone-blue { background: linear-gradient(135deg, #60a5fa, #6366f1); }
.tone-orange { background: linear-gradient(135deg, #facc15, #fb923c); }
.tone-pink { background: linear-gradient(135deg, #f472b6, #fb7185); }
.tone-purple { background: linear-gradient(135deg, #c084fc, #6366f1); }
.tone-red { background: linear-gradient(135deg, #f87171, #ec4899); }
.tone-amber { background: linear-gradient(135deg, #f59e0b, #facc15); }
.tone-cyan { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.tone-green { background: linear-gradient(135deg, #34d399, #10b981); }
.tone-slate { background: linear-gradient(135deg, #94a3b8, #475569); }
.tone-violet { background: linear-gradient(135deg, #8b5cf6, #d946ef); }

.ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 34px rgba(88, 28, 135, .10);
  transition: transform .22s ease, box-shadow .22s ease;
}

.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(88, 28, 135, .18);
}

.rank-no {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #581c87;
  background: linear-gradient(135deg, #fef08a, #fbcfe8);
  font-weight: 950;
}

.rank-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbcfe8, #ddd6fe, #bfdbfe);
}

.page-hero {
  padding: 96px 0 74px;
  color: #fff;
  background: linear-gradient(120deg, rgba(236, 72, 153, .95), rgba(168, 85, 247, .95), rgba(59, 130, 246, .95));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 800;
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  color: #7e22ce;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(88, 28, 135, .10);
  cursor: pointer;
}

.filter-pill.is-active,
.filter-pill:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
}

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

.category-overview-card {
  padding: 26px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.category-overview-card .btn {
  position: relative;
  z-index: 2;
  margin-top: 22px;
}

.category-overview-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.category-overview-head span {
  font-size: 38px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 950;
}

.category-overview-head p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, .82);
}

.overview-preview-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.overview-preview-grid .movie-card {
  border-radius: 18px;
}

.overview-preview-grid .card-body {
  padding: 11px;
}

.overview-preview-grid .movie-card p,
.overview-preview-grid .card-meta,
.overview-preview-grid .card-tags {
  display: none;
}

.search-panel {
  padding-top: 36px;
}

.search-box-large {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
}

.search-box-large input {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
  background: #fff;
}

.detail-hero {
  min-height: 560px;
  color: #fff;
  background: #111827;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #fbcfe8, #ddd6fe, #bfdbfe);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .28);
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .90);
  font-size: 20px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-meta-grid div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(12px);
}

.detail-meta-grid strong,
.detail-meta-grid span {
  display: block;
}

.detail-meta-grid strong {
  color: rgba(255, 255, 255, .70);
  font-size: 12px;
}

.detail-meta-grid span {
  margin-top: 4px;
  font-weight: 900;
}

.detail-main {
  padding-top: 42px;
}

.player-panel,
.content-card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, .90);
  box-shadow: var(--shadow);
}

.player-panel {
  margin-bottom: 24px;
}

.video-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-box video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #581c87;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .10), rgba(0, 0, 0, .42));
  cursor: pointer;
  z-index: 5;
}

.player-overlay span {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 50%;
  background: rgba(254, 240, 138, .96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  font-size: 28px;
  transition: transform .2s ease;
}

.player-overlay:hover span {
  transform: scale(1.06);
}

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

.player-title,
.content-card {
  padding: 24px;
}

.content-card {
  margin-bottom: 24px;
}

.content-card h2 {
  font-size: 28px;
}

.content-card p {
  margin: 12px 0 0;
  font-size: 17px;
}

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

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

.related-grid .movie-card p {
  display: none;
}

.ranking-page-list {
  grid-template-columns: 1fr;
}

.ranking-page-list .rank-card {
  grid-template-columns: auto 110px minmax(0, 1fr);
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 12px;
    font-size: 14px;
  }

  .header-search input {
    width: 150px;
  }

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

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

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

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

  .menu-toggle {
    display: flex;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 720px;
    padding: 36px 0 76px;
  }

  .hero-poster {
    width: min(280px, 80vw);
    margin: 0 auto;
  }

  .intro-strip,
  .feature-grid,
  .large-card,
  .detail-layout,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .large-card .poster-wrap {
    aspect-ratio: 16 / 10;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  main {
    padding-top: 62px;
  }

  .header-inner {
    min-height: 62px;
  }

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

  .hero-banner {
    min-height: 700px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-actions,
  .detail-actions,
  .intro-search,
  .search-box-large {
    flex-direction: column;
  }

  .intro-strip {
    margin-top: -34px;
    padding: 22px;
  }

  .page-section {
    padding: 40px 0;
  }

  .section-head {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 10px;
  }

  .movie-grid,
  .feature-side,
  .category-grid,
  .overview-preview-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .movie-card p,
  .card-tags {
    display: none;
  }

  .rank-card,
  .ranking-page-list .rank-card {
    grid-template-columns: auto 78px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-no {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .page-hero {
    padding: 74px 0 52px;
  }

  .detail-hero-inner {
    padding: 58px 0 42px;
  }

  .detail-poster {
    max-width: 240px;
    margin: 0 auto;
  }

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

  .player-overlay span {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .feature-side,
  .category-grid,
  .overview-preview-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    grid-template-columns: 1fr;
  }
}
